remove @Rule

rg '@Rule' -g '!buildSrc/**' -l | xargs sed -i '/@Rule/d'
rg 'import org.junit.Rule' -g '!buildSrc/**' -l | xargs sed -i '/import org.junit.Rule/d'
This commit is contained in:
Rob Winch
2021-07-09 09:41:38 -05:00
parent 671040bb27
commit 60078df62a
189 changed files with 0 additions and 380 deletions

View File

@@ -23,7 +23,6 @@ import java.util.List;
import javax.naming.directory.SearchControls;
import org.junit.Rule;
import org.junit.jupiter.api.Test;
import org.springframework.beans.factory.annotation.Autowired;
@@ -55,7 +54,6 @@ public class LdapAuthenticationProviderBuilderSecurityBuilderTests {
static Integer port;
@Rule
public final SpringTestContext spring = new SpringTestContext(this);
@Autowired

View File

@@ -18,7 +18,6 @@ package org.springframework.security.config.annotation.authentication.ldap;
import java.util.Collections;
import org.junit.Rule;
import org.junit.jupiter.api.Test;
import org.springframework.beans.factory.annotation.Autowired;
@@ -38,7 +37,6 @@ import static org.springframework.security.test.web.servlet.response.SecurityMoc
public class LdapAuthenticationProviderConfigurerTests {
@Rule
public final SpringTestContext spring = new SpringTestContext(this);
@Autowired

View File

@@ -20,7 +20,6 @@ import java.util.Collections;
import java.util.HashSet;
import java.util.Set;
import org.junit.Rule;
import org.junit.jupiter.api.Test;
import org.springframework.beans.factory.annotation.Autowired;
@@ -46,7 +45,6 @@ import static org.springframework.security.test.web.servlet.response.SecurityMoc
public class NamespaceLdapAuthenticationProviderTests {
@Rule
public final SpringTestContext spring = new SpringTestContext(this);
@Autowired