Class UtilCacheTests

  • All Implemented Interfaces:
    java.io.Serializable, junit.framework.Test

    public class UtilCacheTests
    extends GenericTestCaseBase
    implements java.io.Serializable
    See Also:
    Serialized Form
    • Field Detail

      • module

        public static final java.lang.String module
    • Constructor Detail

      • UtilCacheTests

        public UtilCacheTests​(java.lang.String name)
    • Method Detail

      • testCreateUtilCache

        public void testCreateUtilCache()
      • assertKey

        public static <K,​V> void assertKey​(java.lang.String label,
                                                 UtilCache<K,​V> cache,
                                                 K key,
                                                 V value,
                                                 V other,
                                                 int size,
                                                 java.util.Map<K,​V> map)
      • testSimple

        public void testSimple()
                        throws java.lang.Exception
        Throws:
        java.lang.Exception
      • testPutIfAbsent

        public void testPutIfAbsent()
                             throws java.lang.Exception
        Throws:
        java.lang.Exception
      • testPutIfAbsentAndGet

        public void testPutIfAbsentAndGet()
                                   throws java.lang.Exception
        Throws:
        java.lang.Exception
      • testChangeMemSize

        public void testChangeMemSize()
                               throws java.lang.Exception
        Throws:
        java.lang.Exception
      • testExpire

        public void testExpire()
                        throws java.lang.Exception
        Throws:
        java.lang.Exception