-
Enterprise Java
Mockito: Why You Still Should Appreciate InjectMocks Annotation
Anyone who has used Mockito for mocking and stubbing Java classes, probably is familiar with the InjectMocks-annotation. I seemed a…
Read More » -
Enterprise Java
Mockito: Cannot instantiate @InjectMocks field: the type is an abstract class
Anyone who has used Mockito for mocking and stubbing Java classes, probably is familiar with the InjectMocks-annotation. Use this annotation…
Read More » -
Enterprise Java
Mockito: Cannot instantiate @InjectMocks field: the type is an interface
Anyone who has used Mockito for mocking and stubbing Java classes, probably is familiar with the InjectMocks-annotation. Use this annotation…
Read More » -
Core Java
Local records or classes to improve the readability of stream operations
Java 14 came with the preview language feature of Records — a special lightweight class, comparable to similar constructs in…
Read More » -
Core Java
Functional Java by Example | Part 8 – More Pure Functions
This is part 8, the last instalment of the series called “Functional Java by Example”. The example I’m evolving in…
Read More » -
Core Java
Functional Java by Example | Part 7 – Treat Failures as Data Too
This is part 7 of the series called “Functional Java by Example”. The example I’m evolving in each part of…
Read More » -
Core Java
Functional Java by Example | Part 6 – Functions as Parameters
This is part 6 of the series called “Functional Java by Example”. The example I’m evolving in each part of…
Read More » -
Core Java
Functional Java by Example | Part 5 – Move I/O to the Outside
This is part 5 of the series called “Functional Java by Example”. In previous part we stopped mutating our documents…
Read More » -
Core Java
Functional Java by Example | Part 4 – Prefer Immutability
This is part 4 of the series called “Functional Java by Example”. In previous part we talked a bit about…
Read More »