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() {
    }
}

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

import java.util.Arrays;

import org.osgi.framework.Bundle;
import org.osgi.framework.Constants;
import org.osgi.framework.ServiceReference;
import org.osgi.test.support.OSGiTestCase;

public class RepositoryTest extends OSGiTestCase {
    public void testFooXX() throws Exception {
        for (Bundle b : getContext().getBundles()) {
            System.err.println("@@@@ " + b.getSymbolicName());
        }

        for (ServiceReference<?> sr : getContext().getAllServiceReferences(null, null)) {
            System.err.println("**** " + Arrays.toString((String []) sr.getProperty(Constants.OBJECTCLASS)));
        }
    }

    public void testBar() {
    }
}

Test to output some basic info - bundles deploy ok.
Test to output some basic info - bundles deploy ok.
