Java-Class-@I:org.junit.runner.RunWith
2024-09-06 07:15:06
ylbtech-Java-Class-@I:org.junit.runner.RunWith |
1.返回顶部 |
2.返回顶部 |
3.返回顶部 |
4.返回顶部 |
1、
package org.junit.runner; import java.lang.annotation.ElementType;
import java.lang.annotation.Inherited;
import java.lang.annotation.Retention;
import java.lang.annotation.RetentionPolicy;
import java.lang.annotation.Target; /**
* When a class is annotated with <code>@RunWith</code> or extends a class annotated
* with <code>@RunWith</code>, JUnit will invoke the class it references to run the
* tests in that class instead of the runner built into JUnit. We added this feature late
* in development. While it seems powerful we expect the runner API to change as we learn
* how people really use it. Some of the classes that are currently internal will likely
* be refined and become public.
*
* For example, suites in JUnit 4 are built using RunWith, and a custom runner named Suite:
*
* <pre>
* @RunWith(Suite.class)
* @SuiteClasses({ATest.class, BTest.class, CTest.class})
* public class ABCSuite {
* }
* </pre>
*
* @since 4.0
*/
@Retention(RetentionPolicy.RUNTIME)
@Target(ElementType.TYPE)
@Inherited
public @interface RunWith {
/**
* @return a Runner class (must have a constructor that takes a single Class to run)
*/
Class<? extends Runner> value();
}
2、
5.返回顶部 |
6.返回顶部 |
作者:ylbtech 出处:http://ylbtech.cnblogs.com/ 本文版权归作者和博客园共有,欢迎转载,但未经作者同意必须保留此段声明,且在文章页面明显位置给出原文连接,否则保留追究法律责任的权利。 |
最新文章
- 线性分式变换(linear fractional transformation)
- 一个asp采集程序
- yii2知识点理解(成员属性)
- 【原】iOSCoreAnimation动画系列教程(一):CABasicAnimation【包会】
- tomcat直接访问
- java的Socket通信例子及关于java.net.SocketException: Socket is closed错误
- avalon
- C++11 in Qt5
- 数据库CRUD操作
- Sublime 远程连接 Linux服务器
- iOS 开发之内存泄漏问题
- leetcode — convert-sorted-array-to-binary-search-tree
- ionic2APP 如何处理返回键问题
- 【Django】不知道为什么就是想学一下 01
- Winscp使用sudo user登录
- 在macOS下正确配置 VS Code 使用 virtualenv 里的 python 环境参数
- JAVA基础知识总结:十七
- java.lang.ClassCastException: android.os.BinderProxy cannot be cast to com.test.Test
- linecache
- 面向对象程序设计__Task6_Calculator1.6.2
热门文章
- Android中对应用程序的行为拦截实现方式概要
- BZOJ 3771: Triple(FFT+容斥)
- VMProtect使用小计【二】 – 加壳查看
- 安装MikTex Portable
- PAT_A1083#List Grades
- centos7部署汉化版gitlab
- MySQL将查询结果写入到文件的2种方法
- Array.prototype.slice.call()等几种将arguments对象转换成数组对象的方法
- 拯救 Out Of Memory,8个案例带你飞!
- 从零起步 系统入门Python爬虫工程师✍✍✍