Home » Author Archives: Alex Soto (page 3)

Author Archives: Alex Soto

The Reality of Developer’s Life


In this post I am going to try to illustrate in a funny way the reality of developer’s life. This post is a translation of another post written in Spanish. When you upload something to production environment: When you find a problem solution without searching in Google: When you close your IDE without saving the code: When you try to ...

Read More »

Testing Spring Data MongoDB Applications with NoSQLUnit


Spring Data MongoDB is the project within Spring Data project which provides an extension to the Spring programming model for writing applications that uses MongoDB as database. To write tests using NoSQLUnit for Spring Data MongoDB applications, you do need nothing special apart from considering that Spring Data MongoDB uses a special property called _class for storing type information alongside ...

Read More »

Yammer Metrics, A new way to monitor your application


When you are running long term applications like web applications, it is good to know some statistics about them, like number of requests served, request durations, or the number active requests. But also some more generic information like the state of your internal collections, how many times some portion of code is being executed, or health checks like database availability, ...

Read More »

Writing Acceptance Tests for Openshift + MongoDb Applications


Acceptance testing are used to determine if the requirements of a specification are met. It should be run in an environment as similar as possible of the production one. So if your application is deployed into Openshift you will require a parallel account to the one used in production for running the tests. In this post we are going to ...

Read More »

Use reCaptcha in a Spring MVC web application


A CAPTCHA is a program that can generate and grade tests that humans can pass but computer programs ‘cannot‘. One of strategies followed are showing an image to user with distorted text, and user should write text in input area. If showed text is the same as input by user, then we can ‘assure‘ that a human is on computer. A captcha ...

Read More »

Avoiding FORs – Anti-If Campaign


Have you ever wondered how FORs impact your code? How they are limiting your design and more important how they are transforming your code into an amount of lines without any human meaning? In this post we are going to see how to transform a simple example of a for (provided by Francesco Cirillio – anti-if campaign), to something more readable and well designed. ...

Read More »

Testing client side of RESTful services


Develop an application that uses RESTful web API may imply developing server and client side. Writing integration tests for server side can be as easy as using Arquillian to start up server and REST-assured to test that the services works as expected. The problem is how to test the client side. In this post we are going to see how ...

Read More »

Jenkins: Deploying JEE Artifacts


With the advent of Continuous Integration and Continuous Delivery , our builds are split into different steps creating the deployment pipeline. Some of these steps can be for example compile and run fast tests, run slow tests, run automated acceptance tests, or releasing the application, to cite a few. The final steps of our deployment pipeline, implies a deployment of ...

Read More »

Observer Pattern with Spring Events


INTRODUCTION The essence of the Observer Pattern is to ‘Define a one-to-many dependency between objects so that when one object changes state, all its dependents are notified and updated automatically.’ GoF. Observer pattern is a subset of publish/subscribe pattern which allows a number of observer objects to see an event. This pattern can be used in different situations, but in ...

Read More »

Want to take your Java skills to the next level?

Grab our programming books for FREE!

Here are some of the eBooks you will get:

  • Spring Interview QnA
  • Multithreading & Concurrency QnA
  • JPA Minibook
  • JVM Troubleshooting Guide
  • Advanced Java
  • Java Interview QnA
  • Java Design Patterns