Skip to content

Commit b61e335

Browse files
committed
Fix test.
1 parent 9615143 commit b61e335

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

byte-buddy-dep/src/test/java/net/bytebuddy/implementation/bind/annotation/MorphBinderTest.java

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -64,7 +64,7 @@ public void testSuperMethodCallInvalid() throws Exception {
6464
when(target.getType()).thenReturn(genericMorphType);
6565
when(morphMethod.getDeclaringType()).thenReturn(morphType);
6666
doReturn(void.class).when(annotation).defaultTarget();
67-
when(implementationTarget.invokeSuper(sourceToken)).thenReturn(specialMethodInvocation);
67+
when(implementationTarget.invokeDominant(sourceToken)).thenReturn(specialMethodInvocation);
6868
MethodDelegationBinder.ParameterBinding<?> parameterBinding = new Morph.Binder(morphMethod)
6969
.bind(annotationDescription, source, target, implementationTarget, assigner, Assigner.Typing.STATIC);
7070
assertThat(parameterBinding.isValid(), is(false));
@@ -76,7 +76,7 @@ public void testSuperMethodCallValid() throws Exception {
7676
when(target.getType()).thenReturn(genericMorphType);
7777
when(morphMethod.getDeclaringType()).thenReturn(morphType);
7878
doReturn(void.class).when(annotation).defaultTarget();
79-
when(implementationTarget.invokeSuper(sourceToken)).thenReturn(specialMethodInvocation);
79+
when(implementationTarget.invokeDominant(sourceToken)).thenReturn(specialMethodInvocation);
8080
when(specialMethodInvocation.isValid()).thenReturn(true);
8181
MethodDelegationBinder.ParameterBinding<?> parameterBinding = new Morph.Binder(morphMethod)
8282
.bind(annotationDescription, source, target, implementationTarget, assigner, Assigner.Typing.STATIC);

0 commit comments

Comments
 (0)