综合技术 2018-06-20

JUnit Parameterized Tests

JUnit Parameterized Tests allow us to run a test method multiple times with different arguments. JUnit 5 provides a lot of ways to pass parameters to a test ……
综合编程 2018-06-20

JUnit Parameterized Tests

JUnit Parameterized Tests allow us to run a test method multiple times with different arguments. JUnit 5 provides a lot of ways to pass parameters to a test ……
综合编程 2018-05-14

JUnit 5 使用 Mockito 2 进行测试

JUnit 5 刚出来那时,也就是第一个版本 5.0.0 时,还不能很好的支持 Mockito 的测试,因为 Mockito 没能跟得那么紧密。那时候 JUnit 5 只能试验性的提供了一个极不正式……
综合编程 2018-05-13

JUnit5 Tutorial

Table of Contents2 JUnit5 Architecture 3 JUnit Maven Dependencies 4 JUnit5 New Features4.1 JUnit Annotations 4.4 JUnit5 Assumptions 4.5 JUnit ……
综合编程 2018-04-28

Using Mockito with JUnit 5

Since version 2.16.3 Mockito has official support for Junit5. Using Mockito with JUnit now is even easier than before. Previously I kept forgetting what rule……
综合编程 2018-04-18

Parametrized tests with Spek

Parametrized tests with SpekEveryone knows the situations when we have to check our system for various input. A good example would be a login/passwo……
综合编程 2018-04-14

Timber JUnit Rule

Timber JUnit-Rule This library provides a JUnit TestRule that plants a temporary Timber tree that pipes any logs sent via Timber to the standard System.out. O……
综合编程 2018-04-12

Using JMock

At some point we’re likely to require a mocking framework for our unit test code. Ofcourse there’s several java based frameworks. In this post I’m going to lo……