Testing MVC in Spring
A guide to effectively testing Spring MVC applications, covering test grouping, context setup, and best practices for REST API testing.
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
A guide to effectively testing Spring MVC applications, covering test grouping, context setup, and best practices for REST API testing.
A developer explains choosing Node.js with Express and Pug for server-side HTML generation, and reusing templates on the frontend for a lightweight web UI.
A guide to automating development database setup using Docker, including scripts to import production dumps into a MariaDB image for faster local deployment.
A developer uses git bisect to quickly find a bug causing a Jenkins/Maven deployment failure, saving hours of manual debugging.
A guide to creating and maintaining a RELEASE_CHECKLIST.md file to prevent manual deployment errors and ensure all post-release steps are tracked.
A developer shares initial thoughts on using Kotlin for a project, highlighting features like immutability, extension methods, and Java integration.
Explains how to implement custom type conversion for Spring MVC controller parameters, focusing on Converter interface and testing with @WebMvcTest.
A guide to best practices for database schema migrations, focusing on tools like Flyway and Hibernate for evolving applications.
Explores using Spring's @DomainEvents annotation with JPA to implement domain events, discussing challenges and solutions for event broadcasting.
Explains a subtle issue with mock verification order in Spock tests and provides a solution using multiple 'then' blocks.
A technical guide on implementing ordered and asynchronous event handlers in Spring applications, including code examples.
A software engineer shares advice on preparing for job interviews, including researching companies and asking insightful questions to uncover potential workplace issues.
A developer shares lessons learned from refactoring a SpringMock parser class, emphasizing behavior verification pitfalls in testing.
Argues that code reviews should be a team effort, not a single person's responsibility, to improve quality, share knowledge, and build ownership.
A critique of Java's Stack class design, showing how inheritance from Vector breaks encapsulation and leads to non-stack operations being exposed.
Explains Spring Framework 4.2+ event handling features, including @EventListener, generic events, SpEL conditions, and transactional listeners.
Introduces springmock, a library for injecting Spock or Mockito mocks into Spring Boot integration tests, simplifying test setup.
A developer shares key lessons learned from 4 years at a company, covering onboarding, remote work, teamwork, and project experiences.
Explains how to implement immutability in Angular to manage complex, hierarchical data structures like categories and tags, improving state management.
A guide on how to approach and learn valuable lessons from legacy codebases, distinguishing between good and bad examples.