Problem with random test data
Discusses the pitfalls of using random data for testing in software development and advocates for using object factories instead.
Paweł Chudzik is a programming blog covering practical how-tos and deep dives into Docker, Java, Python, Git, testing, and software architecture.
73 articles from this blog
Discusses the pitfalls of using random data for testing in software development and advocates for using object factories instead.
A guide to dynamically creating Spring beans programmatically using BeanFactoryPostProcessor and BeanDefinitionRegistry.
A guide to implementing efficient batch processing in JPA/Hibernate by managing session cache, transaction size, and data fetching strategies.
Explains the pitfalls of optimistic locking in JPA/Hibernate and how to properly implement it to prevent data overwrites.
Explains how to deserialize immutable objects from JSON in Java using Jackson's constructor-based binding and Lombok's @RequiredArgsConstructor.
A guide to automating dependency updates in Java, JavaScript, and Gradle projects using CI tools and commit hooks.
Applying the Page Object Pattern to JavaScript component testing for frameworks like Angular and React to create cleaner, more maintainable tests.
A guide to grouping and categorizing Spock tests using JUnit's @Category annotation with Gradle to manage test execution.
Explains how to modify Java final fields using reflection, discusses compile-time constants, and warns about unexpected behavior.
A guide to effectively testing Java repository layers, focusing on database setup, using H2 and PostgreSQL, and ensuring production-like environments.
Discusses the pitfalls of coupling unit tests through shared setup and state, advocating for independent tests for better maintainability.
Explains the importance of consistent hashCode() implementation in Java and the risks of mutable objects in hash-based collections.
A developer's introductory blog post announcing a focus on Java, JavaScript, and general programming topics.