Karol Lotkowski

Good line of code is worth a thousand words


Karol Lotkowski

Positive life driven developer, husband, father and Pixel-dog owner. Looking for a new experience every day. Podcasts and audio-books lover. Passionate about technology, creative ideas, time management, startups and mobile apps. New products visionary. Egoism hater. Can wait longer for a good food.

How to test abstract class in Java?

It’s not a problem to test class for which you can create an instance and execute implemented methods. Little problem starts when you would like to test class without an instance of this class. My way to test abstract classes is to create instance of the class as a mock via Mockito and simulate the behaviour.

Continue reading “How to test abstract class in Java?”

Gradle Wrapper: build script in the box

To make project totally independent from the Gradle installation version and get all the benefits from the Gradle buildpath it is a good idea to generate Wrapper script and put it into the project.

This action will protect project developers before using different Gradle version on each development machine and make development environment setup easier for the new contributors.

Continue reading “Gradle Wrapper: build script in the box”

Setup Java project with Gradle

If you are searching a nice and easy to use tool to work with Java (or any other) project – Gradle was created for it. This is a perfect tool to execute standard operations, such as: compile source code, run tests and build application (jar file).

Continue reading “Setup Java project with Gradle”


I will try to write about my daily activities. Mostly they will be related with coding or some startups, but this is not the only thing that I’m doing in my life 🙂

One more info, I will write in English because:

  • IT world is global
  • I would like to test myself and improve my writing skills (Polish is my native language)

Any suggestions are welcome.

Happy reading!

Blog at

Up ↑