@Test public void unknownContactGetsAssignedToBothIdentities() throws Exception { contact.setStatus(Contact.ContactStatus.UNKNOWN); initController(); controller.getButtonForIdentity(unassignedIdentity).fire(); assertThat(getAssignedIdentities(), containsInAnyOrder(unassignedIdentity, assignedIdentity)); }
ToggleButton getButtonForIdentity(Identity identity) { return buttonByIdentity.get(identity); }
AssignContactController extends AbstractController implements Initializable { ToggleButton getButtonForIdentity(Identity identity) { return buttonByIdentity.get(identity); } }
AssignContactController extends AbstractController implements Initializable { ToggleButton getButtonForIdentity(Identity identity) { return buttonByIdentity.get(identity); }  }
AssignContactController extends AbstractController implements Initializable { ToggleButton getButtonForIdentity(Identity identity) { return buttonByIdentity.get(identity); }  @Override void initialize(URL location, ResourceBundle resources); }
AssignContactController extends AbstractController implements Initializable { ToggleButton getButtonForIdentity(Identity identity) { return buttonByIdentity.get(identity); }  @Override void initialize(URL location, ResourceBundle resources); @FXML
    public ImageView keyIcon; @FXML
    public Label keyLabel; }