```xml
<dependency>
    <groupId>org.noear</groupId>
    <artifactId>solon-test-junit4</artifactId>
    <scope>test</scope>
</dependency>
```


### 1、描述

solon-test-junit4 是 Solon 的单元测试扩展插件。是基于 junit4 的适配，提供solon注入、http接口测试便利机制等等

主要扩展有：

| 扩展 | 说明 | 
| -------- | -------- | 
| SolonJUnit4ClassRunner 类     | 为 junit4 提供 Solon 的注入支持的运行类     | 
|   |   | 
| HttpTester 类     | 用于 Http 测试的基类     | 
| @SolonTest 注解     | 用于指定 Solon 的启动主类。无此注解时，则以当前类为启动主类      | 
| @Rollback 注解 | 用户测试时事务回滚用 |




### 2、使用示例

* [学习 / Solon Test 开发 / for JUnit4](/article/322)