Counting active accounts with Metrics

Based on a request parameter in a servlet context Recently I had the task to report active accounts based on http requests. Here I’m going to show you my solution with Dropwizard Metrics. Basically I am using a servlet filter togehter with an counter. [code] @Override public void doFilter(ServletRequest request, ServletResponse response, FilterChain chain) throws …

Why you should use new language features

A quick list I put together a list with a number of reasons why you should use new language features. The list includes points which are obvious, I learned or I found on the internet. improved design * easier to understand * easier to change * less defects effectiveness * using standards * getting help …

Test JSON with a few lines of code

JSONassert helps you writing JSON unit tests You have to write a unit test and JSON is involved. Usually this will end up in a lot of lines of code. You know the situation, I bet. Here JSONassert comes into play. It allows to write JSON unit tests with just a few lines of code. For example checking an …

Consent Management Platform von Real Cookie Banner