Skip to content

Commit

Permalink
(Fix) #4 Change to if statements
Browse files Browse the repository at this point in the history
  • Loading branch information
Michael Morales committed Mar 2, 2023
1 parent bd1446b commit 1cb1363
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions src/test/java/org/jabref/logic/net/ProxyTest.java
Original file line number Diff line number Diff line change
Expand Up @@ -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(), "");
}
Expand Down

0 comments on commit 1cb1363

Please sign in to comment.