use of org.apache.cxf.test.assertions.foo.FooType in project cxf by apache.
the class JaxbAssertionTest method testBasic.
@Test
public void testBasic() {
JaxbAssertion<FooType> assertion = new JaxbAssertion<FooType>();
assertNull(assertion.getName());
assertNull(assertion.getData());
assertTrue(!assertion.isOptional());
assertEquals(Constants.TYPE_ASSERTION, assertion.getType());
FooType data = new FooType();
data.setName("CXF");
data.setNumber(2);
QName qn = new QName("http://cxf.apache.org/test/assertions/foo", "FooType");
assertion.setName(qn);
assertion.setData(data);
assertion.setOptional(true);
assertSame(qn, assertion.getName());
assertSame(data, assertion.getData());
assertTrue(assertion.isOptional());
assertEquals(Constants.TYPE_ASSERTION, assertion.getType());
}
Aggregations