private static DatasetBuilder assertGetDatasetOne(CatalogBuilder catBuilder) { List<DatasetNodeBuilder> datasetNodes = catBuilder.getDatasetNodeBuilders(); assertEquals(1, datasetNodes.size()); DatasetBuilder dsBldr = (DatasetBuilder) datasetNodes.get(0); assertEquals("DS1", dsBldr.getId()); return dsBldr; }
private static void assertDatasetTwoHasWcsAccess(CatalogBuilder catBuilder) { DatasetBuilder dsBldr = assertGetDatasetTwo(catBuilder); List<AccessBuilder> accessBldrs = dsBldr.getAccessBuilders(); assertEquals(1, accessBldrs.size()); AccessBuilder access = accessBldrs.get(0); assertWcsAccess(access); }
private static void assertDatasetOneHasOdapAccess(CatalogBuilder catBuilder) { DatasetBuilder dsBldr = assertGetDatasetOne(catBuilder); List<AccessBuilder> accessBldrs = dsBldr.getAccessBuilders(); assertEquals(1, accessBldrs.size()); AccessBuilder access = accessBldrs.get(0); assertOdapAccessToFile1(access); }
private static void assertDatasetTwoHasNoAccess(CatalogBuilder catBuilder) { DatasetBuilder dsBldr = assertGetDatasetTwo(catBuilder); assertEquals(0, dsBldr.getAccessBuilders().size()); }