예제 #1
0
  public void testCreateInjector_SingleModule() {
    final boolean[] configureCalled = new boolean[1];

    Module module =
        new Module() {
          public void configure(Binder binder) {
            configureCalled[0] = true;
          }
        };

    Injector injector = DIBootstrap.createInjector(module);
    assertNotNull(injector);

    assertTrue(configureCalled[0]);
  }
예제 #2
0
 public void testCreateInjector_Empty() {
   Injector emptyInjector = DIBootstrap.createInjector();
   assertNotNull(emptyInjector);
 }