Failure in unit test AnnotatedTypeTest.testAegisType
----------------------------------------------------
Key: CXF-2003
URL: https://issues.apache.org/jira/browse/CXF-2003
Project: CXF
Issue Type: Test
Components: Aegis Databinding
Affects Versions: 2.1.3
Environment: Windows Vista
JDK 1.6.0 update 10
Reporter: Christian Schneider
Currently the test AnnotatedTypeTest.testAegisType fails for me with the
following log:
org.junit.ComparisonFailure: expected:<att[Prop]> but was:<att[ributeProperty]>
at org.junit.Assert.assertEquals(Assert.java:99)
at org.junit.Assert.assertEquals(Assert.java:117)
at
org.apache.cxf.aegis.type.java5.AnnotatedTypeTest.testAegisType(AnnotatedTypeTest.java:112)
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:597)
at org.junit.internal.runners.TestMethod.invoke(TestMethod.java:59)
at
org.junit.internal.runners.MethodRoadie.runTestMethod(MethodRoadie.java:98)
at org.junit.internal.runners.MethodRoadie$2.run(MethodRoadie.java:79)
at
org.junit.internal.runners.MethodRoadie.runBeforesThenTestThenAfters(MethodRoadie.java:87)
at org.junit.internal.runners.MethodRoadie.runTest(MethodRoadie.java:77)
at org.junit.internal.runners.MethodRoadie.run(MethodRoadie.java:42)
at
org.junit.internal.runners.JUnit4ClassRunner.invokeTestMethod(JUnit4ClassRunner.java:88)
at
org.junit.internal.runners.JUnit4ClassRunner.runMethods(JUnit4ClassRunner.java:51)
at
org.junit.internal.runners.JUnit4ClassRunner$1.run(JUnit4ClassRunner.java:44)
at
org.junit.internal.runners.ClassRoadie.runUnprotected(ClassRoadie.java:27)
at
org.junit.internal.runners.ClassRoadie.runProtected(ClassRoadie.java:37)
at
org.junit.internal.runners.JUnit4ClassRunner.run(JUnit4ClassRunner.java:42)
at
org.eclipse.jdt.internal.junit4.runner.JUnit4TestReference.run(JUnit4TestReference.java:45)
at
org.eclipse.jdt.internal.junit.runner.TestExecution.run(TestExecution.java:38)
at
org.eclipse.jdt.internal.junit.runner.RemoteTestRunner.runTests(RemoteTestRunner.java:460)
at
org.eclipse.jdt.internal.junit.runner.RemoteTestRunner.runTests(RemoteTestRunner.java:673)
at
org.eclipse.jdt.internal.junit.runner.RemoteTestRunner.run(RemoteTestRunner.java:386)
at
org.eclipse.jdt.internal.junit.runner.RemoteTestRunner.main(RemoteTestRunner.java:196)
When looking at the code of AnnotatedBean3 the attribute seems to be named
attributeProperty. So there is no wonder that the failure happens.
If I understand this correctly the code of the test should be changed to expect
"attributeProperty".
assertEquals("attributeProperty", q.getLocalPart());
What I don“t understand is that this problem does not show in the continuous
integration builds. Or does it show?
That is why I hesitated to commit the change myself.
Could someone with access to the continuous integration system check if the
failure also happens there and if it is safe to do the above change.
I have several other unit test failures that I will report once I understand
this issue.
--
This message is automatically generated by JIRA.
-
You can reply to this email to add a comment to the issue online.