74 };
75 } else {
76 return new String[] {
77 verifyOpt,
78 };
79 }
80 }
81
82 @Override
83 public String[] appCommandLine(RunMode runMode) {
84 return new String[] {
85 mainClass,
86 testPackageName + "." + testClassName,
87 };
88 }
89
90 @Override
91 public void checkExecution(OutputAnalyzer out, RunMode runMode) throws Exception {
92 out.shouldHaveExitValue(0);
93 if (runMode.isProductionRun()) {
94 out.shouldMatch(".class.load. test.java.lang.invoke." + testClassName +
95 "[$][$]Lambda.*/0x.*source:.*shared.*objects.*file");
96 }
97 }
98 };
99
100 String workflow = System.getProperty("cds.app.tester.workflow");
101 tester.run(workflow);
102 }
103 }
104
105 class TestMHApp {
106 public static void main(String args[]) throws Exception {
107 try {
108 Class<?> testClass = Class.forName(args[0]);
109 System.out.println(testClass);
110 Object obj = testClass.newInstance();
111 final List<Method> allMethods = new ArrayList<Method>(Arrays.asList(testClass.getDeclaredMethods()));
112 for (final Method method : allMethods) {
113 method.setAccessible(true);
114 Annotation[] annotations = null;
|
74 };
75 } else {
76 return new String[] {
77 verifyOpt,
78 };
79 }
80 }
81
82 @Override
83 public String[] appCommandLine(RunMode runMode) {
84 return new String[] {
85 mainClass,
86 testPackageName + "." + testClassName,
87 };
88 }
89
90 @Override
91 public void checkExecution(OutputAnalyzer out, RunMode runMode) throws Exception {
92 out.shouldHaveExitValue(0);
93 if (runMode.isProductionRun()) {
94 out.shouldMatch(".class.load.* test.java.lang.invoke." + testClassName +
95 "[$][$]Lambda.*/0x.*source:.*shared.*objects.*file");
96 }
97 }
98 };
99
100 String workflow = System.getProperty("cds.app.tester.workflow");
101 tester.run(workflow);
102 }
103 }
104
105 class TestMHApp {
106 public static void main(String args[]) throws Exception {
107 try {
108 Class<?> testClass = Class.forName(args[0]);
109 System.out.println(testClass);
110 Object obj = testClass.newInstance();
111 final List<Method> allMethods = new ArrayList<Method>(Arrays.asList(testClass.getDeclaredMethods()));
112 for (final Method method : allMethods) {
113 method.setAccessible(true);
114 Annotation[] annotations = null;
|