diff --git a/src/main/java/com/example/demo/DemoApplicationTests.java b/src/main/java/com/example/demo/DemoApplicationTests.java deleted file mode 100644 index 8595e84d8724d3586ca52528a6f7067f9c8f5ee6..0000000000000000000000000000000000000000 --- a/src/main/java/com/example/demo/DemoApplicationTests.java +++ /dev/null @@ -1,28 +0,0 @@ -package com.example.demo; - -import org.junit.Test; -import org.junit.runner.RunWith; -import org.springframework.boot.test.context.SpringBootTest; -import org.springframework.boot.test.context.SpringBootTest.WebEnvironment; -import org.springframework.boot.test.web.client.TestRestTemplate; -import org.springframework.beans.factory.annotation.Autowired; -import org.springframework.test.context.junit4.SpringRunner; -import static org.assertj.core.api.Assertions.assertThat; - -@RunWith(SpringRunner.class) -@SpringBootTest(webEnvironment = WebEnvironment.RANDOM_PORT) -public class DemoApplicationTests { - - @Test - public void contextLoads() { - } - - @Autowired - private TestRestTemplate restTemplate; - - @Test - public void homeResponse() { - String body = this.restTemplate.getForObject("/", String.class); - assertThat(body).isEqualTo("Spring is here!"); - } -}