Enterprise Java
-
Spring Data Mock DAO
Warning, the following code example is suitable for a narrow range of use cases… but it’s strangely useful. When writing…
Read More » -
HTTP – Content negotiation
With HTTP, resources are identified using URIs. And a uniquely identified resource might support multiple resource representations. A representation is…
Read More » -
KivaKit XML Streaming
KivaKit XML Streaming Since Java 1.6 in 2006, Java has had a built-in XML streaming API in the package…
Read More » -
Get logged-in user info in Jakarta EE – the simplest way
The security before Java EE 8 / Jakarta EE 8 used to be a bit complicated and confusing. Every specification…
Read More » -
Mockito when-then vs do-when
Writing unit test is very important for better software quality. For unit tests Mockito is one of the most common…
Read More » -
How to properly inject CDI beans into JAX-RS sub-resources
Jakarta REST (JAX-RS) defines it’s own dependency injection using the @Context annotation. REST resources also support CDI injection if you enable CDI on the…
Read More » -
Add Grpc to your Spring Application
On the previous example we had a Java application spinning up an http server and upon this Java process operating…
Read More » -
Using JaCoCo to measure system test coverage
Measuring test coverage of your production code can quickly become a heated topic, especially with regards to which percentage is…
Read More » -
All You Need To Know About Exception Handling In Selenium
In the world of technology, exceptions are said to be as old as programming itself. Occurrence of an exception during…
Read More »