PactBuilderDSL - A Contract Testing helping library

PactBuilderDSL - A Contract Testing helping library

25 de enero de 2024

Have you ever worked on or developed contract testing with Pact? If so, you are probably familiar with the following situation: Writing body validations can be a HUGE task, often resulting in a substantial amount of repetitive code.

With this context in mind, the QE & OS3 teams have joined forces to provide the contract testing community with a code-generation tool to simplify everyone's lives: PactBuilderDSL. This library allows you to annotate your Java classes and auto-generate the body validation code, transforming your code from lengthy and complex to simple and concise with just a few annotations.

body.webp

PactBuilderDSL is not only a time-saving tool for developers but is also expected to ease the adoption of contract testing methodologies. It simplifies the learning curve and reduces the intimidation factor associated with creating "body-validation creation classes" that can easily be up to 800 lines long.

Keep in mind that at SNGULAR, our role in contract testing goes beyond offering PactFlow as a platform. We are committed to leading the onboarding process for this methodology. This includes training and supporting teams and “evangelizing” about this testing technique. So, one of the first beneficiaries of this library will be our own teams. You can learn more about how we’re working with our clients in our article series: Road to PactFlow Enterprise.

The first version of PactBuilderDSL was released last week, and we are actively working to enhance its stability and expand its functionality. You can access the library and start experimenting with it using the following links:

GitHub: https://github.com/sngular/pact-annotation-processor Maven central: https://central.sonatype.com/artifact/com.sngular/pact-annotation-processor

If you are interested in learning more about PactBuilderDSL, we presented the library at a past Pactober event, and you can watch the talk on YouTube here: https://www.youtube.com/watch?v=whXaNti7PSg

Thank you for reading!


Nuestras últimas novedades

¿Te interesa saber cómo nos adaptamos constantemente a la nueva frontera digital?

Madrid vibra con la nueva era de la Inteligencia Artificial en el Google Cloud Summit 2025
Madrid vibra con la nueva era de la Inteligencia Artificial en el Google Cloud Summit 2025

Evento

26 de mayo de 2025

Madrid vibra con la nueva era de la Inteligencia Artificial en el Google Cloud Summit 2025

Banco Sabadell impulsa su sistema de diseño Galatea, con una optimización de vanguardia y un revolucionario sistema de validación
Banco Sabadell impulsa su sistema de diseño Galatea, con una optimización de vanguardia y un revolucionario sistema de validación

Tech Insight

29 de abril de 2025

Banco Sabadell impulsa su sistema de diseño Galatea, con una optimización de vanguardia y un revolucionario sistema de validación

AB360: una plataforma pionera de Inteligencia colaborativa para la edificación sostenible
AB360: una plataforma pionera de Inteligencia colaborativa para la edificación sostenible

Insight

21 de abril de 2025

AB360: una plataforma pionera de Inteligencia colaborativa para la edificación sostenible

Google lanza su ofensiva definitiva en inteligencia artificial desde el Cloud Next 2025
Google lanza su ofensiva definitiva en inteligencia artificial desde el Cloud Next 2025

Tech Insight

14 de abril de 2025

Google lanza su ofensiva definitiva en inteligencia artificial desde el Cloud Next 2025