Skip to content

Commit

Permalink
Add test cannotInitIfInitialized to test Configuration behavior.
Browse files Browse the repository at this point in the history
  • Loading branch information
HuskyMoonMoon committed Dec 9, 2017
1 parent cf4a897 commit a22fd4b
Showing 1 changed file with 6 additions and 0 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -24,4 +24,10 @@ public void canGetConfiguration() {
assertEquals("eTaxApp", configuration.getProperty("db.username"));
}

@Test
public void cannotInitIfInitialized() {
exception.expect(RuntimeException.class);
Configuration.init("junitconfig.properties");
}

}

0 comments on commit a22fd4b

Please sign in to comment.