BAEL-3682 reuse url

This commit is contained in:
Yavuz Tas 2021-05-09 23:49:51 +02:00
parent 581a897577
commit 525abe9831
1 changed files with 4 additions and 4 deletions

View File

@ -43,12 +43,12 @@ public class FooPageableLiveTest extends AbstractBasicLiveTest<Foo> {
public final String createAsUri() {
return createAsUri(new Foo(randomAlphabetic(6)));
}
@Override
@Test
public void whenResourcesAreRetrievedPaged_then200IsReceived() {
this.create();
final Response response = RestAssured.get(getPageableURL() + "?page=0&size=10");
assertThat(response.getStatusCode(), is(200));
@ -74,7 +74,7 @@ public class FooPageableLiveTest extends AbstractBasicLiveTest<Foo> {
}
protected String getPageableURL() {
return "http://localhost:" + APPLICATION_PORT + "/spring-boot-rest/foos/pageable";
return getURL() + "/pageable";
}
}