< prev index next >
test/javax/xml/jaxp/unittest/parsers/Bug8073385.java
Print this page
*** 1,7 ****
/*
! * Copyright (c) 2015, Oracle and/or its affiliates. All rights reserved.
* DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER.
*
* This code is free software; you can redistribute it and/or modify it
* under the terms of the GNU General Public License version 2 only, as
* published by the Free Software Foundation.
--- 1,7 ----
/*
! * Copyright (c) 2016, Oracle and/or its affiliates. All rights reserved.
* DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER.
*
* This code is free software; you can redistribute it and/or modify it
* under the terms of the GNU General Public License version 2 only, as
* published by the Free Software Foundation.
*** 21,48 ****
* questions.
*/
package parsers;
import java.io.StringReader;
import java.util.Locale;
! import javax.xml.parsers.DocumentBuilderFactory;
import javax.xml.parsers.DocumentBuilder;
! import org.xml.sax.SAXException;
! import org.xml.sax.InputSource;
import org.testng.annotations.AfterClass;
import org.testng.annotations.BeforeClass;
import org.testng.annotations.DataProvider;
import org.testng.annotations.Test;
! import static org.testng.Assert.assertTrue;
/**
* @bug 8073385
* @summary test that invalid XML character exception string contains
* information about character value, element and attribute names
*/
public class Bug8073385 {
private Locale defLoc;
@BeforeClass
--- 21,52 ----
* questions.
*/
package parsers;
+ import static org.testng.Assert.assertTrue;
+
import java.io.StringReader;
import java.util.Locale;
!
import javax.xml.parsers.DocumentBuilder;
! import javax.xml.parsers.DocumentBuilderFactory;
import org.testng.annotations.AfterClass;
import org.testng.annotations.BeforeClass;
import org.testng.annotations.DataProvider;
+ import org.testng.annotations.Listeners;
import org.testng.annotations.Test;
! import org.xml.sax.InputSource;
! import org.xml.sax.SAXException;
/**
* @bug 8073385
* @summary test that invalid XML character exception string contains
* information about character value, element and attribute names
*/
+ @Listeners({jaxp.library.BasePolicy.class})
public class Bug8073385 {
private Locale defLoc;
@BeforeClass
< prev index next >