felix-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From uiter...@apache.org
Subject svn commit: r1603183 - /felix/sandbox/pderop/dependencymanager-prototype/org.apache.felix.dm/test/org/apache/felix/dm/tracker/TrackedTest.java
Date Tue, 17 Jun 2014 14:19:13 GMT
Author: uiterlix
Date: Tue Jun 17 14:19:13 2014
New Revision: 1603183

URL: http://svn.apache.org/r1603183
Log:
Fixed failing TrackedTest.

Modified:
    felix/sandbox/pderop/dependencymanager-prototype/org.apache.felix.dm/test/org/apache/felix/dm/tracker/TrackedTest.java

Modified: felix/sandbox/pderop/dependencymanager-prototype/org.apache.felix.dm/test/org/apache/felix/dm/tracker/TrackedTest.java
URL: http://svn.apache.org/viewvc/felix/sandbox/pderop/dependencymanager-prototype/org.apache.felix.dm/test/org/apache/felix/dm/tracker/TrackedTest.java?rev=1603183&r1=1603182&r2=1603183&view=diff
==============================================================================
--- felix/sandbox/pderop/dependencymanager-prototype/org.apache.felix.dm/test/org/apache/felix/dm/tracker/TrackedTest.java
(original)
+++ felix/sandbox/pderop/dependencymanager-prototype/org.apache.felix.dm/test/org/apache/felix/dm/tracker/TrackedTest.java
Tue Jun 17 14:19:13 2014
@@ -57,6 +57,7 @@ public class TrackedTest {
 		};
 		tracked.setInitial(initialReferences);
 		tracked.trackInitial();
+		tracked.getExecutor().execute();
 		assertArrayEquals(new Long[] { 2L, 5L }, customizer.getServiceReferenceIds());
 	}
 	
@@ -78,6 +79,7 @@ public class TrackedTest {
 		};
 		tracked.setInitial(initialReferences);
 		tracked.trackInitial();
+		tracked.getExecutor().execute();
 		assertArrayEquals(new Long[] { 2L, 5L }, customizer.getServiceReferenceIds());
 		
 		// create a service event that unregisters service with id 2, we would expect it to be
swapped with 4.
@@ -108,6 +110,7 @@ public class TrackedTest {
 		};
 		tracked.setInitial(initialReferences);
 		tracked.trackInitial();
+		tracked.getExecutor().execute();
 		assertArrayEquals(new Long[] { 2L, 5L }, customizer.getServiceReferenceIds());
 		
 		// create a service event that registers another but lower ranked aspect for service with
id 1. 
@@ -149,6 +152,7 @@ public class TrackedTest {
 		};
 		tracked.setInitial(initialReferences);
 		tracked.trackInitial();
+		tracked.getExecutor().execute();
 		assertArrayEquals(new Long[] { 1L, 2L, 3L }, customizer.getServiceReferenceIds());
 	}	
 	



Mime
View raw message