@Test(expected = NullPointerException.class) public void testSetNullServerAddress() { builder.setServerAddress(null); }
@Override public UserPassBuilder setServerAddress(final URI serverAddress) { if (serverAddress == null) { throw new NullPointerException("Server address cannot be null."); } this.serverAddress = serverAddress; markAsSet(Attribute.SERVER_ADDRESS); return this; }
SimpleUserPassBuilder extends UserPassBuilder { @Override public UserPassBuilder setServerAddress(final URI serverAddress) { if (serverAddress == null) { throw new NullPointerException("Server address cannot be null."); } this.serverAddress = serverAddress; markAsSet(Attribute.SERVER_ADDRESS); return this; } }
SimpleUserPassBuilder extends UserPassBuilder { @Override public UserPassBuilder setServerAddress(final URI serverAddress) { if (serverAddress == null) { throw new NullPointerException("Server address cannot be null."); } this.serverAddress = serverAddress; markAsSet(Attribute.SERVER_ADDRESS); return this; }  }
SimpleUserPassBuilder extends UserPassBuilder { @Override public UserPassBuilder setServerAddress(final URI serverAddress) { if (serverAddress == null) { throw new NullPointerException("Server address cannot be null."); } this.serverAddress = serverAddress; markAsSet(Attribute.SERVER_ADDRESS); return this; }  @Override UserPassBuilder setPassword(final String password); @Override UserPassProduct build(); @Override UserPassBuilder setServerAddress(final URI serverAddress); @Override UserPassBuilder setUsername(final String username); }
SimpleUserPassBuilder extends UserPassBuilder { @Override public UserPassBuilder setServerAddress(final URI serverAddress) { if (serverAddress == null) { throw new NullPointerException("Server address cannot be null."); } this.serverAddress = serverAddress; markAsSet(Attribute.SERVER_ADDRESS); return this; }  @Override UserPassBuilder setPassword(final String password); @Override UserPassProduct build(); @Override UserPassBuilder setServerAddress(final URI serverAddress); @Override UserPassBuilder setUsername(final String username);  }