import java.io.File;
import java.io.IOException;
import java.io.InputStreamReader;
+import java.nio.file.Path;
+import java.nio.file.Paths;
import java.util.ArrayList;
import org.testng.Assert;
}
return worker;
}
-
+ @BeforeTest(alwaysRun=true)
+ {
+ try {
+ Path currentRelativePath = Paths.get("");
+ String s = currentRelativePath.toAbsolutePath().toString();
+ System.out.println("Test CWD is "+s);
+ } catch (Exception q) {
+ q.printStackTrace();
+ }
+ }
@BeforeTest(alwaysRun = true)
public void initialize()
{
file.deleteOnExit();
Worker worker = getJalviewDesktopRunner(withAWT, cmd, timeout);
assertNotNull(worker, "worker is null");
- String msg = "Didn't create an output" + type + " file at '"
- + file.getAbsolutePath() + "'.[" + harg + "]";
+ String msg = "Didn't create an output" + type + " file.[" + harg + "]";
assertTrue(file.exists(), msg);
FileAssert.assertFile(file, msg);
FileAssert.assertMinLength(file, expectedMinFileSize);