Searched refs:newModule (Results 1 – 3 of 3) sorted by relevance
33 Module combined = Modules.combine(newModule(1), newModule(2L), newModule((short) 3)); in testCombineVarargs()41 Iterable<Module> modules = Arrays.asList(newModule(1), newModule(2L), newModule((short) 3)); in testCombineIterable()52 final Module m1 = newModule(1); in testCombineSources()53 final Module m2 = newModule(2L); in testCombineSources()71 private <T> Module newModule(final T toBind) { in newModule() method in ModulesTest
72 Injector injector = createInjector(Modules.override(newModule("A")).with(newModule("B"))); in testOverride()77 Module module = Modules.override(newModule("A"), newModule(1), newModule(0.5f)) in testOverrideMultiple()78 .with(newModule("B"), newModule(2), newModule(1.5d)); in testOverrideMultiple()87 Injector injector = createInjector(Modules.override(EMPTY_MODULE).with(newModule("B"))); in testOverrideUnmatchedTolerated()129 Module replacements = newModule("B"); in testOverrideWhatGetProviderProvided()198 Module original = newModule("A"); in testOverridesTwiceFails()524 private static <T> Module newModule(final T bound) { in newModule() method in OverrideModuleTest
161 Module module = newModule(parentModule); in getParentInjector()171 private Module newModule(Class<Module> module) { in newModule() method in ClassImpl