My Profile Photo

Ricardo's Notes


Some coding utilities and tips...


  1. Unit tests for ANTLR parser

    As said in the previous post, it’s hard to find resources about how to make unit tests for ANTLR components. In that article, it was shown a way to test the Lexer of an ANTLR grammar. Here, we show a way to test the Parser rules. …


  2. Unit tests for ANTLR Lexer

    From ANTLR website: “ANTLR (ANother Tool for Language Recognition) is a powerful parser generator for reading, processing, executing, or translating structured text or binary files. It’s widely used to build languages, tools, and frameworks. From a grammar, ANTLR generates a parser that can build and walk parse trees.” …


  3. Weblogic Session Memory Analysis

    QUICK TIP about memory analysis of the Web Session on Weblogic. …


  4. Creating a Maven Plugin for Java Sources Processing

    This article shows the basics about creating a custom Maven plugin. And how to get java sources in it. …


  5. Java Memory Analysis with Eclipse MAT

    This articles show an introduction to memory analysis in Java applications. It shows an overview of heap dump and the Eclipse MAT tool. …


  6. Documenting REST APIs With Swagger

    The below article was based on a configuration I had to do in an application which I’ve worked. After some problems of a library (jackson) conflicting between the container version and Swagger dependency, a different approach was thought. …


  7. From Java EE to Spring Boot

    This article is based on notes took in a a migration of a Java EE (EJB + JSF) application to Spring. It approaches an overview of Spring Boot aspects and established a small comparison with Java EE. …


  8. Junit and Bean Validation

    Sometimes you need to test something which uses Bean Validation. For instance, you are using JPA and your entities use Bean Validation. In this case, if you have any implementation of jsr-303 (like hibernate validation), it will run automatically on JPA calls. …