TSK-987: Fix Spotbugs - Load of known null value

This commit is contained in:
Benjamin Eckstein 2020-01-23 16:36:54 +01:00
parent 10e888acd4
commit 1ddc5bbc95
1 changed files with 1 additions and 2 deletions

View File

@ -43,10 +43,9 @@ class TaskAttachmentTest {
@Test
void testAddNullValue() {
Attachment attachment1 = createAttachment("ID1", "taskId1");
Attachment attachment2 = null;
cut.addAttachment(attachment1);
cut.addAttachment(attachment2);
cut.addAttachment(null);
assertThat(cut.getAttachments().size(), equalTo(1));
}