junit测试,spring中使用

很久没用junit测试了,今天在spring框架下面使用junit测试发现怎么都不行

网上查了一些资料才发现我的项目里面少了一些jar包,现在将这个jar包信息放上去,以免以后又忘了

<dependency>
    <groupId>junit</groupId>
    <artifactId>junit</artifactId>
    <version>4.12</version>
    <scope>test</scope>
</dependency>
<dependency>
    <groupId>org.springframework</groupId>
    <artifactId>spring-test</artifactId>
    <version>${spring.version}</version>
</dependency>
<dependency>
    <groupId>org.springframework</groupId>
    <artifactId>spring-tx</artifactId>
    <version>${spring.version}</version>
</dependency>
原文地址:https://www.cnblogs.com/1736gerr/p/6925036.html