@Test(groups = "fast") public void testCatalogServiceDirectory() throws ServiceException, CatalogApiException { final DefaultCatalogService service = new DefaultCatalogService(new CatalogConfig() { @Override public String getCatalogURI() { return "versionedCatalog"; } }, tenantInternalApi, catalogCache, cacheInvalidationCallback); service.loadCatalog(); Assert.assertNotNull(service.getFullCatalog(true, true, internalCallContext)); Assert.assertEquals(service.getFullCatalog(true, true, internalCallContext).getCatalogName(), "WeaponsHireSmall"); }
@Test(groups = "fast") public void testCatalogServiceFile() throws ServiceException, CatalogApiException { final DefaultCatalogService service = new DefaultCatalogService(new CatalogConfig() { @Override public String getCatalogURI() { return "WeaponsHire.xml"; } }, tenantInternalApi, catalogCache, cacheInvalidationCallback); service.loadCatalog(); Assert.assertNotNull(service.getFullCatalog(true, true, internalCallContext)); Assert.assertEquals(service.getFullCatalog(true, true, internalCallContext).getCatalogName(), "Firearms"); } }
@Test(groups = "fast") public void testCatalogServiceDirectory() throws ServiceException, CatalogApiException { final DefaultCatalogService service = new DefaultCatalogService(new CatalogConfig() { @Override public String getCatalogURI() { return "versionedCatalog"; } }, tenantInternalApi, catalogCache, cacheInvalidationCallback); service.loadCatalog(); Assert.assertNotNull(service.getFullCatalog(true, true, internalCallContext)); Assert.assertEquals(service.getFullCatalog(true, true, internalCallContext).getCatalogName(), "WeaponsHireSmall"); }
@Test(groups = "fast") public void testCatalogServiceFile() throws ServiceException, CatalogApiException { final DefaultCatalogService service = new DefaultCatalogService(new CatalogConfig() { @Override public String getCatalogURI() { return "WeaponsHire.xml"; } }, tenantInternalApi, catalogCache, cacheInvalidationCallback); service.loadCatalog(); Assert.assertNotNull(service.getFullCatalog(true, true, internalCallContext)); Assert.assertEquals(service.getFullCatalog(true, true, internalCallContext).getCatalogName(), "Firearms"); } }