felix-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From ma...@apache.org
Subject svn commit: r882947 - in /felix/trunk/dependencymanager.temp: ./ src/main/java/org/apache/felix/dependencymanager/ src/test/java/org/apache/felix/dependencymanager/test/
Date Sat, 21 Nov 2009 17:59:33 GMT
Author: marrs
Date: Sat Nov 21 17:59:33 2009
New Revision: 882947

URL: http://svn.apache.org/viewvc?rev=882947&view=rev
Log:
Preparing move.

Added:
    felix/trunk/dependencymanager.temp/
      - copied from r880644, felix/trunk/dependencymanager/
    felix/trunk/dependencymanager.temp/pom.xml
      - copied unchanged from r882937, felix/trunk/dependencymanager/pom.xml
    felix/trunk/dependencymanager.temp/src/main/java/org/apache/felix/dependencymanager/ServiceDependency.java
      - copied unchanged from r880645, felix/trunk/dependencymanager/src/main/java/org/apache/felix/dependencymanager/ServiceDependency.java
    felix/trunk/dependencymanager.temp/src/test/java/org/apache/felix/dependencymanager/test/
      - copied from r882937, felix/trunk/dependencymanager/src/test/java/org/apache/felix/dependencymanager/test/
Modified:
    felix/trunk/dependencymanager.temp/src/test/java/org/apache/felix/dependencymanager/test/ComponentLifeCycleTest.java

Modified: felix/trunk/dependencymanager.temp/src/test/java/org/apache/felix/dependencymanager/test/ComponentLifeCycleTest.java
URL: http://svn.apache.org/viewvc/felix/trunk/dependencymanager.temp/src/test/java/org/apache/felix/dependencymanager/test/ComponentLifeCycleTest.java?rev=882947&r1=882937&r2=882947&view=diff
==============================================================================
--- felix/trunk/dependencymanager.temp/src/test/java/org/apache/felix/dependencymanager/test/ComponentLifeCycleTest.java
(original)
+++ felix/trunk/dependencymanager.temp/src/test/java/org/apache/felix/dependencymanager/test/ComponentLifeCycleTest.java
Sat Nov 21 17:59:33 2009
@@ -39,11 +39,15 @@
         m.remove(s);
         // ensure we executed all steps inside the component instance
         e.step(6);
-        
+    }
+    
+    @Test
+    public void testCustomComponentLifeCycleCallbacks(BundleContext context) {
+        DependencyManager m = new DependencyManager(context, new Logger(context));
         // helper class that ensures certain steps get executed in sequence
-        e = new Ensure();
+        Ensure e = new Ensure();
         // create a simple service component
-        s = m.createService().setImplementation(new CustomComponentInstance(e)).setCallbacks("a",
"b", "c", "d");
+        Service s = m.createService().setImplementation(new CustomComponentInstance(e)).setCallbacks("a",
"b", "c", "d");
         // add it, and since it has no dependencies, it should be activated immediately
         m.add(s);
         // remove it so it gets destroyed
@@ -51,7 +55,6 @@
         // ensure we executed all steps inside the component instance
         e.step(6);
     }
-    
 }
 
 class ComponentInstance {



Mime
View raw message