ExtractionDiffCommand extends Command { String getDiffExtractionNameOrDefault() { if (extractionDiffName == null) { extractionDiffName = currentExtractionName + "_" + baseExtractionName; } return extractionDiffName; }  @Override void execute();  }
@Test public void getDiffExtractionNameOrDefault() { ExtractionDiffCommand extractionDiffCommand = new ExtractionDiffCommand(); extractionDiffCommand.currentExtractionName = "current"; extractionDiffCommand.baseExtractionName = "base"; String diffExtractionNameOrDefault = extractionDiffCommand.getDiffExtractionNameOrDefault(); Assert.assertEquals("current_base", diffExtractionNameOrDefault); }
@Test public void getDiffExtractionNameOrDefaultWithName() { ExtractionDiffCommand extractionDiffCommand = new ExtractionDiffCommand(); extractionDiffCommand.extractionDiffName = "edf"; String diffExtractionNameOrDefault = extractionDiffCommand.getDiffExtractionNameOrDefault(); Assert.assertEquals("edf", diffExtractionNameOrDefault); }