use of uk.gov.pay.connector.events.eventdetails.EmptyEventDetails in project pay-connector by alphagov.
the class PaymentGatewayStateTransitionsTest method isValidTransition_deniesTransitionWithInvalidEvent.
@Test
public void isValidTransition_deniesTransitionWithInvalidEvent() {
assertThat(PaymentGatewayStateTransitions.isValidTransition(CAPTURE_READY, CAPTURE_SUBMITTED, new CaptureSubmitted("id", true, "a", new EmptyEventDetails(), ZonedDateTime.now())), is(true));
assertThat(PaymentGatewayStateTransitions.isValidTransition(CAPTURE_READY, CAPTURE_SUBMITTED, new CaptureErrored("id", true, "a", ZonedDateTime.now())), is(false));
}
Aggregations