Skip to content

Instantly share code, notes, and snippets.

View eliasnogueira's full-sized avatar
🇧🇷

Elias Nogueira eliasnogueira

🇧🇷
View GitHub Profile
@eliasnogueira
eliasnogueira / Loan.java
Last active February 13, 2024 09:45
Model example for a loan form
public class Loan {
// private attributes
private String name;
private String email;
private BigDecimal amount;
private int installments;
// constructor
public LoanData(String name, String email, BigDecimal amount, int installments) {

Call4Papers plan

Open call4papers 2024

Event Date Location cfp link submitted ends
QA Global Summit 11 December 2023 Online link yes
Microsoft Java Developer Conference (JDConf) 27 March Online link yes
Voxxed Days Bucharest 27-29 March Bucharest, Romenia link yes December
Devoxx UK 8-10 May London, UK link yes 12 January 2024
@eliasnogueira
eliasnogueira / datafaker-talk.md
Last active December 22, 2023 08:24
DataFaker: the most powerful fake data generator library

Title

Datafaker: the most powerful fake data generator library

Description

Data generators in software testing play a critical role in creating realistic and diverse datasets for testing scenarios. However, they present challenges, such as ensuring data diversity, maintaining quality, facilitating validation, and ensuring long-term maintainability.

While many engineers are familiar with these challenges, they often resort to non-specialized tools like the RandomStringUtils class from Apache Commons or the Random class, concatenating fixed data with it. This approach lacks scalability and may not yield a valid dataset.

@eliasnogueira
eliasnogueira / enhancing_project_test.md
Last active December 22, 2023 07:22
Enhancing Project Integrity: A Test Modernization for Bug-Free Code

Title

Enhancing Project Integrity: A Test Modernization for Bug-Free Code

Description

Embarking on a Java project involves employing the best strategies, patterns, and architectural decisions, all geared towards a customer-centric.

Yet, there exists an often overlooked facet: quality assurance. While not entirely disregarded, we, as developers, sometimes limit ourselves to performing the basic unity and integration tests, which may leave room for bugs.

Fortunately, several straightforward approaches and tools can be implemented to deliver a bug-free project with minimal effort.

@eliasnogueira
eliasnogueira / beyond-senior-level.md
Last active December 15, 2023 14:09
Essential Soft and Tech Skills for Advancing Beyond Senior Level

Title

Essential Soft and Tech Skills for Advancing Beyond Senior Level

Abstract

In today's dynamic professional landscape, the journey beyond the senior level requires a mix of soft and technical skills. This talk explores the key competencies essential for your career progression, offering insights into the dynamic interaction between interpersonal and technological expertise to help you excel and thrive beyond the senior level.

Description

@eliasnogueira
eliasnogueira / SimulationTest.java
Last active December 3, 2023 17:43
Example of a test validating the constants of Simulation
class SimulationTest {
@Test
void basicCheck() {
Simulation simulation = Simulation.builder().name("Elias").cpf("123456").email("elias@elias.com")
.amount(new BigDecimal(1000)).installments(48).insurance(false).build();
SoftAssertions.assertSoftly(softly -> {
softly.assertThat(simulation.getName()).isEqualTo("Elias");
softly.assertThat(simulation.getCpf()).isNotEmpty();
@eliasnogueira
eliasnogueira / Simulation.java
Created December 3, 2023 16:38
Code snippet of the Simulation entity
public class Simulation {
@NotNull(message = "Amount cannot be empty")
@Min(value = 1000, message = "Amount must be equal or greater than $ 1.000")
@Max(value = 40000, message = "Amount must be equal or less than than $ 40.000")
private BigDecimal amount;
@NotNull(message = "Installments cannot be empty")
@Min(value = 2, message = "Installments must be equal or greater than 2")
@Max(value = 48, message = "Installments must be equal or less than 48")

Title

Build robust API tests with RestAssured

Description

This workshop will show you how to use a different approach from SpringTest or any other tool to build robust API tests in the integration later or intra-services.

Rest-Assured is a well-known Java DSL for testing REST services, giving software engineers a lot of freedom during the test automation process creation.

@eliasnogueira
eliasnogueira / docker-compose.yml
Last active October 23, 2023 09:37
Example of Wiremock docker usage mapping the internal files to the container
version: '3.9'
services:
wiremock:
image: "wiremock/wiremock:latest"
container_name: wiremock-credit-restriction-api
ports:
- "8087:8080"
volumes:
# copy the local Wiremock files (__files and mappings folder) into the container