Examples of Gin9Injector


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

   // FIXME : we have to make Assisted injection work..
   @Ignore
   @Test
   public void shouldInstanciateClassWithAssistedInjection() {
      // Arrange
      Gin9Injector injector9 = GWT.create(Gin9Injector.class);

      // Act
      ClassWithAssistedInjection o = injector9.assistedInjectFactory().newClassWithAssistedInjection(
               "my assisted string");

      // Assert
      assertThat(o.assistedString).isEqualTo("my assisted string");
      assertThat(o.virtual).isInstanceOf(Impl2.class);
View Full Code Here
TOP
Copyright © 2018 www.massapi.com. 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.