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


Java AnnotatedTestRunner类代码示例

本文整理汇总了Java中com.google.testing.threadtester.AnnotatedTestRunner的典型用法代码示例。如果您正苦于以下问题:Java AnnotatedTestRunner类的具体用法?Java AnnotatedTestRunner怎么用?Java AnnotatedTestRunner使用的例子?那么, 这里精选的类代码示例或许可以为您提供帮助。


AnnotatedTestRunner类属于com.google.testing.threadtester包,在下文中一共展示了AnnotatedTestRunner类的4个代码示例,这些例子默认根据受欢迎程度排序。您可以为喜欢或者感觉有用的代码点赞,您的评价将有助于系统推荐出更棒的Java代码示例。

示例1: testPushAndPollUsingThreadWeaver

import com.google.testing.threadtester.AnnotatedTestRunner; //导入依赖的package包/类
@Ignore
@Test
public void testPushAndPollUsingThreadWeaver() {
	// Create an AnnotatedTestRunner that will run the threaded tests
	// defined in this class.
	AnnotatedTestRunner runner = new AnnotatedTestRunner();
	HashSet<String> methods = new HashSet<String>();
	runner.setMethodOption(MethodOption.ALL_METHODS, methods);
	runner.setDebug(true);
	runner.runTests(this.getClass(), RollingSPSCQueue.class);
}
 
开发者ID:davidmoten,项目名称:rxjava-extras,代码行数:12,代码来源:RollingSPSCQueueTest.java

示例2: testPutIfAbsent

import com.google.testing.threadtester.AnnotatedTestRunner; //导入依赖的package包/类
public void testPutIfAbsent() {
  System.out.printf("In testPutIfAbsent\n");
  // Create an AnnotatedTestRunner that will run the threaded tests defined in this
  // class. We want to test the behaviour of the private method "putIfAbsentInternal" so
  // we need to specify it by name using runner.setMethodOption()
  AnnotatedTestRunner runner = new AnnotatedTestRunner();
  HashSet<String> methods = new HashSet<String>();
  runner.setMethodOption(MethodOption.ALL_METHODS, methods);
  runner.setDebug(true);
  runner.runTests(this.getClass(), UniqueList.class);
}
 
开发者ID:google,项目名称:thread-weaver,代码行数:12,代码来源:UniqueListTest.java

示例3: testPutIfAbsent

import com.google.testing.threadtester.AnnotatedTestRunner; //导入依赖的package包/类
public void testPutIfAbsent() {
  System.out.printf("In testPutIfAbsent\n");
  // Create an AnnotatedTestRunner that will run the threaded tests defined in
  // this class. These tests are expected to makes calls to UniqueList.
  AnnotatedTestRunner runner = new AnnotatedTestRunner();
  runner.runTests(this.getClass(), UniqueList.class);
}
 
开发者ID:iominh,项目名称:ThreadWeaver,代码行数:8,代码来源:UniqueListTest.java

示例4: testPutIfAbsent

import com.google.testing.threadtester.AnnotatedTestRunner; //导入依赖的package包/类
public void testPutIfAbsent() {
  // Create an AnnotatedTestRunner that will run the threaded tests defined in
  // this class. These tests are expected to makes calls to NameManager.
  AnnotatedTestRunner runner = new AnnotatedTestRunner();
  runner.runTests(this.getClass(), NameManager.class);
}
 
开发者ID:google,项目名称:thread-weaver,代码行数:7,代码来源:NameManagerTest.java


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