【发布时间】:2018-12-22 23:32:47
【问题描述】:
我有类似的 ipojo 组件
@Component(immediate = true)
@Provides
public class MyComponent {
public MyComponent (@Property(mandatory = true, name = "initialDelay", value = "60") Long initialDelay)
{
...
}
对于使用 pax-exam 的集成测试,我正在使用如下所示的测试
@Test
public void installBundle() throws Exception
{
executeCommand("bundle:install mvn:com.my.osgi/MyComponent/2.0.2-SNAPSHOT", ADMIN_ROLES);
assertBundleInstalled("MyComponent ");
}
现在我的问题是如何为“initialDelay”属性传递不同的值,以便使用我提供的值进行捆绑测试?
【问题讨论】:
标签: osgi apache-karaf pax-exam