From ca35ab711ba4b6c3d45bf8396f734c5705ab2c10 Mon Sep 17 00:00:00 2001 From: Sebastien Besson Date: Mon, 7 Aug 2017 10:04:18 +0100 Subject: [PATCH] Adjust tests following new website deployment The LocationTest of ome-common-java were using some hardcoded URLs which seem to have been hanging following the deployment of the new website. This PR updates the tests for URL locations to use the root of the new website in HTTP and HTTPS mode as well as non-existing subdirectory. --- src/test/java/loci/common/utests/LocationTest.java | 10 +++++----- 1 file changed, 5 insertions(+), 5 deletions(-) diff --git a/src/test/java/loci/common/utests/LocationTest.java b/src/test/java/loci/common/utests/LocationTest.java index c835d804..ddd47e78 100644 --- a/src/test/java/loci/common/utests/LocationTest.java +++ b/src/test/java/loci/common/utests/LocationTest.java @@ -89,14 +89,14 @@ public void setup() throws IOException { new Location(validFile.getAbsolutePath()), new Location(invalidPath), new Location(tmpDirectory), - new Location("http://www.openmicroscopy.org/site/foo/products/bio-formats"), - new Location("https://www.openmicroscopy.org/site/products/images"), - new Location("https://www.openmicroscopy.org/site/products/images/foo"), + new Location("http://www.openmicroscopy.org/"), + new Location("https://www.openmicroscopy.org/"), + new Location("https://www.openmicroscopy.org/nonexisting"), new Location(hiddenFile) }; exists = new boolean[] { - true, false, true, false, true, false, true + true, false, true, true, true, false, true }; isDirectory = new boolean[] { @@ -108,7 +108,7 @@ public void setup() throws IOException { }; mode = new String[] { - "rw", "", "rw", "", "r", "","rw" + "rw", "", "rw", "r", "r", "","rw" }; isRemote = new boolean[] {