当前位置: 首页>>代码示例>>Java>>正文


Java TestProbeBuilder类代码示例

本文整理汇总了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;
}
 
开发者ID:roboconf,项目名称:roboconf-platform,代码行数:17,代码来源:AutonomicTest.java

示例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;
}
 
开发者ID:roboconf,项目名称:roboconf-platform,代码行数:25,代码来源:AgentInitializationTest.java

示例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;
}
 
开发者ID:roboconf,项目名称:roboconf-platform,代码行数:18,代码来源:DelayedAgentInitializationTest.java

示例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;
}
 
开发者ID:roboconf,项目名称:roboconf-platform,代码行数:18,代码来源:BulkActionsTest.java

示例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;
}
 
开发者ID:roboconf,项目名称:roboconf-platform,代码行数:17,代码来源:AgentInMemoryWithRabbitMqAndSslTest.java

示例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;
}
 
开发者ID:NCIP,项目名称:cagrid2,代码行数:17,代码来源:TestBase.java

示例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;
}
 
开发者ID:apache,项目名称:ignite,代码行数:13,代码来源:IgniteOsgiServiceTest.java

示例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;
    }
}
 
开发者ID:jboss-switchyard,项目名称:switchyard,代码行数:32,代码来源:AbstractQuickstartTest.java

示例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;
}
 
开发者ID:roboconf,项目名称:roboconf-platform,代码行数:15,代码来源:LocalDockerWithAgentChecksTest.java

示例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;
}
 
开发者ID:roboconf,项目名称:roboconf-platform,代码行数:14,代码来源:KarafCommandsRequirementsTest.java

示例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;
}
 
开发者ID:roboconf,项目名称:roboconf-platform,代码行数:15,代码来源:AgentResetTest.java

示例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;
}
 
开发者ID:roboconf,项目名称:roboconf-platform,代码行数:16,代码来源:AbstractAgentInMemoryTest.java

示例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;
}
 
开发者ID:roboconf,项目名称:roboconf-platform,代码行数:11,代码来源:AgentInMemoryWithRabbitMqAndNonDefaultsTest.java

示例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;
}
 
开发者ID:roboconf,项目名称:roboconf-platform,代码行数:11,代码来源:AgentInMemoryWithInMemoryTest.java


注:本文中的org.ops4j.pax.exam.TestProbeBuilder类示例由纯净天空整理自Github/MSDocs等开源代码及文档管理平台,相关代码片段筛选自各路编程大神贡献的开源项目,源码版权归原作者所有,传播和使用请参考对应项目的License;未经允许,请勿转载。