| | |
| | | |
| | | import cn.hutool.crypto.digest.DigestUtil; |
| | | import com.gs.xiaomi.dto.BCS101Request; |
| | | import com.gs.xiaomi.dto.NumbericalDto; |
| | | import com.gs.xiaomi.service.BCS101ApiService; |
| | | import com.gs.xiaomi.service.XM104Service; |
| | | import com.gs.xiaomi.service.Xm104Service; |
| | | import org.junit.jupiter.api.Test; |
| | | import org.springframework.beans.factory.annotation.Autowired; |
| | | import org.springframework.boot.test.context.SpringBootTest; |
| | |
| | | class XiaomiApplicationTests { |
| | | |
| | | @Autowired |
| | | private XM104Service xm104Service; |
| | | private Xm104Service xm104Service; |
| | | |
| | | @Autowired |
| | | private BCS101ApiService bcs101ApiService; |
| | |
| | | xm104Service.getDb(); |
| | | } |
| | | |
| | | //manualSynchronization |
| | | @Test |
| | | void contextLoads1() throws Exception { |
| | | NumbericalDto barcode = new NumbericalDto(); |
| | | barcode.setAsn("9316692923"); |
| | | xm104Service.manualSynchronization(barcode); |
| | | } |
| | | |
| | | @Test |
| | | void test() { |
| | | // String str = ",,"; |