< prev index next >

test/javax/xml/jaxp/unittest/common/ValidationWarningsTest.java

Print this page




  29 import java.io.StringReader;
  30 
  31 import javax.xml.XMLConstants;
  32 import javax.xml.transform.Source;
  33 import javax.xml.transform.sax.SAXSource;
  34 import javax.xml.transform.stream.StreamSource;
  35 import javax.xml.validation.Schema;
  36 import javax.xml.validation.SchemaFactory;
  37 import javax.xml.validation.Validator;
  38 
  39 import org.testng.annotations.BeforeClass;
  40 import org.testng.annotations.Listeners;
  41 import org.testng.annotations.Test;
  42 import org.xml.sax.InputSource;
  43 
  44 /*
  45  * @test
  46  * @bug 8144593
  47  * @key intermittent
  48  * @library /javax/xml/jaxp/libs /javax/xml/jaxp/unittest

  49  * @run testng/othervm -DrunSecMngr=true common.ValidationWarningsTest
  50  * @run testng/othervm common.ValidationWarningsTest
  51  * @summary Check that warnings about unsupported properties from SAX
  52  *  parsers are suppressed during the xml validation process.
  53  */
  54 @Listeners({jaxp.library.InternalAPIPolicy.class})
  55 public class ValidationWarningsTest extends WarningsTestBase {
  56 
  57     @BeforeClass
  58     public void setup() {
  59         //Set test SAX driver implementation.
  60         setSystemProperty("org.xml.sax.driver", "common.TestSAXDriver");
  61     }
  62 
  63     @Test
  64     public void testValidation() throws Exception {
  65         startTest();
  66     }
  67 
  68     //One iteration of xml validation test case. It will be called from each


  29 import java.io.StringReader;
  30 
  31 import javax.xml.XMLConstants;
  32 import javax.xml.transform.Source;
  33 import javax.xml.transform.sax.SAXSource;
  34 import javax.xml.transform.stream.StreamSource;
  35 import javax.xml.validation.Schema;
  36 import javax.xml.validation.SchemaFactory;
  37 import javax.xml.validation.Validator;
  38 
  39 import org.testng.annotations.BeforeClass;
  40 import org.testng.annotations.Listeners;
  41 import org.testng.annotations.Test;
  42 import org.xml.sax.InputSource;
  43 
  44 /*
  45  * @test
  46  * @bug 8144593
  47  * @key intermittent
  48  * @library /javax/xml/jaxp/libs /javax/xml/jaxp/unittest
  49  * @compile -XDignore.symbol.file TestSAXDriver.java
  50  * @run testng/othervm -DrunSecMngr=true common.ValidationWarningsTest
  51  * @run testng/othervm common.ValidationWarningsTest
  52  * @summary Check that warnings about unsupported properties from SAX
  53  *  parsers are suppressed during the xml validation process.
  54  */
  55 @Listeners({jaxp.library.InternalAPIPolicy.class})
  56 public class ValidationWarningsTest extends WarningsTestBase {
  57 
  58     @BeforeClass
  59     public void setup() {
  60         //Set test SAX driver implementation.
  61         setSystemProperty("org.xml.sax.driver", "common.TestSAXDriver");
  62     }
  63 
  64     @Test
  65     public void testValidation() throws Exception {
  66         startTest();
  67     }
  68 
  69     //One iteration of xml validation test case. It will be called from each
< prev index next >