NIFI-2497 Fixing testOutputDirectory to be system agnostic

This closes #795
This commit is contained in:
Joseph Percivall 2016-08-05 11:06:51 -05:00 committed by Oleg Zhurakousky
parent 8d34223265
commit 8d380dcdac
1 changed files with 3 additions and 2 deletions

View File

@ -28,6 +28,7 @@ import org.mockito.internal.stubbing.defaultanswers.ForwardsInvocations;
import java.io.ByteArrayInputStream;
import java.io.ByteArrayOutputStream;
import java.io.File;
import java.io.IOException;
import java.security.SecureRandom;
import java.util.List;
@ -129,9 +130,9 @@ public class TlsToolkitStandaloneCommandLineTest {
@Test
public void testOutputDirectory() throws CommandLineParseException {
String testPath = "/fake/path/doesnt/exist";
String testPath = File.separator + "fake" + File.separator + "path" + File.separator + "doesnt" + File.separator + "exist";
tlsToolkitStandaloneCommandLine.parse("-o", testPath);
assertEquals(testPath, tlsToolkitStandaloneCommandLine.getBaseDir().getAbsolutePath());
assertEquals(testPath, tlsToolkitStandaloneCommandLine.getBaseDir().getPath());
}
@Test