Hi all,
Synapse test fails like this and please find the surefire report at the
bottom.
Aug 20, 2010 5:53:19 AM org.apache.synapse.mediators.db.AbstractDBMediator
createCustomDataSource
INFO: Sunccessfully created data source for
jdbc:derby:/home/carbon/carbon-3.0.0/carbon/dependencies/synapse/1.4.0-wso2v2/modules/core/target/derbyDB;create=true.
Tests run: 2, Failures: 0, Errors: 0, Skipped: 0, Time elapsed: 3.849 sec
Running org.apache.synapse.mediators.builtin.PropertyMediatorTest
All property values are correctly in place - Test SUCCESSFUL
Tests run: 5, Failures: 0, Errors: 0, Skipped: 0, Time elapsed: 1.565 sec
Running org.apache.synapse.util.MessageHelperTest
Tests run: 2, Failures: 0, Errors: 0, Skipped: 0, Time elapsed: 0.125 sec
Running org.apache.synapse.config.xml.ProxyServiceSerializationTest
Tests run: 6, Failures: 2, Errors: 0, Skipped: 0, Time elapsed: 1.067 sec
<<< FAILURE!
Running org.apache.synapse.core.axis2.Axis2MessageContextTest
Tests run: 2, Failures: 0, Errors: 0, Skipped: 0, Time elapsed: 0.363 sec
Running org.apache.synapse.config.xml.SwitchMediatorSerializationTest
Tests run: 2, Failures: 0, Errors: 0, Skipped: 0, Time elapsed: 0.996 sec
Running org.apache.synapse.TestMessageContext
Tests run: 0, Failures: 0, Errors: 0, Skipped: 0, Time elapsed: 0.023 sec
Running org.apache.synapse.mediators.transform.HeaderMediatorTest
Tests run: 3, Failures: 0, Errors: 0, Skipped: 0, Time elapsed: 0.388 sec
Running org.apache.synapse.mediators.builtin.ValidateMediatorTest
Tests run: 8, Failures: 0, Errors: 0, Skipped: 0, Time elapsed: 1.534 sec
Running org.apache.synapse.config.xml.FaultMediatorSerializationTest
Tests run: 5, Failures: 0, Errors: 0, Skipped: 0, Time elapsed: 0.654 sec
Running org.apache.synapse.mediators.filters.SwitchMediatorTest
Tests run: 3, Failures: 0, Errors: 0, Skipped: 0, Time elapsed: 0.96 sec
Running org.apache.synapse.mediators.ext.POJOCommandMediatorTest
Tests run: 8, Failures: 0, Errors: 0, Skipped: 0, Time elapsed: 0.4 sec
--------------------------------------------- surefire report
----------------------------------------------
-------------------------------------------------------------------------------
Test set: org.apache.synapse.config.xml.ProxyServiceSerializationTest
-------------------------------------------------------------------------------
Tests run: 6, Failures: 2, Errors: 0, Skipped: 0, Time elapsed: 1.067 sec
<<< FAILURE!
testProxyServiceSerializationSenarioFive(org.apache.synapse.config.xml.ProxyServiceSerializationTest)
Time elapsed: 0.097 sec <<< FAILURE!
junit.framework.AssertionFailedError: org.custommonkey.xmlunit.Diff
[different] Expected number of element attributes '1' but was '0' -
comparing <endpoint...> at /proxy[1]/target[1]/endpoint[1] to <endpoint...>
at /proxy[1]/target[1]/endpoint[1]
at junit.framework.Assert.fail(Assert.java:47)
at
org.custommonkey.xmlunit.XMLAssert.assertXMLEqual(XMLAssert.java:125)
at
org.custommonkey.xmlunit.XMLAssert.assertXMLEqual(XMLAssert.java:229)
at
org.custommonkey.xmlunit.XMLAssert.assertXMLEqual(XMLAssert.java:179)
at
org.custommonkey.xmlunit.XMLTestCase.assertXMLEqual(XMLTestCase.java:214)
at
org.apache.synapse.config.xml.AbstractTestCase.compare(AbstractTestCase.java:100)
at
org.apache.synapse.config.xml.ProxyServiceSerializationTest.testProxyServiceSerializationSenarioFive(ProxyServiceSerializationTest.java:88)
at
org.apache.synapse.config.xml.ProxyServiceSerializationTest.testProxyServiceSerializationSenarioFive(ProxyServiceSerializationTest.java:88)
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:164)
at junit.framework.TestCase.runBare(TestCase.java:130)
at junit.framework.TestResult$1.protect(TestResult.java:106)
at junit.framework.TestResult.runProtected(TestResult.java:124)
at junit.framework.TestResult.run(TestResult.java:109)
at junit.framework.TestCase.run(TestCase.java:120)
at junit.framework.TestSuite.runTest(TestSuite.java:230)
at junit.framework.TestSuite.run(TestSuite.java:225)
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.junit.JUnitTestSet.execute(JUnitTestSet.java:213)
at
org.apache.maven.surefire.suite.AbstractDirectoryTestSuite.executeTestSet(AbstractDirectoryTestSuite.java:138)
at
org.apache.maven.surefire.suite.AbstractDirectoryTestSuite.execute(AbstractDirectoryTestSuite.java:163)
at org.apache.maven.surefire.Surefire.run(Surefire.java:84)
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:244)
at
org.apache.maven.surefire.booter.SurefireBooter.main(SurefireBooter.java:814)
testProxyServiceSerializationWithResourceMap(org.apache.synapse.config.xml.ProxyServiceSerializationTest)
Time elapsed: 0.174 sec <<< FAILURE!
junit.framework.AssertionFailedError: org.custommonkey.xmlunit.Diff
[different] Expected number of element attributes '1' but was '0' -
comparing <endpoint...> at /proxy[1]/target[1]/endpoint[1] to <endpoint...>
at /proxy[1]/target[1]/endpoint[1]
at junit.framework.Assert.fail(Assert.java:47)
at
org.custommonkey.xmlunit.XMLAssert.assertXMLEqual(XMLAssert.java:125)
at
org.custommonkey.xmlunit.XMLAssert.assertXMLEqual(XMLAssert.java:229)
at
org.custommonkey.xmlunit.XMLAssert.assertXMLEqual(XMLAssert.java:179)
at
org.custommonkey.xmlunit.XMLTestCase.assertXMLEqual(XMLTestCase.java:214)
at
org.apache.synapse.config.xml.AbstractTestCase.compare(AbstractTestCase.java:100)
at
org.apache.synapse.config.xml.ProxyServiceSerializationTest.testProxyServiceSerializationWithResourceMap(ProxyServiceSerializationTest.java:108)
at
org.apache.synapse.config.xml.ProxyServiceSerializationTest.testProxyServiceSerializationWithResourceMap(ProxyServiceSerializationTest.java:108)
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:164)
at junit.framework.TestCase.runBare(TestCase.java:130)
at junit.framework.TestResult$1.protect(TestResult.java:106)
at junit.framework.TestResult.runProtected(TestResult.java:124)
at junit.framework.TestResult.run(TestResult.java:109)
at junit.framework.TestCase.run(TestCase.java:120)
at junit.framework.TestSuite.runTest(TestSuite.java:230)
at junit.framework.TestSuite.run(TestSuite.java:225)
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.junit.JUnitTestSet.execute(JUnitTestSet.java:213)
at
org.apache.maven.surefire.suite.AbstractDirectoryTestSuite.executeTestSet(AbstractDirectoryTestSuite.java:138)
at
org.apache.maven.surefire.suite.AbstractDirectoryTestSuite.execute(AbstractDirectoryTestSuite.java:163)
at org.apache.maven.surefire.Surefire.run(Surefire.java:84)
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:244)
at
org.apache.maven.surefire.booter.SurefireBooter.main(SurefireBooter.java:814)
Thanks
Lahiru
--
Lahiru Gunathilake
Senior Software Engineer - WSO2 Inc. www.wso2.com
Email:[email protected] <email%[email protected]> Blog: www.lahiru.org
Mobile: +94716381143
Lean . Enterprise . Middleware
_______________________________________________
Carbon-dev mailing list
[email protected]
https://mail.wso2.org/cgi-bin/mailman/listinfo/carbon-dev