1 package test.guice;
2 
3 import org.testng.TestNG;
4 import org.testng.annotations.Test;
5 
6 import test.SimpleBaseTest;
7 import junit.framework.Assert;
8 
9 public class GuiceTest extends SimpleBaseTest {
10 
11   @Test
guiceTest()12   public void guiceTest() {
13     TestNG tng = create(new Class[] { Guice1Test.class, Guice2Test.class});
14     Guice1Test.m_object = null;
15     Guice2Test.m_object = null;
16     tng.run();
17 
18     Assert.assertNotNull(Guice1Test.m_object);
19     Assert.assertNotNull(Guice2Test.m_object);
20     Assert.assertEquals(Guice1Test.m_object, Guice2Test.m_object);
21   }
22 
23   @Test
guiceWithNoModules()24   public void guiceWithNoModules() {
25     TestNG tng = create(new Class[] { GuiceNoModuleTest.class });
26     tng.run();
27   }
28 }
29