package org.osgi.test.cases.repository.junit;

import org.osgi.framework.Bundle;
import org.osgi.test.support.compatibility.DefaultTestBundleControl;

public class RepositoryTest extends DefaultTestBundleControl {
    public void testFoo() {
        for (Bundle b : getContext().getBundles()) {
            System.out.println("**** " + b.getSymbolicName());
        }
    }

    public void testBar() {
    }
}

@@ -40,16 +40,42 @@
 junit;%0A%0A
+import java.util.Arrays;%0A%0A
 import o
@@ -120,59 +120,114 @@
 sgi.
-test.support.compatibility.DefaultTestBundleControl
+framework.Constants;%0Aimport org.osgi.framework.ServiceReference;%0Aimport org.osgi.test.support.OSGiTestCase
 ;%0A%0Ap
@@ -265,32 +265,20 @@
 nds 
-DefaultTestBundleControl
+OSGiTestCase
  %7B%0A 
@@ -299,18 +299,37 @@
  testFoo
+XX
 ()
+ throws Exception
  %7B%0A     
@@ -399,11 +399,11 @@
 tem.
-out
+err
 .pri
@@ -412,12 +412,12 @@
 ln(%22
-****
+@@@@
  %22 +
@@ -448,16 +448,227 @@
        %7D
+%0A%0A        for (ServiceReference%3C?%3E sr : getContext().getAllServiceReferences(null, null)) %7B%0A            System.err.println(%22**** %22 + Arrays.toString((String %5B%5D) sr.getProperty(Constants.OBJECTCLASS)));%0A        %7D
 %0A    %7D%0A%0A

Test to output some basic info - bundles deploy ok.