use of com.odysseusinc.arachne.portal.api.v1.dto.CreatePaperDTO in project ArachneCentralAPI by OHDSI.
the class BasePaperControllerTest method testCreatePaper.
@Test
@WithUserDetails(value = ADMIN_EMAIL)
@ExpectedDatabase(value = "/data/paper/papers-after-creation.xml", assertionMode = NON_STRICT)
public void testCreatePaper() throws Exception {
final CreatePaperDTO createPaperDTO = new CreatePaperDTO();
createPaperDTO.setStudyId(1L);
MvcResult mvcResult = mvc.perform(post("/api/v1/papers").contentType(APPLICATION_JSON).content(objectMapper.writeValueAsBytes(createPaperDTO))).andExpect(OK_STATUS).andReturn();
}
Aggregations