Polish Test Name

So that it adheres to methodNameWhenConditionThenVerification naming
convention.

Issue: gh-3743
This commit is contained in:
Josh Cummings 2018-10-30 10:20:37 -06:00
parent 50d26c9d28
commit 7d3302f52b
No known key found for this signature in database
GPG Key ID: 49EF60DD7FF83443
1 changed files with 10 additions and 7 deletions

View File

@ -15,10 +15,9 @@
*/
package org.springframework.security.access.expression.method;
import static org.assertj.core.api.Assertions.*;
import static org.mockito.ArgumentMatchers.any;
import static org.mockito.Mockito.*;
import java.util.List;
import java.util.stream.Collectors;
import java.util.stream.Stream;
import org.aopalliance.intercept.MethodInvocation;
import org.junit.After;
@ -27,14 +26,18 @@ import org.junit.Test;
import org.junit.runner.RunWith;
import org.mockito.Mock;
import org.mockito.junit.MockitoJUnitRunner;
import org.springframework.expression.EvaluationContext;
import org.springframework.expression.Expression;
import org.springframework.security.authentication.AuthenticationTrustResolver;
import org.springframework.security.core.Authentication;
import org.springframework.security.core.context.SecurityContextHolder;
import java.util.List;
import java.util.stream.*;
import static org.assertj.core.api.Assertions.assertThat;
import static org.mockito.ArgumentMatchers.any;
import static org.mockito.Mockito.doReturn;
import static org.mockito.Mockito.mock;
import static org.mockito.Mockito.verify;
@RunWith(MockitoJUnitRunner.class)
public class DefaultMethodSecurityExpressionHandlerTests {
@ -77,7 +80,7 @@ public class DefaultMethodSecurityExpressionHandlerTests {
@Test
@SuppressWarnings("unchecked")
public void testFilteringStream() {
public void filterWhenUsingStreamThenFiltersStream() {
final Stream<String> stream = Stream.of("1", "2", "3");
Expression expression = handler.getExpressionParser().parseExpression("filterObject ne '2'");