< prev index next >

test/jdk/com/sun/tools/jextract/defaultOutput/TestDefaultOutput.java

Print this page




  23 
  24 /*
  25  * @test
  26  * @library ..
  27  * @modules jdk.jextract
  28  * @build TestDefaultOutput
  29  *
  30  * @run testng/othervm TestDefaultOutput
  31  */
  32 
  33 import org.testng.annotations.*;
  34 import static org.testng.Assert.*;
  35 
  36 import java.nio.file.Files;
  37 import java.nio.file.Paths;
  38 
  39 public class TestDefaultOutput extends JextractToolRunner {
  40 
  41     @Test
  42     public void testDefaultOutputForJar() {
  43         checkSuccess(null, getInputFilePath("foo/foo.h").toString());
  44         assertTrue(Files.exists(Paths.get(System.getProperty("user.dir"), "foo.h.jar")));
  45     }
  46 }


  23 
  24 /*
  25  * @test
  26  * @library ..
  27  * @modules jdk.jextract
  28  * @build TestDefaultOutput
  29  *
  30  * @run testng/othervm TestDefaultOutput
  31  */
  32 
  33 import org.testng.annotations.*;
  34 import static org.testng.Assert.*;
  35 
  36 import java.nio.file.Files;
  37 import java.nio.file.Paths;
  38 
  39 public class TestDefaultOutput extends JextractToolRunner {
  40 
  41     @Test
  42     public void testDefaultOutputForJar() {
  43         run(getInputFilePath("foo/foo.h").toString()).checkSuccess();
  44         assertTrue(Files.exists(Paths.get(System.getProperty("user.dir"), "foo.h.jar")));
  45     }
  46 }
< prev index next >