示例#1
0
  /** Tests for payment service */
  @Test
  public void testValidServicePayment() {

    try {
      payment = new Payment(service, 1, 1, 1);
      assertEquals(service, payment.getService());
    } catch (PaymentException e) {
      fail("Should not throw this exception: " + e.getMessage());
    }
  }