Skip to content

Commit

Permalink
Set TestDataRunner orders to Orderstatus.PAID (#549)
Browse files Browse the repository at this point in the history
  • Loading branch information
simchavos authored Dec 19, 2021
1 parent 2b93df6 commit d1406e9
Showing 1 changed file with 3 additions and 0 deletions.
3 changes: 3 additions & 0 deletions src/main/java/ch/wisv/areafiftylan/utils/TestDataRunner.java
Original file line number Diff line number Diff line change
Expand Up @@ -25,6 +25,7 @@
import ch.wisv.areafiftylan.products.model.Ticket;
import ch.wisv.areafiftylan.products.model.TicketOption;
import ch.wisv.areafiftylan.products.model.TicketType;
import ch.wisv.areafiftylan.products.model.order.OrderStatus;
import ch.wisv.areafiftylan.products.service.repository.OrderRepository;
import ch.wisv.areafiftylan.products.service.repository.TicketOptionRepository;
import ch.wisv.areafiftylan.products.service.repository.TicketRepository;
Expand Down Expand Up @@ -280,10 +281,12 @@ public void insertTestData() {
//region Orders
Order order_admin = orderService.create("Normal", null);
orderService.assignOrderToUser(order_admin.getId(), userAdmin.getId());
order_admin.setStatus(OrderStatus.PAID);
orderRepository.save(order_admin);

Order order_normal = orderService.create("Normal", null);
orderService.assignOrderToUser(order_normal.getId(), userNormal.getId());
order_normal.setStatus(OrderStatus.PAID);
orderRepository.save(order_admin);
//endregion Orders
}
Expand Down

0 comments on commit d1406e9

Please sign in to comment.