Details
-
Test
-
Status: Closed
-
Minor
-
Resolution: Duplicate
-
None
-
None
-
None
-
None
Description
From https://builds.apache.org/job/HBase-1.3/jdk=latest1.8,label=Hadoop/237/consoleFull :
org.apache.hadoop.hbase.rest.model.TestNamespacesInstanceModel testToXML(org.apache.hadoop.hbase.rest.model.TestNamespacesInstanceModel) Time elapsed: 0.017 sec <<< FAILURE! junit.framework.ComparisonFailure: expected:<...perties><entry><key>[NAME</key><value>testNamespace</value></entry><entry><key>KEY_2</key><value>VALUE_2</value></entry><entry><key>KEY_1</key><value>VALUE_1]</value></entry></pr...> but was:<...perties><entry><key>[KEY_1</key><value>VALUE_1</value></entry><entry><key>KEY_2</key><value>VALUE_2</value></entry><entry><key>NAME</key><value>testNamespace]</value></entry></pr...> at junit.framework.Assert.assertEquals(Assert.java:100) at junit.framework.Assert.assertEquals(Assert.java:107) at junit.framework.TestCase.assertEquals(TestCase.java:269) at org.apache.hadoop.hbase.rest.model.TestModelBase.testToXML(TestModelBase.java:115) at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method) at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:62) at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43)
The above test failure can be reproduced locally.
It was likely caused by the different behavior w.r.t. JAXBContext between JDK 1.7 and 1.8
Attachments
Issue Links
- duplicates
-
HBASE-14584 TestNamespacesInstanceModel fails on jdk8
- Closed