openrewrite Junit Migration

This commit is contained in:
Rob Winch
2021-07-08 14:52:28 -05:00
parent 8652f01269
commit 3e93b024d6
999 changed files with 3088 additions and 3092 deletions

View File

@@ -23,8 +23,8 @@ import javax.naming.directory.BasicAttribute;
import javax.naming.directory.BasicAttributes;
import javax.naming.directory.DirContext;
import org.junit.Before;
import org.junit.Test;
import org.junit.jupiter.api.BeforeEach;
import org.junit.jupiter.api.Test;
import static org.assertj.core.api.Assertions.assertThat;
import static org.assertj.core.api.Assertions.assertThatExceptionOfType;
@@ -44,7 +44,7 @@ public class JndiDnsResolverTests {
private DirContext context;
@Before
@BeforeEach
public void setup() {
this.contextFactory = mock(InitialContextFactory.class);
this.context = mock(DirContext.class);

View File

@@ -21,8 +21,8 @@ import java.net.URL;
import java.util.HashMap;
import java.util.Map;
import org.junit.After;
import org.junit.Test;
import org.junit.jupiter.api.AfterEach;
import org.junit.jupiter.api.Test;
import org.springframework.security.authentication.AnonymousAuthenticationToken;
import org.springframework.security.authentication.UsernamePasswordAuthenticationToken;
@@ -40,7 +40,7 @@ import static org.assertj.core.api.Assertions.assertThat;
*/
public class AuthenticationSimpleHttpInvokerRequestExecutorTests {
@After
@AfterEach
public void tearDown() {
SecurityContextHolder.clearContext();
}

View File

@@ -19,8 +19,8 @@ package org.springframework.security.remoting.rmi;
import java.lang.reflect.Method;
import org.aopalliance.intercept.MethodInvocation;
import org.junit.After;
import org.junit.Test;
import org.junit.jupiter.api.AfterEach;
import org.junit.jupiter.api.Test;
import org.springframework.security.TargetObject;
import org.springframework.security.authentication.UsernamePasswordAuthenticationToken;
@@ -40,7 +40,7 @@ import static org.assertj.core.api.Assertions.assertThatIllegalArgumentException
*/
public class ContextPropagatingRemoteInvocationTests {
@After
@AfterEach
public void tearDown() {
SecurityContextHolder.clearContext();
}