Skip to content

Commit c4edc5a

Browse files
kvmwryanjbaxter
authored andcommitted
Removes unnecessary @RunWith annotations (#2290)
1 parent 25bf685 commit c4edc5a

1 file changed

Lines changed: 0 additions & 4 deletions

File tree

spring-cloud-config-server/src/test/java/org/springframework/cloud/config/server/TransportConfigurationIntegrationTests.java

Lines changed: 0 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -29,7 +29,6 @@
2929
import org.eclipse.jgit.transport.URIish;
3030
import org.eclipse.jgit.transport.sshd.SshdSessionFactory;
3131
import org.junit.jupiter.api.Test;
32-
import org.junit.runner.RunWith;
3332

3433
import org.springframework.beans.factory.annotation.Autowired;
3534
import org.springframework.boot.test.context.SpringBootTest;
@@ -42,7 +41,6 @@
4241
import org.springframework.cloud.config.server.ssh.SshPropertyValidator;
4342
import org.springframework.cloud.config.server.test.TestConfigServerApplication;
4443
import org.springframework.test.context.ActiveProfiles;
45-
import org.springframework.test.context.junit4.SpringRunner;
4644

4745
import static org.assertj.core.api.Assertions.assertThat;
4846

@@ -334,7 +332,6 @@ public void strictHostKeyCheckShouldCheck() throws Exception {
334332

335333
public static class CallbackWithHttpUrlsOnly {
336334

337-
@RunWith(SpringRunner.class)
338335
@SpringBootTest(classes = { TestConfigServerApplication.class, SshPropertyValidator.class },
339336
webEnvironment = SpringBootTest.WebEnvironment.RANDOM_PORT,
340337
properties = { "spring.cloud.config.server.git.uri=https://gitserver.com/team/repo.git" })
@@ -364,7 +361,6 @@ public void noSessionFactoryIsConfiguredForSshTransports() throws Exception {
364361

365362
}
366363

367-
@RunWith(SpringRunner.class)
368364
@SpringBootTest(classes = { TestConfigServerApplication.class, SshPropertyValidator.class },
369365
webEnvironment = SpringBootTest.WebEnvironment.RANDOM_PORT,
370366
properties = { "spring.cloud.config.server.composite[0].type=git",

0 commit comments

Comments
 (0)