use of com.epam.ta.reportportal.ws.model.project.config.UpdateIssueSubTypeRQ in project service-api by reportportal.
the class ProjectSettingsControllerTest method updateSubType.
@Test
void updateSubType() throws Exception {
UpdateIssueSubTypeRQ request = new UpdateIssueSubTypeRQ();
final UpdateOneIssueSubTypeRQ updateOneIssueSubTypeRQ = new UpdateOneIssueSubTypeRQ();
updateOneIssueSubTypeRQ.setColor("#000000");
updateOneIssueSubTypeRQ.setLocator("custom_ti");
updateOneIssueSubTypeRQ.setLongName("updated");
updateOneIssueSubTypeRQ.setShortName("upd");
updateOneIssueSubTypeRQ.setTypeRef("TO_INVESTIGATE");
request.setIds(Collections.singletonList(updateOneIssueSubTypeRQ));
mockMvc.perform(put(DEFAULT_PROJECT_BASE_URL + "/settings/sub-type").with(token(oAuthHelper.getDefaultToken())).contentType(APPLICATION_JSON).content(objectMapper.writeValueAsBytes(request))).andExpect(status().isOk());
}
Aggregations