Skip to content

Commit

Permalink
Update DemoTest.java
Browse files Browse the repository at this point in the history
  • Loading branch information
mrsaraira committed Oct 16, 2023
1 parent eec51e0 commit 87f48a4
Showing 1 changed file with 3 additions and 0 deletions.
3 changes: 3 additions & 0 deletions src/test/java/io/github/mrsaraira/constants/DemoTest.java
Original file line number Diff line number Diff line change
Expand Up @@ -135,6 +135,9 @@ use the anonymous class anywhere beside this method, also you have container ins
assertThrows(IllegalStateException.class, () -> Constants.getInstance(WrongDemoRelationContainerWithDuplicatedKeys.class));
// Duplicated keys in constant container works fine
assertEquals(2, Constants.getInstance(DemoConstantContainerWithDuplicatedKeys.class).getKeys().size());

// These are very simple examples of what can be done with Constants
// Thanks for your attention :)
}


Expand Down

0 comments on commit 87f48a4

Please sign in to comment.