Skip to content

Commit

Permalink
Implemented createDatabase and added two matching unit tests
Browse files Browse the repository at this point in the history
  • Loading branch information
egonw authored and egonw committed Jul 15, 2009
1 parent e55127b commit 88f7427
Showing 1 changed file with 14 additions and 0 deletions.
Expand Up @@ -47,6 +47,20 @@ public IBioclipseManager getManager() {
return new StructureRDFManager();
}

@Test public void testCreateAndDeleteDatabase() {
manager.createDatabase("testCreateDatabase");
manager.deleteDatabase("testCreateDatabase");
// test if delete worked properly
manager.createDatabase("testCreateDatabase");
manager.deleteDatabase("testCreateDatabase");
}

@Test(expected=IllegalArgumentException.class)
public void testCreateDatabaseDuplicate() {
manager.createDatabase("testCreateDatabaseDuplicate");
manager.createDatabase("testCreateDatabaseDuplicate");
}

@Test public void testEditDBMolecule() {
Assert.fail("Not implemented yet.");
}
Expand Down

0 comments on commit 88f7427

Please sign in to comment.