package de.retest.recheck.printer;

import java.util.Arrays;
import java.util.HashSet;

import org.assertj.core.api.Assertions;
import org.junit.jupiter.api.Test;

import de.retest.recheck.ui.diff.meta.MetadataDifference;
import de.retest.recheck.ui.diff.meta.MetadataElementDifference;

class MetadataDifferencePrinterTest {

	@Test
	void toString_should_properly_format_differences() throws Exception {
		final MetadataDifference differences = MetadataDifference.of( new HashSet<>( Arrays.asList( //
				new MetadataElementDifference( "a", "b", "c" ), //
				new MetadataElementDifference( "b", "c", "d" ) //
		) ) );

		final MetadataDifferencePrinter cut = new MetadataDifferencePrinter();

		Assertions.assertThat( cut.toString( differences, "____" ) ).isEqualTo( "____Metadata Differences:\n" //
				+ "____\ta: expected=\"b\", actual=\"c\"\n" //
				+ "____\tb: expected=\"c\", actual=\"d\"" );
	}
}

@@ -40,26 +40,60 @@
 ort 
-java.util.Arrays
+static org.assertj.core.api.Assertions.assertThat
 ;%0A
+%0A
 impo
@@ -109,57 +109,42 @@
 til.
-HashSet;%0A%0Aimport org.assertj.core.api.Assertions;
+Arrays;%0Aimport java.util.HashSet;%0A
 %0Aimp
@@ -709,27 +709,16 @@
 r();%0A%0A%09%09
-Assertions.
 assertTh

Use static import