You are viewing a plain text version of this content. The canonical link for it is here.
Posted to dev@tuscany.apache.org by "Liu, Jervis" <jl...@iona.com> on 2006/08/04 12:28:28 UTC

Test failure: testArtifactFoundInRepo

Hi,

Following test failed on my machine, it seems to be an URL decoding problem. Using following code should solve the problem:
    assertEquals(file.toURL().toString(), java.net.URLDecoder.decode(artifact.getUrl().toString(), "UTF-8").toString());


Running org.apache.tuscany.core.services.artifact.LocalMavenRepositoryTestCase
Tests run: 5, Failures: 1, Errors: 0, Skipped: 0, Time elapsed: 0.062 sec <<< FAILURE!
testArtifactFoundInRepo(org.apache.tuscany.core.services.artifact.LocalMavenRepositoryTestCase)  Time elapsed: 0 sec  <<
< FAILURE!
junit.framework.AssertionFailedError: expected:<file:/C:/Documents and Settings/jliu/.m2/repository/org/apache/tuscany/s
pi/1.0-SNAPSHOT/spi-1.0-SNAPSHOT.jar> but was:<file:/C:/Documents%20and%20Settings/jliu/.m2/repository/org/apache/tuscan
y/spi/1.0-SNAPSHOT/spi-1.0-SNAPSHOT.jar>
        at junit.framework.Assert.fail(Assert.java:47)
        at junit.framework.Assert.failNotEquals(Assert.java:282)
        at junit.framework.Assert.assertEquals(Assert.java:64)
        at junit.framework.Assert.assertEquals(Assert.java:71)
        at org.apache.tuscany.core.services.artifact.LocalMavenRepositoryTestCase.testArtifactFoundInRepo(LocalMavenRepo
sitoryTestCase.java:49)

Running org.apache.tuscany.core.implementation.system.wire.AtomicComponentWireInvocationTestCase
Tests run: 1, Failures: 0, Errors: 0, Skipped: 0, Time elapsed: 0.031 sec
Running org.apache.tuscany.core.implementation.processor.HeuristicAndPropertyTestCase
Tests run: 1, Failures: 0, Errors: 0, Skipped: 0, Time elapsed: 0.032 sec
Running org.apache.tuscany.core.policy.async.AsyncInterceptorTestCase
Tests run: 1, Failures: 0, Errors: 0, Skipped: 0, Time elapsed: 0.031 sec

Results :
Tests run: 352, Failures: 1, Errors: 0, Skipped: 0


Thanks,
Jervis Liu

---------------------------------------------------------------------
To unsubscribe, e-mail: tuscany-dev-unsubscribe@ws.apache.org
For additional commands, e-mail: tuscany-dev-help@ws.apache.org