Skip to content

Commit

Permalink
[MAINTENANCE] Refactor tests in BMP
Browse files Browse the repository at this point in the history
git-svn-id: https://svn.apache.org/repos/asf/aries/trunk@1810274 13f79535-47bb-0310-9956-ffa450edef68
  • Loading branch information
alien11689 committed Oct 1, 2017
1 parent cf62c10 commit 9ba6af3
Show file tree
Hide file tree
Showing 3 changed files with 10 additions and 7 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -16,8 +16,10 @@
* specific language governing permissions and limitations
* under the License.
*/
package org.apache.aries.blueprint.plugin.test;
package org.apache.aries.blueprint.plugin.test.osgiserviceprovider;

import org.apache.aries.blueprint.plugin.test.MyProduced;
import org.apache.aries.blueprint.plugin.test.ServiceA;
import org.ops4j.pax.cdi.api.OsgiServiceProvider;
import org.ops4j.pax.cdi.api.Properties;
import org.ops4j.pax.cdi.api.Property;
Expand All @@ -33,21 +35,21 @@ public class MyFactoryBeanAsService {
@Named("producedForService")
@OsgiServiceProvider
public MyProduced createBeanWithServiceExpose1() {
return new MyProduced("My message");
return null;
}

@Produces
@Named("producedForServiceWithOneInterface")
@OsgiServiceProvider(classes = MyProduced.class)
public MyProduced createBeanWithServiceExpose2() {
return new MyProduced("My message");
return null;
}

@Produces
@Named("producedForServiceWithTwoInterfaces")
@OsgiServiceProvider(classes = {MyProduced.class, ServiceA.class})
public MyProduced createBeanWithServiceExpose3() {
return new MyProduced("My message");
return null;
}

@Produces
Expand All @@ -59,6 +61,6 @@ public MyProduced createBeanWithServiceExpose3() {
@Property(name = "service.ranking", value = "100")
})
public MyProduced createBeanWithServiceExpose4() {
return new MyProduced("My message");
return null;
}
}
Original file line number Diff line number Diff line change
Expand Up @@ -16,8 +16,9 @@
* specific language governing permissions and limitations
* under the License.
*/
package org.apache.aries.blueprint.plugin.test;
package org.apache.aries.blueprint.plugin.test.osgiserviceprovider;

import org.apache.aries.blueprint.plugin.test.ServiceA;
import org.ops4j.pax.cdi.api.OsgiServiceProvider;
import org.ops4j.pax.cdi.api.Properties;
import org.ops4j.pax.cdi.api.Property;
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -16,7 +16,7 @@
* specific language governing permissions and limitations
* under the License.
*/
package org.apache.aries.blueprint.plugin.test;
package org.apache.aries.blueprint.plugin.test.osgiserviceprovider;

import org.ops4j.pax.cdi.api.OsgiServiceProvider;
import org.ops4j.pax.cdi.api.Properties;
Expand Down

0 comments on commit 9ba6af3

Please sign in to comment.