1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20 package org.apache.bcel.verifier;
21
22 import org.junit.jupiter.api.Test;
23
24 class VerifierInvokeTest extends AbstractVerifierTest {
25
26 @Test
27 void testLegalInvokeInterface() throws ClassNotFoundException {
28 assertVerifyOK("TestLegalInvokeInterface01", "Verification of invokeinterface on method defined in superinterface must pass.");
29 }
30
31 @Test
32 void testLegalInvokeSpecial() throws ClassNotFoundException {
33 assertVerifyOK("TestLegalInvokeSpecial01", "Verification of invokespecial on method defined in superclass must pass.");
34 assertVerifyOK("TestLegalInvokeSpecial02", "Verification of invokespecial on method defined in superclass must pass.");
35 }
36
37 @Test
38 void testLegalInvokeStatic() throws ClassNotFoundException {
39 assertVerifyOK("TestLegalInvokeStatic01", "Verification of invokestatic on method defined in superclass must pass.");
40 }
41
42 @Test
43 void testLegalInvokeVirtual() throws ClassNotFoundException {
44 assertVerifyOK("TestLegalInvokeVirtual01", "Verification of invokevirtual on method defined in superclass must pass.");
45 assertVerifyOK("TestLegalInvokeVirtual02", "Verification of invokevirtual on method defined in superinterface must pass.");
46 }
47 }