Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- @RunWith(SpringRunner.class)
- @ContextConfiguration("classpath:applicationContext.xml")
- @WebAppConfiguration
- @Sql("classpath:data.sql")
- public class BaseTest {
- given()
- .contentType(ContentType.JSON)
- .accept(ContentType.JSON)
- .body(toJson(userView))
- .expect()
- .statusCode(200)
- .header(AUTH_HEADER_NAME, notNullValue())
- .when()
- .post("/login");
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement