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