use of com.blackducksoftware.integration.hub.alert.mock.entity.MockCommonDistributionEntity in project hub-alert by blackducksoftware.
the class ControllerTest method setup.
@Before
public void setup() {
gson = new Gson();
mockMvc = MockMvcBuilders.webAppContextSetup(webApplicationContext).apply(SecurityMockMvcConfigurers.springSecurity()).build();
entityRepository = getEntityRepository();
entityRepository.deleteAllInBatch();
entityMockUtil = getEntityMockUtil();
restModelMockUtil = getRestModelMockUtil();
distributionMockUtil = new MockCommonDistributionEntity();
restModel = restModelMockUtil.createRestModel();
entity = entityMockUtil.createEntity();
entityRepository.save(entity);
restUrl = "/api/" + getRestControllerUrl();
}
Aggregations