@@ -0,0 +1,1705 @@
+/**%0A * Copyright (C) 2015 digitalfondue (info@digitalfondue.ch)%0A *%0A * Licensed under the Apache License, Version 2.0 (the %22License%22);%0A * you may not use this file except in compliance with the License.%0A * You may obtain a copy of the License at%0A *%0A *         http://www.apache.org/licenses/LICENSE-2.0%0A *%0A * Unless required by applicable law or agreed to in writing, software%0A * distributed under the License is distributed on an %22AS IS%22 BASIS,%0A * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.%0A * See the License for the specific language governing permissions and%0A * limitations under the License.%0A */%0Apackage ch.digitalfondue.stampo;%0A%0Aimport java.io.IOException;%0Aimport java.nio.file.Files;%0Aimport java.nio.file.Path;%0A%0Aimport org.junit.Assert;%0Aimport org.junit.Test;%0A%0Aimport ch.digitalfondue.stampo.TestUtils.InputOutputDirs;%0A%0Apublic class StampoStaticDirectoryTest %7B%0A%0A  @Test%0A  public void testCopyStaticDirectory() throws IOException %7B%0A    try (InputOutputDirs iod = TestUtils.get()) %7B%0A      Path staticDir = iod.inputDir.resolve(%22static%22);%0A      Files.createDirectories(staticDir);%0A%0A      Files.createFile(staticDir.resolve(%22test.txt%22));%0A      Files.createDirectories(staticDir.resolve(%22css%22));%0A      Files.createFile(staticDir.resolve(%22css/test.css%22));%0A%0A      %0A      Assert.assertFalse(Files.exists(iod.outputDir.resolve(%22test.txt%22)));%0A      Assert.assertFalse(Files.exists(iod.outputDir.resolve(%22css/test.css%22)));%0A      %0A      Stampo stampo = new Stampo(iod.inputDir, iod.outputDir);%0A      stampo.build();%0A%0A      Assert.assertTrue(Files.exists(iod.outputDir.resolve(%22test.txt%22)));%0A      Assert.assertTrue(Files.exists(iod.outputDir.resolve(%22css/test.css%22)));%0A    %7D%0A  %7D%0A%7D%0A

add static dir test