Skip to content
This repository was archived by the owner on Apr 7, 2025. It is now read-only.
Open
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Original file line number Diff line number Diff line change
Expand Up @@ -8,6 +8,7 @@

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

public class InputOutputSelectorOptionHandlerTest {

Expand All @@ -20,7 +21,7 @@ public class Main {
public void test1() throws CmdLineException, IOException {
Main m = new Main();
CmdLineParser cmdLineParser = new CmdLineParser(m);
File f = File.createTempFile("aaa", ".jpg");
File f = Files.createTempFile("aaa", ".jpg").toFile();
cmdLineParser.parseArgument(f.getParent() + "/*.jpg[vtiles=5,htiles=6,thduration=7]");
Assert.assertEquals("5", m.i.getOutputOptions().get("vtiles"));
Assert.assertEquals("6", m.i.getOutputOptions().get("htiles"));
Expand All @@ -33,8 +34,8 @@ public void test1() throws CmdLineException, IOException {
public void test2() throws CmdLineException, IOException {
Main m = new Main();
CmdLineParser cmdLineParser = new CmdLineParser(m);
File f = File.createTempFile("aaa", ".jpghhh");
File f = Files.createTempFile("aaa", ".jpghhh").toFile();
cmdLineParser.parseArgument(f.getParent() + "/*.jpghhh[vtiles=5,htiles=6,thduration=7]");
}

}
}