Home
last modified time | relevance | path

Searched refs:parentBuilder (Results 1 – 19 of 19) sorted by relevance

/external/guava/guava-testlib/src/com/google/common/collect/testing/google/
DSortedMultisetTestSuiteBuilder.java83 ?, ? extends OneSizeTestContainerGenerator<Collection<E>, E>> parentBuilder) { in createElementSetTestSuite() argument
86 .using(new ElementSetGenerator<E>(parentBuilder.getSubjectGenerator())) in createElementSetTestSuite()
88 .withFeatures(computeElementSetFeatures(parentBuilder.getFeatures())) in createElementSetTestSuite()
89 .suppressing(parentBuilder.getSuppressedTests()) in createElementSetTestSuite()
114 SortedMultisetTestSuiteBuilder<E> parentBuilder) { in createDerivedSuites() argument
117 if (!parentBuilder.getFeatures().contains(NoRecurse.DESCENDING)) { in createDerivedSuites()
118 derivedSuites.add(createDescendingSuite(parentBuilder)); in createDerivedSuites()
121 if (parentBuilder.getFeatures().contains(CollectionFeature.SERIALIZABLE)) { in createDerivedSuites()
122 derivedSuites.add(createReserializedSuite(parentBuilder)); in createDerivedSuites()
125 if (!parentBuilder.getFeatures().contains(NoRecurse.SUBMULTISET)) { in createDerivedSuites()
[all …]
DSetMultimapTestSuiteBuilder.java67 OneSizeTestContainerGenerator<SetMultimap<K, V>, Entry<K, V>>> parentBuilder) { in computeMultimapGetTestSuite() argument
69 new MultimapGetGenerator<K, V>(parentBuilder.getSubjectGenerator())) in computeMultimapGetTestSuite()
70 .withFeatures(computeMultimapGetFeatures(parentBuilder.getFeatures())) in computeMultimapGetTestSuite()
71 .named(parentBuilder.getName() + ".get[key]") in computeMultimapGetTestSuite()
72 .suppressing(parentBuilder.getSuppressedTests()) in computeMultimapGetTestSuite()
79 OneSizeTestContainerGenerator<SetMultimap<K, V>, Entry<K, V>>> parentBuilder) { in computeMultimapAsMapGetTestSuite() argument
80 Set<Feature<?>> features = computeMultimapAsMapGetFeatures(parentBuilder.getFeatures()); in computeMultimapAsMapGetTestSuite()
85 new MultimapAsMapGetGenerator<K, V>(parentBuilder.getSubjectGenerator())) in computeMultimapAsMapGetTestSuite()
87 .named(parentBuilder.getName() + ".asMap[].get[key]") in computeMultimapAsMapGetTestSuite()
88 .suppressing(parentBuilder.getSuppressedTests()) in computeMultimapAsMapGetTestSuite()
[all …]
DBiMapTestSuiteBuilder.java82 ? extends OneSizeTestContainerGenerator<BiMap<K, V>, Entry<K, V>>> parentBuilder) { in createDerivedSuites() argument
83 List<TestSuite> derived = super.createDerivedSuites(parentBuilder); in createDerivedSuites()
87 .using(new MapGenerator<K, V>(parentBuilder.getSubjectGenerator())) in createDerivedSuites()
88 .withFeatures(parentBuilder.getFeatures()) in createDerivedSuites()
89 .named(parentBuilder.getName() + " [Map]") in createDerivedSuites()
90 .suppressing(parentBuilder.getSuppressedTests()) in createDerivedSuites()
99 .using(new BiMapValueSetGenerator<K, V>(parentBuilder.getSubjectGenerator())) in createDerivedSuites()
100 .withFeatures(computeValuesSetFeatures(parentBuilder.getFeatures())) in createDerivedSuites()
101 .named(parentBuilder.getName() + " values [Set]") in createDerivedSuites()
102 .suppressing(parentBuilder.getSuppressedTests()) in createDerivedSuites()
[all …]
DSortedSetMultimapTestSuiteBuilder.java67 OneSizeTestContainerGenerator<SetMultimap<K, V>, Entry<K, V>>> parentBuilder) { in computeMultimapGetTestSuite() argument
70 parentBuilder.getSubjectGenerator())) in computeMultimapGetTestSuite()
71 .withFeatures(computeMultimapGetFeatures(parentBuilder.getFeatures())) in computeMultimapGetTestSuite()
72 .named(parentBuilder.getName() + ".get[key]") in computeMultimapGetTestSuite()
73 .suppressing(parentBuilder.getSuppressedTests()) in computeMultimapGetTestSuite()
80 OneSizeTestContainerGenerator<SetMultimap<K, V>, Entry<K, V>>> parentBuilder) { in computeMultimapAsMapGetTestSuite() argument
81 Set<Feature<?>> features = computeMultimapAsMapGetFeatures(parentBuilder.getFeatures()); in computeMultimapAsMapGetTestSuite()
87 parentBuilder.getSubjectGenerator())) in computeMultimapAsMapGetTestSuite()
89 .named(parentBuilder.getName() + ".asMap[].get[key]") in computeMultimapAsMapGetTestSuite()
90 .suppressing(parentBuilder.getSuppressedTests()) in computeMultimapAsMapGetTestSuite()
DMultimapTestSuiteBuilder.java107 parentBuilder) { in createDerivedSuites() argument
112 List<TestSuite> derivedSuites = super.createDerivedSuites(parentBuilder); in createDerivedSuites()
114 if (parentBuilder.getFeatures().contains(CollectionFeature.SERIALIZABLE)) { in createDerivedSuites()
116 new ReserializedMultimapGenerator<K, V, M>(parentBuilder.getSubjectGenerator())) in createDerivedSuites()
117 .withFeatures(computeReserializedMultimapFeatures(parentBuilder.getFeatures())) in createDerivedSuites()
118 .named(parentBuilder.getName() + " reserialized") in createDerivedSuites()
119 .suppressing(parentBuilder.getSuppressedTests()) in createDerivedSuites()
124 new AsMapGenerator<K, V, M>(parentBuilder.getSubjectGenerator())) in createDerivedSuites()
125 .withFeatures(computeAsMapFeatures(parentBuilder.getFeatures())) in createDerivedSuites()
126 .named(parentBuilder.getName() + ".asMap") in createDerivedSuites()
[all …]
DListMultimapTestSuiteBuilder.java69 OneSizeTestContainerGenerator<ListMultimap<K, V>, Entry<K, V>>> parentBuilder) { in computeMultimapGetTestSuite() argument
71 new MultimapGetGenerator<K, V>(parentBuilder.getSubjectGenerator())) in computeMultimapGetTestSuite()
72 .withFeatures(computeMultimapGetFeatures(parentBuilder.getFeatures())) in computeMultimapGetTestSuite()
73 .named(parentBuilder.getName() + ".get[key]") in computeMultimapGetTestSuite()
74 .suppressing(parentBuilder.getSuppressedTests()) in computeMultimapGetTestSuite()
81 OneSizeTestContainerGenerator<ListMultimap<K, V>, Entry<K, V>>> parentBuilder) { in computeMultimapAsMapGetTestSuite() argument
82 Set<Feature<?>> features = computeMultimapAsMapGetFeatures(parentBuilder.getFeatures()); in computeMultimapAsMapGetTestSuite()
87 new MultimapAsMapGetGenerator<K, V>(parentBuilder.getSubjectGenerator())) in computeMultimapAsMapGetTestSuite()
89 .named(parentBuilder.getName() + ".asMap[].get[key]") in computeMultimapAsMapGetTestSuite()
90 .suppressing(parentBuilder.getSuppressedTests()) in computeMultimapAsMapGetTestSuite()
DMultisetTestSuiteBuilder.java128 ?, ? extends OneSizeTestContainerGenerator<Collection<E>, E>> parentBuilder) { in createDerivedSuites() argument
130 super.createDerivedSuites(parentBuilder)); in createDerivedSuites()
132 derivedSuites.add(createElementSetTestSuite(parentBuilder)); in createDerivedSuites()
134 if (!parentBuilder.getFeatures().contains(NoRecurse.NO_ENTRY_SET)) { in createDerivedSuites()
136 SetTestSuiteBuilder.using(new EntrySetGenerator<E>(parentBuilder.getSubjectGenerator())) in createDerivedSuites()
138 .withFeatures(computeEntrySetFeatures(parentBuilder.getFeatures())) in createDerivedSuites()
139 .suppressing(parentBuilder.getSuppressedTests()) in createDerivedSuites()
143 if (parentBuilder.getFeatures().contains(CollectionFeature.SERIALIZABLE)) { in createDerivedSuites()
145 .using(new ReserializedMultisetGenerator<E>(parentBuilder.getSubjectGenerator())) in createDerivedSuites()
147 .withFeatures(computeReserializedMultisetFeatures(parentBuilder.getFeatures())) in createDerivedSuites()
[all …]
/external/guava/guava-testlib/src/com/google/common/collect/testing/
DNavigableSetTestSuiteBuilder.java51 ?, ? extends OneSizeTestContainerGenerator<Collection<E>, E>> parentBuilder) { in createDerivedSuites() argument
53 super.createDerivedSuites(parentBuilder)); in createDerivedSuites()
55 if (!parentBuilder.getFeatures().contains(CollectionFeature.SUBSET_VIEW)) { in createDerivedSuites()
57 derivedSuites.add(createSubsetSuite(parentBuilder, Bound.NO_BOUND, Bound.INCLUSIVE)); in createDerivedSuites()
58 derivedSuites.add(createSubsetSuite(parentBuilder, Bound.EXCLUSIVE, Bound.NO_BOUND)); in createDerivedSuites()
59 derivedSuites.add(createSubsetSuite(parentBuilder, Bound.EXCLUSIVE, Bound.EXCLUSIVE)); in createDerivedSuites()
60 derivedSuites.add(createSubsetSuite(parentBuilder, Bound.EXCLUSIVE, Bound.INCLUSIVE)); in createDerivedSuites()
61 derivedSuites.add(createSubsetSuite(parentBuilder, Bound.INCLUSIVE, Bound.INCLUSIVE)); in createDerivedSuites()
63 if (!parentBuilder.getFeatures().contains(CollectionFeature.DESCENDING_VIEW)) { in createDerivedSuites()
64 derivedSuites.add(createDescendingSuite(parentBuilder)); in createDerivedSuites()
[all …]
DSortedSetTestSuiteBuilder.java62 ?, ? extends OneSizeTestContainerGenerator<Collection<E>, E>> parentBuilder) { in createDerivedSuites() argument
63 List<TestSuite> derivedSuites = super.createDerivedSuites(parentBuilder); in createDerivedSuites()
65 if (!parentBuilder.getFeatures().contains(CollectionFeature.SUBSET_VIEW)) { in createDerivedSuites()
66 derivedSuites.add(createSubsetSuite(parentBuilder, Bound.NO_BOUND, Bound.EXCLUSIVE)); in createDerivedSuites()
67 derivedSuites.add(createSubsetSuite(parentBuilder, Bound.INCLUSIVE, Bound.NO_BOUND)); in createDerivedSuites()
68 derivedSuites.add(createSubsetSuite(parentBuilder, Bound.INCLUSIVE, Bound.EXCLUSIVE)); in createDerivedSuites()
83 parentBuilder, final Bound from, final Bound to) { in createSubsetSuite() argument
85 = (TestSortedSetGenerator<E>) parentBuilder.getSubjectGenerator().getInnerGenerator(); in createSubsetSuite()
88 features.addAll(parentBuilder.getFeatures()); in createSubsetSuite()
93 .named(parentBuilder.getName() + " subSet " + from + "-" + to) in createSubsetSuite()
[all …]
DMapTestSuiteBuilder.java93 parentBuilder) { in createDerivedSuites() argument
98 List<TestSuite> derivedSuites = super.createDerivedSuites(parentBuilder); in createDerivedSuites()
100 if (parentBuilder.getFeatures().contains(CollectionFeature.SERIALIZABLE)) { in createDerivedSuites()
102 new ReserializedMapGenerator<K, V>(parentBuilder.getSubjectGenerator())) in createDerivedSuites()
103 .withFeatures(computeReserializedMapFeatures(parentBuilder.getFeatures())) in createDerivedSuites()
104 .named(parentBuilder.getName() + " reserialized") in createDerivedSuites()
105 .suppressing(parentBuilder.getSuppressedTests()) in createDerivedSuites()
110 new MapEntrySetGenerator<K, V>(parentBuilder.getSubjectGenerator())) in createDerivedSuites()
111 .withFeatures(computeEntrySetFeatures(parentBuilder.getFeatures())) in createDerivedSuites()
112 .named(parentBuilder.getName() + " entrySet") in createDerivedSuites()
[all …]
DNavigableMapTestSuiteBuilder.java56 ? extends OneSizeTestContainerGenerator<Map<K, V>, Entry<K, V>>> parentBuilder) { in createDerivedSuites() argument
57 List<TestSuite> derivedSuites = super.createDerivedSuites(parentBuilder); in createDerivedSuites()
59 if (!parentBuilder.getFeatures().contains(NoRecurse.DESCENDING)) { in createDerivedSuites()
60 derivedSuites.add(createDescendingSuite(parentBuilder)); in createDerivedSuites()
63 if (!parentBuilder.getFeatures().contains(NoRecurse.SUBMAP)) { in createDerivedSuites()
65 derivedSuites.add(createSubmapSuite(parentBuilder, Bound.NO_BOUND, Bound.INCLUSIVE)); in createDerivedSuites()
66 derivedSuites.add(createSubmapSuite(parentBuilder, Bound.EXCLUSIVE, Bound.NO_BOUND)); in createDerivedSuites()
67 derivedSuites.add(createSubmapSuite(parentBuilder, Bound.EXCLUSIVE, Bound.EXCLUSIVE)); in createDerivedSuites()
68 derivedSuites.add(createSubmapSuite(parentBuilder, Bound.EXCLUSIVE, Bound.INCLUSIVE)); in createDerivedSuites()
69 derivedSuites.add(createSubmapSuite(parentBuilder, Bound.INCLUSIVE, Bound.INCLUSIVE)); in createDerivedSuites()
[all …]
DSortedMapTestSuiteBuilder.java63 ? extends OneSizeTestContainerGenerator<Map<K, V>, Entry<K, V>>> parentBuilder) { in createDerivedSuites() argument
64 List<TestSuite> derivedSuites = super.createDerivedSuites(parentBuilder); in createDerivedSuites()
66 if (!parentBuilder.getFeatures().contains(NoRecurse.SUBMAP)) { in createDerivedSuites()
67 derivedSuites.add(createSubmapSuite(parentBuilder, Bound.NO_BOUND, Bound.EXCLUSIVE)); in createDerivedSuites()
68 derivedSuites.add(createSubmapSuite(parentBuilder, Bound.INCLUSIVE, Bound.NO_BOUND)); in createDerivedSuites()
69 derivedSuites.add(createSubmapSuite(parentBuilder, Bound.INCLUSIVE, Bound.EXCLUSIVE)); in createDerivedSuites()
105 parentBuilder, final Bound from, final Bound to) { in createSubmapSuite() argument
107 = (TestSortedMapGenerator<K, V>) parentBuilder.getSubjectGenerator().getInnerGenerator(); in createSubmapSuite()
111 features.addAll(parentBuilder.getFeatures()); in createSubmapSuite()
114 .named(parentBuilder.getName() + " subMap " + from + "-" + to) in createSubmapSuite()
[all …]
DCollectionTestSuiteBuilder.java52 ?, ? extends OneSizeTestContainerGenerator<Collection<E>, E>> parentBuilder) { in createDerivedSuites() argument
54 super.createDerivedSuites(parentBuilder)); in createDerivedSuites()
56 if (parentBuilder.getFeatures().contains(CollectionFeature.SERIALIZABLE)) { in createDerivedSuites()
58 .using(new ReserializedCollectionGenerator<E>(parentBuilder.getSubjectGenerator())) in createDerivedSuites()
60 .withFeatures(computeReserializedCollectionFeatures(parentBuilder.getFeatures())) in createDerivedSuites()
61 .suppressing(parentBuilder.getSuppressedTests()) in createDerivedSuites()
DSetTestSuiteBuilder.java73 ?, ? extends OneSizeTestContainerGenerator<Collection<E>, E>> parentBuilder) { in createDerivedSuites() argument
75 super.createDerivedSuites(parentBuilder)); in createDerivedSuites()
77 if (parentBuilder.getFeatures().contains(CollectionFeature.SERIALIZABLE)) { in createDerivedSuites()
79 .using(new ReserializedSetGenerator<E>(parentBuilder.getSubjectGenerator())) in createDerivedSuites()
81 .withFeatures(computeReserializedCollectionFeatures(parentBuilder.getFeatures())) in createDerivedSuites()
82 .suppressing(parentBuilder.getSuppressedTests()) in createDerivedSuites()
DListTestSuiteBuilder.java103 ?, ? extends OneSizeTestContainerGenerator<Collection<E>, E>> parentBuilder) { in createDerivedSuites() argument
105 super.createDerivedSuites(parentBuilder)); in createDerivedSuites()
107 if (parentBuilder.getFeatures().contains(CollectionFeature.SERIALIZABLE)) { in createDerivedSuites()
109 .using(new ReserializedListGenerator<E>(parentBuilder.getSubjectGenerator())) in createDerivedSuites()
111 .withFeatures(computeReserializedCollectionFeatures(parentBuilder.getFeatures())) in createDerivedSuites()
112 .suppressing(parentBuilder.getSuppressedTests()) in createDerivedSuites()
DAbstractCollectionTestSuiteBuilder.java78 parentBuilder) { in createDerivedSuites() argument
81 .named(parentBuilder.getName()) in createDerivedSuites()
82 .usingGenerator(parentBuilder.getSubjectGenerator()) in createDerivedSuites()
83 .withFeatures(parentBuilder.getFeatures()); in createDerivedSuites()
DPerCollectionSizeTestSuiteBuilder.java119 ?, ? extends OneSizeTestContainerGenerator<T, E>> parentBuilder) { in createDerivedSuites() argument
/external/protobuf/java/core/src/test/java/com/google/protobuf/
DMapTest.java452 TestOnChangeEventPropagation.Builder parentBuilder = in testNestedBuilderOnChangeEventPropagationReflection() local
454 TestMap.Builder testMapBuilder = parentBuilder.getOptionalMessageBuilder(); in testNestedBuilderOnChangeEventPropagationReflection()
465 TestOnChangeEventPropagation message = parentBuilder.build(); in testNestedBuilderOnChangeEventPropagationReflection()
470 testMapBuilder = parentBuilder.getOptionalMessageBuilder(); in testNestedBuilderOnChangeEventPropagationReflection()
475 message = parentBuilder.build(); in testNestedBuilderOnChangeEventPropagationReflection()
480 testMapBuilder = parentBuilder.getOptionalMessageBuilder(); in testNestedBuilderOnChangeEventPropagationReflection()
484 message = parentBuilder.build(); in testNestedBuilderOnChangeEventPropagationReflection()
DGeneratedMessageTest.java1529 NestedTestAllTypes.Builder parentBuilder = NestedTestAllTypes.newBuilder(); in testOneofNestedBuilderOnChangePropagation() local
1530 TestAllTypes.Builder builder = parentBuilder.getPayloadBuilder(); in testOneofNestedBuilderOnChangePropagation()
1533 assertTrue(parentBuilder.hasPayload()); in testOneofNestedBuilderOnChangePropagation()
1534 NestedTestAllTypes message = parentBuilder.build(); in testOneofNestedBuilderOnChangePropagation()