public void testSchemaGen() throws Exception { List controlSchemas = new ArrayList(); InputStream is = ClassLoader.getSystemResourceAsStream( "org/eclipse/persistence/testing/jaxb/annotations/xmlnullpolicy/employees.xsd"); InputStream is2 = ClassLoader.getSystemResourceAsStream( "org/eclipse/persistence/testing/jaxb/annotations/xmlnullpolicy/employees2.xsd"); controlSchemas.add(is); controlSchemas.add(is2); super.testSchemaGen(controlSchemas); }
public void xmlToObjectTest(Object testObject) throws Exception { super.xmlToObjectTest(testObject); Employee empObj = (Employee) testObject; assertTrue("Accessor method was not called as expected", empObj.wasSetCalled); assertTrue("Set was not called for absent node as expected", empObj.isAStringSet); }
public void objectToXMLDocumentTest(Document testDocument) throws Exception { super.objectToXMLDocumentTest(testDocument); assertTrue("Accessor method was not called as expected", ctrlEmp.wasGetCalled); }