Giter Club home page Giter Club logo

tdd-with-spring-boot's Introduction

tdd-with-spring-boot

Open in Gitpod

This contains performing TDD in both reactive application and traditional application.

Annotations

Annotation Description
@RunWith(SpringRunner.class) @SpringJUnit4ClassRunner alias; add for junit test support
@SpringBootTest Bootstrap test with SpringBoot support, load application.properties;
specify random or specific port to start app; TestRestTemplate bean made available;
@WebMvcTest Use in combination with SpringRunner to load context relevant spring mvc components
@RunWith(MockitoJUnitRunner.class) Initializes mocks so no need to initMocks(this); automatic validation of framework usage
@DataJpaTest Loads jpa relevant config; uses in-memory db by default, override with @AutoConfigureTestDatabase
@AutoConfigureTestDatabase If you do not want to use auto-configured test database, use this to configure a test db
@MockBean Use with SpringRunner class to mock components in test
@Mock Similar to @MockBean but without spring support; use with MockitoJUnitRunner
@AutoConfigureMockMvc More control of mock-mvc, disable spring security bits etc
@WebFluxTest Use in combination with SpringRunner to load context relevant spring WebFlux components
@DataMongoTest Use in combination with SpringRunner for testing MongoDB components; uses in-memory MongoDB by default

tdd-with-spring-boot's People

Contributors

dependabot-preview[bot] avatar dependabot[bot] avatar mbhave avatar rajadileepkolli avatar rajadilipkolli avatar rdckolli avatar renovate[bot] avatar

Stargazers

 avatar  avatar

Watchers

 avatar  avatar

Forkers

zkvarz

tdd-with-spring-boot's Issues

Dependency Dashboard

This issue lists Renovate updates and detected dependencies. Read the Dependency Dashboard docs to learn more.

This repository currently has no open or pending branches.

Detected dependencies

github-actions
.github/workflows/maven.yml
  • actions/checkout v4
  • actions/setup-java v4
  • actions/cache v4
maven
non-reactive/pom.xml
  • org.springframework.boot:spring-boot-starter-parent 3.3.0
pom.xml
reactive/pom.xml
  • org.springframework.boot:spring-boot-starter-parent 3.3.0
wiremock-non-reactive/pom.xml
  • org.springframework.boot:spring-boot-starter-parent 3.3.0
  • org.wiremock:wiremock 3.6.0
  • com.github.wiremock:wiremock-testcontainers-java 1.0-alpha-13
maven-wrapper
.mvn/wrapper/maven-wrapper.properties
  • maven 3.9.7
non-reactive/.mvn/wrapper/maven-wrapper.properties
  • maven 3.9.7
reactive/.mvn/wrapper/maven-wrapper.properties
  • maven 3.9.7
wiremock-non-reactive/.mvn/wrapper/maven-wrapper.properties
  • maven 3.9.7

  • Check this box to trigger a request for Renovate to run again on this repository

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.