Skip to content

Commit

Permalink
fixed unit test
Browse files Browse the repository at this point in the history
  • Loading branch information
sterlp committed Apr 3, 2021
1 parent a2c8e1f commit 4142b22
Showing 1 changed file with 2 additions and 4 deletions.
6 changes: 2 additions & 4 deletions src/test/java/org/sterl/svg2png/config/TestFileOutput.java
Original file line number Diff line number Diff line change
@@ -1,15 +1,13 @@
package org.sterl.svg2png.config;
import static org.sterl.svg2png.AssertUtil.assertEndsWith;
import static org.junit.Assert.assertEquals;
import static org.junit.Assert.assertTrue;
import static org.sterl.svg2png.AssertUtil.assertEndsWith;

import java.io.File;
import java.nio.file.Files;
import java.nio.file.Path;

import org.junit.Test;
import org.sterl.svg2png.config.FileOutput;
import org.sterl.svg2png.config.OutputConfig;
import org.sterl.svg2png.util.FileUtil;

public class TestFileOutput {
Expand All @@ -23,7 +21,7 @@ public void testNaming() throws Exception {
Path tmpDirBaaaar = Files.createTempDirectory("Baaaar");
tmpDirBaaaar.toFile().deleteOnExit();

OutputConfig cfg = OutputConfig.fromPath(getClass().getResource("/sample.svg").toString());
OutputConfig cfg = OutputConfig.fromPath(getClass().getResource("/svgfolder/sample.svg").toString());
assertEquals(1, cfg.getFiles().size());

FileOutput outFile = cfg.getFiles().get(0);
Expand Down

0 comments on commit 4142b22

Please sign in to comment.