Skip to content

Commit 8fd259d

Browse files
committed
DATAREST-906 - Polishing.
1 parent 7329e20 commit 8fd259d

File tree

1 file changed

+2
-3
lines changed

1 file changed

+2
-3
lines changed

spring-data-rest-tests/spring-data-rest-tests-jpa/src/test/java/org/springframework/data/rest/webmvc/jpa/JpaDefaultPageableWebTests.java

Lines changed: 2 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -18,7 +18,6 @@
1818
import static org.hamcrest.Matchers.*;
1919
import static org.junit.Assert.*;
2020
import static org.springframework.test.web.servlet.request.MockMvcRequestBuilders.*;
21-
import static org.springframework.test.web.servlet.result.MockMvcResultHandlers.*;
2221
import static org.springframework.test.web.servlet.result.MockMvcResultMatchers.*;
2322

2423
import java.util.Collections;
@@ -119,7 +118,7 @@ public void executesSearchThatTakesAMappedSortProperty() throws Exception {
119118
@Test
120119
public void shouldApplyDefaultPageable() throws Exception {
121120

122-
mvc.perform(get("/books/default-pageable")).andDo(print()) //
121+
mvc.perform(get("/books/default-pageable"))//
123122
.andExpect(jsonPath("$.content[0].sales").value(0)) //
124123
.andExpect(jsonPath("$.size").value(1));
125124
}
@@ -130,7 +129,7 @@ public void shouldApplyDefaultPageable() throws Exception {
130129
@Test
131130
public void shouldOverrideDefaultPageable() throws Exception {
132131

133-
mvc.perform(get("/books/default-pageable?size=10")).andDo(print()) //
132+
mvc.perform(get("/books/default-pageable?size=10"))//
134133
.andExpect(jsonPath("$.content[0].sales").value(0)) //
135134
.andExpect(jsonPath("$.size").value(10));
136135
}

0 commit comments

Comments
 (0)