Removes unnecessary @RunWith annotations (#2290)

This commit is contained in:
Kaveh Shamsi
2023-06-15 16:35:00 +02:00
committed by GitHub
parent a6c4e42103
commit c9d11fffa6

View File

@@ -29,7 +29,6 @@ import org.eclipse.jgit.transport.SshTransport;
import org.eclipse.jgit.transport.URIish;
import org.eclipse.jgit.transport.sshd.SshdSessionFactory;
import org.junit.jupiter.api.Test;
import org.junit.runner.RunWith;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.boot.test.context.SpringBootTest;
@@ -42,7 +41,6 @@ import org.springframework.cloud.config.server.ssh.PropertyBasedSshSessionFactor
import org.springframework.cloud.config.server.ssh.SshPropertyValidator;
import org.springframework.cloud.config.server.test.TestConfigServerApplication;
import org.springframework.test.context.ActiveProfiles;
import org.springframework.test.context.junit4.SpringRunner;
import static org.assertj.core.api.Assertions.assertThat;
@@ -334,7 +332,6 @@ public class TransportConfigurationIntegrationTests {
public static class CallbackWithHttpUrlsOnly {
@RunWith(SpringRunner.class)
@SpringBootTest(classes = { TestConfigServerApplication.class, SshPropertyValidator.class },
webEnvironment = SpringBootTest.WebEnvironment.RANDOM_PORT,
properties = { "spring.cloud.config.server.git.uri=https://gitserver.com/team/repo.git" })
@@ -364,7 +361,6 @@ public class TransportConfigurationIntegrationTests {
}
@RunWith(SpringRunner.class)
@SpringBootTest(classes = { TestConfigServerApplication.class, SshPropertyValidator.class },
webEnvironment = SpringBootTest.WebEnvironment.RANDOM_PORT,
properties = { "spring.cloud.config.server.composite[0].type=git",