From 1e2e5bc6044278852114c812d87f271a3f1c9b5d Mon Sep 17 00:00:00 2001
From: Helius <wangdoubleone@gmail.com>
Date: Tue, 07 Jul 2020 17:25:49 +0800
Subject: [PATCH] modify
---
src/test/java/com/xcong/excoin/KssframeworkApplicationTests.java | 44 ++++++++++++++++++++++++++++++++++++++++++++
1 files changed, 44 insertions(+), 0 deletions(-)
diff --git a/src/test/java/com/xcong/excoin/KssframeworkApplicationTests.java b/src/test/java/com/xcong/excoin/KssframeworkApplicationTests.java
index 1ce2e4d..1704f84 100644
--- a/src/test/java/com/xcong/excoin/KssframeworkApplicationTests.java
+++ b/src/test/java/com/xcong/excoin/KssframeworkApplicationTests.java
@@ -1,13 +1,20 @@
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.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;
+@Slf4j
@SpringBootTest
class KssframeworkApplicationTests {
@@ -30,4 +37,41 @@
}
+ @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();
+ }
+
}
--
Gitblit v1.9.1