コード例 #1
0
 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;
 }
コード例 #2
0
 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);
 }
コード例 #3
0
 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);
 }
コード例 #4
0
 private static void assertDatasetTwoHasNoAccess(CatalogBuilder catBuilder) {
   DatasetBuilder dsBldr = assertGetDatasetTwo(catBuilder);
   assertEquals(0, dsBldr.getAccessBuilders().size());
 }