b64180
From 9866f331db726db0ac6af64649c308b01b34ea56 Mon Sep 17 00:00:00 2001
b64180
From: Mikolaj Izdebski <mizdebsk@redhat.com>
b64180
Date: Tue, 5 Nov 2019 12:14:08 +0100
b64180
Subject: [PATCH 4/4] Drop support for JAXB
b64180
b64180
---
b64180
 xmlunit-core/src/main/java/org/xmlunit/builder/Input.java  | 4 ++--
b64180
 .../src/test/java/org/xmlunit/builder/InputTest.java       | 7 -------
b64180
 2 files changed, 2 insertions(+), 9 deletions(-)
b64180
b64180
diff --git a/xmlunit-core/src/main/java/org/xmlunit/builder/Input.java b/xmlunit-core/src/main/java/org/xmlunit/builder/Input.java
b64180
index 27d9c5a..81165cc 100644
b64180
--- a/xmlunit-core/src/main/java/org/xmlunit/builder/Input.java
b64180
+++ b/xmlunit-core/src/main/java/org/xmlunit/builder/Input.java
b64180
@@ -153,8 +153,8 @@ public class Input {
b64180
     /**
b64180
      * Build a Source from a Jaxb-Object.
b64180
      */
b64180
-    public static JaxbBuilder fromJaxb(Object jaxbObject) {
b64180
-        return new JaxbBuilder(jaxbObject);
b64180
+    public static Builder fromJaxb(Object jaxbObject) {
b64180
+        throw new RuntimeException("This implementation has JAXB support removed");
b64180
     }
b64180
 
b64180
     /**
b64180
diff --git a/xmlunit-core/src/test/java/org/xmlunit/builder/InputTest.java b/xmlunit-core/src/test/java/org/xmlunit/builder/InputTest.java
b64180
index e767f38..98e3fe7 100644
b64180
--- a/xmlunit-core/src/test/java/org/xmlunit/builder/InputTest.java
b64180
+++ b/xmlunit-core/src/test/java/org/xmlunit/builder/InputTest.java
b64180
@@ -31,7 +31,6 @@ import org.w3c.dom.Document;
b64180
 import org.xmlunit.NullNode;
b64180
 import org.xmlunit.TestResources;
b64180
 import org.xmlunit.XMLUnitException;
b64180
-import org.xmlunit.builder.jaxb.ComplexNode;
b64180
 import org.xmlunit.util.Convert;
b64180
 import org.xmlunit.xpath.JAXPXPathEngine;
b64180
 
b64180
@@ -132,10 +131,6 @@ public class InputTest {
b64180
         allIsWellFor(s, "furry");
b64180
     }
b64180
 
b64180
-    @Test public void shouldParseJaxbObject() throws Exception {
b64180
-        allIsWellFor(Input.fromJaxb(new ComplexNode()).build(), "complexNode");
b64180
-    }
b64180
-
b64180
     @Test public void shouldParseUnknownToSource() throws Exception {
b64180
         // from Source
b64180
         allIsWellFor(Input.from(Input.fromByteArray(readTestFile()).build()).build());
b64180
@@ -153,8 +148,6 @@ public class InputTest {
b64180
         allIsWellFor(Input.from(new URI("file:" + TestResources.ANIMAL_FILE)).build());
b64180
         // from URL
b64180
         allIsWellFor(Input.from(new URL("file:" + TestResources.ANIMAL_FILE)).build());
b64180
-        // from Jaxb-Object
b64180
-        allIsWellFor(Input.from(new ComplexNode()).build(), "complexNode");
b64180
         // from InputStream
b64180
         try (FileInputStream is = new FileInputStream(TestResources.ANIMAL_FILE)) {
b64180
             allIsWellFor(Input.from(is).build());
b64180
-- 
b64180
2.29.2
b64180