Example #1
0
  protected CkanDataset createRandomDataset(int numResources) {
    CkanDataset ckanDataset =
        new CkanDataset("test-dataset-jackan-" + UUID.randomUUID().getMostSignificantBits());
    List<CkanResource> resources = new ArrayList();
    for (int i = 0; i < numResources; i++) {
      resources.add(
          new CkanResource(JACKAN_URL + "test-resources/#" + UUID.randomUUID().toString(), null));
    }
    ckanDataset.setResources(resources);

    return client.createDataset(ckanDataset);
  }
Example #2
0
 protected CkanDataset createRandomDataset() {
   CkanDataset ckanDataset =
       new CkanDataset("test-dataset-jackan-" + UUID.randomUUID().getMostSignificantBits());
   return client.createDataset(ckanDataset);
 }