incubator-sling-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From cziege...@apache.org
Subject svn commit: r832615 - /sling/trunk/bundles/extensions/event/src/test/java/org/apache/sling/event/EventUtilTest.java
Date Tue, 03 Nov 2009 23:46:51 GMT
Author: cziegeler
Date: Tue Nov  3 23:46:50 2009
New Revision: 832615

URL: http://svn.apache.org/viewvc?rev=832615&view=rev
Log:
Clean up code

Modified:
    sling/trunk/bundles/extensions/event/src/test/java/org/apache/sling/event/EventUtilTest.java

Modified: sling/trunk/bundles/extensions/event/src/test/java/org/apache/sling/event/EventUtilTest.java
URL: http://svn.apache.org/viewvc/sling/trunk/bundles/extensions/event/src/test/java/org/apache/sling/event/EventUtilTest.java?rev=832615&r1=832614&r2=832615&view=diff
==============================================================================
--- sling/trunk/bundles/extensions/event/src/test/java/org/apache/sling/event/EventUtilTest.java
(original)
+++ sling/trunk/bundles/extensions/event/src/test/java/org/apache/sling/event/EventUtilTest.java
Tue Nov  3 23:46:50 2009
@@ -54,16 +54,16 @@
     @Test public void testDistributeFlag() {
         final Event distributableEvent = EventUtil.createDistributableEvent("some/topic",
null);
         assertTrue(EventUtil.shouldDistribute(distributableEvent));
-        final Event nonDistributableEvent = new Event("another/topic", (Dictionary)null);
+        final Event nonDistributableEvent = new Event("another/topic", (Dictionary<String,
Object>)null);
         assertFalse(EventUtil.shouldDistribute(nonDistributableEvent));
     }
 
     @Test public void testLocalFlag() {
-        final Event localEvent = new Event("local/event", (Dictionary)null);
+        final Event localEvent = new Event("local/event", (Dictionary<String, Object>)null);
         assertTrue(EventUtil.isLocal(localEvent));
         final Properties props = new Properties();
         props.put(EventUtil.PROPERTY_APPLICATION, "application1");
-        final Event remoteEvent = new Event("remote/event", props);
+        final Event remoteEvent = new Event("remote/event", (Dictionary<Object, Object>)props);
         assertFalse(EventUtil.isLocal(remoteEvent));
     }
 



Mime
View raw message