@SuppressWarnings("unused") @Mock(invocations = 8) public void flush() { System.out.println("Check input#" + fastScannerMockUp.getCurrInput()); int expectedResult = expectedResults[fastScannerMockUp.getCurrInput()]; assertEquals(expectedResult, actualResult); fastScannerMockUp.switchInput(); }
@Test public void calcTransferCombinations_test() throws IOException { final FastScannerMockUp scannerMockUp = new FastScannerMockUp(); final PrintWriterMockUp writerMockUp = new PrintWriterMockUp(scannerMockUp); for (int i = 0; i < scannerMockUp.getInputsCount(); i++) { PrisonTransfer.calcTransferCombinations(); } }
@SuppressWarnings("unused") @Mock(invocations = 8) public void print(int i) { System.out.println("Result for input#" + fastScannerMockUp.getCurrInput() + " = " + i); actualResult = i; }