jdk/test/tools/launcher/modules/dryrun/DryRunTest.java
changeset 45393 de4e1efc8eec
parent 44545 83b611b88ac8
equal deleted inserted replaced
45392:fe2cb56e7fe9 45393:de4e1efc8eec
     1 /*
     1 /*
     2  * Copyright (c) 2016, Oracle and/or its affiliates. All rights reserved.
     2  * Copyright (c) 2016, 2017, Oracle and/or its affiliates. All rights reserved.
     3  * DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER.
     3  * DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER.
     4  *
     4  *
     5  * This code is free software; you can redistribute it and/or modify it
     5  * This code is free software; you can redistribute it and/or modify it
     6  * under the terms of the GNU General Public License version 2 only, as
     6  * under the terms of the GNU General Public License version 2 only, as
     7  * published by the Free Software Foundation.
     7  * published by the Free Software Foundation.
    22  */
    22  */
    23 
    23 
    24 /**
    24 /**
    25  * @test
    25  * @test
    26  * @bug 8159596
    26  * @bug 8159596
    27  * @library /lib/testlibrary
    27  * @library /lib/testlibrary /test/lib
    28  * @modules jdk.compiler
    28  * @modules jdk.compiler
    29  *          jdk.jartool
    29  *          jdk.jartool
    30  * @build DryRunTest CompilerUtils jdk.testlibrary.ProcessTools
    30  * @build DryRunTest jdk.testlibrary.ProcessTools
       
    31  *        jdk.test.lib.compiler.CompilerUtils
    31  * @run testng DryRunTest
    32  * @run testng DryRunTest
    32  * @summary Test java --dry-run
    33  * @summary Test java --dry-run
    33  */
    34  */
    34 
    35 
    35 import java.io.File;
    36 import java.io.File;
    37 import java.nio.file.Files;
    38 import java.nio.file.Files;
    38 import java.nio.file.Path;
    39 import java.nio.file.Path;
    39 import java.nio.file.Paths;
    40 import java.nio.file.Paths;
    40 import java.util.spi.ToolProvider;
    41 import java.util.spi.ToolProvider;
    41 
    42 
       
    43 import jdk.test.lib.compiler.CompilerUtils;
    42 import jdk.testlibrary.ProcessTools;
    44 import jdk.testlibrary.ProcessTools;
    43 
    45 
    44 import org.testng.annotations.BeforeTest;
    46 import org.testng.annotations.BeforeTest;
    45 import org.testng.annotations.Test;
    47 import org.testng.annotations.Test;
    46 import static org.testng.Assert.*;
    48 import static org.testng.Assert.*;
    47 
       
    48 
    49 
    49 @Test
    50 @Test
    50 public class DryRunTest {
    51 public class DryRunTest {
    51 
    52 
    52     private static final String TEST_SRC = System.getProperty("test.src");
    53     private static final String TEST_SRC = System.getProperty("test.src");