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 8199193
27 * @summary Tests for the --enable-preview option
28 * @run testng ToolEnablePreviewTest
29 */
30
31 import java.io.IOException;
32 import java.io.Writer;
33 import java.nio.file.Files;
34 import java.nio.file.Path;
35 import java.nio.file.Paths;
36 import org.testng.annotations.Test;
37
38 import static org.testng.Assert.assertTrue;
39
40 public class ToolEnablePreviewTest extends ReplToolTesting {
41
42 @Test
43 public void testOptionDebug() {
44 String release = System.getProperty("java.specification.version");
45 test(
46 (a) -> assertCommand(a, "/debug b",
47 "RemoteVM Options: []\n"
48 + "Compiler options: []"),
|
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 8199193
27 * @summary Tests for the --enable-preview option
28 * @run testng ToolEnablePreviewTest
29 * @ignore 8316628
30 */
31
32 import java.io.IOException;
33 import java.io.Writer;
34 import java.nio.file.Files;
35 import java.nio.file.Path;
36 import java.nio.file.Paths;
37 import org.testng.annotations.Test;
38
39 import static org.testng.Assert.assertTrue;
40
41 public class ToolEnablePreviewTest extends ReplToolTesting {
42
43 @Test
44 public void testOptionDebug() {
45 String release = System.getProperty("java.specification.version");
46 test(
47 (a) -> assertCommand(a, "/debug b",
48 "RemoteVM Options: []\n"
49 + "Compiler options: []"),
|