37 * @run testng/othervm -DrunSecMngr=true validation.SchemaTest
38 * @run testng/othervm validation.SchemaTest
39 * @summary Test Schema creation
40 * @bug 8149915
41 */
42 @Listeners({jaxp.library.FilePolicy.class})
43 public class SchemaTest {
44
45 /*
46 * @bug 8149915
47 * Verifies that the annotation validator is initialized with the security manager for schema
48 * creation with http://apache.org/xml/features/validate-annotations=true.
49 */
50 @Test
51 public void testValidation() throws Exception {
52 SchemaFactory factory = SchemaFactory.newInstance(XMLConstants.W3C_XML_SCHEMA_NS_URI);
53 factory.setFeature("http://apache.org/xml/features/validate-annotations", true);
54 factory.newSchema(new File(getClass().getResource("Bug8149915.xsd").getFile()));
55 }
56 }
57
|
37 * @run testng/othervm -DrunSecMngr=true validation.SchemaTest
38 * @run testng/othervm validation.SchemaTest
39 * @summary Test Schema creation
40 * @bug 8149915
41 */
42 @Listeners({jaxp.library.FilePolicy.class})
43 public class SchemaTest {
44
45 /*
46 * @bug 8149915
47 * Verifies that the annotation validator is initialized with the security manager for schema
48 * creation with http://apache.org/xml/features/validate-annotations=true.
49 */
50 @Test
51 public void testValidation() throws Exception {
52 SchemaFactory factory = SchemaFactory.newInstance(XMLConstants.W3C_XML_SCHEMA_NS_URI);
53 factory.setFeature("http://apache.org/xml/features/validate-annotations", true);
54 factory.newSchema(new File(getClass().getResource("Bug8149915.xsd").getFile()));
55 }
56 }
|