Permalink
Browse files

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

  • Loading branch information...
rolfl committed Jan 3, 2013
1 parent 04a4886 commit ca9050482035bbae4728819e0a77b8c86879daed
@@ -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/>. 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 java.util.List;
import org.junit.Test;
import org.jdom2.CDATA; import org.jdom2.CDATA;
import org.jdom2.Content; import org.jdom2.Content;
import org.jdom2.Document; 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.input.StAXStreamBuilder;
import org.jdom2.jaxb.JDOMStreamReader; 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} * Tests for {@link JDOMStreamReader}
* @author gordon burgett https://github.com/gburgett * @author gordon burgett https://github.com/gburgett
*/ */
@SuppressWarnings("javadoc")
public class TestJDOMStreamReader { public class TestJDOMStreamReader {
public TestJDOMStreamReader() { public TestJDOMStreamReader() {
} }
@Before
public void setUp() {
}
@After
public void tearDown() {
}
@Test @Test
public void testSimpleDocument_BuildsFromReader_SameDocument() throws Exception { public void testSimpleDocument_BuildsFromReader_SameDocument() throws Exception {
System.out.println("testSimpleDocument_BuildsFromReader_SameDocument"); System.out.println("testSimpleDocument_BuildsFromReader_SameDocument");
@@ -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/>. 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 java.util.List;
import org.junit.Test;
import org.jdom2.Content; import org.jdom2.Content;
import org.jdom2.Document; import org.jdom2.Document;
import org.jdom2.Element; import org.jdom2.Element;
import org.jdom2.Namespace; import org.jdom2.Namespace;
import org.jdom2.jaxb.JDOMStreamWriter; 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} * Tests for {@link JDOMStreamWriter}
* @author gordon burgett https://github.com/gburgett * @author gordon burgett https://github.com/gburgett
*/ */
@SuppressWarnings("javadoc")
public class TestJDOMStreamWriter { public class TestJDOMStreamWriter {
public TestJDOMStreamWriter() { public TestJDOMStreamWriter() {
}
@Before
public void setUp() {
} }
@After
public void tearDown() {
}
@Test @Test
public void testEmptyRootElement_DocumentHasEmptyRoot() throws Exception { public void testEmptyRootElement_DocumentHasEmptyRoot() throws Exception {
System.out.println("testEmptyRootElement_DocumentHasEmptyRoot"); System.out.println("testEmptyRootElement_DocumentHasEmptyRoot");

0 comments on commit ca90504

Please sign in to comment.