package org.eclipse.persistence.testing.jaxb.xmlaccessortype; import org.eclipse.persistence.testing.jaxb.schemagen.SchemaGenTestCases; public class IgnoreInvalidNonPublicFieldTestCases extends SchemaGenTestCases { private static final String PATH = "org/eclipse/persistence/testing/jaxb/xmlaccessortype/"; /** * This is the preferred (and only) constructor. * * @param name */ public IgnoreInvalidNonPublicFieldTestCases(String name) throws Exception { super(name); } public void testPublicMemberAccess() throws Exception { MySchemaOutputResolver outputResolver = new MySchemaOutputResolver(); generateSchema(new Class[]{Root.class}, outputResolver, null); String result = validateAgainstSchema(PATH + "root_public.xml", outputResolver); assertTrue("Schema validation failed unxepectedly: " + result, result == null); } }