equal
deleted
inserted
replaced
43 * @run driver/timeout=500 DynamicLotsOfClasses |
43 * @run driver/timeout=500 DynamicLotsOfClasses |
44 */ |
44 */ |
45 |
45 |
46 public class DynamicLotsOfClasses extends DynamicArchiveTestBase { |
46 public class DynamicLotsOfClasses extends DynamicArchiveTestBase { |
47 |
47 |
48 public static void main(String[] args) throws Throwable { |
48 public static void main(String[] args) throws Exception { |
49 runTest(DynamicLotsOfClasses::testDefaultBase); |
49 runTest(DynamicLotsOfClasses::testDefaultBase); |
50 } |
50 } |
51 |
51 |
52 static void testDefaultBase() throws Exception { |
52 static void testDefaultBase() throws Exception { |
53 String topArchiveName = getNewArchiveName("top"); |
53 String topArchiveName = getNewArchiveName("top"); |
54 try { |
54 doTest(topArchiveName); |
55 doTest(topArchiveName); |
|
56 } catch (Throwable th) { |
|
57 System.out.println(th.toString()); |
|
58 Exception ex = new Exception(th); |
|
59 throw ex; |
|
60 } |
|
61 } |
55 } |
62 |
56 |
63 private static void doTest(String topArchiveName) throws Throwable { |
57 private static void doTest(String topArchiveName) throws Exception { |
64 ArrayList<String> list = new ArrayList<>(); |
58 ArrayList<String> list = new ArrayList<>(); |
65 TestCommon.findAllClasses(list); |
59 TestCommon.findAllClasses(list); |
66 |
60 |
67 String classList = System.getProperty("user.dir") + File.separator + |
61 String classList = System.getProperty("user.dir") + File.separator + |
68 "LotsOfClasses.list"; |
62 "LotsOfClasses.list"; |