tuscany-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Raymond Feng" <enjoyj...@gmail.com>
Subject Re: Databinding module now building, but two test cases are failing
Date Wed, 04 Apr 2007 03:24:59 GMT
Hi,

I fixed the problem. It was due to a change in the DataTypeImpl which 
doesn't set the default databinding based on the class name.

Thanks,
Raymond

----- Original Message ----- 
From: "Jean-Sebastien Delfino" <jsdelfino@apache.org>
To: <tuscany-dev@ws.apache.org>
Sent: Tuesday, April 03, 2007 6:45 PM
Subject: Databinding module now building, but two test cases are failing


> After copying the databinding module to sca/modules, moving the @DataType 
> annotation to this module, and removing its dependencies on the Tuscany 
> and SCA API modules, everything works, except for two test cases:
>
> Tests run: 2, Failures: 0, Errors: 2, Skipped: 0, Time elapsed: 0.065 sec 
> <<< FAILURE!
> testTransform1(org.apache.tuscany.databinding.impl.MediatorImplTestCase) 
> Time elapsed: 0.015 sec  <<< ERROR!
> org.apache.tuscany.spi.databinding.TransformationException: No path found 
> for the transformation
>        at 
> org.apache.tuscany.databinding.impl.MediatorImpl.getTransformerChain(MediatorImpl.java:160)
>        at 
> org.apache.tuscany.databinding.impl.MediatorImpl.mediate(MediatorImpl.java:75)
>        at 
> org.apache.tuscany.databinding.impl.MediatorImplTestCase.testTransform1(MediatorImplTestCase.java:103)
>        at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
>        at 
> sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:39)
>        at 
> sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25)
>        at java.lang.reflect.Method.invoke(Method.java:585)
>        at junit.framework.TestCase.runTest(TestCase.java:168)
>        at junit.framework.TestCase.runBare(TestCase.java:134)
>        at junit.framework.TestResult$1.protect(TestResult.java:110)
>        at junit.framework.TestResult.runProtected(TestResult.java:128)
>        at junit.framework.TestResult.run(TestResult.java:113)
>        at junit.framework.TestCase.run(TestCase.java:124)
>        at junit.framework.TestSuite.runTest(TestSuite.java:232)
>        at junit.framework.TestSuite.run(TestSuite.java:227)
>        at 
> org.junit.internal.runners.OldTestClassRunner.run(OldTestClassRunner.java:35)
>        at 
> org.apache.maven.surefire.junit4.JUnit4TestSet.execute(JUnit4TestSet.java:62)
>        at 
> org.apache.maven.surefire.suite.AbstractDirectoryTestSuite.executeTestSet(AbstractDirectoryTestSuite.java:138)
>        at 
> org.apache.maven.surefire.suite.AbstractDirectoryTestSuite.execute(AbstractDirectoryTestSuite.java:125)
>        at org.apache.maven.surefire.Surefire.run(Surefire.java:132)
>        at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
>        at 
> sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:39)
>        at 
> sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25)
>        at java.lang.reflect.Method.invoke(Method.java:585)
>        at 
> org.apache.maven.surefire.booter.SurefireBooter.runSuitesInProcess(SurefireBooter.java:290)
>        at 
> org.apache.maven.surefire.booter.SurefireBooter.main(SurefireBooter.java:818)
>
> testTransform2(org.apache.tuscany.databinding.impl.MediatorImplTestCase) 
> Time elapsed: 0.002 sec  <<< ERROR!
> org.apache.tuscany.spi.databinding.TransformationException: No path found 
> for the transformation
>        at 
> org.apache.tuscany.databinding.impl.MediatorImpl.getTransformerChain(MediatorImpl.java:160)
>        at 
> org.apache.tuscany.databinding.impl.MediatorImpl.mediate(MediatorImpl.java:136)
>        at 
> org.apache.tuscany.databinding.impl.MediatorImplTestCase.testTransform2(MediatorImplTestCase.java:114)
>        at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
>        at 
> sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:39)
>        at 
> sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25)
>        at java.lang.reflect.Method.invoke(Method.java:585)
>        at junit.framework.TestCase.runTest(TestCase.java:168)
>        at junit.framework.TestCase.runBare(TestCase.java:134)
>        at junit.framework.TestResult$1.protect(TestResult.java:110)
>        at junit.framework.TestResult.runProtected(TestResult.java:128)
>        at junit.framework.TestResult.run(TestResult.java:113)
>        at junit.framework.TestCase.run(TestCase.java:124)
>        at junit.framework.TestSuite.runTest(TestSuite.java:232)
>        at junit.framework.TestSuite.run(TestSuite.java:227)
>        at 
> org.junit.internal.runners.OldTestClassRunner.run(OldTestClassRunner.java:35)
>        at 
> org.apache.maven.surefire.junit4.JUnit4TestSet.execute(JUnit4TestSet.java:62)
>        at 
> org.apache.maven.surefire.suite.AbstractDirectoryTestSuite.executeTestSet(AbstractDirectoryTestSuite.java:138)
>        at 
> org.apache.maven.surefire.suite.AbstractDirectoryTestSuite.execute(AbstractDirectoryTestSuite.java:125)
>        at org.apache.maven.surefire.Surefire.run(Surefire.java:132)
>        at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
>        at 
> sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:39)
>        at 
> sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25)
>        at java.lang.reflect.Method.invoke(Method.java:585)
>        at 
> org.apache.maven.surefire.booter.SurefireBooter.runSuitesInProcess(SurefireBooter.java:290)
>        at 
> org.apache.maven.surefire.booter.SurefireBooter.main(SurefireBooter.java:818)
>
> Any idea about what could have broken these two test cases?
>
> Thanks.
>
> -- 
> Jean-Sebastien
>
>
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: tuscany-dev-unsubscribe@ws.apache.org
> For additional commands, e-mail: tuscany-dev-help@ws.apache.org
> 


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


Mime
View raw message