File tree Expand file tree Collapse file tree
kinde-j2ee/src/test/java/com/kinde/servlet
kinde-management/src/test/java/com/kinde Expand file tree Collapse file tree Original file line number Diff line number Diff line change 33import com .kinde .AppTest ;
44import com .kinde .client .KindeJ2eeGuiceTestModule ;
55import com .kinde .token .KindeTokenGuiceTestModule ;
6+ import com .kinde .guice .KindeEnvironmentSingleton ;
67import com .kinde .guice .KindeGuiceSingleton ;
78import junit .framework .Test ;
89import junit .framework .TestCase ;
@@ -33,11 +34,15 @@ public static Test suite()
3334 public void testApp ()
3435 {
3536 // Initialize Guice with test modules
37+ KindeEnvironmentSingleton .init (KindeEnvironmentSingleton .State .TEST );
3638 KindeGuiceSingleton .init (
3739 new KindeJ2eeGuiceTestModule (),
3840 new KindeTokenGuiceTestModule ());
3941
4042 KindeSingleton singleton = KindeSingleton .getInstance ();
4143 assertTrue ( true );
44+
45+ KindeGuiceSingleton .fin ();
46+ KindeEnvironmentSingleton .fin ();
4247 }
4348}
Original file line number Diff line number Diff line change 22
33import com .kinde .client .KindeManagementGuiceTestModule ;
44import com .kinde .token .KindeTokenGuiceTestModule ;
5+ import com .kinde .guice .KindeEnvironmentSingleton ;
56import com .kinde .guice .KindeGuiceSingleton ;
67import junit .framework .Test ;
78import junit .framework .TestCase ;
@@ -36,6 +37,7 @@ public static Test suite()
3637 */
3738 public void testApp () {
3839 // Initialize Guice with test modules
40+ KindeEnvironmentSingleton .init (KindeEnvironmentSingleton .State .TEST );
3941 KindeGuiceSingleton .init (
4042 new KindeManagementGuiceTestModule (),
4143 new KindeTokenGuiceTestModule ());
@@ -47,5 +49,6 @@ public void testApp() {
4749
4850 // Clean up
4951 KindeGuiceSingleton .fin ();
52+ KindeEnvironmentSingleton .fin ();
5053 }
5154}
You can’t perform that action at this time.
0 commit comments