Learn how to use the EnvTest controller-runtime package to test Kubernetes applications such as operators or controllers.Go: Testing Kubernetes Applications with EnvTest2023-11-27 in Go tagged Go / Kubernetes / kubectl / client-go / Testing / Test-Driven Development (TDD) / Operators by Marc Nuri
Guide to get started with Testcontainers for Go with a complete exampleGetting started with Testcontainers for Go2023-11-03 in Go tagged Go / Testcontainers / Testing / Test-Driven Development (TDD) / HTTP by Marc Nuri
How to test Gin-Gonic RESTful HTTP APIs using httptest package in GoTesting Go Gin Web Framework REST APIs with httptest2023-10-25 in Go tagged Go / Gin Web Framework / Testing / httptest / Test-Driven Development (TDD) by Marc Nuri
How to properly set up and tear down a Go unit test using Go's standard library for unit testingHow to set up and tear down unit tests in Go2023-10-12 in Go tagged Go / Testing / Test-Driven Development (TDD) by Marc Nuri
Post describing how to configure your Maven project pom.xml to be able to run JUnit and JUnit 5 tests leveraging Maven Surefire Plugin.JUnit 5 - How to run unit tests in Maven2023-08-29 in Java tagged Java / Testing / JUnit / JUnit 5 / Maven / Test-Driven Development (TDD) by Marc Nuri
Post describing how to disable test in JUnit5 leveraging the @Disabled annotation which is analogous to the JUnit4 @Ignore annotation.JUnit 5 - How to disable or ignore tests2023-08-25 in Java tagged Java / Quickie / Testing / JUnit / JUnit 5 / Test-Driven Development (TDD) by Marc Nuri
Introduction to Spring MVC testing framework, highlighting the advantages of using MockMvc instead of regular unit tests. The post shows three ways of setting up MockMvc and how using standaloneSetup has the advantages of unit and integration testing.MockMvc – Spring MVC testing framework introduction: Testing Spring endpoints2018-06-02 in Java tagged Agile / Automation / JUnit / Mockito / MockMVC / REST / Spring Framework / Spring Boot / Testing by Marc Nuri
This post shows how to solve the scoped bean injection problems that arises when injecting a Prototype scoped Bean into a Singleton scoped Bean. It shows the different approaches to solve the problem and the advantages and disadvantages for each of them.Spring Bean Scopes: Singleton with Prototypes2018-05-11 in Java tagged Bean / Java / Scopes / SOLID / Spring Framework / Spring Boot / Testing by Marc Nuri
Blog post showing the different Scopes available in Spring Framework with code demonstrating the use of each of them. Tests included.Spring Bean Scopes: Guide to understand the different Bean scopes2018-04-30 in Java tagged Bean / Java / Scopes / Spring Framework / Spring Boot / Testing by Marc Nuri
In this post we'll see how to define custom spring-data repository methods and their implementation for a book repository in MongoDB and how to write unit tests to check this custom implementation.Spring Data MongoDB: Custom repository implementation2018-03-09 in Java tagged Java / MongoDB / Spring Framework / Spring Boot / Spring Data / Testing by Marc Nuri