@@ -0,0 +1,2032 @@
+package de.retest.recheck.ui.diff;%0A%0Aimport static org.assertj.core.api.Assertions.assertThat;%0Aimport static org.mockito.Mockito.mock;%0Aimport static org.mockito.Mockito.when;%0A%0Aimport java.util.Collections;%0Aimport java.util.List;%0A%0Aimport org.junit.jupiter.api.Test;%0A%0Aimport de.retest.recheck.ui.descriptors.Element;%0A%0Aclass ElementDifferenceTest %7B%0A%0A%09@Test%0A%09void hasAttributesDifferences_should_respect_all_possible_difference_representations() %7B%0A%09%09final Element element = mock( Element.class );%0A%09%09final List%3CElementDifference%3E childDifferences = Collections.emptyList();%0A%0A%09%09final AttributesDifference attributes = mock( AttributesDifference.class );%0A%09%09final IdentifyingAttributesDifference identifying = mock( IdentifyingAttributesDifference.class );%0A%09%09final InsertedDeletedElementDifference insertion = mock( InsertedDeletedElementDifference.class );%0A%09%09when( insertion.isInserted() ).thenReturn( true );%0A%09%09final InsertedDeletedElementDifference deletion = mock( InsertedDeletedElementDifference.class );%0A%09%09when( deletion.isInserted() ).thenReturn( false );%0A%0A%09%09final ElementDifference e1 = new ElementDifference( element, null, null, null, null, childDifferences );%0A%09%09final ElementDifference e2 = new ElementDifference( element, attributes, null, null, null, childDifferences );%0A%09%09final ElementDifference e3 = new ElementDifference( element, null, identifying, null, null, childDifferences );%0A%09%09final ElementDifference e4 =%0A%09%09%09%09new ElementDifference( element, attributes, identifying, null, null, childDifferences );%0A%09%09final ElementDifference e5 = new ElementDifference( element, null, insertion, null, null, childDifferences );%0A%09%09final ElementDifference e6 = new ElementDifference( element, null, deletion, null, null, childDifferences );%0A%0A%09%09assertThat( e1.hasAnyDifference() ).isFalse();%0A%09%09assertThat( e2.hasAnyDifference() ).isTrue();%0A%09%09assertThat( e3.hasAnyDifference() ).isTrue();%0A%09%09assertThat( e4.hasAnyDifference() ).isTrue();%0A%09%09assertThat( e5.hasAnyDifference() ).isTrue();%0A%09%09assertThat( e6.hasAnyDifference() ).isTrue();%0A%09%7D%0A%7D%0A

Add test for method