package org.netmelody.cieye.server.configuration.test;

import java.io.File;

import org.junit.Rule;
import org.junit.Test;
import org.junit.rules.TemporaryFolder;
import org.netmelody.cieye.server.configuration.SettingsInitialiser;

public final class SettingsInitialiserTest {
    @Rule
    public TemporaryFolder testFolder = new TemporaryFolder();
    

    @Test public void
    createsConfigurationFiles() {
        final File folder = testFolder.newFolder("test");
        new SettingsInitialiser(folder);
    }
}

@@ -60,20 +60,291 @@
 ort 
-java.io.File
+static org.hamcrest.MatcherAssert.assertThat;%0Aimport static org.hamcrest.Matchers.arrayContaining;%0Aimport static org.hamcrest.Matchers.is;%0Aimport static org.netmelody.menodora.wrapped.org.apache.commons.io.filefilter.TrueFileFilter.TRUE;%0A%0Aimport java.io.File;%0Aimport java.util.Arrays
 ;%0A%0Ai
@@ -781,12 +781,955 @@
 r);%0A
+        %0A        final String%5B%5D generatedFiles = folder.list(TRUE);%0A        Arrays.sort(generatedFiles);%0A        assertThat(generatedFiles, is(arrayContaining(%22logging.properties%22,%0A                                                      %22logs%22,%0A                                                      %22pictures%22,%0A                                                      %22pictures.txt%22,%0A                                                      %22views.txt%22)));%0A    %7D%0A    %0A    @Test public void%0A    generatesDemoPictureFiles() %7B%0A        final File folder = testFolder.newFolder(%22test%22);%0A        new SettingsInitialiser(folder);%0A        %0A        final String%5B%5D generatedFiles = new File(folder, %22pictures%22).list(TRUE);%0A        Arrays.sort(generatedFiles);%0A        assertThat(generatedFiles, is(arrayContaining(%22doh.png%22,%0A                                                      %22stupid.png%22,%0A                                                      %22vlad.png%22)));%0A
     %7D%0A%7D
-%0A

complete unit test for the settings initialiser