< prev index next >

test/java/util/logging/modules/GetResourceBundleTest.java

Print this page
rev 17315 : 8181335: remove packageless CompilerUtils
Reviewed-by: duke

*** 1,7 **** /* ! * Copyright (c) 2015, 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. --- 1,7 ---- /* ! * Copyright (c) 2015, 2017, 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.
*** 28,46 **** import org.testng.annotations.BeforeClass; import org.testng.annotations.Test; import static java.nio.file.StandardCopyOption.REPLACE_EXISTING; import static jdk.testlibrary.ProcessTools.*; import static org.testng.Assert.*; /** * @test * @bug 8129126 8136802 8137316 8137317 8136804 8139350 ! * @library /lib/testlibrary * @modules jdk.compiler * java.logging ! * @build GetResourceBundleTest CompilerUtils jdk.testlibrary.ProcessTools * @run testng GetResourceBundleTest * @summary Tests Logger.getLogger + logger.getResourceBundle in an named/unnamed module, * resources are in named and unnamed modules respectively. * Positive tests to ensure that a Logger can retrieve ResourceBundle in its current module. * Negative tests to ensure that a Logger cannot retrieve ResourceBundle in another module. --- 28,47 ---- import org.testng.annotations.BeforeClass; import org.testng.annotations.Test; import static java.nio.file.StandardCopyOption.REPLACE_EXISTING; import static jdk.testlibrary.ProcessTools.*; + import jdk.test.lib.compiler.CompilerUtils; import static org.testng.Assert.*; /** * @test * @bug 8129126 8136802 8137316 8137317 8136804 8139350 ! * @library /lib/testlibrary /test/lib * @modules jdk.compiler * java.logging ! * @build GetResourceBundleTest jdk.test.lib.compiler.CompilerUtils jdk.testlibrary.ProcessTools * @run testng GetResourceBundleTest * @summary Tests Logger.getLogger + logger.getResourceBundle in an named/unnamed module, * resources are in named and unnamed modules respectively. * Positive tests to ensure that a Logger can retrieve ResourceBundle in its current module. * Negative tests to ensure that a Logger cannot retrieve ResourceBundle in another module.
< prev index next >