@Test(expected = CloudbreakImageCatalogException.class) public void testHttpImageCatalogNotValidJson() throws CloudbreakImageCatalogException { String path = getPath(CB_IMAGE_CATALOG_VALID_JSON); String catalogUrl = "http"; when(clientMock.target(catalogUrl)).thenReturn(webTargetMock); when(webTargetMock.request()).thenReturn(builderMock); when(builderMock.get()).thenReturn(responseMock); when(responseMock.getStatusInfo()).thenReturn(statusTypeMock); when(statusTypeMock.getFamily()).thenReturn(Family.SUCCESSFUL); when(responseMock.readEntity(String.class)).thenReturn("image catalog"); ReflectionTestUtils.setField(underTest, "etcConfigDir", path); ReflectionTestUtils.setField(underTest, "enabledLinuxTypes", Collections.emptyList()); underTest.getImageCatalogV3(catalogUrl); }
public CloudbreakImageCatalogV3 getImageCatalogV3(String catalogUrl) throws CloudbreakImageCatalogException { return getImageCatalogV3(catalogUrl, false); }
ImageCatalogProvider { public CloudbreakImageCatalogV3 getImageCatalogV3(String catalogUrl) throws CloudbreakImageCatalogException { return getImageCatalogV3(catalogUrl, false); } }
ImageCatalogProvider { public CloudbreakImageCatalogV3 getImageCatalogV3(String catalogUrl) throws CloudbreakImageCatalogException { return getImageCatalogV3(catalogUrl, false); }  }
ImageCatalogProvider { public CloudbreakImageCatalogV3 getImageCatalogV3(String catalogUrl) throws CloudbreakImageCatalogException { return getImageCatalogV3(catalogUrl, false); }  CloudbreakImageCatalogV3 getImageCatalogV3(String catalogUrl); CloudbreakImageCatalogV3 getImageCatalogV3(String catalogUrl, boolean forceRefresh); }
ImageCatalogProvider { public CloudbreakImageCatalogV3 getImageCatalogV3(String catalogUrl) throws CloudbreakImageCatalogException { return getImageCatalogV3(catalogUrl, false); }  CloudbreakImageCatalogV3 getImageCatalogV3(String catalogUrl); CloudbreakImageCatalogV3 getImageCatalogV3(String catalogUrl, boolean forceRefresh);  }