< prev index next >

test/java/net/URLClassLoader/getresourceasstream/TestDriver.java

Print this page
rev 17325 : 8181761: add explicit @build actions for jdk.test.lib classes in all :tier2 tests
Reviewed-by: duke


   9  * This code is distributed in the hope that it will be useful, but WITHOUT
  10  * ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or
  11  * FITNESS FOR A PARTICULAR PURPOSE.  See the GNU General Public License
  12  * version 2 for more details (a copy is included in the LICENSE file that
  13  * accompanied this code).
  14  *
  15  * You should have received a copy of the GNU General Public License version
  16  * 2 along with this work; if not, write to the Free Software Foundation,
  17  * Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301 USA.
  18  *
  19  * Please contact Oracle, 500 Oracle Parkway, Redwood Shores, CA 94065 USA
  20  * or visit www.oracle.com if you need additional information or have any
  21  * questions.
  22  */
  23 
  24 /**
  25  * @test
  26  * @bug 5103449
  27  * @summary REGRESSION: getResourceAsStream is broken in JDK1.5.0-rc
  28  * @library /test/lib
  29  * @build jdk.test.lib.JDKToolFinder
  30  *        jdk.test.lib.process.ProcessTools




  31  *        Test
  32  * @run main/othervm TestDriver
  33  */
  34 
  35 import jdk.test.lib.JDKToolFinder;
  36 import jdk.test.lib.process.ProcessTools;
  37 
  38 import java.io.IOException;
  39 import java.nio.file.Files;
  40 import java.nio.file.Path;
  41 import java.nio.file.Paths;
  42 import static java.nio.file.StandardCopyOption.REPLACE_EXISTING;
  43 
  44 public class TestDriver {
  45     private static final String ARCHIVE_NAME = "test.jar";
  46     private static final String TEST_NAME = "Test";
  47     private static final String POLICY_FILE = "policy";
  48     public static void main(String[] args)
  49             throws Throwable {
  50 




   9  * This code is distributed in the hope that it will be useful, but WITHOUT
  10  * ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or
  11  * FITNESS FOR A PARTICULAR PURPOSE.  See the GNU General Public License
  12  * version 2 for more details (a copy is included in the LICENSE file that
  13  * accompanied this code).
  14  *
  15  * You should have received a copy of the GNU General Public License version
  16  * 2 along with this work; if not, write to the Free Software Foundation,
  17  * Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301 USA.
  18  *
  19  * Please contact Oracle, 500 Oracle Parkway, Redwood Shores, CA 94065 USA
  20  * or visit www.oracle.com if you need additional information or have any
  21  * questions.
  22  */
  23 
  24 /**
  25  * @test
  26  * @bug 5103449
  27  * @summary REGRESSION: getResourceAsStream is broken in JDK1.5.0-rc
  28  * @library /test/lib
  29  * @build jdk.test.lib.Utils
  30  *        jdk.test.lib.Asserts
  31  *        jdk.test.lib.JDKToolFinder
  32  *        jdk.test.lib.JDKToolLauncher
  33  *        jdk.test.lib.Platform
  34  *        jdk.test.lib.process.*
  35  *        Test
  36  * @run main/othervm TestDriver
  37  */
  38 
  39 import jdk.test.lib.JDKToolFinder;
  40 import jdk.test.lib.process.ProcessTools;
  41 
  42 import java.io.IOException;
  43 import java.nio.file.Files;
  44 import java.nio.file.Path;
  45 import java.nio.file.Paths;
  46 import static java.nio.file.StandardCopyOption.REPLACE_EXISTING;
  47 
  48 public class TestDriver {
  49     private static final String ARCHIVE_NAME = "test.jar";
  50     private static final String TEST_NAME = "Test";
  51     private static final String POLICY_FILE = "policy";
  52     public static void main(String[] args)
  53             throws Throwable {
  54 


< prev index next >