/external/guava/guava-tests/test/com/google/common/base/ |
D | OptionalTest.java | 42 assertEquals(java.util.Optional.empty(), Optional.toJavaUtil(Optional.absent())); in testToJavaUtil_static() 47 assertEquals(java.util.Optional.empty(), Optional.absent().toJavaUtil()); in testToJavaUtil_instance() 53 assertEquals(Optional.absent(), Optional.fromJavaUtil(java.util.Optional.empty())); in testFromJavaUtil() 58 Optional<String> optionalName = Optional.absent(); in testAbsent() 81 assertSame(Optional.absent(), Optional.fromNullable(null)); in testFromNullable_null() 85 assertFalse(Optional.absent().isPresent()); in testIsPresent_no() 93 Optional<String> optional = Optional.absent(); in testGet_absent() 110 assertEquals("default", Optional.absent().or("default")); in testOr_T_absent() 118 assertEquals("fallback", Optional.absent().or(Suppliers.ofInstance("fallback"))); in testOr_supplier_absent() 123 Optional<Object> absentOptional = Optional.absent(); in testOr_nullSupplier_absent() [all …]
|
/external/guava/android/guava-tests/test/com/google/common/base/ |
D | OptionalTest.java | 41 Optional<String> optionalName = Optional.absent(); in testAbsent() 64 assertSame(Optional.absent(), Optional.fromNullable(null)); in testFromNullable_null() 68 assertFalse(Optional.absent().isPresent()); in testIsPresent_no() 76 Optional<String> optional = Optional.absent(); in testGet_absent() 93 assertEquals("default", Optional.absent().or("default")); in testOr_T_absent() 101 assertEquals("fallback", Optional.absent().or(Suppliers.ofInstance("fallback"))); in testOr_supplier_absent() 106 Optional<Object> absentOptional = Optional.absent(); in testOr_nullSupplier_absent() 124 assertEquals(Optional.of("fallback"), Optional.absent().or(Optional.of("fallback"))); in testOr_Optional_absent() 132 assertNull(Optional.absent().orNull()); in testOrNull_absent() 141 assertTrue("Returned set should be empty", Optional.absent().asSet().isEmpty()); in testAsSet_absent() [all …]
|
/external/dagger2/javatests/dagger/functional/guava/ |
D | OptionalBindingComponentsAbsentTest.java | 30 private AbsentOptionalBindingComponent absent; field in OptionalBindingComponentsAbsentTest 34 absent = DaggerOptionalBindingComponents_AbsentOptionalBindingComponent.create(); in setUp() 39 assertThat(absent.values().optionalInstance()).isAbsent(); in optional() 44 assertThat(absent.values().optionalProvider()).isAbsent(); in optionalProvider() 49 assertThat(absent.values().optionalLazy()).isAbsent(); in optionalLazy() 54 assertThat(absent.values().optionalLazyProvider()).isAbsent(); in optionalLazyProvider() 59 assertThat(absent.qualifiedValues().optionalInstance()).isAbsent(); in qualifiedOptional() 64 assertThat(absent.qualifiedValues().optionalProvider()).isAbsent(); in qualifiedOptionalProvider() 69 assertThat(absent.qualifiedValues().optionalLazy()).isAbsent(); in qualifiedOptionalLazy() 74 assertThat(absent.qualifiedValues().optionalLazyProvider()).isAbsent(); in qualifiedOptionalLazyProvider()
|
/external/guava/android/guava-testlib/src/com/google/common/collect/testing/google/ |
D | AbstractMultisetSetCountTester.java | 132 @CollectionFeature.Require(absent = {SUPPORTS_ADD, SUPPORTS_REMOVE}) 140 @CollectionSize.Require(absent = ZERO) 146 @CollectionSize.Require(absent = ZERO) 152 @CollectionSize.Require(absent = ZERO) 153 @CollectionFeature.Require(absent = {SUPPORTS_ADD, SUPPORTS_REMOVE}) 174 @CollectionFeature.Require(absent = {SUPPORTS_ADD, SUPPORTS_REMOVE}) 218 @CollectionSize.Require(absent = ZERO) 224 @CollectionFeature.Require(absent = SUPPORTS_ADD) 229 @CollectionFeature.Require(absent = SUPPORTS_ADD) 234 @CollectionSize.Require(absent = ZERO) [all …]
|
/external/guava/guava-testlib/src/com/google/common/collect/testing/google/ |
D | AbstractMultisetSetCountTester.java | 132 @CollectionFeature.Require(absent = {SUPPORTS_ADD, SUPPORTS_REMOVE}) 140 @CollectionSize.Require(absent = ZERO) 146 @CollectionSize.Require(absent = ZERO) 152 @CollectionSize.Require(absent = ZERO) 153 @CollectionFeature.Require(absent = {SUPPORTS_ADD, SUPPORTS_REMOVE}) 174 @CollectionFeature.Require(absent = {SUPPORTS_ADD, SUPPORTS_REMOVE}) 218 @CollectionSize.Require(absent = ZERO) 224 @CollectionFeature.Require(absent = SUPPORTS_ADD) 229 @CollectionFeature.Require(absent = SUPPORTS_ADD) 234 @CollectionSize.Require(absent = ZERO) [all …]
|
/external/guava/guava-testlib/src/com/google/common/collect/testing/testers/ |
D | CollectionRetainAllTester.java | 102 @CollectionFeature.Require(absent = SUPPORTS_REMOVE) 110 @CollectionSize.Require(absent = ZERO) 117 @CollectionFeature.Require(absent = SUPPORTS_REMOVE) 118 @CollectionSize.Require(absent = ZERO) 133 @CollectionFeature.Require(absent = SUPPORTS_REMOVE) 141 @CollectionSize.Require(absent = ZERO) 148 @CollectionFeature.Require(absent = SUPPORTS_REMOVE) 149 @CollectionSize.Require(absent = ZERO) 163 @CollectionFeature.Require(absent = SUPPORTS_REMOVE) 172 @CollectionSize.Require(absent = {ZERO, ONE}) [all …]
|
D | MapReplaceEntryTester.java | 42 @CollectionSize.Require(absent = ZERO) 53 @CollectionSize.Require(absent = ZERO) 60 @CollectionSize.Require(absent = ZERO) 72 @MapFeature.Require(value = SUPPORTS_PUT, absent = ALLOWS_NULL_VALUES) 73 @CollectionSize.Require(absent = ZERO) 83 @MapFeature.Require(value = SUPPORTS_PUT, absent = ALLOWS_NULL_VALUE_QUERIES) 84 @CollectionSize.Require(absent = ZERO) 94 @MapFeature.Require(value = SUPPORTS_PUT, absent = ALLOWS_NULL_VALUE_QUERIES) 110 @MapFeature.Require(value = SUPPORTS_PUT, absent = ALLOWS_NULL_VALUE_QUERIES) 120 @MapFeature.Require(absent = SUPPORTS_PUT) [all …]
|
D | ConcurrentMapReplaceEntryTester.java | 47 @CollectionSize.Require(absent = ZERO) 54 @CollectionSize.Require(absent = ZERO) 61 @CollectionSize.Require(absent = ZERO) 73 @MapFeature.Require(value = SUPPORTS_PUT, absent = ALLOWS_NULL_VALUES) 74 @CollectionSize.Require(absent = ZERO) 84 @MapFeature.Require(value = SUPPORTS_PUT, absent = ALLOWS_NULL_VALUE_QUERIES) 85 @CollectionSize.Require(absent = ZERO) 95 @MapFeature.Require(value = SUPPORTS_PUT, absent = ALLOWS_NULL_VALUE_QUERIES) 111 @MapFeature.Require(value = SUPPORTS_PUT, absent = ALLOWS_NULL_VALUE_QUERIES) 121 @MapFeature.Require(absent = SUPPORTS_PUT) [all …]
|
D | MapCreationTester.java | 49 @CollectionSize.Require(absent = ZERO) 55 @MapFeature.Require(absent = ALLOWS_NULL_KEYS) 56 @CollectionSize.Require(absent = ZERO) 66 @CollectionSize.Require(absent = ZERO) 72 @MapFeature.Require(absent = ALLOWS_NULL_VALUES) 73 @CollectionSize.Require(absent = ZERO) 83 @CollectionSize.Require(absent = ZERO) 91 @MapFeature.Require(value = ALLOWS_NULL_KEYS, absent = REJECTS_DUPLICATES_AT_CREATION) 92 @CollectionSize.Require(absent = {ZERO, ONE}) 97 @MapFeature.Require(absent = REJECTS_DUPLICATES_AT_CREATION) [all …]
|
D | MapPutTester.java | 63 @CollectionSize.Require(absent = ZERO) 76 @CollectionSize.Require(absent = ZERO) 89 @CollectionSize.Require(absent = ZERO) 102 @CollectionSize.Require(absent = ZERO) 114 @MapFeature.Require(absent = SUPPORTS_PUT) 125 @MapFeature.Require(absent = SUPPORTS_PUT) 126 @CollectionSize.Require(absent = ZERO) 135 @MapFeature.Require(absent = SUPPORTS_PUT) 136 @CollectionSize.Require(absent = ZERO) 153 @CollectionSize.Require(absent = ZERO) [all …]
|
D | MapPutIfAbsentTester.java | 49 @CollectionSize.Require(absent = ZERO) 58 @MapFeature.Require(absent = SUPPORTS_PUT) 69 @MapFeature.Require(absent = SUPPORTS_PUT) 70 @CollectionSize.Require(absent = ZERO) 82 @MapFeature.Require(absent = SUPPORTS_PUT) 83 @CollectionSize.Require(absent = ZERO) 92 @MapFeature.Require(value = SUPPORTS_PUT, absent = ALLOWS_NULL_KEYS) 104 @MapFeature.Require(value = SUPPORTS_PUT, absent = ALLOWS_NULL_VALUES) 116 @MapFeature.Require(value = SUPPORTS_PUT, absent = ALLOWS_NULL_VALUES) 117 @CollectionSize.Require(absent = ZERO)
|
D | ConcurrentMapPutIfAbsentTester.java | 54 @CollectionSize.Require(absent = ZERO) 63 @MapFeature.Require(absent = SUPPORTS_PUT) 74 @MapFeature.Require(absent = SUPPORTS_PUT) 75 @CollectionSize.Require(absent = ZERO) 87 @MapFeature.Require(absent = SUPPORTS_PUT) 88 @CollectionSize.Require(absent = ZERO) 97 @MapFeature.Require(value = SUPPORTS_PUT, absent = ALLOWS_NULL_KEYS) 109 @MapFeature.Require(value = SUPPORTS_PUT, absent = ALLOWS_NULL_VALUES) 121 @MapFeature.Require(value = SUPPORTS_PUT, absent = ALLOWS_NULL_VALUES) 122 @CollectionSize.Require(absent = ZERO)
|
D | MapReplaceTester.java | 43 @CollectionSize.Require(absent = ZERO) 54 @CollectionSize.Require(absent = ZERO) 66 @MapFeature.Require(value = SUPPORTS_PUT, absent = ALLOWS_NULL_VALUES) 67 @CollectionSize.Require(absent = ZERO) 77 @MapFeature.Require(value = SUPPORTS_PUT, absent = ALLOWS_NULL_VALUE_QUERIES) 87 @MapFeature.Require(value = SUPPORTS_PUT, absent = ALLOWS_NULL_KEY_QUERIES) 97 @MapFeature.Require(absent = SUPPORTS_PUT) 98 @CollectionSize.Require(absent = ZERO)
|
D | ConcurrentMapReplaceTester.java | 48 @CollectionSize.Require(absent = ZERO) 55 @CollectionSize.Require(absent = ZERO) 67 @MapFeature.Require(value = SUPPORTS_PUT, absent = ALLOWS_NULL_VALUES) 68 @CollectionSize.Require(absent = ZERO) 78 @MapFeature.Require(value = SUPPORTS_PUT, absent = ALLOWS_NULL_VALUE_QUERIES) 88 @MapFeature.Require(value = SUPPORTS_PUT, absent = ALLOWS_NULL_KEY_QUERIES) 98 @MapFeature.Require(absent = SUPPORTS_PUT) 99 @CollectionSize.Require(absent = ZERO)
|
D | CollectionAddAllTester.java | 56 @CollectionFeature.Require(absent = SUPPORTS_ADD) 73 @CollectionFeature.Require(absent = SUPPORTS_ADD) 85 @CollectionSize.Require(absent = ZERO) 94 @CollectionFeature.Require(absent = SUPPORTS_ADD) 95 @CollectionSize.Require(absent = ZERO) 106 @CollectionSize.Require(absent = ZERO) 118 @CollectionFeature.Require(absent = SUPPORTS_ADD) 119 @CollectionSize.Require(absent = ZERO) 132 absent = RESTRICTS_ELEMENTS) 143 @CollectionFeature.Require(value = SUPPORTS_ADD, absent = ALLOWS_NULL_VALUES)
|
D | ListAddAllAtIndexTester.java | 44 @CollectionSize.Require(absent = ZERO) 52 @ListFeature.Require(absent = SUPPORTS_ADD_WITH_INDEX) 53 @CollectionSize.Require(absent = ZERO) 64 @CollectionSize.Require(absent = ZERO) 72 @ListFeature.Require(absent = SUPPORTS_ADD_WITH_INDEX) 73 @CollectionSize.Require(absent = ZERO) 90 @ListFeature.Require(absent = SUPPORTS_ADD_WITH_INDEX) 121 @CollectionFeature.Require(absent = ALLOWS_NULL_VALUES) 135 @CollectionSize.Require(absent = {ZERO, ONE}) 144 @CollectionSize.Require(absent = ZERO)
|
/external/guava/android/guava-testlib/src/com/google/common/collect/testing/testers/ |
D | CollectionRetainAllTester.java | 102 @CollectionFeature.Require(absent = SUPPORTS_REMOVE) 110 @CollectionSize.Require(absent = ZERO) 117 @CollectionFeature.Require(absent = SUPPORTS_REMOVE) 118 @CollectionSize.Require(absent = ZERO) 133 @CollectionFeature.Require(absent = SUPPORTS_REMOVE) 141 @CollectionSize.Require(absent = ZERO) 148 @CollectionFeature.Require(absent = SUPPORTS_REMOVE) 149 @CollectionSize.Require(absent = ZERO) 163 @CollectionFeature.Require(absent = SUPPORTS_REMOVE) 172 @CollectionSize.Require(absent = {ZERO, ONE}) [all …]
|
D | ConcurrentMapReplaceEntryTester.java | 47 @CollectionSize.Require(absent = ZERO) 54 @CollectionSize.Require(absent = ZERO) 61 @CollectionSize.Require(absent = ZERO) 73 @MapFeature.Require(value = SUPPORTS_PUT, absent = ALLOWS_NULL_VALUES) 74 @CollectionSize.Require(absent = ZERO) 84 @MapFeature.Require(value = SUPPORTS_PUT, absent = ALLOWS_NULL_VALUE_QUERIES) 85 @CollectionSize.Require(absent = ZERO) 95 @MapFeature.Require(value = SUPPORTS_PUT, absent = ALLOWS_NULL_VALUE_QUERIES) 111 @MapFeature.Require(value = SUPPORTS_PUT, absent = ALLOWS_NULL_VALUE_QUERIES) 121 @MapFeature.Require(absent = SUPPORTS_PUT) [all …]
|
D | MapCreationTester.java | 49 @CollectionSize.Require(absent = ZERO) 55 @MapFeature.Require(absent = ALLOWS_NULL_KEYS) 56 @CollectionSize.Require(absent = ZERO) 66 @CollectionSize.Require(absent = ZERO) 72 @MapFeature.Require(absent = ALLOWS_NULL_VALUES) 73 @CollectionSize.Require(absent = ZERO) 83 @CollectionSize.Require(absent = ZERO) 91 @MapFeature.Require(value = ALLOWS_NULL_KEYS, absent = REJECTS_DUPLICATES_AT_CREATION) 92 @CollectionSize.Require(absent = {ZERO, ONE}) 97 @MapFeature.Require(absent = REJECTS_DUPLICATES_AT_CREATION) [all …]
|
D | MapPutTester.java | 63 @CollectionSize.Require(absent = ZERO) 76 @CollectionSize.Require(absent = ZERO) 89 @CollectionSize.Require(absent = ZERO) 102 @CollectionSize.Require(absent = ZERO) 114 @MapFeature.Require(absent = SUPPORTS_PUT) 125 @MapFeature.Require(absent = SUPPORTS_PUT) 126 @CollectionSize.Require(absent = ZERO) 135 @MapFeature.Require(absent = SUPPORTS_PUT) 136 @CollectionSize.Require(absent = ZERO) 153 @CollectionSize.Require(absent = ZERO) [all …]
|
D | ConcurrentMapPutIfAbsentTester.java | 54 @CollectionSize.Require(absent = ZERO) 63 @MapFeature.Require(absent = SUPPORTS_PUT) 74 @MapFeature.Require(absent = SUPPORTS_PUT) 75 @CollectionSize.Require(absent = ZERO) 87 @MapFeature.Require(absent = SUPPORTS_PUT) 88 @CollectionSize.Require(absent = ZERO) 97 @MapFeature.Require(value = SUPPORTS_PUT, absent = ALLOWS_NULL_KEYS) 109 @MapFeature.Require(value = SUPPORTS_PUT, absent = ALLOWS_NULL_VALUES) 121 @MapFeature.Require(value = SUPPORTS_PUT, absent = ALLOWS_NULL_VALUES) 122 @CollectionSize.Require(absent = ZERO)
|
D | ConcurrentMapReplaceTester.java | 48 @CollectionSize.Require(absent = ZERO) 55 @CollectionSize.Require(absent = ZERO) 67 @MapFeature.Require(value = SUPPORTS_PUT, absent = ALLOWS_NULL_VALUES) 68 @CollectionSize.Require(absent = ZERO) 78 @MapFeature.Require(value = SUPPORTS_PUT, absent = ALLOWS_NULL_VALUE_QUERIES) 88 @MapFeature.Require(value = SUPPORTS_PUT, absent = ALLOWS_NULL_KEY_QUERIES) 98 @MapFeature.Require(absent = SUPPORTS_PUT) 99 @CollectionSize.Require(absent = ZERO)
|
D | CollectionAddAllTester.java | 56 @CollectionFeature.Require(absent = SUPPORTS_ADD) 73 @CollectionFeature.Require(absent = SUPPORTS_ADD) 85 @CollectionSize.Require(absent = ZERO) 94 @CollectionFeature.Require(absent = SUPPORTS_ADD) 95 @CollectionSize.Require(absent = ZERO) 106 @CollectionSize.Require(absent = ZERO) 118 @CollectionFeature.Require(absent = SUPPORTS_ADD) 119 @CollectionSize.Require(absent = ZERO) 132 absent = RESTRICTS_ELEMENTS) 143 @CollectionFeature.Require(value = SUPPORTS_ADD, absent = ALLOWS_NULL_VALUES)
|
D | ListAddAllAtIndexTester.java | 44 @CollectionSize.Require(absent = ZERO) 52 @ListFeature.Require(absent = SUPPORTS_ADD_WITH_INDEX) 53 @CollectionSize.Require(absent = ZERO) 64 @CollectionSize.Require(absent = ZERO) 72 @ListFeature.Require(absent = SUPPORTS_ADD_WITH_INDEX) 73 @CollectionSize.Require(absent = ZERO) 90 @ListFeature.Require(absent = SUPPORTS_ADD_WITH_INDEX) 121 @CollectionFeature.Require(absent = ALLOWS_NULL_VALUES) 135 @CollectionSize.Require(absent = {ZERO, ONE}) 144 @CollectionSize.Require(absent = ZERO)
|
/external/dagger2/javatests/dagger/functional/producers/optional/ |
D | OptionalBindingComponentsAbsentTest.java | 30 private AbsentOptionalBindingComponent absent; field in OptionalBindingComponentsAbsentTest 34 absent = DaggerOptionalBindingComponents_AbsentOptionalBindingComponent.create(); in setUp() 39 assertThat(absent.optionalInstance().get()).isAbsent(); in optional() 44 assertThat(absent.optionalProducer().get()).isAbsent(); in optionalProducer() 49 assertThat(absent.optionalProduced().get()).isAbsent(); in optionalProduced() 54 assertThat(absent.qualifiedOptionalInstance().get()).isAbsent(); in qualifiedOptional() 59 assertThat(absent.qualifiedOptionalProducer().get()).isAbsent(); in qualifiedOptionalProducer() 64 assertThat(absent.qualifiedOptionalProduced().get()).isAbsent(); in qualifiedOptionalProduced()
|