package org.gbif.checklistbank.registry;

import org.gbif.api.service.registry.DatasetService;
import org.gbif.api.service.registry.OrganizationService;

import java.util.UUID;

import com.google.common.io.Files;
import com.google.inject.Guice;
import com.google.inject.Injector;
import org.junit.Test;

import static org.junit.Assert.assertNull;

/**
 *
 */
public class FileRegistryModuleTest {

  @Test
  public void configure() throws Exception {
    FileRegistryModule mod = new FileRegistryModule(Files.createTempDir());
    Injector inj = Guice.createInjector(mod);

    DatasetService ds = inj.getInstance(DatasetService.class);
    assertNull(ds.get(UUID.randomUUID()));

    OrganizationService os = inj.getInstance(OrganizationService.class);
    assertNull(os.get(UUID.randomUUID()));
  }

}
@@ -150,67 +150,70 @@
 ce;%0A
-%0A
 import 
-java.util.UUID;%0A%0Aimport com.google.common.io.Files;
+org.gbif.utils.file.FileUtils;%0A%0Aimport java.util.UUID;%0A
 %0Aimp
@@ -447,16 +447,17 @@
 ption %7B%0A
+%0A
     File
@@ -508,24 +508,54 @@
 File
-s.createTempDir(
+Utils.getClasspathFile(%22registry-datasets.txt%22
 ));%0A

Fix file registry module test