We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 9317b13 commit 81b4518Copy full SHA for 81b4518
1 file changed
kinde-j2ee/src/test/java/com/kinde/servlet/KindeSingletonTest.java
@@ -33,16 +33,16 @@ public static Test suite()
33
*/
34
public void testApp()
35
{
36
- // Initialize Guice with test modules
37
KindeEnvironmentSingleton.init(KindeEnvironmentSingleton.State.TEST);
38
KindeGuiceSingleton.init(
39
new KindeJ2eeGuiceTestModule(),
40
new KindeTokenGuiceTestModule());
41
-
42
- KindeSingleton singleton = KindeSingleton.getInstance();
43
- assertTrue( true );
44
45
- KindeGuiceSingleton.fin();
46
- KindeEnvironmentSingleton.fin();
+ try {
+ KindeSingleton singleton = KindeSingleton.getInstance();
+ assertTrue( true );
+ } finally {
+ KindeGuiceSingleton.fin();
+ KindeEnvironmentSingleton.fin();
+ }
47
}
48
0 commit comments