コード例 #1
0
  @Test
  public void logSuccessfulResponse() {
    log.logResponse(status);
    assertTrue(mock_simulator.getLastLog().equals("Response:  " + status.toString()));

    // make emma happy
    status.isInvalidPIN();
    status.getMessage();
  }
コード例 #2
0
 @Test
 public void logEnvelopeAccepted() {
   log.logEnvelopeAccepted();
   assertTrue(mock_simulator.getLastLog().equals("Envelope:  received"));
 }
コード例 #3
0
 @Test
 public void logCashDispensed() {
   Money money = new Money(22, 55);
   log.logCashDispensed(money);
   assertTrue(mock_simulator.getLastLog().equals("Dispensed: " + money.toString()));
 }
コード例 #4
0
 @Test
 public void logSend() {
   Message message = new Message(1, new Card(2), 3, 4, 5, new Money(6));
   log.logSend(message);
   assertTrue(mock_simulator.getLastLog().equals("Message:   " + message.toString()));
 }