JAL-3130 JAL-1889 reportCurrentWorkingDirectory test to report absolute path when...
authorJim Procter <jprocter@issues.jalview.org>
Tue, 16 Apr 2019 15:06:52 +0000 (16:06 +0100)
committerJim Procter <jprocter@issues.jalview.org>
Tue, 16 Apr 2019 15:06:52 +0000 (16:06 +0100)
test/jalview/bin/CommandLineOperations.java

index c340927..cb08563 100644 (file)
@@ -195,17 +195,22 @@ public class CommandLineOperations
     }
     return worker;
   }
-  @Test(alwaysRun=true)
+
+  @Test(groups = { "Functional" })
   public void reportCurrentWorkingDirectory()
   {
-      try {
-          Path currentRelativePath = Paths.get("");
-          String s = currentRelativePath.toAbsolutePath().toString();
-          System.out.println("Test CWD is "+s);
-      } catch (Exception q) {
-          q.printStackTrace();
-      }
+    try
+    {
+      Path currentRelativePath = Paths.get("");
+      String s = currentRelativePath.toAbsolutePath().toString();
+      System.out.println("Test CWD is " + s);
+      System.err.println("Test CWD is " + s);
+    } catch (Exception q)
+    {
+      q.printStackTrace();
+    }
   }
+
   @BeforeTest(alwaysRun = true)
   public void initialize()
   {