@Test public final void shouldReplaceNullFirstNameWithUserName() { stubUserNames(TEST_USER_NAME, null, "someLastName"); userModelHooks.setDefaultNames(userDD, user); verify(user).setField(UserFields.FIRST_NAME, TEST_USER_NAME); verify(user, never()).setField(UserFields.LAST_NAME, TEST_USER_NAME); }
public void setDefaultNames(final DataDefinition userDD, final Entity user) { replaceByUserNameIfBlank(user, UserFields.FIRST_NAME); replaceByUserNameIfBlank(user, UserFields.LAST_NAME); }
UserModelHooks { public void setDefaultNames(final DataDefinition userDD, final Entity user) { replaceByUserNameIfBlank(user, UserFields.FIRST_NAME); replaceByUserNameIfBlank(user, UserFields.LAST_NAME); } }
UserModelHooks { public void setDefaultNames(final DataDefinition userDD, final Entity user) { replaceByUserNameIfBlank(user, UserFields.FIRST_NAME); replaceByUserNameIfBlank(user, UserFields.LAST_NAME); }  }
UserModelHooks { public void setDefaultNames(final DataDefinition userDD, final Entity user) { replaceByUserNameIfBlank(user, UserFields.FIRST_NAME); replaceByUserNameIfBlank(user, UserFields.LAST_NAME); }  boolean preventSelfDeletion(final DataDefinition userDD, final Entity user); void setDefaultNames(final DataDefinition userDD, final Entity user); }
UserModelHooks { public void setDefaultNames(final DataDefinition userDD, final Entity user) { replaceByUserNameIfBlank(user, UserFields.FIRST_NAME); replaceByUserNameIfBlank(user, UserFields.LAST_NAME); }  boolean preventSelfDeletion(final DataDefinition userDD, final Entity user); void setDefaultNames(final DataDefinition userDD, final Entity user);  }