Remove unnecessary changes.

This commit is contained in:
Olga Maciaszek-Sharma
2022-04-01 16:39:33 +02:00
parent 5a6cb48a2d
commit 7be8331cf0
39 changed files with 55 additions and 51 deletions

View File

@@ -16,7 +16,7 @@
package demo;
import org.junit.jupiter.api.Test;
import org.junit.Test;
import org.junit.runner.RunWith;
import org.springframework.beans.factory.annotation.Autowired;
@@ -29,13 +29,13 @@ import org.springframework.test.context.junit4.SpringRunner;
@RunWith(SpringRunner.class)
@SpringBootTest(webEnvironment = WebEnvironment.RANDOM_PORT)
@DirtiesContext
class BootstrapClientApplicationTests {
public class BootstrapClientApplicationTests {
@Autowired
private ServerProperties server;
@Test
void contextLoads() throws Exception {
public void contextLoads() throws Exception {
assertThat(2).isEqualTo(this.server.getTomcat().getMaxThreads());
// The application.yml is never read because spring.config.name=sample
assertThat("application").isEqualTo(this.server.getServlet().getApplicationDisplayName());

View File

@@ -16,7 +16,7 @@
package demo;
import org.junit.jupiter.api.Test;
import org.junit.Test;
import org.junit.runner.RunWith;
import org.springframework.beans.factory.annotation.Autowired;
@@ -30,13 +30,13 @@ import static org.junit.Assert.assertNotNull;
@RunWith(SpringRunner.class)
@SpringBootTest
@DirtiesContext
class StandaloneClientApplicationTests {
public class StandaloneClientApplicationTests {
@Autowired
private ConfigServicePropertySourceLocator locator;
@Test
void contextLoads() throws Exception {
public void contextLoads() throws Exception {
assertNotNull(this.locator);
}

View File

@@ -16,7 +16,7 @@
package demo;
import org.junit.jupiter.api.Test;
import org.junit.Test;
import org.junit.runner.RunWith;
import org.springframework.beans.factory.annotation.Autowired;
@@ -29,7 +29,7 @@ import org.springframework.test.context.junit4.SpringRunner;
@RunWith(SpringRunner.class)
@SpringBootTest
@DirtiesContext
class BootstrapDecryptionClientApplicationTests {
public class BootstrapDecryptionClientApplicationTests {
@Autowired
private ConfigClientProperties config;
@@ -38,7 +38,7 @@ class BootstrapDecryptionClientApplicationTests {
private ConfigServicePropertySourceLocator locator;
@Test
void contextLoads() throws Exception {
public void contextLoads() throws Exception {
assertThat(new String[] { "http://localhost:8888" }).isEqualTo(this.config.getUri());
// The application.yml is never read because spring.config.name=sample
assertThat(this.locator).isNotNull();

View File

@@ -16,7 +16,7 @@
package demo;
import org.junit.jupiter.api.Test;
import org.junit.Test;
import org.junit.runner.RunWith;
import org.springframework.beans.factory.annotation.Autowired;
@@ -30,13 +30,13 @@ import static org.junit.Assert.assertNotNull;
@RunWith(SpringRunner.class)
@SpringBootTest
@DirtiesContext
class StandaloneClientApplicationTests {
public class StandaloneClientApplicationTests {
@Autowired
private ConfigServicePropertySourceLocator locator;
@Test
void contextLoads() throws Exception {
public void contextLoads() throws Exception {
assertNotNull(this.locator);
}

View File

@@ -23,7 +23,8 @@ import java.util.concurrent.Executors;
import apps.ConfigServer;
import org.aopalliance.intercept.MethodInterceptor;
import org.junit.AfterClass;
import org.junit.jupiter.api.Test;
import org.junit.BeforeClass;
import org.junit.Test;
import org.junit.runner.RunWith;
import org.springframework.aop.framework.Advised;
@@ -54,7 +55,7 @@ public class StandaloneClientApplicationTests {
@Autowired
private ConfigServicePropertySourceLocator locator;
@BeforeEachClass
@BeforeClass
public static void delayConfigServer() {
Executors.newSingleThreadExecutor().execute(new Runnable() {
@Override

View File

@@ -16,14 +16,17 @@
package demo;
import org.junit.jupiter.api.Test;
import org.junit.Test;
import org.junit.runner.RunWith;
import org.springframework.boot.test.context.SpringBootTest;
import org.springframework.test.annotation.DirtiesContext;
import org.springframework.test.context.junit4.SpringRunner;
@RunWith(SpringRunner.class)
@SpringBootTest
@DirtiesContext
class ConfigServerEurekaApplicationTests {
public class ConfigServerEurekaApplicationTests {
@Test
public void contextLoads() {

View File

@@ -16,7 +16,7 @@
package demo;
import org.junit.jupiter.api.Test;
import org.junit.Test;
import org.junit.runner.RunWith;
import org.springframework.beans.factory.annotation.Autowired;

View File

@@ -16,7 +16,7 @@
package demo;
import org.junit.jupiter.api.Test;
import org.junit.Test;
import org.junit.runner.RunWith;
import org.springframework.boot.test.context.SpringBootTest;
@@ -26,10 +26,10 @@ import org.springframework.test.context.junit4.SpringRunner;
@RunWith(SpringRunner.class)
@SpringBootTest
@DirtiesContext
class ConfigServerApplicationTests {
public class ConfigServerApplicationTests {
@Test
void contextLoads() {
public void contextLoads() {
}
}

View File

@@ -16,7 +16,7 @@
package demo;
import org.junit.jupiter.api.Test;
import org.junit.Test;
import org.junit.runner.RunWith;
import org.springframework.beans.factory.annotation.Autowired;

View File

@@ -16,7 +16,7 @@
package demo;
import org.junit.jupiter.api.Test;
import org.junit.Test;
import org.junit.runner.RunWith;
import org.springframework.beans.factory.annotation.Autowired;

View File

@@ -16,7 +16,7 @@
package demo;
import org.junit.jupiter.api.Test;
import org.junit.Test;
import org.junit.runner.RunWith;
import org.springframework.beans.factory.annotation.Autowired;

View File

@@ -16,7 +16,7 @@
package demo;
import org.junit.jupiter.api.Test;
import org.junit.Test;
import org.junit.runner.RunWith;
import org.springframework.beans.factory.annotation.Autowired;

View File

@@ -16,7 +16,7 @@
package demo;
import org.junit.jupiter.api.Test;
import org.junit.Test;
import org.junit.runner.RunWith;
import org.springframework.beans.factory.annotation.Autowired;

View File

@@ -16,7 +16,7 @@
package demo;
import org.junit.jupiter.api.Test;
import org.junit.Test;
import org.junit.runner.RunWith;
import org.springframework.boot.test.context.SpringBootTest;

View File

@@ -16,7 +16,7 @@
package demo;
import org.junit.jupiter.api.Test;
import org.junit.Test;
import org.junit.runner.RunWith;
import org.springframework.beans.factory.annotation.Value;

View File

@@ -16,7 +16,7 @@
package demo;
import org.junit.jupiter.api.Test;
import org.junit.Test;
import org.junit.runner.RunWith;
import org.springframework.beans.factory.annotation.Autowired;

View File

@@ -17,7 +17,7 @@
package demo;
import demo.FeignClientWithServerListApplicationTests.FallbackRestClient;
import org.junit.jupiter.api.Test;
import org.junit.Test;
import org.junit.runner.RunWith;
import org.springframework.beans.factory.annotation.Autowired;

View File

@@ -16,7 +16,7 @@
package demo;
import org.junit.jupiter.api.Test;
import org.junit.Test;
import org.junit.runner.RunWith;
import org.springframework.beans.factory.annotation.Autowired;

View File

@@ -16,7 +16,7 @@
package demo;
import org.junit.jupiter.api.Test;
import org.junit.Test;
import org.junit.runner.RunWith;
import org.springframework.beans.factory.annotation.Autowired;

View File

@@ -16,7 +16,7 @@
package demo;
import org.junit.jupiter.api.Test;
import org.junit.Test;
import org.junit.runner.RunWith;
import org.springframework.beans.factory.annotation.Autowired;

View File

@@ -19,7 +19,7 @@ package demo;
import java.io.InputStream;
import java.net.URL;
import org.junit.jupiter.api.Test;
import org.junit.Test;
import org.junit.runner.RunWith;
import org.springframework.boot.test.context.SpringBootTest;

View File

@@ -19,7 +19,7 @@ package demo;
import java.io.InputStream;
import java.net.URL;
import org.junit.jupiter.api.Test;
import org.junit.Test;
import org.junit.runner.RunWith;
import org.springframework.boot.test.context.SpringBootTest;

View File

@@ -17,7 +17,7 @@
package demo;
import com.netflix.appinfo.EurekaInstanceConfig;
import org.junit.jupiter.api.Test;
import org.junit.Test;
import org.junit.runner.RunWith;
import org.springframework.beans.factory.annotation.Autowired;

View File

@@ -16,7 +16,7 @@
package demo;
import org.junit.jupiter.api.Test;
import org.junit.Test;
import org.junit.runner.RunWith;
import org.springframework.boot.test.context.SpringBootTest;

View File

@@ -21,7 +21,7 @@ import java.util.List;
import demo.NotWebApplication;
import org.apache.commons.logging.Log;
import org.apache.commons.logging.LogFactory;
import org.junit.jupiter.api.Test;
import org.junit.Test;
import org.junit.runner.RunWith;
import org.springframework.beans.factory.annotation.Autowired;

View File

@@ -17,7 +17,7 @@
package demo;
import org.junit.Ignore;
import org.junit.jupiter.api.Test;
import org.junit.Test;
import org.junit.runner.RunWith;
import org.springframework.boot.test.context.SpringBootTest;

View File

@@ -17,7 +17,7 @@
package demo;
import org.junit.Ignore;
import org.junit.jupiter.api.Test;
import org.junit.Test;
import org.junit.runner.RunWith;
import org.springframework.beans.factory.annotation.Value;

View File

@@ -32,7 +32,7 @@
package demo;
import org.junit.jupiter.api.Test;
import org.junit.Test;
import org.junit.runner.RunWith;
import org.springframework.boot.test.context.SpringBootTest;

View File

@@ -17,7 +17,7 @@
package demo;
import org.junit.Ignore;
import org.junit.jupiter.api.Test;
import org.junit.Test;
import org.junit.runner.RunWith;
import org.springframework.boot.test.context.SpringBootTest;

View File

@@ -17,7 +17,7 @@
package demo;
import brave.Tracer;
import org.junit.jupiter.api.Test;
import org.junit.Test;
import org.junit.runner.RunWith;
import org.springframework.beans.factory.annotation.Autowired;

View File

@@ -16,7 +16,7 @@
package demo;
import org.junit.jupiter.api.Test;
import org.junit.Test;
import org.junit.runner.RunWith;
import org.springframework.beans.factory.annotation.Autowired;

View File

@@ -16,7 +16,7 @@
package demo;
import org.junit.jupiter.api.Test;
import org.junit.Test;
import org.junit.runner.RunWith;
import org.springframework.beans.factory.annotation.Autowired;

View File

@@ -16,7 +16,7 @@
package demo;
import org.junit.jupiter.api.Test;
import org.junit.Test;
import org.junit.runner.RunWith;
import org.springframework.beans.factory.annotation.Autowired;

View File

@@ -16,7 +16,7 @@
package demo;
import org.junit.jupiter.api.Test;
import org.junit.Test;
import org.junit.runner.RunWith;
import org.springframework.beans.factory.annotation.Autowired;

View File

@@ -16,7 +16,7 @@
package demo;
import org.junit.jupiter.api.Test;
import org.junit.Test;
import org.junit.runner.RunWith;
import org.springframework.boot.test.context.SpringBootTest;

View File

@@ -16,7 +16,7 @@
package demo;
import org.junit.jupiter.api.Test;
import org.junit.Test;
import org.junit.runner.RunWith;
import org.springframework.boot.test.context.SpringBootTest;

View File

@@ -16,7 +16,7 @@
package demo;
import org.junit.jupiter.api.Test;
import org.junit.Test;
import org.junit.runner.RunWith;
import org.springframework.beans.factory.annotation.Autowired;

View File

@@ -16,7 +16,7 @@
package demo;
import org.junit.jupiter.api.Test;
import org.junit.Test;
import org.junit.runner.RunWith;
import org.springframework.beans.factory.annotation.Autowired;

View File

@@ -16,7 +16,7 @@
package demo;
import org.junit.jupiter.api.Test;
import org.junit.Test;
import org.junit.runner.RunWith;
import org.springframework.beans.factory.annotation.Autowired;