SHARE
TWEET

Untitled

a guest Aug 19th, 2019 56 Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
  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");
RAW Paste Data
We use cookies for various purposes including analytics. By continuing to use Pastebin, you agree to our use of cookies as described in the Cookies Policy. OK, I Understand
 
Top