Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with
or
.
Download ZIP
Browse files

move tests to jaxb package and fix eclipse compile warnings too.

  • Loading branch information...
commit ca9050482035bbae4728819e0a77b8c86879daed 1 parent 04a4886
@rolfl rolfl authored
View
22 ...st/cases/output/TestJDOMStreamReader.java → ...test/cases/jaxb/TestJDOMStreamReader.java
@@ -51,9 +51,15 @@ OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT
on the JDOM Project, please see <http://www.jdom.org/>.
*/
-package org.jdom2.test.cases.output;
+package org.jdom2.test.cases.jaxb;
+
+import static org.junit.Assert.assertEquals;
+import static org.junit.Assert.assertNotNull;
import java.util.List;
+
+import org.junit.Test;
+
import org.jdom2.CDATA;
import org.jdom2.Content;
import org.jdom2.Document;
@@ -63,28 +69,16 @@ OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT
import org.jdom2.input.StAXStreamBuilder;
import org.jdom2.jaxb.JDOMStreamReader;
-import org.junit.After;
-import org.junit.Before;
-import org.junit.Test;
-import static org.junit.Assert.*;
-
/**
* Tests for {@link JDOMStreamReader}
* @author gordon burgett https://github.com/gburgett
*/
+@SuppressWarnings("javadoc")
public class TestJDOMStreamReader {
public TestJDOMStreamReader() {
}
- @Before
- public void setUp() {
- }
-
- @After
- public void tearDown() {
- }
-
@Test
public void testSimpleDocument_BuildsFromReader_SameDocument() throws Exception {
System.out.println("testSimpleDocument_BuildsFromReader_SameDocument");
View
24 ...est/cases/input/TestJDOMStreamWriter.java → ...test/cases/jaxb/TestJDOMStreamWriter.java
@@ -51,37 +51,31 @@ OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT
on the JDOM Project, please see <http://www.jdom.org/>.
*/
-package org.jdom2.test.cases.input;
+package org.jdom2.test.cases.jaxb;
+
+import static org.junit.Assert.assertEquals;
+import static org.junit.Assert.assertNotNull;
import java.util.List;
+
+import org.junit.Test;
+
import org.jdom2.Content;
import org.jdom2.Document;
import org.jdom2.Element;
import org.jdom2.Namespace;
import org.jdom2.jaxb.JDOMStreamWriter;
-import org.junit.After;
-import static org.junit.Assert.*;
-import org.junit.Before;
-import org.junit.Test;
-
/**
* Tests for {@link JDOMStreamWriter}
* @author gordon burgett https://github.com/gburgett
*/
+@SuppressWarnings("javadoc")
public class TestJDOMStreamWriter {
- public TestJDOMStreamWriter() {
- }
-
- @Before
- public void setUp() {
+ public TestJDOMStreamWriter() {
}
- @After
- public void tearDown() {
- }
-
@Test
public void testEmptyRootElement_DocumentHasEmptyRoot() throws Exception {
System.out.println("testEmptyRootElement_DocumentHasEmptyRoot");
Please sign in to comment.
Something went wrong with that request. Please try again.