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 6be0fff commit fdae868
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/test/java/io/github/mrsaraira/constants/DemoTest.java
Original file line number Diff line number Diff line change
Expand Up @@ -51,7 +51,7 @@ protected List<RelationConstant<String, Integer>> initialConstants() {

/*
We can get container instance anytime using Constants.getInstance(containerClass).
Unfortunately, Constants.getInstance(clazz) does not support anonymous classes, but it's bad because you cannot
Unfortunately, Constants.getInstance(clazz) does not support anonymous classes, but it's not bad because you cannot
use the anonymous class anywhere beside this method, also you have container instance already ☺ -> (var anonymousContainer)
*/
assertThrows(IllegalStateException.class, () -> Constants.getInstance(anonymousContainer.getClass()));
Expand Down

0 comments on commit fdae868

Please sign in to comment.