Skip to content

Commit

Permalink
Investigate flakey test: shouldReject #89
Browse files Browse the repository at this point in the history
  • Loading branch information
cer committed Oct 5, 2022
1 parent ab01082 commit 96f2ac3
Showing 1 changed file with 3 additions and 0 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -34,6 +34,7 @@ public class CustomersAndOrdersIntegrationTest {
@Configuration
@Import({OrderConfiguration.class, CustomerConfiguration.class})
public static class Config {

}

private static final String CUSTOMER_NAME = "John";
Expand Down Expand Up @@ -62,6 +63,8 @@ public void shouldApprove() {
public void shouldReject() {
Customer customer = customerService.createCustomer(CUSTOMER_NAME, new Money("10.00")).block();

System.out.println("CustomerID=" + customer.getId());

Order order = orderSagaService.createOrder(new OrderDetails(customer.getId(), new Money("12.34"))).block();

assertOrderState(order.getId(), Optional.of(OrderState.REJECTED), Optional.of(RejectionReason.INSUFFICIENT_CREDIT));
Expand Down

0 comments on commit 96f2ac3

Please sign in to comment.