Package com.googlecode.gwt.test.gin.Injectors

Examples of com.googlecode.gwt.test.gin.Injectors.Gin2Injector


   }

   @Test
   public void shouldFallbackToGwtCreate() {
      // Arrange
      Gin2Injector injector2 = GWT.create(Gin2Injector.class);

      // Act
      Virtual virtual = injector2.virtual();
      SomeServiceAsync service = injector2.service();

      // Assert
      assertEquals(Impl2.class, virtual.getClass());
      Assert.assertNotSame(virtual, injector2.virtual());
      assertNotNull(service);
   }
View Full Code Here


   }

   @Test
   public void shouldInstantiateComplexObjectGraphs() {
      // Arrange
      Gin2Injector injector2 = GWT.create(Gin2Injector.class);

      // Act
      VirtualMore more = injector2.virtualMore();

      // Assert
      assertEquals(ImplMore.class, more.getClass());
   }
View Full Code Here

TOP

Related Classes of com.googlecode.gwt.test.gin.Injectors.Gin2Injector

Copyright © 2018 www.massapicom. All rights reserved.
All source code are property of their respective owners. Java is a trademark of Sun Microsystems, Inc and owned by ORACLE Inc. Contact coftware#gmail.com.