@@ -0,0 +1,1777 @@
+package nl.pdok.datamanagement.repository.impl;%0A%0Aimport java.io.File;%0Aimport java.io.FileInputStream;%0Aimport java.io.IOException;%0A%0Aimport nl.pdok.datamanagement.repository.IBaseCatalog;%0A%0Aimport org.junit.Before;%0Aimport org.junit.Test;%0Aimport org.junit.rules.TemporaryFolder;%0A%0Aimport static org.junit.Assert.*;%0A%0A/**%0A *%0A * @author Raymond Kroon %3Craymond@k3n.nl%3E%0A */%0Apublic class BaseFileSystemCatalogTest %7B%0A%0A    private BaseFileSystemCatalog catalogus;%0A%0A    public TemporaryFolder testFolder = new TemporaryFolder();%0A    public File datasetsFolder;%0A%0A    @Before%0A    public void setup() throws IOException %7B%0A        testFolder.create();%0A        catalogus = new BaseFileSystemCatalog(testFolder.getRoot());%0A        datasetsFolder = testFolder.newFolder(%22datasets%22);%0A    %7D%0A%0A%0A    @Test%0A    public void testDdlResource() throws IOException %7B%0A%0A        final String DATASET_NAME = %22dataset_1%22;%0A        final String RESOURCE_DDL = %22dataset_1.sql%22;%0A%0A        File datasetFolderFile = new File(datasetsFolder, DATASET_NAME);%0A        File ddlResourceFolder = new File(datasetFolderFile, IBaseCatalog.DDL_RESOURCE_FOLDER);%0A        ddlResourceFolder.mkdirs();%0A        File ddlResourceFile = new File(ddlResourceFolder, RESOURCE_DDL);%0A        ddlResourceFile.createNewFile();%0A%0A        try (FileInputStream ddlResource = (FileInputStream) catalogus.getDdlResource(DATASET_NAME)) %7B%0A            assertNotNull(ddlResource);%0A        %7D%0A    %7D%0A%0A    @Test%0A    public void testDatasetExists() throws IOException %7B%0A        final String DATASET_NAME = %22dataset_dummy%22;%0A        File datasetFolderFile = new File(datasetsFolder, DATASET_NAME);%0A        datasetFolderFile.mkdirs();%0A%0A        assertTrue(catalogus.datasetExists(DATASET_NAME));%0A        assertFalse(catalogus.datasetExists(%22no_dataset%22));%0A    %7D%0A%7D%0A

Add test to basefilesystemcatalog