Update ArraysJoinAndSplitJUnitTest.java
This commit is contained in:
parent
77c84e9e79
commit
88c360a336
|
@ -32,7 +32,7 @@ public class ArraysJoinAndSplitJUnitTest {
|
|||
|
||||
private final String[] customers = {"Jay", "Harry", "Ronnie", "Gary", "Ross"};
|
||||
@Test
|
||||
public void givenOneStringArray_whenSplittingInHalfBetweenTwoStringArrays_ShouldSucceed() throws Exception {
|
||||
public void givenOneStringArray_whenSplittingInHalfTwoStringArrays_ShouldSucceed() throws Exception {
|
||||
int ordersHalved = (customers.length / 2) + (customers.length % 2);
|
||||
|
||||
String[] driverOne = Arrays.copyOf(customers, ordersHalved);
|
||||
|
|
Loading…
Reference in New Issue