From 128232e113567d1d1b84423bff8ade20ade8f4a4 Mon Sep 17 00:00:00 2001
From: xiaoyong931011 <15274802129@163.com>
Date: Thu, 17 Mar 2022 10:04:29 +0800
Subject: [PATCH] 20222223
---
src/test/java/com/xcong/excoin/KssframeworkApplicationTests.java | 59 ++++++++++++++++++++++++++++++++++++++++++++++++++++++++++-
1 files changed, 58 insertions(+), 1 deletions(-)
diff --git a/src/test/java/com/xcong/excoin/KssframeworkApplicationTests.java b/src/test/java/com/xcong/excoin/KssframeworkApplicationTests.java
index 1ce2e4d..d532e17 100644
--- a/src/test/java/com/xcong/excoin/KssframeworkApplicationTests.java
+++ b/src/test/java/com/xcong/excoin/KssframeworkApplicationTests.java
@@ -1,13 +1,23 @@
package com.xcong.excoin;
+import com.xcong.excoin.common.enumerates.CoinTypeEnum;
+import com.xcong.excoin.common.enumerates.SymbolEnum;
+import com.xcong.excoin.configurations.properties.AliOssProperties;
+import com.xcong.excoin.modules.coin.service.BlockCoinService;
+import com.xcong.excoin.modules.contract.entity.ContractHoldOrderEntity;
+import com.xcong.excoin.modules.contract.service.ContractHoldOrderService;
import com.xcong.excoin.modules.test.dao.TestUserDao;
import com.xcong.excoin.modules.test.entity.TestUserEntity;
+import com.xcong.excoin.modules.test.service.TestUserService;
+import lombok.extern.slf4j.Slf4j;
import org.junit.jupiter.api.Test;
import org.springframework.boot.test.context.SpringBootTest;
import javax.annotation.Resource;
import java.util.Date;
+import java.util.List;
+@Slf4j
@SpringBootTest
class KssframeworkApplicationTests {
@@ -16,7 +26,7 @@
@Test
public void testUserInsert() {
- for(int i = 0; i < 20; i++) {
+ for (int i = 0; i < 20; i++) {
TestUserEntity testUser = new TestUserEntity();
testUser.setCreateBy("123");
testUser.setCreateTime(new Date());
@@ -30,4 +40,51 @@
}
+ @Resource
+ TestUserService testUserService;
+
+ @Test
+ public void mybatisInterceptorTest() {
+ TestUserEntity testUser = new TestUserEntity();
+ testUser.setId(3L);
+ testUser.setAccount("123333345");
+ testUser.setName("hehe111");
+ testUser.setPassword("33333");
+
+ testUserDao.updateById(testUser);
+
+ }
+
+ @Test
+ public void enumTest() {
+ System.out.println(SymbolEnum.BCH.getValue());
+ }
+
+ @Resource
+ AliOssProperties aliOssProperties;
+
+ @Test
+ public void aliyunOssTest() {
+ log.info("{}", aliOssProperties.getEndPoint());
+ }
+
+
+ @Resource
+ private BlockCoinService blockCoinService;
+
+ @Test
+ public void usdtEthTest() {
+ blockCoinService.updateEthUsdt();
+ }
+
+ @Resource
+ ContractHoldOrderService contractHoldOrderService;
+
+ @Test
+ public void coinOutTest() {
+ List<ContractHoldOrderEntity> list = contractHoldOrderService.selectContractHoldOrderByBatchNo("7948d5f5-222d-44db-bd60-69dbe762dc38");
+ log.info("--->{}", list);
+ log.info("------>{}", list.get(0).getId());
+ }
+
}
--
Gitblit v1.9.1