equal
deleted
inserted
replaced
46 public class CompileJarTest { |
46 public class CompileJarTest { |
47 private static final String JAR_NAME = "test.jar"; |
47 private static final String JAR_NAME = "test.jar"; |
48 |
48 |
49 public static void main(String[] args) { |
49 public static void main(String[] args) { |
50 createJar(); |
50 createJar(); |
51 OutputAnalyzer oa = JaotcTestHelper.compileLibrary(JAR_NAME); |
51 OutputAnalyzer oa = JaotcTestHelper.compileLibrary("--jar", JAR_NAME); |
52 oa.shouldHaveExitValue(0); |
52 oa.shouldHaveExitValue(0); |
53 File compiledLibrary = new File(JaotcTestHelper.DEFAULT_LIB_PATH); |
53 File compiledLibrary = new File(JaotcTestHelper.DEFAULT_LIB_PATH); |
54 Asserts.assertTrue(compiledLibrary.exists(), "Compiled library file missing"); |
54 Asserts.assertTrue(compiledLibrary.exists(), "Compiled library file missing"); |
55 Asserts.assertGT(compiledLibrary.length(), 0L, "Unexpected compiled library size"); |
55 Asserts.assertGT(compiledLibrary.length(), 0L, "Unexpected compiled library size"); |
56 JaotcTestHelper.checkLibraryUsage(HelloWorldOne.class.getName()); |
56 JaotcTestHelper.checkLibraryUsage(HelloWorldOne.class.getName()); |