[REFACTOR] search mkvtoolnix path

This commit is contained in:
RatzzFatzz
2019-11-22 22:49:20 +01:00
parent 25e9fd6f3f
commit 6744597363
4 changed files with 84 additions and 45 deletions

View File

@@ -2,15 +2,20 @@ package config;
import lombok.extern.log4j.Log4j2;
import org.junit.jupiter.api.Test;
import org.mockito.Mock;
import java.io.File;
import java.io.FileNotFoundException;
import java.io.PrintWriter;
import java.io.UnsupportedEncodingException;
import java.util.Scanner;
@Log4j2
public class MKVToolPropertiesTest {
@Mock
Scanner input;
@Test
public void testPathIsValid() {
try(PrintWriter out = new PrintWriter("mkvDirectoryPath", "UTF-8")){
@@ -28,4 +33,13 @@ public class MKVToolPropertiesTest {
}
}
@Test
public void testCreateFilePath() {
// input = mock(Scanner.class);
// when(input.nextLine()).thenReturn("test\\resources\\");
// MKVToolProperties.createFilePath();
// MKVToolProperties prop = new MKVToolProperties();
// assertEquals(prop.getMkvmergePath(), "test\\resources\\mkvmerge.exe");
}
}