Skip to content
Snippets Groups Projects
Commit 641cbe57 authored by Emildeon Thevaraj's avatar Emildeon Thevaraj
Browse files

demointegration added

parent 8f3f45c1
No related branches found
No related tags found
1 merge request!2Deon
package de.rwth.swc.sqa;
import io.restassured.RestAssured;
import org.junit.jupiter.api.BeforeEach;
import org.junit.jupiter.api.Test;
import org.springframework.boot.test.context.SpringBootTest;
import org.springframework.boot.web.server.LocalServerPort;
import static io.restassured.RestAssured.given;
import static org.springframework.boot.test.context.SpringBootTest.WebEnvironment.RANDOM_PORT;
@SpringBootTest(webEnvironment = RANDOM_PORT)
public class DemoIntegrationTest {
private static final String PATH = "/customers/1/discountcards";
@LocalServerPort
private int port;
@BeforeEach
public void setUp() {
RestAssured.port = port;
}
@Test
public void whenReadAll_thenStatusIsNotImplemented() {
given().get(PATH).then().statusCode(501);
}
}
\ No newline at end of file
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment