Skip to content

Commit

Permalink
should have a way to test for the usage cmd getting executed
Browse files Browse the repository at this point in the history
  • Loading branch information
jhpoelen committed Sep 12, 2018
1 parent 2f3068e commit 72cc260
Showing 1 changed file with 2 additions and 2 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -19,12 +19,12 @@ public void check() throws Throwable {
CmdLine.run(new String[]{"check", "--cache-dir=target/tmp-datasets", "globalbioticinteractions/template-dataset"});
}

@Test(expected = MissingCommandException.class)
@Test
public void invalidCommand() throws Throwable {
CmdLine.run(new String[]{"bla", "globalbioticinteractions/template-dataset"});
}

@Test(expected = MissingCommandException.class)
@Test
public void noCommand() throws Throwable {
CmdLine.run(new String[]{});
}
Expand Down

0 comments on commit 72cc260

Please sign in to comment.