Search in sources :

Example 1 with BindingFactoryImpl

use of com.google.gwt.inject.rebind.binding.BindingFactoryImpl in project google-gin by gwtplus.

the class GinjectorBindingsTest method setUp.

@Override
public void setUp() {
    control = createControl();
    niceControl = createNiceControl();
    nameGenerator = control.createMock("nameGenerator", NameGenerator.class);
    logger = niceControl.createMock("logger", TreeLogger.class);
    guiceUtil = control.createMock("guiceUtil", GuiceUtil.class);
    {
        @SuppressWarnings("unchecked") Provider<GinjectorBindings> tmpProvider = control.createMock("ginjectorBindingsProvider", Provider.class);
        ginjectorBindingsProvider = tmpProvider;
    }
    collector = control.createMock("collector", MemberCollector.class);
    errorManager = control.createMock("errorManager", ErrorManager.class);
    bindingResolver = control.createMock("bindingResolver", BindingResolver.class);
    methodCallUtil = control.createMock("methodCallUtil", MethodCallUtil.class);
    bindingFactory = new BindingFactoryImpl(errorManager, guiceUtil, DummyInjectorInterface.class, methodCallUtil);
}
Also used : MethodCallUtil(com.google.gwt.inject.rebind.util.MethodCallUtil) TreeLogger(com.google.gwt.core.ext.TreeLogger) GuiceUtil(com.google.gwt.inject.rebind.util.GuiceUtil) BindingFactoryImpl(com.google.gwt.inject.rebind.binding.BindingFactoryImpl) NameGenerator(com.google.gwt.inject.rebind.util.NameGenerator) BindingResolver(com.google.gwt.inject.rebind.resolution.BindingResolver) MemberCollector(com.google.gwt.inject.rebind.util.MemberCollector) Provider(com.google.inject.Provider)

Aggregations

TreeLogger (com.google.gwt.core.ext.TreeLogger)1 BindingFactoryImpl (com.google.gwt.inject.rebind.binding.BindingFactoryImpl)1 BindingResolver (com.google.gwt.inject.rebind.resolution.BindingResolver)1 GuiceUtil (com.google.gwt.inject.rebind.util.GuiceUtil)1 MemberCollector (com.google.gwt.inject.rebind.util.MemberCollector)1 MethodCallUtil (com.google.gwt.inject.rebind.util.MethodCallUtil)1 NameGenerator (com.google.gwt.inject.rebind.util.NameGenerator)1 Provider (com.google.inject.Provider)1