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 » -
Testing is Not Sufficient: 5 Ways to Know If Your Code is Really Production-Ready
Enterprises today are all about increasing software delivery velocity. But with shorter release cycles, code quality is usually sacrificed. Today’s…
Read More » -
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 » -
REST: Creating resources
Resource creation is a common REST API operation. In this post we will see how single resource can be created.…
Read More » -
Migrating Neo4j graph schemas in Kubernetes
When running enterprise applications with zero-downtime, we need to be able to perform database schema migrations without disrupting active users.…
Read More » -
Optional orElse vs orElseGet
Java 8 introduced a fantastic concept of Optional, which we looked into in our blog Java 8 Optional. So just…
Read More » -
Better NullPointerException Messages Automatic in JDK 15
I discussed long-awaited and highly appreciated improvements to NullPointerException (NPE) messages in the posts “Better Default NullPointerException Messages Coming to…
Read More » -
Reverse A String Using Recursion
1. Introduction In this article, You’re going to learn how to reverse a string using recursion approach. The first program…
Read More » -
RESTful services with HATEOAS: REST APIs and Hypermedia on JVM
1. Introduction So far we have spent a fair amount of time talking about the role of the hypermedia and…
Read More »