incubator-aries-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From dav...@apache.org
Subject svn commit: r1048992 - in /incubator/aries/trunk/spi-fly/contrib/pilot_using_weavinghook/SpiFlyTests/src/org/apache/aries/spifly: ./ impl2/ impl2/META-INF/ impl2/META-INF/services/
Date Tue, 14 Dec 2010 09:23:59 GMT
Author: davidb
Date: Tue Dec 14 09:23:59 2010
New Revision: 1048992

URL: http://svn.apache.org/viewvc?rev=1048992&view=rev
Log:
An additional test SPI imple bundle.

Added:
    incubator/aries/trunk/spi-fly/contrib/pilot_using_weavinghook/SpiFlyTests/src/org/apache/aries/spifly/impl2/
    incubator/aries/trunk/spi-fly/contrib/pilot_using_weavinghook/SpiFlyTests/src/org/apache/aries/spifly/impl2/META-INF/
    incubator/aries/trunk/spi-fly/contrib/pilot_using_weavinghook/SpiFlyTests/src/org/apache/aries/spifly/impl2/META-INF/services/
    incubator/aries/trunk/spi-fly/contrib/pilot_using_weavinghook/SpiFlyTests/src/org/apache/aries/spifly/impl2/META-INF/services/org.apache.aries.mytest.MySPI
    incubator/aries/trunk/spi-fly/contrib/pilot_using_weavinghook/SpiFlyTests/src/org/apache/aries/spifly/impl2/MySPIImpl2.java
    incubator/aries/trunk/spi-fly/contrib/pilot_using_weavinghook/SpiFlyTests/src/org/apache/aries/spifly/impl2/MySPIImpl3.java
Modified:
    incubator/aries/trunk/spi-fly/contrib/pilot_using_weavinghook/SpiFlyTests/src/org/apache/aries/spifly/ClientWeavingHookTest.java

Modified: incubator/aries/trunk/spi-fly/contrib/pilot_using_weavinghook/SpiFlyTests/src/org/apache/aries/spifly/ClientWeavingHookTest.java
URL: http://svn.apache.org/viewvc/incubator/aries/trunk/spi-fly/contrib/pilot_using_weavinghook/SpiFlyTests/src/org/apache/aries/spifly/ClientWeavingHookTest.java?rev=1048992&r1=1048991&r2=1048992&view=diff
==============================================================================
--- incubator/aries/trunk/spi-fly/contrib/pilot_using_weavinghook/SpiFlyTests/src/org/apache/aries/spifly/ClientWeavingHookTest.java
(original)
+++ incubator/aries/trunk/spi-fly/contrib/pilot_using_weavinghook/SpiFlyTests/src/org/apache/aries/spifly/ClientWeavingHookTest.java
Tue Dec 14 09:23:59 2010
@@ -31,7 +31,7 @@ public class ClientWeavingHookTest {
     }
         
     @Test
-    public void testClientWeavingHook() throws Exception {
+    public void testClientWeavingHookBasicServiveLoaderUsage() throws Exception {
         // Set up the classloader that will be used by the ASM-generated code as the TCCL.

         // It can load a META-INF/services file
         ClassLoader cl = new TestImplClassLoader("impl1", "META-INF/services/org.apache.aries.mytest.MySPI");
@@ -80,6 +80,11 @@ public class ClientWeavingHookTest {
         Object result = method.invoke(inst, "hello");
         Assert.assertEquals("olleh", result);
     }
+    
+    @Test
+    public void testClientWeavingHookMultipleProviders() throws Exception {
+        
+    }
         
     private class TestImplClassLoader extends URLClassLoader {
         private final List<String> resources;

Added: incubator/aries/trunk/spi-fly/contrib/pilot_using_weavinghook/SpiFlyTests/src/org/apache/aries/spifly/impl2/META-INF/services/org.apache.aries.mytest.MySPI
URL: http://svn.apache.org/viewvc/incubator/aries/trunk/spi-fly/contrib/pilot_using_weavinghook/SpiFlyTests/src/org/apache/aries/spifly/impl2/META-INF/services/org.apache.aries.mytest.MySPI?rev=1048992&view=auto
==============================================================================
--- incubator/aries/trunk/spi-fly/contrib/pilot_using_weavinghook/SpiFlyTests/src/org/apache/aries/spifly/impl2/META-INF/services/org.apache.aries.mytest.MySPI
(added)
+++ incubator/aries/trunk/spi-fly/contrib/pilot_using_weavinghook/SpiFlyTests/src/org/apache/aries/spifly/impl2/META-INF/services/org.apache.aries.mytest.MySPI
Tue Dec 14 09:23:59 2010
@@ -0,0 +1,2 @@
+org.apache.aries.spifly.impl2.MySPIImpl2
+org.apache.aries.spifly.impl2.MySPIImpl3
\ No newline at end of file

Added: incubator/aries/trunk/spi-fly/contrib/pilot_using_weavinghook/SpiFlyTests/src/org/apache/aries/spifly/impl2/MySPIImpl2.java
URL: http://svn.apache.org/viewvc/incubator/aries/trunk/spi-fly/contrib/pilot_using_weavinghook/SpiFlyTests/src/org/apache/aries/spifly/impl2/MySPIImpl2.java?rev=1048992&view=auto
==============================================================================
--- incubator/aries/trunk/spi-fly/contrib/pilot_using_weavinghook/SpiFlyTests/src/org/apache/aries/spifly/impl2/MySPIImpl2.java
(added)
+++ incubator/aries/trunk/spi-fly/contrib/pilot_using_weavinghook/SpiFlyTests/src/org/apache/aries/spifly/impl2/MySPIImpl2.java
Tue Dec 14 09:23:59 2010
@@ -0,0 +1,10 @@
+package org.apache.aries.spifly.impl2;
+
+import org.apache.aries.mytest.MySPI;
+
+public class MySPIImpl2 implements MySPI{
+    @Override
+    public String someMethod(String s) {
+        return s.toUpperCase();
+    }
+}

Added: incubator/aries/trunk/spi-fly/contrib/pilot_using_weavinghook/SpiFlyTests/src/org/apache/aries/spifly/impl2/MySPIImpl3.java
URL: http://svn.apache.org/viewvc/incubator/aries/trunk/spi-fly/contrib/pilot_using_weavinghook/SpiFlyTests/src/org/apache/aries/spifly/impl2/MySPIImpl3.java?rev=1048992&view=auto
==============================================================================
--- incubator/aries/trunk/spi-fly/contrib/pilot_using_weavinghook/SpiFlyTests/src/org/apache/aries/spifly/impl2/MySPIImpl3.java
(added)
+++ incubator/aries/trunk/spi-fly/contrib/pilot_using_weavinghook/SpiFlyTests/src/org/apache/aries/spifly/impl2/MySPIImpl3.java
Tue Dec 14 09:23:59 2010
@@ -0,0 +1,10 @@
+package org.apache.aries.spifly.impl2;
+
+import org.apache.aries.mytest.MySPI;
+
+public class MySPIImpl3 implements MySPI{
+    @Override
+    public String someMethod(String s) {
+        return "" + s.length();
+    }
+}



Mime
View raw message