tamaya-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From anat...@apache.org
Subject [5/6] incubator-tamaya git commit: Ignored test not running.
Date Tue, 10 Nov 2015 14:40:58 GMT
Ignored test not running.


Project: http://git-wip-us.apache.org/repos/asf/incubator-tamaya/repo
Commit: http://git-wip-us.apache.org/repos/asf/incubator-tamaya/commit/d458e287
Tree: http://git-wip-us.apache.org/repos/asf/incubator-tamaya/tree/d458e287
Diff: http://git-wip-us.apache.org/repos/asf/incubator-tamaya/diff/d458e287

Branch: refs/heads/master
Commit: d458e2874e1c9b1e889f95a05bc100555f514fbb
Parents: 1a811b8
Author: anatole <anatole@apache.org>
Authored: Tue Nov 10 15:39:21 2015 +0100
Committer: anatole <anatole@apache.org>
Committed: Tue Nov 10 15:39:21 2015 +0100

----------------------------------------------------------------------
 .../osgi/felix/TestConfigIntegration.java       | 26 +++++++++++++-------
 1 file changed, 17 insertions(+), 9 deletions(-)
----------------------------------------------------------------------


http://git-wip-us.apache.org/repos/asf/incubator-tamaya/blob/d458e287/modules/integration/osgi/felix/src/test/java/org/apache/tamaya/integration/osgi/felix/TestConfigIntegration.java
----------------------------------------------------------------------
diff --git a/modules/integration/osgi/felix/src/test/java/org/apache/tamaya/integration/osgi/felix/TestConfigIntegration.java
b/modules/integration/osgi/felix/src/test/java/org/apache/tamaya/integration/osgi/felix/TestConfigIntegration.java
index 0f31b14..237e0c5 100644
--- a/modules/integration/osgi/felix/src/test/java/org/apache/tamaya/integration/osgi/felix/TestConfigIntegration.java
+++ b/modules/integration/osgi/felix/src/test/java/org/apache/tamaya/integration/osgi/felix/TestConfigIntegration.java
@@ -55,6 +55,8 @@ public class TestConfigIntegration{
 
     @ArquillianResource BundleContext context;
 
+    //////////////////////////////////////////////////////// Test setup //////////////////////////////////
+
     @Deployment
     public static JavaArchive createdeployment() {
         final JavaArchive archive = ShrinkWrap.create(JavaArchive.class, "tamaya-config.jar");
@@ -69,8 +71,8 @@ public class TestConfigIntegration{
                 return builder.openStream();
             }
         });
-        archive.addClasses(Activator.class, ConfigurationHandler.class, TamayaPersistenceManager.class)
      ;
-        archive.addAsResource("META-INF/javaconfiguration.properties");
+        archive.addClasses(Activator.class, ConfigurationHandler.class, TamayaPersistenceManager.class);
+//        archive.addAsResource("META-INF/javaconfiguration.properties");
         return archive;
     }
 
@@ -121,15 +123,21 @@ public class TestConfigIntegration{
                 .resolve("org.apache.tamaya:" + artifactId).withoutTransitivity().asSingleFile();
     }
 
+
+    //////////////////////////////////////////////////////// Tests //////////////////////////////////
+
+
     @Before
     public void startBundles(){
-        for(Bundle bundle:context.getBundles()){
-            try {
-                bundle.start();
-            } catch (BundleException e) {
-                e.printStackTrace();
-            }
+//        for(Bundle bundle:context.getBundles()){
+//            context
+//                bundle.start();
+        try{
+            context.getBundle(0).start();
+        } catch (BundleException e) {
+            e.printStackTrace();
         }
+//        }
     }
 
     @Test @Ignore
@@ -158,8 +166,8 @@ public class TestConfigIntegration{
     @Test
     public void testBundleContextInjection() throws Exception {
         assertNotNull("BundleContext injected", context);
-        assertEquals("System Bundle ID", 0, context.getBundle().getBundleId());
         System.err.println(Arrays.toString(context.getBundles()));
+        assertEquals("System Bundle ID", 0, context.getBundle().getBundleId());
     }
 
 }
\ No newline at end of file


Mime
View raw message