File: TEST-org.simpleframework.xml.core.ConstructorScannerTest.txt

package info (click to toggle)
simple-xml 2.7.1-4
  • links: PTS, VCS
  • area: main
  • in suites: bookworm, forky, sid, trixie
  • size: 8,524 kB
  • sloc: java: 45,356; xml: 277; sh: 11; makefile: 10
file content (118 lines) | stat: -rw-r--r-- 9,090 bytes parent folder | download | duplicates (3)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
Testsuite: org.simpleframework.xml.core.ConstructorScannerTest
Tests run: 10, Failures: 0, Errors: 0, Time elapsed: 0.098 sec
------------- Standard Error -----------------
org.simpleframework.xml.core.ConstructorException: Annotations do not match for 'a[1]/b[1]/c[1]' in class org.simpleframework.xml.core.ConstructorScannerTest$ClashBetweenElementAndText
	at org.simpleframework.xml.core.SignatureScanner.validate(SignatureScanner.java:308)
	at org.simpleframework.xml.core.SignatureScanner.register(SignatureScanner.java:281)
	at org.simpleframework.xml.core.SignatureScanner.create(SignatureScanner.java:241)
	at org.simpleframework.xml.core.SignatureScanner.process(SignatureScanner.java:194)
	at org.simpleframework.xml.core.SignatureScanner.scan(SignatureScanner.java:150)
	at org.simpleframework.xml.core.SignatureScanner.scan(SignatureScanner.java:133)
	at org.simpleframework.xml.core.SignatureScanner.<init>(SignatureScanner.java:94)
	at org.simpleframework.xml.core.ConstructorScanner.scan(ConstructorScanner.java:139)
	at org.simpleframework.xml.core.ConstructorScanner.scan(ConstructorScanner.java:126)
	at org.simpleframework.xml.core.ConstructorScanner.<init>(ConstructorScanner.java:73)
	at org.simpleframework.xml.core.ConstructorScannerTest.testClashOnElementByPath(ConstructorScannerTest.java:87)
	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 junit.framework.TestCase.runTest(TestCase.java:154)
	at junit.framework.TestCase.runBare(TestCase.java:127)
	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:118)
	at junit.framework.TestSuite.runTest(TestSuite.java:208)
	at junit.framework.TestSuite.run(TestSuite.java:203)
	at org.apache.tools.ant.taskdefs.optional.junit.JUnitTestRunner.run(JUnitTestRunner.java:518)
	at org.apache.tools.ant.taskdefs.optional.junit.JUnitTestRunner.launch(JUnitTestRunner.java:1052)
	at org.apache.tools.ant.taskdefs.optional.junit.JUnitTestRunner.main(JUnitTestRunner.java:906)
org.simpleframework.xml.core.ConstructorException: Annotations do not match for 'a[1]/b[1]/x[1]' in class org.simpleframework.xml.core.ConstructorScannerTest$ClashBetweenElementUnionAndText
	at org.simpleframework.xml.core.SignatureScanner.validate(SignatureScanner.java:308)
	at org.simpleframework.xml.core.SignatureScanner.register(SignatureScanner.java:284)
	at org.simpleframework.xml.core.SignatureScanner.create(SignatureScanner.java:241)
	at org.simpleframework.xml.core.SignatureScanner.process(SignatureScanner.java:194)
	at org.simpleframework.xml.core.SignatureScanner.scan(SignatureScanner.java:150)
	at org.simpleframework.xml.core.SignatureScanner.scan(SignatureScanner.java:133)
	at org.simpleframework.xml.core.SignatureScanner.<init>(SignatureScanner.java:94)
	at org.simpleframework.xml.core.ConstructorScanner.scan(ConstructorScanner.java:139)
	at org.simpleframework.xml.core.ConstructorScanner.scan(ConstructorScanner.java:126)
	at org.simpleframework.xml.core.ConstructorScanner.<init>(ConstructorScanner.java:73)
	at org.simpleframework.xml.core.ConstructorScannerTest.testClashOnElementUnionByPath(ConstructorScannerTest.java:99)
	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 junit.framework.TestCase.runTest(TestCase.java:154)
	at junit.framework.TestCase.runBare(TestCase.java:127)
	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:118)
	at junit.framework.TestSuite.runTest(TestSuite.java:208)
	at junit.framework.TestSuite.run(TestSuite.java:203)
	at org.apache.tools.ant.taskdefs.optional.junit.JUnitTestRunner.run(JUnitTestRunner.java:518)
	at org.apache.tools.ant.taskdefs.optional.junit.JUnitTestRunner.launch(JUnitTestRunner.java:1052)
	at org.apache.tools.ant.taskdefs.optional.junit.JUnitTestRunner.main(JUnitTestRunner.java:906)
org.simpleframework.xml.core.ConstructorException: Parameter 'a[1]/b[1]/x[1]' is a duplicate in public org.simpleframework.xml.core.ConstructorScannerTest$ClashInText(java.lang.String,java.lang.String)
	at org.simpleframework.xml.core.SignatureBuilder.create(SignatureBuilder.java:159)
	at org.simpleframework.xml.core.SignatureBuilder.build(SignatureBuilder.java:115)
	at org.simpleframework.xml.core.SignatureBuilder.build(SignatureBuilder.java:97)
	at org.simpleframework.xml.core.SignatureScanner.getSignatures(SignatureScanner.java:118)
	at org.simpleframework.xml.core.ConstructorScanner.scan(ConstructorScanner.java:142)
	at org.simpleframework.xml.core.ConstructorScanner.scan(ConstructorScanner.java:126)
	at org.simpleframework.xml.core.ConstructorScanner.<init>(ConstructorScanner.java:73)
	at org.simpleframework.xml.core.ConstructorScannerTest.testClashInText(ConstructorScannerTest.java:111)
	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 junit.framework.TestCase.runTest(TestCase.java:154)
	at junit.framework.TestCase.runBare(TestCase.java:127)
	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:118)
	at junit.framework.TestSuite.runTest(TestSuite.java:208)
	at junit.framework.TestSuite.run(TestSuite.java:203)
	at org.apache.tools.ant.taskdefs.optional.junit.JUnitTestRunner.run(JUnitTestRunner.java:518)
	at org.apache.tools.ant.taskdefs.optional.junit.JUnitTestRunner.launch(JUnitTestRunner.java:1052)
	at org.apache.tools.ant.taskdefs.optional.junit.JUnitTestRunner.main(JUnitTestRunner.java:906)
org.simpleframework.xml.core.ConstructorException: Parameter 'path[1]/a[1]' is a duplicate in public org.simpleframework.xml.core.ConstructorScannerTest$SameNameAndAnnotationWithPath(java.lang.String,java.lang.String)
	at org.simpleframework.xml.core.SignatureBuilder.create(SignatureBuilder.java:159)
	at org.simpleframework.xml.core.SignatureBuilder.build(SignatureBuilder.java:115)
	at org.simpleframework.xml.core.SignatureBuilder.build(SignatureBuilder.java:97)
	at org.simpleframework.xml.core.SignatureScanner.getSignatures(SignatureScanner.java:118)
	at org.simpleframework.xml.core.ConstructorScanner.scan(ConstructorScanner.java:142)
	at org.simpleframework.xml.core.ConstructorScanner.scan(ConstructorScanner.java:126)
	at org.simpleframework.xml.core.ConstructorScanner.<init>(ConstructorScanner.java:73)
	at org.simpleframework.xml.core.ConstructorScannerTest.testSameNameAndAnnotationWithPath(ConstructorScannerTest.java:137)
	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 junit.framework.TestCase.runTest(TestCase.java:154)
	at junit.framework.TestCase.runBare(TestCase.java:127)
	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:118)
	at junit.framework.TestSuite.runTest(TestSuite.java:208)
	at junit.framework.TestSuite.run(TestSuite.java:203)
	at org.apache.tools.ant.taskdefs.optional.junit.JUnitTestRunner.run(JUnitTestRunner.java:518)
	at org.apache.tools.ant.taskdefs.optional.junit.JUnitTestRunner.launch(JUnitTestRunner.java:1052)
	at org.apache.tools.ant.taskdefs.optional.junit.JUnitTestRunner.main(JUnitTestRunner.java:906)
public org.simpleframework.xml.core.ScannerCreatorTest$Example1(java.lang.String,java.lang.String)
------------- ---------------- ---------------

Testcase: testElementWithPath took 0.041 sec
Testcase: testClashOnElementByPath took 0.005 sec
Testcase: testClashOnElementUnionByPath took 0.011 sec
Testcase: testClashInText took 0.004 sec
Testcase: testSameNameWithPath took 0.005 sec
Testcase: testSameNameAndAnnotationWithPath took 0.003 sec
Testcase: testSameNameWithDifferentPath took 0.002 sec
Testcase: testUnion took 0.002 sec
Testcase: testUnionBigPermutation took 0.008 sec
Testcase: testScanner took 0.014 sec