Uploaded image for project: 'Red Hat Data Grid'
  1. Red Hat Data Grid
  2. JDG-1168

Enhance Embedded MultimapCache tests

    XMLWordPrintable

Details

    • Task
    • Resolution: Done
    • Major
    • JDG 7.2 ER1
    • None
    • Core
    • None

    Description

      Positive tests are very well covered in https://github.com/infinispan/infinispan/pull/5193 , test suite should have some more negative tests.

      API: (Manager/Factory classes have one basically unbreakable method)

      public interface MultimapCache<K, V> {
         CompletableFuture<Void> put(K key, V value);
           - Put wrong class of key/value/both
           - Put duplicates, confirm duplicates in fact not supported
         CompletableFuture<Collection<V>> get(K key);    
           - Get invalid key*
         CompletableFuture<Optional<CacheEntry<K, Collection<V>>>> getEntry(K key);    
           - Get invalid key*
         CompletableFuture<Boolean> remove(K key);    
           - Remove invalid key*
         CompletableFuture<Boolean> remove(K key, V value);    
           - Remove invalid key/value*
         CompletableFuture<Void> remove(Predicate<? super V> p);    
           - Invalid predicate
         CompletableFuture<Boolean> containsKey(K key); 
           - contains invalid key class
         CompletableFuture<Boolean> containsValue(V value); 
           - contains invalid value class
         CompletableFuture<Boolean> containsEntry(K key, V value);
           - contains invalid key*/value class
         CompletableFuture<Long> size();    
           - size with duplicates and removes
         boolean supportsDuplicates();
      }
      
      • - wrong value/wrong class/null

      Attachments

        Issue Links

          Activity

            People

              zhostasa_jira Zdenek Hostasa (Inactive)
              zhostasa_jira Zdenek Hostasa (Inactive)
              Votes:
              0 Vote for this issue
              Watchers:
              2 Start watching this issue

              Dates

                Created:
                Updated:
                Resolved: