Esempio n. 1
0
 @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();
 }
Esempio n. 2
0
  @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();
    }
  }
Esempio n. 3
0
 @SuppressWarnings("unused")
 @Mock(invocations = 8)
 public void print(int i) {
   System.out.println("Result for input#" + fastScannerMockUp.getCurrInput() + " = " + i);
   actualResult = i;
 }