BAEL-7453 - Remove the linebreak in assertions
This commit is contained in:
parent
d6f5abfe6a
commit
d5eaf1d6cc
|
@ -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);
|
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
|
@ -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);
|
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in New Issue