com.google.common.collect.testing.TestMapGenerator Java Examples
The following examples show how to use
com.google.common.collect.testing.TestMapGenerator.
You can vote up the ones you like or vote down the ones you don't like,
and go to the original project or source file by following the links above each example. You may check out the related API usage on the sidebar.
Example #1
Source File: MapTestFactory.java From caffeine with Apache License 2.0 | 5 votes |
/** * Returns a test suite. * * @param name the name of the cache type under test * @param generator the map generator * @return a suite of tests */ public static Test suite(String name, TestMapGenerator<?, ?> generator) { return ConcurrentMapTestSuiteBuilder .using(generator) .named(name) .withFeatures( MapFeature.GENERAL_PURPOSE, MapFeature.ALLOWS_NULL_ENTRY_QUERIES, CollectionFeature.SUPPORTS_ITERATOR_REMOVE, CollectionSize.ANY) .createTestSuite(); }
Example #2
Source File: Int2IntHashMapConformanceTest.java From agrona with Apache License 2.0 | 5 votes |
private static <T> TestSuite mapTestSuite(final TestMapGenerator<T, T> testMapGenerator, final String name) { return new MapTestSuiteBuilder<T, T>() { { usingGenerator(testMapGenerator); } }.withFeatures( MapFeature.GENERAL_PURPOSE, CollectionSize.ANY, CollectionFeature.SUPPORTS_ITERATOR_REMOVE) .named(name) .createTestSuite(); }
Example #3
Source File: Long2LongHashMapConformanceTest.java From agrona with Apache License 2.0 | 5 votes |
private static <T> TestSuite mapTestSuite(final TestMapGenerator<T, T> testMapGenerator, final String name) { return new MapTestSuiteBuilder<T, T>() { { usingGenerator(testMapGenerator); } }.withFeatures( MapFeature.GENERAL_PURPOSE, CollectionSize.ANY, CollectionFeature.SUPPORTS_ITERATOR_REMOVE) .named(name) .createTestSuite(); }
Example #4
Source File: Long2ObjectHashMapConformanceTest.java From agrona with Apache License 2.0 | 5 votes |
private static <T> TestSuite mapTestSuite(final TestMapGenerator<T, T> testMapGenerator, final String name) { return new MapTestSuiteBuilder<T, T>() { { usingGenerator(testMapGenerator); } }.withFeatures( MapFeature.GENERAL_PURPOSE, CollectionSize.ANY, CollectionFeature.SUPPORTS_ITERATOR_REMOVE) .named(name) .createTestSuite(); }
Example #5
Source File: Object2IntHashMapConformanceTest.java From agrona with Apache License 2.0 | 5 votes |
private static <T> TestSuite mapTestSuite(final TestMapGenerator<T, T> testMapGenerator, final String name) { return new MapTestSuiteBuilder<T, T>() { { usingGenerator(testMapGenerator); } }.withFeatures( MapFeature.GENERAL_PURPOSE, CollectionSize.ANY, CollectionFeature.SUPPORTS_ITERATOR_REMOVE) .named(name) .createTestSuite(); }
Example #6
Source File: Object2ObjectHashMapConformanceTest.java From agrona with Apache License 2.0 | 5 votes |
private static <T> TestSuite mapTestSuite(final TestMapGenerator<T, T> testMapGenerator, final String name) { return new MapTestSuiteBuilder<T, T>() { { usingGenerator(testMapGenerator); } }.withFeatures( MapFeature.GENERAL_PURPOSE, CollectionSize.ANY, CollectionFeature.SUPPORTS_ITERATOR_REMOVE) .named(name) .createTestSuite(); }
Example #7
Source File: Int2ObjectHashMapConformanceTest.java From agrona with Apache License 2.0 | 5 votes |
private static <T> TestSuite mapTestSuite(final TestMapGenerator<T, T> testMapGenerator, final String name) { return new MapTestSuiteBuilder<T, T>() { { usingGenerator(testMapGenerator); } }.withFeatures( MapFeature.GENERAL_PURPOSE, CollectionSize.ANY, CollectionFeature.SUPPORTS_ITERATOR_REMOVE) .named(name) .createTestSuite(); }
Example #8
Source File: Int2NullableObjectHashMapConformanceTest.java From agrona with Apache License 2.0 | 5 votes |
private static <T> TestSuite mapTestSuite(final TestMapGenerator<T, T> testMapGenerator, final String name) { return new MapTestSuiteBuilder<T, T>() { { usingGenerator(testMapGenerator); } }.withFeatures( MapFeature.GENERAL_PURPOSE, MapFeature.ALLOWS_NULL_VALUES, CollectionSize.ANY, CollectionFeature.SUPPORTS_ITERATOR_REMOVE) .named(name) .createTestSuite(); }
Example #9
Source File: Object2LongHashMapConformanceTest.java From agrona with Apache License 2.0 | 5 votes |
private static <T> TestSuite mapTestSuite(final TestMapGenerator<T, T> testMapGenerator, final String name) { return new MapTestSuiteBuilder<T, T>() { { usingGenerator(testMapGenerator); } }.withFeatures( MapFeature.GENERAL_PURPOSE, CollectionSize.ANY, CollectionFeature.SUPPORTS_ITERATOR_REMOVE) .named(name) .createTestSuite(); }
Example #10
Source File: Object2NullableObjectHashMapConformanceTest.java From agrona with Apache License 2.0 | 5 votes |
private static <T> TestSuite mapTestSuite(final TestMapGenerator<T, T> testMapGenerator, final String name) { return new MapTestSuiteBuilder<T, T>() { { usingGenerator(testMapGenerator); } }.withFeatures( MapFeature.GENERAL_PURPOSE, MapFeature.ALLOWS_NULL_VALUES, CollectionSize.ANY, CollectionFeature.SUPPORTS_ITERATOR_REMOVE) .named(name) .createTestSuite(); }
Example #11
Source File: Long2NullableObjectHashMapConformanceTest.java From agrona with Apache License 2.0 | 5 votes |
private static <T> TestSuite mapTestSuite(final TestMapGenerator<T, T> testMapGenerator, final String name) { return new MapTestSuiteBuilder<T, T>() { { usingGenerator(testMapGenerator); } }.withFeatures( MapFeature.GENERAL_PURPOSE, MapFeature.ALLOWS_NULL_VALUES, CollectionSize.ANY, CollectionFeature.SUPPORTS_ITERATOR_REMOVE) .named(name) .createTestSuite(); }