Class MapPutAllTester<K,​V>

  • All Implemented Interfaces:
    junit.framework.Test

    public class MapPutAllTester<K,​V>
    extends AbstractMapTester<K,​V>
    A generic JUnit test which tests putAll operations on a map. Can't be invoked directly; please see MapTestSuiteBuilder.
    • Field Detail

      • containsNullKey

        private java.util.List<java.util.Map.Entry<K,​V>> containsNullKey
      • containsNullValue

        private java.util.List<java.util.Map.Entry<K,​V>> containsNullValue
    • Constructor Detail

      • MapPutAllTester

        public MapPutAllTester()
    • Method Detail

      • setUp

        public void setUp()
                   throws java.lang.Exception
        Overrides:
        setUp in class AbstractContainerTester<java.util.Map<K,​V>,​java.util.Map.Entry<K,​V>>
        Throws:
        java.lang.Exception
      • testPutAll_supportedNothing

        public void testPutAll_supportedNothing()
      • testPutAll_unsupportedNothing

        public void testPutAll_unsupportedNothing()
      • testPutAll_supportedNonePresent

        public void testPutAll_supportedNonePresent()
      • testPutAll_unsupportedNonePresent

        public void testPutAll_unsupportedNonePresent()
      • testPutAll_supportedSomePresent

        public void testPutAll_supportedSomePresent()
      • testPutAllSomePresentConcurrentWithEntrySetIteration

        public void testPutAllSomePresentConcurrentWithEntrySetIteration()
      • testPutAll_unsupportedSomePresent

        public void testPutAll_unsupportedSomePresent()
      • testPutAll_unsupportedAllPresent

        public void testPutAll_unsupportedAllPresent()
      • testPutAll_nullKeySupported

        public void testPutAll_nullKeySupported()
      • testPutAll_nullKeyUnsupported

        public void testPutAll_nullKeyUnsupported()
      • testPutAll_nullValueSupported

        public void testPutAll_nullValueSupported()
      • testPutAll_nullValueUnsupported

        public void testPutAll_nullValueUnsupported()
      • testPutAll_nullCollectionReference

        public void testPutAll_nullCollectionReference()
      • emptyMap

        private java.util.Map<K,​V> emptyMap()
      • putAll

        private void putAll​(java.lang.Iterable<java.util.Map.Entry<K,​V>> entries)
      • getPutAllNullKeyUnsupportedMethod

        public static java.lang.reflect.Method getPutAllNullKeyUnsupportedMethod()
        Returns the Method instance for testPutAll_nullKeyUnsupported() so that tests can suppress it with FeatureSpecificTestSuiteBuilder.suppressing() until Sun bug 5045147 is fixed.