aries-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From lin...@apache.org
Subject svn commit: r941494 - in /incubator/aries/sandbox/linsun/blueprint/blueprint-annotation-itest: pom.xml src/test/java/org/apache/aries/blueprint/itests/BlueprintAnnotationTest.java
Date Wed, 05 May 2010 21:14:28 GMT
Author: linsun
Date: Wed May  5 21:14:27 2010
New Revision: 941494

URL: http://svn.apache.org/viewvc?rev=941494&view=rev
Log:
[blueprint annotation]get the itest working with simple annotation

Modified:
    incubator/aries/sandbox/linsun/blueprint/blueprint-annotation-itest/pom.xml
    incubator/aries/sandbox/linsun/blueprint/blueprint-annotation-itest/src/test/java/org/apache/aries/blueprint/itests/BlueprintAnnotationTest.java

Modified: incubator/aries/sandbox/linsun/blueprint/blueprint-annotation-itest/pom.xml
URL: http://svn.apache.org/viewvc/incubator/aries/sandbox/linsun/blueprint/blueprint-annotation-itest/pom.xml?rev=941494&r1=941493&r2=941494&view=diff
==============================================================================
--- incubator/aries/sandbox/linsun/blueprint/blueprint-annotation-itest/pom.xml (original)
+++ incubator/aries/sandbox/linsun/blueprint/blueprint-annotation-itest/pom.xml Wed May  5
21:14:27 2010
@@ -65,6 +65,7 @@
         <dependency>
             <groupId>org.apache.aries.blueprint</groupId>
             <artifactId>org.apache.aries.blueprint.sample-annotation</artifactId>
+            <version>${version}</version>
             <scope>test</scope>
         </dependency>        
         <dependency>
@@ -147,7 +148,11 @@
             <artifactId>org.apache.aries.blueprint.annotation.api</artifactId>
             <version>${version}</version>
         </dependency>
-
+        <dependency>
+            <groupId>org.apache.aries.blueprint</groupId>
+            <artifactId>org.apache.aries.blueprint.annotation.impl</artifactId>
+            <version>${version}</version>
+        </dependency>
     </dependencies>
 
     <build>

Modified: incubator/aries/sandbox/linsun/blueprint/blueprint-annotation-itest/src/test/java/org/apache/aries/blueprint/itests/BlueprintAnnotationTest.java
URL: http://svn.apache.org/viewvc/incubator/aries/sandbox/linsun/blueprint/blueprint-annotation-itest/src/test/java/org/apache/aries/blueprint/itests/BlueprintAnnotationTest.java?rev=941494&r1=941493&r2=941494&view=diff
==============================================================================
--- incubator/aries/sandbox/linsun/blueprint/blueprint-annotation-itest/src/test/java/org/apache/aries/blueprint/itests/BlueprintAnnotationTest.java
(original)
+++ incubator/aries/sandbox/linsun/blueprint/blueprint-annotation-itest/src/test/java/org/apache/aries/blueprint/itests/BlueprintAnnotationTest.java
Wed May  5 21:14:27 2010
@@ -31,6 +31,7 @@ import static org.ops4j.pax.exam.CoreOpt
 import java.text.SimpleDateFormat;
 import java.util.Currency;
 import java.util.Hashtable;
+import java.util.Set;
 
 import org.apache.aries.blueprint.sample.Bar;
 import org.apache.aries.blueprint.sample.Foo;
@@ -54,7 +55,8 @@ public class BlueprintAnnotationTest ext
 
         assertNotNull(blueprintContainer);
 
-        Object obj = blueprintContainer.getComponentInstance("Bar");
+        Set<String> ids = blueprintContainer.getComponentIds();
+        Object obj = blueprintContainer.getComponentInstance("bar");
         assertNotNull(obj);
         assertEquals(Bar.class, obj.getClass());
         Bar bar = (Bar) obj;
@@ -82,6 +84,7 @@ public class BlueprintAnnotationTest ext
             mavenBundle("org.apache.xbean", "xbean-finder"),
             mavenBundle("org.apache.aries.blueprint", "org.apache.aries.blueprint.annotation.api"),
             mavenBundle("org.apache.aries.blueprint", "org.apache.aries.blueprint"),
+            mavenBundle("org.apache.aries.blueprint", "org.apache.aries.blueprint.annotation.impl"),
             mavenBundle("org.apache.aries.blueprint", "org.apache.aries.blueprint.sample-annotation"),
             //mavenBundle("org.apache.aries.blueprint", "org.apache.aries.blueprint.sample"),
             mavenBundle("org.osgi", "org.osgi.compendium"),



Mime
View raw message