* migrated the following modules:

spring-boot
spring-boot-autoconfiguration
spring-boot-bootstrap
spring-boot-client
spring-boot-ctx-fluent
spring-boot-disable-console-logging
spring-boot-jasypt
spring-boot-mvc
spring-boot-ops
spring-boot-vue
spring-cloud/spring-cloud-vault
spring-data-rest
This commit is contained in:
geroza
2018-12-09 10:03:48 -02:00
parent a2ceb57dd1
commit bad04601be
13 changed files with 54 additions and 44 deletions

View File

@@ -4,25 +4,20 @@ import static org.apache.commons.lang3.RandomStringUtils.randomAlphabetic;
import static org.apache.commons.lang3.RandomStringUtils.randomNumeric;
import static org.junit.Assert.assertEquals;
import static org.junit.Assert.assertTrue;
import io.restassured.RestAssured;
import io.restassured.response.Response;
import java.util.List;
import org.baeldung.persistence.model.Book;
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.http.HttpStatus;
import org.springframework.http.MediaType;
import org.springframework.test.context.junit4.SpringRunner;
@RunWith(SpringRunner.class)
@SpringBootTest(classes = Application.class, webEnvironment = WebEnvironment.DEFINED_PORT)
import io.restassured.RestAssured;
import io.restassured.response.Response;
public class SpringBootBootstrapIntegrationTest {
private static final String API_ROOT = "http://localhost:8081/api/books";
private static final String API_ROOT = "http://localhost:8080/api/books";
@Test
public void whenGetAllBooks_thenOK() {