AWS

Wiremock on AWS Elastic Beanstalk

Posted on

You need a Wiremock and you need it fast! You have no time to setup a server to run it on! Behold.. Wiremock on Elastic Beanstalk      Download the wiremock standalone jar: http://wiremock.org/docs/running-standalone/ and put it in a separate folder Run it locally on port 5000: java -jar wiremock-standalone-2.25.0.jar –port 5000 Why 5000? It’s […]

Java

JMH – BenchMarking

Posted on

Java Microbenchmark Harness is part of the Java 9 release. JMH takes care of JVM warm-up and code-optimization paths, making benchmarking as simple as possible and excluding as many test influences as possible. It gives you an easy way of specifying how many warmup and test iterations you want to do. It will also fork […]

Java

Reflection

Posted on

Reflection is a language’s ability to inspect and dynamically call classes, methods, attributes, etc. at runtime. Even if you do not know the type of the object at compile time, it is possible to call it’s methods, get it’s properties … at runtime. In Java Objects have the getClass() method that allows you to find the object’s class […]