Home
last modified time | relevance | path

Searched refs:CheckedProvider (Results 1 – 15 of 15) sorted by relevance

/external/guice/extensions/testlib/test/com/google/inject/testing/throwingproviders/
DCheckedProviderSubjectTest.java8 import com.google.inject.throwingproviders.CheckedProvider;
24 private interface StringCheckedProvider extends CheckedProvider<String> {}
29 CheckedProvider<String> provider = CheckedProviders.of(StringCheckedProvider.class, expected); in providedValue_gotExpected_expectSuccess()
38 CheckedProvider<String> provider = CheckedProviders.of(StringCheckedProvider.class, unexpected); in providedValue_gotUnexpected_expectFailure()
52 CheckedProvider<String> provider = in providedValue_throws_expectFailure()
67 CheckedProvider<?> provider = in thrownException_threwExpected_expectSuccess()
77 CheckedProvider<String> provider = in thrownException_threwUnexpected_expectFailure()
95 CheckedProvider<String> provider = CheckedProviders.of(StringCheckedProvider.class, getValue); in thrownException_gets_expectFailure()
106 CheckedProviderSubject<String, CheckedProvider<String>>, CheckedProvider<String>>
110 .about(CheckedProviderSubject.<String, CheckedProvider<String>>checkedProviders()); in expectWhenTesting()
/external/guice/extensions/throwingproviders/src/com/google/inject/throwingproviders/
DThrowingProviderBinder.java89 private static final TypeLiteral<CheckedProvider<?>> CHECKED_PROVIDER_TYPE =
90 new TypeLiteral<CheckedProvider<?>>() {};
118 public <P extends CheckedProvider> SecondaryBinder<P, ?> bind( in bind()
124 public <P extends CheckedProvider, T> SecondaryBinder<P, T> bind( in bind()
130 public <P extends CheckedProvider, T> SecondaryBinder<P, T> bind( in bind()
135 public class SecondaryBinder<P extends CheckedProvider, T> {
233 CheckedProvider<T> checkedProvider = in providing()
261 Key<CheckedProvider<?>> targetKey = in providing()
278 return toInternal((Key<? extends CheckedProvider<?>>) targetKey); in to()
281 private ScopedBindingBuilder toInternal(final Key<? extends CheckedProvider<?>> targetKey) { in toInternal()
[all …]
DCheckedProviders.java102 private static <T, P extends CheckedProvider<? super T>> P generateProvider( in generateProvider()
113 private static <T, P extends CheckedProvider<? super T>> P generateProvider( in generateProvider()
137 public static <T, P extends CheckedProvider<? super T>> P of( in of()
150 public static <T, P extends CheckedProvider<? super T>> P of( in of()
168 public static <T, P extends CheckedProvider<? super T>> P throwing( in throwing()
185 public static <T, P extends CheckedProvider<? super T>> P throwing( in throwing()
196 Class<? extends CheckedProvider<?>> providerType, Class<? extends Throwable> thrownType) { in checkThrowable()
DCheckedProviderMethod.java42 class CheckedProviderMethod<T> implements CheckedProvider<T>, HasDependencies {
50 private final Class<? extends CheckedProvider> checkedProvider;
61 Class<? extends CheckedProvider> checkedProvider, in CheckedProviderMethod()
DProviderChecker.java19 static <P extends CheckedProvider<?>> void checkInterface( in checkInterface()
30 interfaceType.getInterfaces()[0] == CheckedProvider.class, in checkInterface()
DCheckedProvider.java38 public interface CheckedProvider<T> { interface
DThrowingProvider.java39 public interface ThrowingProvider<T, E extends Exception> extends CheckedProvider<T> {
DCheckedProviderWithDependencies.java28 interface CheckedProviderWithDependencies<T> extends CheckedProvider<T>, HasDependencies {}
DCheckedProvides.java43 Class<? extends CheckedProvider> value(); in value()
DCheckedProvideUtils.java82 Class<? extends CheckedProvider> checkedProvider) { in validateExceptions()
DCheckedProviderMethodsModule.java90 Class<? extends CheckedProvider> throwingProvider = checkedProvides.value(); in createProviderMethod()
/external/guice/extensions/testlib/src/com/google/inject/testing/throwingproviders/
DCheckedProviderSubject.java8 import com.google.inject.throwingproviders.CheckedProvider;
16 public final class CheckedProviderSubject<T, P extends CheckedProvider<T>>
19 private static final class CheckedProviderSubjectFactory<T, P extends CheckedProvider<T>>
28 public static <T, P extends CheckedProvider<T>>
33 public static <T, P extends CheckedProvider<T>> CheckedProviderSubject<T, P> assertThat( in assertThat()
/external/guice/extensions/throwingproviders/test/com/google/inject/throwingproviders/
DCheckedProvidersTest.java16 private static interface StringCheckedProvider extends CheckedProvider<String> {}
46 private interface FooCheckedProvider extends CheckedProvider<Object> {
71 private interface MoreMethodsCheckedProvider<T> extends CheckedProvider<T> {
DCheckedProviderTest.java680 assertTrue(CheckedProvider.class.isAssignableFrom(key.getTypeLiteral().getRawType())); in testDependencies_Cxtor()
701 interface RemoteProviderWithExtraMethod<T> extends CheckedProvider<T> {
705 interface RemoteProvider<T> extends CheckedProvider<T> {
890 interface StringRemoteProvider extends CheckedProvider<String> {
1490 private static interface TooManyTypeParameters<T, P> extends CheckedProvider<T> {}
1492 private static interface WrongThrowingProviderType<T> extends CheckedProvider<String> {}
1494 private static interface OneNoneGetMethod<T> extends CheckedProvider<T> {
1498 private static interface ManyMethods<T> extends CheckedProvider<T> {
DCheckedProviderMethodsModuleTest.java52 interface RpcProvider<T> extends CheckedProvider<T> {