< prev index next >

test/java/net/Socket/OldSocketImplTestDriver.java

Print this page
rev 17272 : 8181391: remove explicit @build actions for the top level testlibary classes
Reviewed-by: duke


  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 import jdk.test.lib.process.ProcessTools;
  25 
  26 import java.nio.file.Path;
  27 import java.nio.file.Paths;
  28 
  29 /**
  30  * @test
  31  * @bug 6449565
  32  * @library /test/lib
  33  * @build jdk.test.lib.process.ProcessTools
  34  * @run main OldSocketImplTestDriver
  35  * @summary Test driver for OdlSocketImpl
  36  */
  37 public class OldSocketImplTestDriver {
  38     public static void main(String[] args) throws Throwable {
  39         Path jar = Paths.get(System.getProperty("test.src"),
  40                 "OldSocketImpl.jar");
  41         ProcessTools.executeTestJava("-cp", jar.toString(), "OldSocketImpl")
  42                     .outputTo(System.out)
  43                     .errorTo(System.out)
  44                     .shouldHaveExitValue(0);
  45     }
  46 }


  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 import jdk.test.lib.process.ProcessTools;
  25 
  26 import java.nio.file.Path;
  27 import java.nio.file.Paths;
  28 
  29 /**
  30  * @test
  31  * @bug 6449565
  32  * @library /test/lib

  33  * @run main OldSocketImplTestDriver
  34  * @summary Test driver for OdlSocketImpl
  35  */
  36 public class OldSocketImplTestDriver {
  37     public static void main(String[] args) throws Throwable {
  38         Path jar = Paths.get(System.getProperty("test.src"),
  39                 "OldSocketImpl.jar");
  40         ProcessTools.executeTestJava("-cp", jar.toString(), "OldSocketImpl")
  41                     .outputTo(System.out)
  42                     .errorTo(System.out)
  43                     .shouldHaveExitValue(0);
  44     }
  45 }
< prev index next >