operation.execute(null, null);
Assert.assertTrue("Synonym should be deleted from taxon", taxon.getSynonyms().size() == 0);
- Assert.assertTrue("Taxon should have misapplications", taxon.getMisappliedNames().size() > 0);
- Assert.assertEquals("The name of synonym and misapplication should be equal", synonym.getName(), taxon.getMisappliedNames().toArray(new Taxon[0])[0].getName());
+ Assert.assertTrue("Taxon should have misapplications", taxon.getMisappliedNames(false).size() > 0);
+ Assert.assertEquals("The name of synonym and misapplication should be equal", synonym.getName(), taxon.getMisappliedNames(false).toArray(new Taxon[0])[0].getName());
}
/**
operation.redo(null, null);
Assert.assertTrue("Synonym should be deleted from taxon", taxon.getSynonyms().size() == 0);
- Assert.assertTrue("Taxon should have misapplications", taxon.getMisappliedNames().size() > 0);
- Assert.assertEquals("The name of synonym and misapplication should be equal", synonym.getName(), taxon.getMisappliedNames().toArray(new Taxon[0])[0].getName());
+ Assert.assertTrue("Taxon should have misapplications", taxon.getMisappliedNames(false).size() > 0);
+ Assert.assertEquals("The name of synonym and misapplication should be equal", synonym.getName(), taxon.getMisappliedNames(false).toArray(new Taxon[0])[0].getName());
}
/**
public void testExecuteIProgressMonitorIAdaptable() throws ExecutionException {
operation.execute(monitor, info);
- Assert.assertTrue(taxon.getMisappliedNames().size() == 0);
+ Assert.assertTrue(taxon.getMisappliedNames(false).size() == 0);
}
/**
public void testUndoIProgressMonitorIAdaptable() throws ExecutionException {
operation.undo(monitor, info);
- Assert.assertEquals(misapplication, taxon.getMisappliedNames().toArray(new Taxon[0])[0]);
+ Assert.assertEquals(misapplication, taxon.getMisappliedNames(false).toArray(new Taxon[0])[0]);
}
/**
public void testRedoIProgressMonitorIAdaptable() throws ExecutionException {
operation.redo(monitor, info);
- Assert.assertTrue(taxon.getMisappliedNames().size() == 0);
+ Assert.assertTrue(taxon.getMisappliedNames(false).size() == 0);
}
/**
Assert.assertTrue(taxon.getSynonymNames().contains(oldTaxonName));
// New taxon has misapplication?
- Assert.assertTrue(taxon.getMisappliedNames().contains(misapplication));
+ Assert.assertTrue(taxon.getMisappliedNames(false).contains(misapplication));
// // New taxon has 1 concept relation?
// int conceptRelCount = 0;