Skip to content

Investigate how to create specific tests for Spring controllers #2345

Closed
@EgorkaKulikov

Description

@EgorkaKulikov

Description

In accordance with some articles, unit tests for the controllers may be created a little bit different than for services
https://salithachathuranga94.medium.com/unit-and-integration-testing-in-spring-boot-micro-service-901fc53b0dff

We should investigate:

  • how it works in details (e.g. the difference between @Mock and @MockBean)
  • is it really useful
  • is it possible to implement smth like this in UtBot

Metadata

Metadata

Assignees

Labels

comp-codegenIssue is related to code generatorcomp-springIssue is related to Spring projects supportcomp-symbolic-engineIssue is related to the symbolic execution enginectg-enhancementNew feature, improvement or change request

Type

No type

Projects

Status

Done

Relationships

None yet

Development

No branches or pull requests

Issue actions