File tree Expand file tree Collapse file tree 1 file changed +19
-0
lines changed
src/test/java/xmlobject/detailed Expand file tree Collapse file tree 1 file changed +19
-0
lines changed Original file line number Diff line number Diff line change 1717package xmlobject .detailed ;
1818
1919import org .apache .xmlbeans .XmlObject ;
20+ import org .junit .jupiter .api .Disabled ;
2021import org .junit .jupiter .api .Test ;
2122import org .tranxml .tranXML .version40 .CarLocationMessageDocument ;
2223import xmlcursor .common .Common ;
2324
25+ import static org .junit .jupiter .api .Assertions .assertFalse ;
2426import static org .junit .jupiter .api .Assertions .assertTrue ;
2527import static xmlcursor .common .BasicCursorTestCase .jobj ;
2628
@@ -32,5 +34,22 @@ void testValueEqualsTrue() throws Exception {
3234 assertTrue (clmDoc .valueEquals (m_xo ));
3335 }
3436
37+ @ Disabled // https://issues.apache.org/jira/browse/XMLBEANS-658
38+ @ Test
39+ void testIssue658 () throws Exception {
40+ CarLocationMessageDocument clm1 = CarLocationMessageDocument .Factory .newInstance ();
41+ CarLocationMessageDocument .CarLocationMessage msg1 = clm1 .addNewCarLocationMessage ();
42+ msg1 .setFleetID ("fleet1" );
43+
44+ CarLocationMessageDocument clm2 = CarLocationMessageDocument .Factory .newInstance ();
45+ CarLocationMessageDocument .CarLocationMessage msg2 = clm2 .addNewCarLocationMessage ();
46+ msg2 .setFleetID ("fleet2" );
47+
48+ assertTrue (clm1 .valueEquals (clm1 ));
49+ assertTrue (clm2 .valueEquals (clm2 ));
50+ assertFalse (clm1 .valueEquals (clm2 ));
51+ assertFalse (clm2 .valueEquals (clm1 ));
52+ }
53+
3554}
3655
You can’t perform that action at this time.
0 commit comments