Skip to content

Commit cb46ef8

Browse files
author
Phillip Webb
committed
Fix test following ResolvableType hashcode change
1 parent 6c1f62b commit cb46ef8

File tree

1 file changed

+1
-0
lines changed

1 file changed

+1
-0
lines changed

spring-core/src/test/java/org/springframework/core/ResolvableTypeTests.java

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -770,6 +770,7 @@ public void resolveTypeVariableFromTypeWithVariableResolver() throws Exception {
770770
@Test
771771
public void resolveTypeWithCustomVariableResolver() throws Exception {
772772
VariableResolver variableResolver = mock(VariableResolver.class);
773+
given(variableResolver.getSource()).willReturn(this);
773774
ResolvableType longType = ResolvableType.forClass(Long.class);
774775
given(variableResolver.resolveVariable((TypeVariable<?>) anyObject())).willReturn(longType);
775776

0 commit comments

Comments
 (0)