Hi there, I am Tomás 👋

I am a senior software engineer at Netcentric living in Vigo, Spain. I am a fan of technology, travel, and innovation. I’m also interested in web development and programming. Read more about me in the about page.

Creating an archetype from an existing project

If you are creating a cloud of microservices or are in an environment where you have to generate multiple maven projects or modules, it is very useful to create archetypes to handle these new modules/projects creation. What is an archetype? A Maven archetype is a templated project. Maven offers several archetypes that allow you to create new maven modules ready to run in few seconds. How to use a generic archetype?...

May 29, 2021 · 6 min · Tomás Dias Almeida

Introducing myself to Kubernetes

I am starting my journey with kubernetes (k8s) and I want to share the tutorials and blog posts that I read. In that way I can find them easily too 😬. Kubernetes basics: A Beginner’s Guide to Kubernetes: a very complete guide about the kubernetes basics and how they work internally. An introduction to Kubernetes.: defines kubernetes, pod, deployment, service, ingress, job, kubernetes control plane and when to NOT use k8s....

April 2, 2021 · 1 min · Tomás Dias Almeida

Debugging AEM: java code in IntelliJ

When you are working on Adobe AEM, you usually have to debug some sling or OSGi classes to understand what is happening “behind the scene”. IntelliJ allows you to download source code and attach it to IntelliJ, but sometimes you cannot do it (you do not have internet access, your vpn to your nexus is down, etc…). This trick allows you to import the jar bundles into IntelliJ and debug them without downloading the sources!...

January 31, 2021 · 2 min · Tomás Dias Almeida

Mocking a http post server with node.js

Sometimes we need to contact remote servers and send him some data. It is hard to test the whole feature if the remote server does not offer you a sandbox environment. An easy way to do it is creating a mock http server and for me, the easiest way of doing it is with node.js Install node.js Node.js offers a great page for downloading it, I prefer to use it the package manager options....

January 6, 2021 · 2 min · Tomás Dias Almeida

Mocking static methods (and constructors) using Mockito 3.5.0+

Since version 3.4.0, Mockito allows us to mock static methods, so you do not need to add powermock as dependency for most of your necessities. I will not discuss why we should avoid static methods or helper class with static methods, as several articles do it quite well (1, 2, 3, etc..), we need to deal with static methods in the real world of development and mockito helps us to create unit tests when these static methods are involved....

December 30, 2020 · 4 min · Tomás Dias Almeida