Java
-
The Temporary Test Property
Just because you can make a variable a long-term property of a test fixture doesn’t mean you should. This is…
Read More » -
So I Wrote a Library
If you’ve never done it, go out and find an open-source project to contribute to. Whether it’s one of your…
Read More » -
REST: Partial updates with PATCH
In previous posts we learned how to update/replace resources using the HTTP PUT operation. We also learned about the differences…
Read More » -
Testing with Mockito
1) Register MockitoExtension @ExtendWith(MockitoExtension.class) class ObjectTest { static final Long ID = 1L; 2) Create the mock @Mock private ObjectRepo…
Read More » -
Spring Injection Types
Spring supports three types of dependency injections: Constructor injection @Component public class SecondBeanImpl implements SecondBean { private FirstBean firstBean; @Autowired…
Read More » -
Testing Logging Output in Java
One of my more popular posts on this site is on how to use Mockito to mock logging. Testing that…
Read More » -
How to get current date time with Java 8
In this quick tutorial, we will see, how to get current date time using Java 8. Java 8 had come…
Read More » -
Static Nested Classes Java
In Java, it is possible to define a class within another class. Class defined within another Class is called a…
Read More » -
Apache Lucene performance on 128-core AMD Ryzen Threadripper 3990X
Almost a decade ago, I started running Lucene’s nightly benchmarks, and have been trying with mixed success to keep them…
Read More »