Skip to content

Commit

Permalink
(Fix) #10 checkstyle should pass now
Browse files Browse the repository at this point in the history
  • Loading branch information
Michael Morales authored and Michael Morales committed Mar 6, 2023
1 parent 56ad2f2 commit c4dc4e3
Showing 1 changed file with 6 additions and 4 deletions.
10 changes: 6 additions & 4 deletions src/test/java/org/jabref/logic/net/ProxyTest.java
Original file line number Diff line number Diff line change
Expand Up @@ -2,30 +2,32 @@

import org.junit.jupiter.api.Test;

import static org.junit.jupiter.api.Assertions.*;
import static org.junit.jupiter.api.Assertions.assertEquals;

public class ProxyTest {

/**
* The test checks if ProxyPreference class is still able to store password and use it from memory,
* even though it's no longer stored in register.
*/
@Test
public void testProxyPreferencesStorePassword() {
//mock data
// mock data
Boolean useProxy = true;
String hostname = "testName";
String port = "8080";
Boolean useAuthentication = true;
String username = "testUserName";
String password = "testPassword";
//Creates proxy preference
// Creates proxy preference
ProxyPreferences proxyPref = new ProxyPreferences(
useProxy,
hostname,
port,
useAuthentication,
username,
password);
//Check if mock data is stored in object memory and can be extracted
// Check if mock data is stored in object memory and can be extracted
assertEquals(proxyPref.shouldUseProxy(), true);
assertEquals(proxyPref.getHostname(), hostname);
assertEquals(proxyPref.getPort(), port);
Expand Down

0 comments on commit c4dc4e3

Please sign in to comment.