Home | History | Annotate | Download | only in guice
      1 package test.guice;
      2 
      3 import com.google.inject.Inject;
      4 
      5 import org.testng.annotations.Guice;
      6 import org.testng.annotations.Test;
      7 
      8 @Guice(moduleFactory = ModuleFactory.class)
      9 public class GuiceModuleFactoryTest {
     10 
     11   @Inject
     12   ISingleton m_singleton;
     13 
     14   @Test
     15   public void singletonShouldWork() {
     16     m_singleton.doSomething();
     17   }
     18 }
     19