DATACMNS-867 - Second draft.
This commit is contained in:
@@ -16,7 +16,7 @@
|
||||
package org.springframework.data.projection;
|
||||
|
||||
import static org.assertj.core.api.Assertions.*;
|
||||
import static org.mockito.Matchers.*;
|
||||
import static org.mockito.ArgumentMatchers.*;
|
||||
import static org.mockito.Mockito.*;
|
||||
|
||||
import java.util.Collection;
|
||||
|
||||
@@ -86,12 +86,8 @@ public class SpelEvaluatingMethodInterceptorUnitTests {
|
||||
@Test(expected = IllegalStateException.class) // DATACMNS-630
|
||||
public void rejectsEmptySpelExpression() throws Throwable {
|
||||
|
||||
when(invocation.getMethod()).thenReturn(InvalidProjection.class.getMethod("getAddress"));
|
||||
|
||||
SpelEvaluatingMethodInterceptor interceptor = new SpelEvaluatingMethodInterceptor(delegate, new Target(),
|
||||
new DefaultListableBeanFactory(), parser, InvalidProjection.class);
|
||||
|
||||
interceptor.invoke(invocation);
|
||||
new SpelEvaluatingMethodInterceptor(delegate, new Target(), new DefaultListableBeanFactory(), parser,
|
||||
InvalidProjection.class);
|
||||
}
|
||||
|
||||
@Test // DATACMNS-630
|
||||
|
||||
Reference in New Issue
Block a user