本文整理汇总了Java中org.apache.camel.test.junit4.CamelTestSupport.tearDownAfterClass方法的典型用法代码示例。如果您正苦于以下问题:Java CamelTestSupport.tearDownAfterClass方法的具体用法?Java CamelTestSupport.tearDownAfterClass怎么用?Java CamelTestSupport.tearDownAfterClass使用的例子?那么, 这里精选的方法代码示例或许可以为您提供帮助。您也可以进一步了解该方法所在类org.apache.camel.test.junit4.CamelTestSupport
的用法示例。
在下文中一共展示了CamelTestSupport.tearDownAfterClass方法的4个代码示例,这些例子默认根据受欢迎程度排序。您可以为喜欢或者感觉有用的代码点赞,您的评价将有助于系统推荐出更棒的Java代码示例。
示例1: tearDownAfterClass
import org.apache.camel.test.junit4.CamelTestSupport; //导入方法依赖的package包/类
@AfterClass
public static void tearDownAfterClass() throws Exception {
if (threadLocalBundleContext.get() != null) {
CamelBlueprintHelper.disposeBundleContext(threadLocalBundleContext.get());
threadLocalBundleContext.remove();
}
CamelTestSupport.tearDownAfterClass();
}
示例2: tearDownAfterClass
import org.apache.camel.test.junit4.CamelTestSupport; //导入方法依赖的package包/类
@AfterClass
public static void tearDownAfterClass() throws Exception {
CamelTestSupport.tearDownAfterClass();
// write the refresh token back to target/test-classes/test-options.properties
final URL resource = AbstractBoxTestSupport.class.getResource(TEST_OPTIONS_PROPERTIES);
final FileOutputStream out = new FileOutputStream(new File(resource.getPath()));
propertyText = propertyText.replaceAll(REFRESH_TOKEN_PROPERTY + "=\\S*",
REFRESH_TOKEN_PROPERTY + "=" + refreshToken);
out.write(propertyText.getBytes("UTF-8"));
out.close();
}
示例3: tearDownAfterClass
import org.apache.camel.test.junit4.CamelTestSupport; //导入方法依赖的package包/类
@AfterClass
public static void tearDownAfterClass() throws Exception {
CamelTestSupport.tearDownAfterClass();
// stop the proxy server after component
LOG.info("Stopping proxy server...");
server.stop();
LOG.info("Stopped proxy server");
}
示例4: tearDownAfterClass
import org.apache.camel.test.junit4.CamelTestSupport; //导入方法依赖的package包/类
@AfterClass
public static void tearDownAfterClass() throws Exception {
CamelTestSupport.tearDownAfterClass();
}