@Test void isAskAgain() { EntityReference from = new EntityReference("from", EntityType.DOCUMENT); EntityReference to = new EntityReference("to", EntityType.DOCUMENT); OverwriteQuestion overwriteQuestion = new OverwriteQuestion(from, to); assertTrue(overwriteQuestion.isAskAgain()); overwriteQuestion.setAskAgain(false); assertFalse(overwriteQuestion.isAskAgain()); overwriteQuestion.setAskAgain(true); assertTrue(overwriteQuestion.isAskAgain()); }
public boolean isAskAgain() { return askAgain; }
OverwriteQuestion { public boolean isAskAgain() { return askAgain; } }
OverwriteQuestion { public boolean isAskAgain() { return askAgain; } OverwriteQuestion(EntityReference source, EntityReference destination); }
OverwriteQuestion { public boolean isAskAgain() { return askAgain; } OverwriteQuestion(EntityReference source, EntityReference destination); EntityReference getSource(); EntityReference getDestination(); boolean isOverwrite(); void setOverwrite(boolean overwrite); boolean isAskAgain(); void setAskAgain(boolean askAgain); }
OverwriteQuestion { public boolean isAskAgain() { return askAgain; } OverwriteQuestion(EntityReference source, EntityReference destination); EntityReference getSource(); EntityReference getDestination(); boolean isOverwrite(); void setOverwrite(boolean overwrite); boolean isAskAgain(); void setAskAgain(boolean askAgain);  }