Skip to content

Commit

Permalink
Fix test.
Browse files Browse the repository at this point in the history
  • Loading branch information
raphw committed Jan 29, 2025
1 parent 896e91e commit 8b1a2c5
Showing 1 changed file with 5 additions and 4 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -308,9 +308,8 @@ public void testHandle() throws Exception {
.make()
.load(ClassLoadingStrategy.BOOTSTRAP_LOADER, ClassLoadingStrategy.Default.WRAPPER)
.getLoaded();
Object instance = type.getDeclaredConstructor(String.class).newInstance(FOO);
assertThat(type.getDeclaredField(FOO).get(instance), is((Object) FOO));
assertThat(type.getDeclaredMethod(RUN).invoke(instance), is((Object) (FOO + BAR)));
Object instance = type.getDeclaredConstructor().newInstance();
assertThat(type.getDeclaredMethod(RUN).invoke(instance), is((Object) FOO));
}

@Test
Expand Down Expand Up @@ -937,12 +936,14 @@ public static String handle(

public static class HandleSample {

public String foo;

public static String foo() {
return FOO;
}

public String run() {
return null;
return foo;
}

public static String handle(@MemberSubstitution.Handle(
Expand Down

0 comments on commit 8b1a2c5

Please sign in to comment.