test/jdk/tools/launcher/modules/showmoduleresolution/ShowModuleResolutionTest.java
Index Unified diffs Context diffs Sdiffs Frames Patch New Old Previous File Next File open Sdiff test/jdk/tools/launcher/modules/showmoduleresolution

test/jdk/tools/launcher/modules/showmoduleresolution/ShowModuleResolutionTest.java

Print this page




   6  * under the terms of the GNU General Public License version 2 only, as
   7  * published by the Free Software Foundation.
   8  *
   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  * @modules jdk.jdeps jdk.zipfs
  27  * @library /lib/testlibrary
  28  * @build ShowModuleResolutionTest jdk.testlibrary.*
  29  * @run testng ShowModuleResolutionTest
  30  * @summary Basic test for java --show-module-resolution
  31  */
  32 
  33 import jdk.testlibrary.ProcessTools;
  34 
  35 import org.testng.annotations.Test;
  36 import static org.testng.Assert.*;
  37 
  38 @Test
  39 public class ShowModuleResolutionTest {
  40 
  41     /**
  42      * Test that the resolution does not bind any services
  43      */
  44     private void expectJavaBase(String... args) throws Exception {
  45         int exitValue = ProcessTools.executeTestJava(args)




   6  * under the terms of the GNU General Public License version 2 only, as
   7  * published by the Free Software Foundation.
   8  *
   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  * @requires !vm.graal.enabled
  27  * @modules jdk.jdeps jdk.zipfs
  28  * @library /lib/testlibrary
  29  * @build ShowModuleResolutionTest jdk.testlibrary.*
  30  * @run testng ShowModuleResolutionTest
  31  * @summary Basic test for java --show-module-resolution
  32  */
  33 
  34 import jdk.testlibrary.ProcessTools;
  35 
  36 import org.testng.annotations.Test;
  37 import static org.testng.Assert.*;
  38 
  39 @Test
  40 public class ShowModuleResolutionTest {
  41 
  42     /**
  43      * Test that the resolution does not bind any services
  44      */
  45     private void expectJavaBase(String... args) throws Exception {
  46         int exitValue = ProcessTools.executeTestJava(args)


test/jdk/tools/launcher/modules/showmoduleresolution/ShowModuleResolutionTest.java
Index Unified diffs Context diffs Sdiffs Frames Patch New Old Previous File Next File