Skip to content

Unit Test Assert does not allow to check method calls for idempotence #460

@PeregrinTooc

Description

@PeregrinTooc

💡 Code pal for ABAP follows the Clean ABAP. If the issue relates to coding style, please submit it here.

Check Name
unit test assert

Actual Behavior
If the same method is called twice in actual and expected, e.g. to test that a factory method returns a singleton, 'illegal assert' is raised

Expected Behavior
For method calls, dispense with the rule, since idempotence is a meaningful test.

Metadata

Metadata

Labels

bugSomething isn't working correctly

Type

No type

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions