本文整理汇总了Java中org.ops4j.pax.exam.TestProbeBuilder类的典型用法代码示例。如果您正苦于以下问题:Java TestProbeBuilder类的具体用法?Java TestProbeBuilder怎么用?Java TestProbeBuilder使用的例子?那么, 这里精选的类代码示例或许可以为您提供帮助。
TestProbeBuilder类属于org.ops4j.pax.exam包,在下文中一共展示了TestProbeBuilder类的15个代码示例,这些例子默认根据受欢迎程度排序。您可以为喜欢或者感觉有用的代码点赞,您的评价将有助于系统推荐出更棒的Java代码示例。
示例1: probeConfiguration
import org.ops4j.pax.exam.TestProbeBuilder; //导入依赖的package包/类
@ProbeBuilder
public TestProbeBuilder probeConfiguration( TestProbeBuilder probe ) {
// We need to specify the classes we need
// and that come from external modules.
probe.addTest( DmTest.class );
probe.addTest( TestUtils.class );
probe.addTest( AbstractIntegrationTest.class );
probe.addTest( IMessagingConfiguration.class );
probe.addTest( ItConfigurationBean.class );
probe.addTest( MyHandler.class );
probe.addTest( MyTargetResolver.class );
return probe;
}
示例2: probeConfiguration
import org.ops4j.pax.exam.TestProbeBuilder; //导入依赖的package包/类
@ProbeBuilder
public TestProbeBuilder probeConfiguration( TestProbeBuilder probe ) {
// We need to specify the classes we need
// and that come from external modules.
probe.addTest( DmTest.class );
probe.addTest( TestUtils.class );
probe.addTest( AbstractIntegrationTest.class );
probe.addTest( IMessagingConfiguration.class );
probe.addTest( ItConfigurationBean.class );
probe.addTest( MyHandler.class );
probe.addTest( MyTargetResolver.class );
// Classes from the agent
probe.addTest( Agent.class );
probe.addTest( AgentUtils.class );
probe.addTest( PluginMock.class );
probe.addTest( HeartbeatTask.class );
probe.addTest( AgentMessageProcessor.class );
probe.addTest( UserDataHelper.class );
return probe;
}
示例3: probeConfiguration
import org.ops4j.pax.exam.TestProbeBuilder; //导入依赖的package包/类
@ProbeBuilder
public TestProbeBuilder probeConfiguration( TestProbeBuilder probe ) {
// We need to specify the classes we need
// and that come from external modules.
probe.addTest( DmTest.class );
probe.addTest( TestApplicationTemplate.class );
probe.addTest( TestApplication.class );
probe.addTest( TestManagerWrapper.class );
probe.addTest( TestUtils.class );
probe.addTest( AbstractIntegrationTest.class );
probe.addTest( IMessagingConfiguration.class );
probe.addTest( ItConfigurationBean.class );
return probe;
}
示例4: probeConfiguration
import org.ops4j.pax.exam.TestProbeBuilder; //导入依赖的package包/类
@ProbeBuilder
public TestProbeBuilder probeConfiguration( TestProbeBuilder probe ) {
// We need to specify the classes we need
// and that come from external modules.
probe.addTest( DmWithAgentInMemoryTest.class );
probe.addTest( TestUtils.class );
probe.addTest( AbstractIntegrationTest.class );
probe.addTest( IMessagingConfiguration.class );
probe.addTest( ItConfigurationBean.class );
probe.addTest( MyHandler.class );
probe.addTest( MyTargetResolver.class );
return probe;
}
示例5: probeConfiguration
import org.ops4j.pax.exam.TestProbeBuilder; //导入依赖的package包/类
@Override
@ProbeBuilder
public TestProbeBuilder probeConfiguration( TestProbeBuilder probe ) {
// We need to specify the classes we need
// and that come from external modules.
probe.addTest( RabbitMqWithSslConfigurationWithoutUserData.class );
probe.addTest( AbstractAgentInMemoryTest.class );
probe.addTest( DmWithAgentInMemoryTest.class );
probe.addTest( InMemoryTargetResolver.class );
probe.addTest( AbstractIntegrationTest.class );
probe.addTest( IMessagingConfiguration.class );
probe.addTest( ItConfigurationBean.class );
return probe;
}
示例6: addTestBase
import org.ops4j.pax.exam.TestProbeBuilder; //导入依赖的package包/类
@ProbeBuilder
public TestProbeBuilder addTestBase(TestProbeBuilder probeBuilder) {
if (probeBuilder instanceof TestProbeBuilderImpl) {
TestProbeBuilderImpl probeBuilderImpl = (TestProbeBuilderImpl) probeBuilder;
probeBuilderImpl.addAnchor(TestBase.class);
probeBuilderImpl.addAnchor(ContextLoader.class);
@SuppressWarnings("rawtypes")
List<Class> additionalClasses = getAdditionalClasses();
if (additionalClasses != null) {
for (Class<?> additionalClass : additionalClasses) {
probeBuilderImpl.addAnchor(additionalClass);
}
}
}
return probeBuilder;
}
示例7: probeConfiguration
import org.ops4j.pax.exam.TestProbeBuilder; //导入依赖的package包/类
/**
* Builds the probe.
*
* @param probe The probe builder.
* @return The probe builder.
*/
@ProbeBuilder
public TestProbeBuilder probeConfiguration(TestProbeBuilder probe) {
probe.setHeader(Constants.IMPORT_PACKAGE, "*,org.apache.ignite.osgi.activators;resolution:=\"optional\"");
return probe;
}
示例8: startTestContainer
import org.ops4j.pax.exam.TestProbeBuilder; //导入依赖的package包/类
protected static void startTestContainer(String featureName, String bundleName, Option[] additionalOptions, Class<? extends DeploymentProbe> probeClass, PhaseListener phaseListener) throws Exception {
if (probeClass == null) {
probeClass = DeploymentProbe.class;
}
long time = System.currentTimeMillis();
system = PaxExamRuntime.createTestSystem(mergeOptions(config(featureName, bundleName), additionalOptions));
time = post(phaseListener, CREATE_SYSTEM, time);
testContainer = PaxExamRuntime.createContainer(system);
time = post(phaseListener, CREATE_CONTAINER, time);
testContainer.start();
time = post(phaseListener, START_CONTAINER, time);
try {
// install the probe
TestProbeBuilder probeBuilder = system.createProbe();
time = post(phaseListener, CREATE_PROBE, time);
probeBuilder.setHeader(Constants.DYNAMICIMPORT_PACKAGE, "*,org.apache.felix.service.*;status=provisional");
probeBuilder.addTests(probeClass, probeClass.getMethods());
time = post(phaseListener, ADD_TESTS, time);
testProbe = probeBuilder.build();
time = post(phaseListener, BUILD_PROBE, time);
testContainer.installProbe(testProbe.getStream());
time = post(phaseListener, INSTALL_PROBE, time);
// wait for SwitchYard application activation
executeProbe("testBundleActivation");
time = post(phaseListener, EXECUTE_PROBE, time);
} catch (Exception e) {
// cleanup
after();
throw e;
}
}
示例9: probeConfiguration
import org.ops4j.pax.exam.TestProbeBuilder; //导入依赖的package包/类
@ProbeBuilder
public TestProbeBuilder probeConfiguration( TestProbeBuilder probe ) {
// We need to specify the classes we need
// and that come from external modules.
probe.addTest( DmTest.class );
probe.addTest( TestUtils.class );
probe.addTest( AbstractIntegrationTest.class );
probe.addTest( IMessagingConfiguration.class );
probe.addTest( ItConfigurationBean.class );
return probe;
}
示例10: probeConfiguration
import org.ops4j.pax.exam.TestProbeBuilder; //导入依赖的package包/类
@ProbeBuilder
public TestProbeBuilder probeConfiguration( TestProbeBuilder probe ) {
// We need to specify the classes we need
// and that come from external modules.
probe.addTest( DmTest.class );
probe.addTest( TestUtils.class );
probe.addTest( AbstractIntegrationTest.class );
probe.addTest( ItConfigurationBean.class );
return probe;
}
示例11: probeConfiguration
import org.ops4j.pax.exam.TestProbeBuilder; //导入依赖的package包/类
@ProbeBuilder
public TestProbeBuilder probeConfiguration( TestProbeBuilder probe ) {
// We need to specify the classes we need
// and that come from external modules.
probe.addTest( AgentTest.class );
probe.addTest( AbstractIntegrationTest.class );
probe.addTest( IMessagingConfiguration.class );
probe.addTest( ItConfigurationBean.class );
probe.addTest( TestApplication.class );
probe.addTest( TestApplicationTemplate.class );
return probe;
}
示例12: probeConfiguration
import org.ops4j.pax.exam.TestProbeBuilder; //导入依赖的package包/类
@ProbeBuilder
public TestProbeBuilder probeConfiguration( TestProbeBuilder probe ) {
// We need to specify the classes we need
// and that come from external modules.
probe.addTest( DmWithAgentInMemoryTest.class );
probe.addTest( TestUtils.class );
probe.addTest( AbstractIntegrationTest.class );
probe.addTest( IMessagingConfiguration.class );
probe.addTest( ItConfigurationBean.class );
return probe;
}
开发者ID:roboconf,项目名称:roboconf-platform,代码行数:15,代码来源:ScopedInstanceShouldBeAbleToExportVariablesTest.java
示例13: probeConfiguration
import org.ops4j.pax.exam.TestProbeBuilder; //导入依赖的package包/类
@ProbeBuilder
public TestProbeBuilder probeConfiguration( TestProbeBuilder probe ) {
// We need to specify the classes we need
// and that come from external modules.
probe.addTest( DmWithAgentInMemoryTest.class );
probe.addTest( InMemoryTargetResolver.class );
probe.addTest( TestUtils.class );
probe.addTest( AbstractIntegrationTest.class );
probe.addTest( IMessagingConfiguration.class );
probe.addTest( ItConfigurationBean.class );
return probe;
}
示例14: probeConfiguration
import org.ops4j.pax.exam.TestProbeBuilder; //导入依赖的package包/类
@Override
@ProbeBuilder
public TestProbeBuilder probeConfiguration( TestProbeBuilder probe ) {
// We need to specify the classes we need
// and that come from external modules.
probe.addTest( RabbitMqNonLocalConfiguration.class );
return probe;
}
示例15: probeConfiguration
import org.ops4j.pax.exam.TestProbeBuilder; //导入依赖的package包/类
@Override
@ProbeBuilder
public TestProbeBuilder probeConfiguration( TestProbeBuilder probe ) {
// We need to specify the classes we need
// and that come from external modules.
probe.addTest( InMemoryConfiguration.class );
return probe;
}