| 1234567891011121314151617181920212223 |
- package com.ruoyi.system.service;
- import com.fasterxml.jackson.databind.ObjectMapper;
- import com.ruoyi.system.domain.PosStore;
- import org.junit.jupiter.api.Test;
- import static org.junit.jupiter.api.Assertions.assertNull;
- class PosStorePaymentBindingTest {
- @Test
- void genericStoreInputCannotChangeStallPaymentSelection() throws Exception {
- PosStore input = new ObjectMapper().readValue(
- "{\"id\":11,\"payMethods\":\"COD\"}", PosStore.class);
- assertNull(input.getPayMethods());
- }
- @Test
- void genericStoreInputCannotSwitchPaymentRoutingType() throws Exception {
- PosStore input = new ObjectMapper().readValue(
- "{\"id\":11,\"isStall\":0}", PosStore.class);
- assertNull(input.getIsStall());
- }
- }
|