diff --git a/src/test/java/org/jabref/logic/net/ProxyTest.java b/src/test/java/org/jabref/logic/net/ProxyTest.java index d7e51df526c..cfb8105875b 100644 --- a/src/test/java/org/jabref/logic/net/ProxyTest.java +++ b/src/test/java/org/jabref/logic/net/ProxyTest.java @@ -37,11 +37,11 @@ public void testProxyCredentialsMotStoredInRegisterHttp() throws IOException, Ba //Globals.prefs = preferences; PreferencesMigrations.runMigrations(preferences); ProxyPreferences prox = preferences.getProxyPreferences(); - if(prox.shouldUseAuthentication() && prox.shouldUseProxy()){ + if(prox.shouldUseProxy()){ assertNotEquals(prox.getHostname(),""); assertNotEquals(prox.getPort(),""); } - if(prox.shouldUseProxy()){ + if(prox.shouldUseAuthentication()){ assertNotEquals(prox.getUsername(),""); assertEquals(prox.getPassword(), ""); }