{
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)
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")