@Test(expected = IllegalStateException.class) public void testBuildIncomplete() { builder.build(); }
@Override public UserPassProduct build() { for (final Attribute a : Attribute.values()) { if (!isSet(a)) { throw new IllegalStateException("Unset attribute: " + a.toString()); } } return new UserPassProductImpl(username, password, serverAddress); }
SimpleUserPassBuilder extends UserPassBuilder { @Override public UserPassProduct build() { for (final Attribute a : Attribute.values()) { if (!isSet(a)) { throw new IllegalStateException("Unset attribute: " + a.toString()); } } return new UserPassProductImpl(username, password, serverAddress); } }
SimpleUserPassBuilder extends UserPassBuilder { @Override public UserPassProduct build() { for (final Attribute a : Attribute.values()) { if (!isSet(a)) { throw new IllegalStateException("Unset attribute: " + a.toString()); } } return new UserPassProductImpl(username, password, serverAddress); }  }
SimpleUserPassBuilder extends UserPassBuilder { @Override public UserPassProduct build() { for (final Attribute a : Attribute.values()) { if (!isSet(a)) { throw new IllegalStateException("Unset attribute: " + a.toString()); } } return new UserPassProductImpl(username, password, serverAddress); }  @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 UserPassProduct build() { for (final Attribute a : Attribute.values()) { if (!isSet(a)) { throw new IllegalStateException("Unset attribute: " + a.toString()); } } return new UserPassProductImpl(username, password, serverAddress); }  @Override UserPassBuilder setPassword(final String password); @Override UserPassProduct build(); @Override UserPassBuilder setServerAddress(final URI serverAddress); @Override UserPassBuilder setUsername(final String username);  }