test/jdk/tools/launcher/modules/addmods/AddModsTest.java
changeset 48841 0937e5f799df
parent 47216 71c04702a3d5
child 51675 b487c1e914d0
--- a/test/jdk/tools/launcher/modules/addmods/AddModsTest.java	Fri Feb 09 13:58:17 2018 -0800
+++ b/test/jdk/tools/launcher/modules/addmods/AddModsTest.java	Sat Feb 10 07:06:16 2018 -0500
@@ -1,5 +1,5 @@
 /*
- * Copyright (c) 2014, 2017, Oracle and/or its affiliates. All rights reserved.
+ * Copyright (c) 2014, 2018, 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
@@ -98,47 +98,6 @@
         assertTrue(exitValue == 0);
     }
 
-    /**
-     * Basic test of --add-modules ALL-DEFAULT. Module java.xml.ws.annotation
-     * should not resolved and so the types in that module should not be
-     * visible.
-     */
-    public void testAddDefaultModules2() throws Exception {
-
-        // java --add-modules ALL-DEFAULT --module-path mods1 -m test ...
-        int exitValue
-            = executeTestJava("--module-path", MODS1_DIR.toString(),
-                              "--add-modules", "ALL-DEFAULT",
-                              "-m", TEST_MID,
-                              "javax.annotation.Generated")
-                .outputTo(System.out)
-                .errorTo(System.out)
-                .shouldContain("ClassNotFoundException")
-                .getExitValue();
-
-        assertTrue(exitValue != 0);
-    }
-
-    /**
-     * Basic test of --add-modules ALL-SYSTEM. All system modules should be resolved
-     * and thus all types in those modules should be visible.
-     */
-    public void testAddSystemModules() throws Exception {
-
-        // java --add-modules ALL-SYSTEM --module-path mods1 -m test ...
-        int exitValue
-            = executeTestJava("--module-path", MODS1_DIR.toString(),
-                              "--add-modules", "ALL-SYSTEM",
-                              "-m", TEST_MID,
-                              "java.sql.Connection",
-                              "javax.annotation.Generated")
-                .outputTo(System.out)
-                .errorTo(System.out)
-                .getExitValue();
-
-        assertTrue(exitValue == 0);
-    }
-
 
     /**
      * Run test on class path to load a type in a module on the application