本文整理汇总了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);
}
示例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);
}
示例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);
}
示例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);
}