美文网首页
0019.maven+mockito+powermock

0019.maven+mockito+powermock

作者: 笑着字太黑 | 来源:发表于2023-09-20 08:18 被阅读0次
            <dependency>
                <groupId>org.powermock</groupId>
                <artifactId>powermock-module-junit4</artifactId>
                <version>2.0.7</version>
                <scope>test</scope>
            </dependency>
            <dependency>
                <groupId>org.powermock</groupId>
                <artifactId>powermock-api-mockito2</artifactId>
                <version>2.0.7</version>
                <scope>test</scope>
            </dependency>
            <dependency>
                <groupId>junit</groupId>
                <artifactId>junit</artifactId>
                <version>4.13</version>
                <scope>test</scope>
            </dependency>
    
    import org.junit.runner.RunWith;
    import org.junit.runners.Suite;
    
    @RunWith(Suite.class)
    @Suite.SuiteClasses({
        XXXTest.class
    })
    public class AllTestSuite {
    }
    

    单元测试Junit4+mockito+powermock - 简书 (jianshu.com)

    Mockito JavaDoc

    PowerMock Git

    相关文章

      网友评论

          本文标题:0019.maven+mockito+powermock

          本文链接:https://www.haomeiwen.com/subject/knvovdtx.html