From 87f48a46d4581440277aac37734286962e9684fa Mon Sep 17 00:00:00 2001 From: Takhsin Saraira Date: Mon, 16 Oct 2023 12:00:49 +0300 Subject: [PATCH] Update DemoTest.java --- src/test/java/io/github/mrsaraira/constants/DemoTest.java | 3 +++ 1 file changed, 3 insertions(+) diff --git a/src/test/java/io/github/mrsaraira/constants/DemoTest.java b/src/test/java/io/github/mrsaraira/constants/DemoTest.java index bbd9575..1bb9f76 100644 --- a/src/test/java/io/github/mrsaraira/constants/DemoTest.java +++ b/src/test/java/io/github/mrsaraira/constants/DemoTest.java @@ -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 :) }