X-Git-Url: http://source.jalview.org/gitweb/?a=blobdiff_plain;f=test%2Fjalview%2Fws%2Fjws2%2FParameterUtilsTest.java;h=0802b8a52b16d4356df6e26c3bfbe4e172ad79f7;hb=f41806761ec9086c852941a7f91c890190fb522a;hp=c0aa2ee03ffe76ddbddd8614986376e2c923a547;hpb=68396d959a624822e59b6210184df8c98732107a;p=jalview.git diff --git a/test/jalview/ws/jws2/ParameterUtilsTest.java b/test/jalview/ws/jws2/ParameterUtilsTest.java index c0aa2ee..0802b8a 100644 --- a/test/jalview/ws/jws2/ParameterUtilsTest.java +++ b/test/jalview/ws/jws2/ParameterUtilsTest.java @@ -20,11 +20,14 @@ */ package jalview.ws.jws2; +import java.util.Locale; + import static org.testng.AssertJUnit.assertEquals; import static org.testng.AssertJUnit.assertFalse; import static org.testng.AssertJUnit.assertTrue; import jalview.bin.Cache; +import jalview.bin.Console; import jalview.gui.JvOptionPane; import jalview.ws.jabaws.JalviewJabawsTestUtils; import jalview.ws.jws2.jabaws2.Jws2Instance; @@ -68,9 +71,9 @@ public class ParameterUtilsTest @BeforeClass(alwaysRun = true) public static void setUpBeforeClass() throws Exception { - serviceTests.add("AAConWS".toLowerCase()); + serviceTests.add("AAConWS".toLowerCase(Locale.ROOT)); Cache.loadProperties("test/jalview/io/testProps.jvprops"); - Cache.initLogger(); + Console.initLogger(); disc = JalviewJabawsTestUtils.getJabawsDiscoverer(); } @@ -111,8 +114,8 @@ public class ParameterUtilsTest String on = o.next(); String sn = s.next(); String st = t.next(); - final String errorMsg = "Original was " + on - + " Phase 1 wrote " + sn + "\tPhase 2 wrote " + st; + final String errorMsg = "Original was " + on + " Phase 1 wrote " + + sn + "\tPhase 2 wrote " + st; assertEquals(errorMsg, sn, st); assertEquals(errorMsg, sn, on); } @@ -130,8 +133,8 @@ public class ParameterUtilsTest */ public boolean isForTesting(Jws2Instance service) { - return serviceTests.size() == 0 - || serviceTests.contains(service.serviceType.toLowerCase()); + return serviceTests.size() == 0 || serviceTests + .contains(service.serviceType.toLowerCase(Locale.ROOT)); } @Test(groups = { "Network" })