hbase-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From apurt...@apache.org
Subject [4/4] hbase git commit: HBASE-14584 TestNamespacesInstanceModel fails on jdk8
Date Tue, 17 Nov 2015 21:26:33 GMT
HBASE-14584 TestNamespacesInstanceModel fails on jdk8

Signed-off-by: Andrew Purtell <apurtell@apache.org>


Project: http://git-wip-us.apache.org/repos/asf/hbase/repo
Commit: http://git-wip-us.apache.org/repos/asf/hbase/commit/5227f80b
Tree: http://git-wip-us.apache.org/repos/asf/hbase/tree/5227f80b
Diff: http://git-wip-us.apache.org/repos/asf/hbase/diff/5227f80b

Branch: refs/heads/0.98
Commit: 5227f80b01807bd83db264579f942833e26f81f6
Parents: ec393c7
Author: Matt Warhaftig <mwarhaftig@gmail.com>
Authored: Sun Oct 11 16:55:49 2015 -0400
Committer: Andrew Purtell <apurtell@apache.org>
Committed: Tue Nov 17 13:16:36 2015 -0800

----------------------------------------------------------------------
 .../java/org/apache/hadoop/hbase/rest/model/TestModelBase.java    | 3 ++-
 1 file changed, 2 insertions(+), 1 deletion(-)
----------------------------------------------------------------------


http://git-wip-us.apache.org/repos/asf/hbase/blob/5227f80b/hbase-rest/src/test/java/org/apache/hadoop/hbase/rest/model/TestModelBase.java
----------------------------------------------------------------------
diff --git a/hbase-rest/src/test/java/org/apache/hadoop/hbase/rest/model/TestModelBase.java
b/hbase-rest/src/test/java/org/apache/hadoop/hbase/rest/model/TestModelBase.java
index dc40390..e280f28 100644
--- a/hbase-rest/src/test/java/org/apache/hadoop/hbase/rest/model/TestModelBase.java
+++ b/hbase-rest/src/test/java/org/apache/hadoop/hbase/rest/model/TestModelBase.java
@@ -112,7 +112,8 @@ public abstract class TestModelBase<T> extends TestCase {
   }
 
   public void testToXML() throws Exception {
-    assertEquals(AS_XML, toXML(buildTestModel()));
+    // Uses fromXML to check model because XML element ordering can be random.
+    checkModel(fromXML(toXML(buildTestModel())));
   }
 
   public void testToJSON() throws Exception {


Mime
View raw message