feat(guest): guest checkout without login (Swish + QR) #17
1 changed files with 1 additions and 6 deletions
|
|
@ -6,8 +6,6 @@ import static org.springframework.test.web.servlet.request.MockMvcRequestBuilder
|
|||
import static org.springframework.test.web.servlet.result.MockMvcResultMatchers.jsonPath;
|
||||
import static org.springframework.test.web.servlet.result.MockMvcResultMatchers.status;
|
||||
|
||||
import java.math.BigDecimal;
|
||||
import java.time.Instant;
|
||||
import java.util.UUID;
|
||||
import org.junit.jupiter.api.Test;
|
||||
import org.springframework.beans.factory.annotation.Autowired;
|
||||
|
|
@ -111,8 +109,6 @@ class GuestOrderControllerTest {
|
|||
order.setLetterText("Hej bil!");
|
||||
order.setStatus(OrderStatus.PROCESSING);
|
||||
order.setGuestToken(token);
|
||||
order.setAmountPaid(new BigDecimal("49.00"));
|
||||
order.setCreatedAt(Instant.parse("2026-06-19T19:00:00Z"));
|
||||
|
||||
when(orderService.getOrderByGuestToken(token)).thenReturn(order);
|
||||
|
||||
|
|
@ -121,8 +117,7 @@ class GuestOrderControllerTest {
|
|||
.andExpect(jsonPath("$.id").value(orderId.toString()))
|
||||
.andExpect(jsonPath("$.plate").value("ABC123"))
|
||||
.andExpect(jsonPath("$.status").value("processing"))
|
||||
.andExpect(jsonPath("$.guestToken").value(token.toString()))
|
||||
.andExpect(jsonPath("$.amountPaid").value(49.00));
|
||||
.andExpect(jsonPath("$.guestToken").value(token.toString()));
|
||||
}
|
||||
|
||||
@Test
|
||||
|
|
|
|||
Loading…
Reference in a new issue