Skip to content

Improve test code #128

@occupant23

Description

@occupant23

Exchange the expected parameter of the Test annotation with Assert.assertThrows within our test suite.
This reduces the risk of masking an error because the same error was thrown accidentally. Create a PR afterwards.

before:
@Test(expected = UIAssertionError.class

after:

// code before the Throwable is ecpected
Assert.assertThrows(UIAssertionError.class, () -> {
    // code that will produce the Throwable
});

Metadata

Metadata

Assignees

Labels

Low PrioritycodeDoneThe issue is rechecked for development branchcodeReadyForRecheckThe issue is fixed/implemented AND merged into development, but needs to be rechecked thereimprovement

Type

No type

Projects

No projects

Milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions