Skip to content

Commit c2ff6cb

Browse files
committed
Add missing rule declaration.
1 parent 2f16f68 commit c2ff6cb

File tree

1 file changed

+5
-0
lines changed

1 file changed

+5
-0
lines changed

byte-buddy-dep/src/test/java/net/bytebuddy/asm/MemberSubstitutionTest.java

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -15,7 +15,9 @@
1515
import net.bytebuddy.test.packaging.MemberSubstitutionTestHelper;
1616
import net.bytebuddy.test.utility.JavaVersionRule;
1717
import net.bytebuddy.utility.JavaConstant;
18+
import org.junit.Rule;
1819
import org.junit.Test;
20+
import org.junit.rules.MethodRule;
1921

2022
import java.util.Collections;
2123
import java.util.List;
@@ -31,6 +33,9 @@ public class MemberSubstitutionTest {
3133

3234
private static final String FOO = "foo", BAR = "bar", QUX = "qux", BAZ = "baz", RUN = "run";
3335

36+
@Rule
37+
public MethodRule javaVersionRule = new JavaVersionRule();
38+
3439
@Test
3540
public void testFieldReadStub() throws Exception {
3641
Class<?> type = new ByteBuddy()

0 commit comments

Comments
 (0)