@Test public void removesIdentityOnPrivateSave() throws Exception { identity.setUploadEnabled(true); createController(); controller.setPrivate(true); saveAndWait(); verify(indexService, never()).updateIdentity(identity, null); verify(indexService).removeIdentity(identity); }
void setPrivate(boolean isPrivate) { privateToggle.setSelected(isPrivate); }
IdentityEditController extends AbstractController implements Initializable { void setPrivate(boolean isPrivate) { privateToggle.setSelected(isPrivate); } }
IdentityEditController extends AbstractController implements Initializable { void setPrivate(boolean isPrivate) { privateToggle.setSelected(isPrivate); }  }
IdentityEditController extends AbstractController implements Initializable { void setPrivate(boolean isPrivate) { privateToggle.setSelected(isPrivate); }  @Override void initialize(URL location, ResourceBundle resources); void onFinish(Runnable finishHandler); }
IdentityEditController extends AbstractController implements Initializable { void setPrivate(boolean isPrivate) { privateToggle.setSelected(isPrivate); }  @Override void initialize(URL location, ResourceBundle resources); void onFinish(Runnable finishHandler);  }