JAL-2316 Unit test for IdentifiersUrlProvider
[jalview.git] / test / jalview / urls / CustomUrlProviderTest.java
index b536566..62d7806 100644 (file)
@@ -118,6 +118,8 @@ public class CustomUrlProviderTest
     assertTrue(displayLinks.containsAll(customProv2.getLinksForDisplay()));
 
     // writing url links as a string works
+    // because UrlProvider does not guarantee order of links, we can't just
+    // compare the output of writeUrlsAsString to a string, hence the hoops here
     String result = customProv.writeUrlsAsString();
     UrlProviderI up = new CustomUrlProvider(result);
     assertTrue(displayLinks.containsAll(up.getLinksForDisplay()));