There are instances when Legacy JS projects are actively developed which are based off of Pre-ES6 era frameworks such as ExtJS or even just plain vanilla ES5 or earlier. But that’s no excuse for not writing automated tests. There may not be an appetite for...
Reload your Amazon Balance ‘n’ number of times using Scala & Selenium Web Driver
I think everyone should be taught to code just like how we are taught to learn at least one language while we grow up. While a language such as English or Spanish enables an individual communicate with another, learning to code will empower an individual...
Java 8 and LocalDate serialization issues with Jackson mapper
Say you have a LocalDate attribute in one of your models in your Spring based RESTful Web Service and you need your clients to send and receive the LocalDate in some form of yyyyMMdd LocalDate myDate; Simply add the following dependency to your classpath (pom.xml)...
Documentation and Code samples of Open Source Projects should include Automated Tests
Let’s first take a quick detour: The Software Engineering field thrives on Open Source Projects that is built for and by the people who are part of the community. This is a feature that is unique to the Software Engineering field and not quite common...
Implementing custom methods for H2 Embedded Database
If you want to use an Embedded database such as H2 to unit test your code, you will need to implement your method manually in H2 if it doesn’t supply one out of the box. You can use Jooq to do this this public class...
Dealing with JPA Entities backed by SQL Queries that return no unique columns
Earlier I was working on a Spring Boot application where in I had to join multiple tables and map the returned columns to a JPA entity. But the problem was that none of the returned columns had unique values. Here’s a snippet of how my...
Global Exception handling for Spring MVC
Proper exception handling in a REST service can help Provide proper HTTP response codes and pertinent error messages to downstream clients Logging custom exceptions can help with analytics (If logs are aggregated through a Log aggregation system such as Splunk, one can easily find out...