@Before public void setUp() { failures = spy(new Failures()); actual = new byte[] {4, 3, 2, 2, 1}; arrays = new ByteArrays(); arrays.failures = failures; byteDescendingOrderComparator = new Comparator<Byte>() { public int compare(Byte byte1, Byte byte2) { return -byte1.compareTo(byte2); } }; byteAscendingOrderComparator = new Comparator<Byte>() { public int compare(Byte byte1, Byte byte2) { return byte1.compareTo(byte2); } }; }
@Before public void setUp() { failures = spy(new Failures()); arrays = new ByteArrays(); arrays.failures = failures; }