SPR-8453 - SpringOXM CastorMarshaller tests
This commit is contained in:
@@ -149,12 +149,6 @@ public class CastorMarshallerTests extends AbstractMarshallerTests {
|
|||||||
Assert.assertTrue("CastorMarshaller does not support Flight", marshaller.supports(Flight.class));
|
Assert.assertTrue("CastorMarshaller does not support Flight", marshaller.supports(Flight.class));
|
||||||
}
|
}
|
||||||
|
|
||||||
/**
|
|
||||||
* Tests the marshal result when the {@link CastorMarshaller#setSuppressNamespaces(boolean)} is set to
|
|
||||||
* <code>true</code>.
|
|
||||||
*
|
|
||||||
* @throws Exception if any error occurs during test
|
|
||||||
*/
|
|
||||||
@Test
|
@Test
|
||||||
public void testSuppressNamespacesTrue() throws Exception {
|
public void testSuppressNamespacesTrue() throws Exception {
|
||||||
getCastorMarshaller().setSuppressNamespaces(true);
|
getCastorMarshaller().setSuppressNamespaces(true);
|
||||||
@@ -162,12 +156,6 @@ public class CastorMarshallerTests extends AbstractMarshallerTests {
|
|||||||
assertXMLEqual("Marshaller wrote invalid result", SUPPRESSED_NAMESPACE_EXPECTED_STRING, result);
|
assertXMLEqual("Marshaller wrote invalid result", SUPPRESSED_NAMESPACE_EXPECTED_STRING, result);
|
||||||
}
|
}
|
||||||
|
|
||||||
/**
|
|
||||||
* Tests the marshal result when the {@link CastorMarshaller#setSuppressNamespaces(boolean)} is set to
|
|
||||||
* <code>false</code>.
|
|
||||||
*
|
|
||||||
* @throws Exception if any error occurs during test
|
|
||||||
*/
|
|
||||||
@Test
|
@Test
|
||||||
public void testSuppressNamespacesFalse() throws Exception {
|
public void testSuppressNamespacesFalse() throws Exception {
|
||||||
getCastorMarshaller().setSuppressNamespaces(false);
|
getCastorMarshaller().setSuppressNamespaces(false);
|
||||||
@@ -176,7 +164,6 @@ public class CastorMarshallerTests extends AbstractMarshallerTests {
|
|||||||
}
|
}
|
||||||
|
|
||||||
@Test
|
@Test
|
||||||
@Ignore("Not working yet")
|
|
||||||
public void testSuppressXsiTypeTrue() throws Exception {
|
public void testSuppressXsiTypeTrue() throws Exception {
|
||||||
CastorObject castorObject = createCastorObject();
|
CastorObject castorObject = createCastorObject();
|
||||||
|
|
||||||
@@ -187,7 +174,6 @@ public class CastorMarshallerTests extends AbstractMarshallerTests {
|
|||||||
}
|
}
|
||||||
|
|
||||||
@Test
|
@Test
|
||||||
@Ignore("Not working yet")
|
|
||||||
public void testSuppressXsiTypeFalse() throws Exception {
|
public void testSuppressXsiTypeFalse() throws Exception {
|
||||||
CastorObject castorObject = createCastorObject();
|
CastorObject castorObject = createCastorObject();
|
||||||
|
|
||||||
@@ -249,7 +235,6 @@ public class CastorMarshallerTests extends AbstractMarshallerTests {
|
|||||||
}
|
}
|
||||||
|
|
||||||
@Test
|
@Test
|
||||||
@Ignore("Not working yet")
|
|
||||||
public void testUseXsiTypeAsRootTrue() throws Exception {
|
public void testUseXsiTypeAsRootTrue() throws Exception {
|
||||||
CastorObject castorObject = createCastorObject();
|
CastorObject castorObject = createCastorObject();
|
||||||
|
|
||||||
@@ -261,7 +246,6 @@ public class CastorMarshallerTests extends AbstractMarshallerTests {
|
|||||||
}
|
}
|
||||||
|
|
||||||
@Test
|
@Test
|
||||||
@Ignore("Not working yet")
|
|
||||||
public void testUseXsiTypeAsRootFalse() throws Exception {
|
public void testUseXsiTypeAsRootFalse() throws Exception {
|
||||||
CastorObject castorObject = createCastorObject();
|
CastorObject castorObject = createCastorObject();
|
||||||
|
|
||||||
|
|||||||
@@ -16,17 +16,30 @@
|
|||||||
|
|
||||||
package org.springframework.oxm.castor;
|
package org.springframework.oxm.castor;
|
||||||
|
|
||||||
|
/**
|
||||||
|
* Represents a POJO used by {@link CastorMarshallerTests} for testing the marshaller output.
|
||||||
|
*
|
||||||
|
* @author Jakub Narloch
|
||||||
|
*/
|
||||||
public class CastorObject {
|
public class CastorObject {
|
||||||
|
|
||||||
private String name;
|
private String name;
|
||||||
|
|
||||||
private int value;
|
private Integer value;
|
||||||
|
|
||||||
|
public String getName() {
|
||||||
|
return name;
|
||||||
|
}
|
||||||
|
|
||||||
public void setName(String name) {
|
public void setName(String name) {
|
||||||
this.name = name;
|
this.name = name;
|
||||||
}
|
}
|
||||||
|
|
||||||
public void setValue(int value) {
|
public Integer getValue() {
|
||||||
|
return value;
|
||||||
|
}
|
||||||
|
|
||||||
|
public void setValue(Integer value) {
|
||||||
this.value = value;
|
this.value = value;
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
Reference in New Issue
Block a user