Skip to content

Do not mock Entities in Spring unit tests #2341

Open
@EgorkaKulikov

Description

@EgorkaKulikov

Description

For Spring projects we use custom mocking strategy that is similar to Mock other classes, but may contain type replacements.
It seems that we should add one more customization: mocking classes marked @Entity is useless as they may be easily constructed with symbolic engine.

It is better to start with an example where we mock entities now and we will not do it with new approach.

Metadata

Metadata

Assignees

Labels

comp-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

Todo

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions