InfoQ Homepage Mockito Content on InfoQ
News
RSS Feed-
Mockito 5 Supports Mocking Constructors, Static Methods and Final Classes out of the Box
Mockito has released version 5, switching the default mockmaker to mockito-inline in order to better support future versions of the JDK and allows mocking of constructors, static methods and final classes out of the box. The baseline increased from Java 8 to Java 11, as supporting both versions became costly and managing changes in the JDK such as with the SecurityManager proved difficult.
-
Java News Roundup: WildFly 25, JEP 408, Quarkus 2.3.0, MicroProfile 5.0-RC1, Mockito 4.0, Jelastic
This week's Java roundup for October 4th, 2021, features news from OpenJDK, JDK 18, Spring Cloud 21.0.0-M2, WildFly 25, Quarkus 2.3.0.Final, MicroProfile 5.0-RC1, Open Liberty 21.0.0.11-beta, Mockito 4.0, Apache Camel 3.12.0 and 3.7.6, Apache Camel Quarkus 2.3.0 and Jelastic PaaS acquired by Virtuozzo.
-
Mocking for Java and Flex
There are plenty of choices for creating mock objects in Java but Flex has seen little development in this area, until recently. The popular and maturing Mockito framework now has a Flex counterpart, which aims to bring mocking to Flex.