Skip to content

Commit

Permalink
Add missing rule declaration.
Browse files Browse the repository at this point in the history
  • Loading branch information
raphw committed Jan 29, 2025
1 parent 2f16f68 commit c2ff6cb
Showing 1 changed file with 5 additions and 0 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -15,7 +15,9 @@
import net.bytebuddy.test.packaging.MemberSubstitutionTestHelper;
import net.bytebuddy.test.utility.JavaVersionRule;
import net.bytebuddy.utility.JavaConstant;
import org.junit.Rule;
import org.junit.Test;
import org.junit.rules.MethodRule;

import java.util.Collections;
import java.util.List;
Expand All @@ -31,6 +33,9 @@ public class MemberSubstitutionTest {

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

@Rule
public MethodRule javaVersionRule = new JavaVersionRule();

@Test
public void testFieldReadStub() throws Exception {
Class<?> type = new ByteBuddy()
Expand Down

0 comments on commit c2ff6cb

Please sign in to comment.