BAEL-7453 - Remove the linebreak in assertions

This commit is contained in:
ICKostiantyn.Ivanov 2024-01-19 10:30:10 +01:00
parent d6f5abfe6a
commit d5eaf1d6cc
2 changed files with 6 additions and 12 deletions

View File

@ -15,8 +15,7 @@ public class ByteArrayToPrimitiveByteArrayUnitTest {
for (int i = 0; i < BYTE_ARRAY.length; i++) { for (int i = 0; i < BYTE_ARRAY.length; i++) {
newByteArray[i] = BYTE_ARRAY[i].byteValue(); newByteArray[i] = BYTE_ARRAY[i].byteValue();
} }
assertThat(newByteArray) assertThat(newByteArray).containsExactly(EXPECTED_ARRAY_VALUES);
.containsExactly(EXPECTED_ARRAY_VALUES);
} }
@Test @Test
@ -25,15 +24,13 @@ public class ByteArrayToPrimitiveByteArrayUnitTest {
for (int i = 0; i < BYTE_ARRAY.length; i++) { for (int i = 0; i < BYTE_ARRAY.length; i++) {
newByteArray[i] = BYTE_ARRAY[i]; newByteArray[i] = BYTE_ARRAY[i];
} }
assertThat(newByteArray) assertThat(newByteArray).containsExactly(EXPECTED_ARRAY_VALUES);
.containsExactly(EXPECTED_ARRAY_VALUES);
} }
@Test @Test
public void givenByteArray_whenConvertingArrayUtils_thenGiveExpectedResult() { public void givenByteArray_whenConvertingArrayUtils_thenGiveExpectedResult() {
byte[] newByteArray = ArrayUtils.toPrimitive(BYTE_ARRAY); byte[] newByteArray = ArrayUtils.toPrimitive(BYTE_ARRAY);
assertThat(newByteArray) assertThat(newByteArray).containsExactly(EXPECTED_ARRAY_VALUES);
.containsExactly(EXPECTED_ARRAY_VALUES);
} }
} }

View File

@ -17,8 +17,7 @@ public class PrimitiveByteArrayToByteArrayUnitTest {
for (int i = 0; i < PRIMITIVE_BYTE_ARRAY.length; i++) { for (int i = 0; i < PRIMITIVE_BYTE_ARRAY.length; i++) {
newByteArray[i] = Byte.valueOf(PRIMITIVE_BYTE_ARRAY[i]); newByteArray[i] = Byte.valueOf(PRIMITIVE_BYTE_ARRAY[i]);
} }
assertThat(newByteArray) assertThat(newByteArray).containsExactly(EXPECTED_ARRAY_VALUES);
.containsExactly(EXPECTED_ARRAY_VALUES);
} }
@Test @Test
@ -27,8 +26,7 @@ public class PrimitiveByteArrayToByteArrayUnitTest {
for (int i = 0; i < PRIMITIVE_BYTE_ARRAY.length; i++) { for (int i = 0; i < PRIMITIVE_BYTE_ARRAY.length; i++) {
newByteArray[i] = PRIMITIVE_BYTE_ARRAY[i]; newByteArray[i] = PRIMITIVE_BYTE_ARRAY[i];
} }
assertThat(newByteArray) assertThat(newByteArray).containsExactly(EXPECTED_ARRAY_VALUES);
.containsExactly(EXPECTED_ARRAY_VALUES);
} }
@Test @Test
@ -44,7 +42,6 @@ public class PrimitiveByteArrayToByteArrayUnitTest {
public void givenPrimitiveByteArray_whenConvertingUsingArrayUtils_thenGiveExpectedResult() { public void givenPrimitiveByteArray_whenConvertingUsingArrayUtils_thenGiveExpectedResult() {
Byte[] newByteArray = ArrayUtils.toObject(PRIMITIVE_BYTE_ARRAY); Byte[] newByteArray = ArrayUtils.toObject(PRIMITIVE_BYTE_ARRAY);
assertThat(newByteArray) assertThat(newByteArray).containsExactly(EXPECTED_ARRAY_VALUES);
.containsExactly(EXPECTED_ARRAY_VALUES);
} }
} }