Advertisement
Guest User

Untitled

a guest
Aug 19th, 2019
104
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.48 KB | None | 0 0
  1. @RunWith(SpringRunner.class)
  2. @ContextConfiguration("classpath:applicationContext.xml")
  3. @WebAppConfiguration
  4. @Sql("classpath:data.sql")
  5. public class BaseTest {
  6.  
  7. given()
  8. .contentType(ContentType.JSON)
  9. .accept(ContentType.JSON)
  10. .body(toJson(userView))
  11. .expect()
  12. .statusCode(200)
  13. .header(AUTH_HEADER_NAME, notNullValue())
  14. .when()
  15. .post("/login");
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement