sling-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From tomm...@apache.org
Subject svn commit: r1745353 - /sling/trunk/contrib/extensions/distribution/core/src/test/java/org/apache/sling/distribution/queue/impl/simple/SimpleDistributionQueueCheckpointTest.java
Date Tue, 24 May 2016 12:39:30 GMT
Author: tommaso
Date: Tue May 24 12:39:30 2016
New Revision: 1745353

URL: http://svn.apache.org/viewvc?rev=1745353&view=rev
Log:
SLING-5737 - added entries to the map in the test

Modified:
    sling/trunk/contrib/extensions/distribution/core/src/test/java/org/apache/sling/distribution/queue/impl/simple/SimpleDistributionQueueCheckpointTest.java

Modified: sling/trunk/contrib/extensions/distribution/core/src/test/java/org/apache/sling/distribution/queue/impl/simple/SimpleDistributionQueueCheckpointTest.java
URL: http://svn.apache.org/viewvc/sling/trunk/contrib/extensions/distribution/core/src/test/java/org/apache/sling/distribution/queue/impl/simple/SimpleDistributionQueueCheckpointTest.java?rev=1745353&r1=1745352&r2=1745353&view=diff
==============================================================================
--- sling/trunk/contrib/extensions/distribution/core/src/test/java/org/apache/sling/distribution/queue/impl/simple/SimpleDistributionQueueCheckpointTest.java
(original)
+++ sling/trunk/contrib/extensions/distribution/core/src/test/java/org/apache/sling/distribution/queue/impl/simple/SimpleDistributionQueueCheckpointTest.java
Tue May 24 12:39:30 2016
@@ -58,7 +58,10 @@ public class SimpleDistributionQueueChec
         String queueName = "sample-queue";
         when(queue.getName()).thenReturn(queueName);
         LinkedList<DistributionQueueEntry> entries = new LinkedList<DistributionQueueEntry>();
-        entries.add(new DistributionQueueEntry("123", new DistributionQueueItem("pid123",
new HashedMap()),
+        HashedMap base = new HashedMap();
+        base.put("here","there");
+        base.put("foo","bar");
+        entries.add(new DistributionQueueEntry("123", new DistributionQueueItem("pid123",
base),
                 new DistributionQueueItemStatus(DistributionQueueItemState.QUEUED, queueName)));
         when(queue.getItems(0, -1)).thenReturn(entries);
         File checkpointDirectory = FileUtils.getTempDirectory();



Mime
View raw message