Home
last modified time | relevance | path

Searched refs:StringCheckedProvider (Results 1 – 2 of 2) sorted by relevance

/external/guice/extensions/throwingproviders/test/com/google/inject/throwingproviders/
DCheckedProvidersTest.java16 private static interface StringCheckedProvider extends CheckedProvider<String> {} interface in CheckedProvidersTest
21 StringCheckedProvider provider = CheckedProviders.of(StringCheckedProvider.class, expected); in testCheckedProviderClass_get_returnsValidString()
28 StringCheckedProvider provider = in testCheckedProviderTypeLiteral_get_returnsValidString()
29 CheckedProviders.of(TypeLiteral.get(StringCheckedProvider.class), expected); in testCheckedProviderTypeLiteral_get_returnsValidString()
34 StringCheckedProvider provider = CheckedProviders.of(StringCheckedProvider.class, null); in testCheckedProviderClassNull_get_returnsNull()
39 StringCheckedProvider provider = in testCheckedProviderTypeLiteralNull_get_returnsNull()
40 CheckedProviders.of(TypeLiteral.get(StringCheckedProvider.class), null); in testCheckedProviderTypeLiteralNull_get_returnsNull()
/external/guice/extensions/testlib/test/com/google/inject/testing/throwingproviders/
DCheckedProviderSubjectTest.java24 private interface StringCheckedProvider extends CheckedProvider<String> {} interface in CheckedProviderSubjectTest
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()
53 CheckedProviders.throwing(StringCheckedProvider.class, SummerException.class); in providedValue_throws_expectFailure()
68 CheckedProviders.throwing(StringCheckedProvider.class, SummerException.class); in thrownException_threwExpected_expectSuccess()
78 CheckedProviders.throwing(StringCheckedProvider.class, unexpected); in thrownException_threwUnexpected_expectFailure()
95 CheckedProvider<String> provider = CheckedProviders.of(StringCheckedProvider.class, getValue); in thrownException_gets_expectFailure()