JAL-1054 JAL-1551 formatting and javadoc
authorJim Procter <jprocter@dundee.ac.uk>
Wed, 5 Jun 2024 14:19:00 +0000 (15:19 +0100)
committerJim Procter <jprocter@dundee.ac.uk>
Wed, 5 Jun 2024 14:19:00 +0000 (15:19 +0100)
src/jalview/util/HttpUtils.java
test/jalview/util/HttpUtilsTest.java

index 44880a0..d93a476 100644 (file)
@@ -34,6 +34,15 @@ public class HttpUtils
 {
   public final static String JALVIEWSCHEMEPREFIX = "jalview";
 
+  /**
+   * check if this is a real URI we can handle
+   * 
+   * TODO: NEEDS TESTS
+   * 
+   * @param s
+   * @return true if given string resolves to a HTTP(S) URL, Jalview Scheme URI,
+   *         or some other URI that this system supports (including file:/home")
+   */
   public static boolean isPlausibleUri(String s)
   {
     if (s == null)
index d8b757d..98a94cb 100644 (file)
@@ -12,6 +12,12 @@ import org.testng.Assert;
 import org.testng.annotations.DataProvider;
 import org.testng.annotations.Test;
 
+/**
+ * tests covering retrieval of data from URLs
+ * 
+ * TODO: implement mocks so we don't need external network sources
+ */
+
 public class HttpUtilsTest
 {
   @Test(groups = { "Network" }, dataProvider = "urlTargetsAndDestinations")