use of com.synopsys.integration.alert.common.persistence.accessor.SystemStatusAccessor in project hub-alert by blackducksoftware.
the class AboutActionsTest method testGetAboutDataNotPresent.
@Test
public void testGetAboutDataNotPresent() {
Gson gson = new Gson();
AlertWebServerUrlManager alertWebServerUrlManager = Mockito.mock(AlertWebServerUrlManager.class);
SystemStatusAccessor systemStatusAccessor = Mockito.mock(SystemStatusAccessor.class);
DescriptorMetadataActions descriptorActions = Mockito.mock(DescriptorMetadataActions.class);
AboutReader aboutReader = new AboutReader(gson, alertWebServerUrlManager, systemStatusAccessor, descriptorActions);
AboutActions aboutActions = new AboutActions(aboutReader);
ActionResponse<AboutModel> resultModel = aboutActions.getAboutModel();
assertTrue(resultModel.isError());
assertFalse(resultModel.hasContent());
}
Aggregations