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

Enhance Hot Rod RemoteMultimapCache tests

    XMLWordPrintable

Details

    • Task
    • Resolution: Won't Do
    • Optional
    • None
    • None
    • HotRod Java client
    • None

    Description

      Positive test are fully covered in https://github.com/infinispan/infinispan/pull/5325 , negative tests could use enhancement.

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

      public interface RemoteMultimapCache<K, V> {
         CompletableFuture<Void> put(K key, V value);
           - Put wrong class of key/value/both
           - Put duplicates, confirm duplicates not supported
         CompletableFuture<Collection<V>> get(K key);    
           - positive get
           - crash on retrieving too big Collection on get
           - get invalid key*
         CompletableFuture<MetadataValue<Collection<V>>> getWithMetadata(K key);
           - get invalid key*
         CompletableFuture<Boolean> remove(K key);
           - remove invalid key*
         CompletableFuture<Long> size();
           - size with duplicates, removes and invalid puts*
      }
      
      • - wrong value/wrong class/null

      Attachments

        Activity

          People

            karestig@redhat.com Katia Aresti
            zhostasa_jira Zdenek Hostasa (Inactive)
            Votes:
            0 Vote for this issue
            Watchers:
            3 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved: