axis-java-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Sagara Gunathunga (JIRA)" <j...@apache.org>
Subject [jira] [Commented] (AXIS2-5335) Test cases for XMLSchema usage
Date Tue, 05 Jun 2012 13:47:23 GMT

    [ https://issues.apache.org/jira/browse/AXIS2-5335?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=13289408#comment-13289408
] 

Sagara Gunathunga  commented on AXIS2-5335:
-------------------------------------------

It looks like two test cases failing on build server but I didn't get such failures locally.
Can please look into these issues ? 


1.) https://builds.apache.org/job/Axis2/org.apache.axis2$axis2-kernel/1536/testReport/junit/org.apache.axis2.description/AxisService2WSDLTest/testGenerateInterfaceOperationElement20/

Error Message

XML similar org.custommonkey.xmlunit.Diff [different] Expected attribute value 'tns:creatSeq'
but was 'tns:echoStringArray' - comparing <wsdl2:operation ref="tns:creatSeq"...> at
/description[1]/binding[4]/operation[1]/@ref to <wsdl2:operation ref="tns:echoStringArray"...>
at /description[1]/binding[4]/operation[1]/@ref 

Stacktrace

junit.framework.AssertionFailedError: XML similar org.custommonkey.xmlunit.Diff
[different] Expected attribute value 'tns:creatSeq' but was 'tns:echoStringArray' - comparing
<wsdl2:operation ref="tns:creatSeq"...> at /description[1]/binding[4]/operation[1]/@ref
to <wsdl2:operation ref="tns:echoStringArray"...> at /description[1]/binding[4]/operation[1]/@ref

	at junit.framework.Assert.fail(Assert.java:47)
	at junit.framework.Assert.assertTrue(Assert.java:20)
	at org.apache.axis2.description.java2wsdl.XMLSchemaTest.assertSimilarXML(XMLSchemaTest.java:59)
	at org.apache.axis2.description.AxisService2WSDLTest.testGenerateInterfaceOperationElement20(AxisService2WSDLTest.java:37)
	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:592)
	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.JUnit38ClassRunner.run(JUnit38ClassRunner.java:81)
	at org.apache.maven.surefire.junit4.JUnit4TestSet.execute(JUnit4TestSet.java:62)
	at org.apache.maven.surefire.suite.AbstractDirectoryTestSuite.executeTestSet(AbstractDirectoryTestSuite.java:140)
	at org.apache.maven.surefire.suite.AbstractDirectoryTestSuite.execute(AbstractDirectoryTestSuite.java:127)
	at org.apache.maven.surefire.Surefire.run(Surefire.java:177)
	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:592)
	at org.apache.maven.surefire.booter.SurefireBooter.runSuitesInProcess(SurefireBooter.java:345)
	at org.apache.maven.surefire.booter.SurefireBooter.main(SurefireBooter.java:1009)


2.) https://builds.apache.org/job/Axis2/org.apache.axis2$axis2-kernel/1536/testReport/junit/org.apache.axis2.description/AxisServiceTest/testPrintWSDL/

Error Message

XML similar org.custommonkey.xmlunit.Diff [different] Expected text value '     ' but was
'             ' - comparing <xs:schema ...>     </xs:schema> at /definitions[1]/types[1]/schema[1]/text()[1]
to <xs:schema ...>             </xs:schema> at /definitions[1]/types[1]/schema[1]/text()[1]


Stacktrace

junit.framework.AssertionFailedError: XML similar org.custommonkey.xmlunit.Diff
[different] Expected text value '
    ' but was '
            ' - comparing <xs:schema ...>
    </xs:schema> at /definitions[1]/types[1]/schema[1]/text()[1] to <xs:schema ...>
            </xs:schema> at /definitions[1]/types[1]/schema[1]/text()[1]

	at junit.framework.Assert.fail(Assert.java:47)
	at junit.framework.Assert.assertTrue(Assert.java:20)
	at org.apache.axis2.description.java2wsdl.XMLSchemaTest.assertSimilarXML(XMLSchemaTest.java:59)
	at org.apache.axis2.description.AxisServiceTest.testPrintWSDL(AxisServiceTest.java:284)
	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:592)
	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.JUnit38ClassRunner.run(JUnit38ClassRunner.java:81)
	at org.apache.maven.surefire.junit4.JUnit4TestSet.execute(JUnit4TestSet.java:62)
	at org.apache.maven.surefire.suite.AbstractDirectoryTestSuite.executeTestSet(AbstractDirectoryTestSuite.java:140)
	at org.apache.maven.surefire.suite.AbstractDirectoryTestSuite.execute(AbstractDirectoryTestSuite.java:127)
	at org.apache.maven.surefire.Surefire.run(Surefire.java:177)
	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:592)
	at org.apache.maven.surefire.booter.SurefireBooter.runSuitesInProcess(SurefireBooter.java:345)
	at org.apache.maven.surefire.booter.SurefireBooter.main(SurefireBooter.java:1009)

 
                
> Test cases for XMLSchema usage
> ------------------------------
>
>                 Key: AXIS2-5335
>                 URL: https://issues.apache.org/jira/browse/AXIS2-5335
>             Project: Axis2
>          Issue Type: Improvement
>          Components: kernel
>            Reporter: Prabhath Suminda
>         Attachments: fixed.diff, patch.diff, patch.diff
>
>
> Upgrading Axis2 from XMLSchema1 to XMLSchema2 has become a problem because there is less
test coverage. I wrote some test cases on XMLSchema usage for Axis2 kernel as a start. These
test cases can be used to test the DefaultSchemaGenerator and DocLitBareSchemaGenerator classes.

--
This message is automatically generated by JIRA.
If you think it was sent incorrectly, please contact your JIRA administrators: https://issues.apache.org/jira/secure/ContactAdministrators!default.jspa
For more information on JIRA, see: http://www.atlassian.com/software/jira

        

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


Mime
View raw message