58 ),
59 "Class CustomLoadee2 implements the interface CustomInterface2_ia, but no interface has been specified in the input line");
60
61 dumpShouldFail(
62 "TESTCASE E2: missing one interface",
63 appJar, classlist(
64 "Hello",
65 "java/lang/Object id: 1",
66 "CustomInterface2_ia id: 2 super: 1 source: " + customJarPath,
67 "CustomInterface2_ib id: 3 super: 1 source: " + customJarPath,
68 "CustomLoadee2 id: 4 super: 1 interfaces: 2 source: " + customJarPath
69 ),
70 "The interface CustomInterface2_ib implemented by class CustomLoadee2 does not match any of the specified interface IDs");
71
72 dumpShouldFail(
73 "TESTCASE E3: specifying an interface that's not implemented by the class",
74 appJar, classlist(
75 "Hello",
76 "java/lang/Object id: 1",
77 "CustomInterface2_ia id: 2 super: 1 source: " + customJarPath,
78 "CustomLoadee id: 2 super: 1 interfaces: 2 source: " + customJarPath
79 ),
80 "The number of interfaces (1) specified in class list does not match the class file (0)");
81
82 dumpShouldFail(
83 "TESTCASE E4: repeating an ID in the interfaces: keyword",
84 appJar, classlist(
85 "Hello",
86 "java/lang/Object id: 1",
87 "CustomInterface2_ia id: 2 super: 1 source: " + customJarPath,
88 "CustomInterface2_ib id: 3 super: 1 source: " + customJarPath,
89 "CustomLoadee2 id: 4 super: 1 interfaces: 2 2 3 source: " + customJarPath
90 ),
91 "The number of interfaces (3) specified in class list does not match the class file (2)");
92
93 dumpShouldFail(
94 "TESTCASE E5: wrong super class",
95 appJar, classlist(
96 "Hello",
97 "java/lang/Object id: 1",
98 "CustomInterface2_ia id: 2 super: 1 source: " + customJarPath,
|
58 ),
59 "Class CustomLoadee2 implements the interface CustomInterface2_ia, but no interface has been specified in the input line");
60
61 dumpShouldFail(
62 "TESTCASE E2: missing one interface",
63 appJar, classlist(
64 "Hello",
65 "java/lang/Object id: 1",
66 "CustomInterface2_ia id: 2 super: 1 source: " + customJarPath,
67 "CustomInterface2_ib id: 3 super: 1 source: " + customJarPath,
68 "CustomLoadee2 id: 4 super: 1 interfaces: 2 source: " + customJarPath
69 ),
70 "The interface CustomInterface2_ib implemented by class CustomLoadee2 does not match any of the specified interface IDs");
71
72 dumpShouldFail(
73 "TESTCASE E3: specifying an interface that's not implemented by the class",
74 appJar, classlist(
75 "Hello",
76 "java/lang/Object id: 1",
77 "CustomInterface2_ia id: 2 super: 1 source: " + customJarPath,
78 "CustomLoadee id: 3 super: 1 interfaces: 2 source: " + customJarPath
79 ),
80 "The number of interfaces (1) specified in class list does not match the class file (0)");
81
82 dumpShouldFail(
83 "TESTCASE E4: repeating an ID in the interfaces: keyword",
84 appJar, classlist(
85 "Hello",
86 "java/lang/Object id: 1",
87 "CustomInterface2_ia id: 2 super: 1 source: " + customJarPath,
88 "CustomInterface2_ib id: 3 super: 1 source: " + customJarPath,
89 "CustomLoadee2 id: 4 super: 1 interfaces: 2 2 3 source: " + customJarPath
90 ),
91 "The number of interfaces (3) specified in class list does not match the class file (2)");
92
93 dumpShouldFail(
94 "TESTCASE E5: wrong super class",
95 appJar, classlist(
96 "Hello",
97 "java/lang/Object id: 1",
98 "CustomInterface2_ia id: 2 super: 1 source: " + customJarPath,
|