From 320d535172940317dfd6272e2903756ed2a5eb6b Mon Sep 17 00:00:00 2001 From: Fabio Busatto Date: Thu, 19 Apr 2018 07:03:56 +0000 Subject: [PATCH] Delete DemoApplicationTests.java --- .../example/demo/DemoApplicationTests.java | 28 ------------------- 1 file changed, 28 deletions(-) delete mode 100644 src/main/java/com/example/demo/DemoApplicationTests.java 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 8595e84..0000000 --- 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!"); - } -} -- GitLab