sling-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From jus...@apache.org
Subject svn commit: r1378259 - /sling/trunk/performance/jcr-resource-2.2.0/src/test/java/org/apache/sling/performance/PerformanceTest.java
Date Tue, 28 Aug 2012 18:34:24 GMT
Author: justin
Date: Tue Aug 28 18:34:24 2012
New Revision: 1378259

URL: http://svn.apache.org/viewvc?rev=1378259&view=rev
Log:
SLING-2311 - making trivial change to simplify test

Modified:
    sling/trunk/performance/jcr-resource-2.2.0/src/test/java/org/apache/sling/performance/PerformanceTest.java

Modified: sling/trunk/performance/jcr-resource-2.2.0/src/test/java/org/apache/sling/performance/PerformanceTest.java
URL: http://svn.apache.org/viewvc/sling/trunk/performance/jcr-resource-2.2.0/src/test/java/org/apache/sling/performance/PerformanceTest.java?rev=1378259&r1=1378258&r2=1378259&view=diff
==============================================================================
--- sling/trunk/performance/jcr-resource-2.2.0/src/test/java/org/apache/sling/performance/PerformanceTest.java
(original)
+++ sling/trunk/performance/jcr-resource-2.2.0/src/test/java/org/apache/sling/performance/PerformanceTest.java
Tue Aug 28 18:34:24 2012
@@ -97,20 +97,9 @@ public class PerformanceTest extends Abs
 
             // setup mapping root
             PrivateAccessor.setField(activator, "mapRoot", "/etc/map");
-            
-            final EventAdmin mockVoidEA = new EventAdmin() {
-
-                public void postEvent(Event event) {
-                    // nothing to do
-                }
-
-                public void sendEvent(Event event) {
-                    // nothing to do
-                }
-            };
             ResourceResolverFactoryImpl resFac = new ResourceResolverFactoryImpl(activator);
 
-            mapEntries = new MapEntries(resFac, mock(BundleContext.class), mockVoidEA);
+            mapEntries = new MapEntries(resFac, mock(BundleContext.class), mock(EventAdmin.class));
             PrivateAccessor.setField(resFac, "mapEntries", mapEntries);
 
             try {



Mime
View raw message