@Test(expected = IllegalArgumentException.class) public void testBuilderShouldThrowIllegalArgumentExcepitonWhenPasswordNotProvided() { ProxyAuthentication.builder() .withUserName("user") .withPassword("") .build(); }
public static Builder builder() { return new Builder(); }
ProxyAuthentication implements Serializable { public static Builder builder() { return new Builder(); } }
ProxyAuthentication implements Serializable { public static Builder builder() { return new Builder(); } private  ProxyAuthentication(String userName, String password); }
ProxyAuthentication implements Serializable { public static Builder builder() { return new Builder(); } private  ProxyAuthentication(String userName, String password); static Builder builder(); String getUserName(); String getPassword(); }
ProxyAuthentication implements Serializable { public static Builder builder() { return new Builder(); } private  ProxyAuthentication(String userName, String password); static Builder builder(); String getUserName(); String getPassword();  }