file-parse

This commit is contained in:
N1KO 2024-12-19 20:44:57 +08:00
parent 1b710c56d6
commit ab0c8510a7
2 changed files with 8874 additions and 36 deletions

File diff suppressed because one or more lines are too long

View File

@ -1,28 +1,28 @@
package top.baogutang.business.admin.job;
import com.xxl.job.core.biz.model.ReturnT;
import org.junit.Assert;
import org.junit.Test;
import top.baogutang.admin.schedule.OkCoinMarketCandlesHandler;
import top.baogutang.business.admin.BaoGuTangAdminAbstractTest;
import javax.annotation.Resource;
import static com.xxl.job.core.biz.model.ReturnT.SUCCESS_CODE;
/**
* @description:
* @author: nikooh
* @date: 2024/08/22 : 11:18
*/
public class MarketCandlesTest extends BaoGuTangAdminAbstractTest {
@Resource
private OkCoinMarketCandlesHandler okCoinMarketCandlesHandler;
@Test
public void testMarketCandles() throws Exception {
ReturnT<String> returnT = okCoinMarketCandlesHandler.execute("{\"onlyKey\":\"Bitcoin\",\"bar\":\"kline_1m\",\"sign\":\"marketCap\"}");
Assert.assertEquals(SUCCESS_CODE, returnT.getCode());
}
}
//package top.baogutang.business.admin.job;
//
//import com.xxl.job.core.biz.model.ReturnT;
//import org.junit.Assert;
//import org.junit.Test;
//import top.baogutang.admin.schedule.OkCoinMarketCandlesHandler;
//import top.baogutang.business.admin.BaoGuTangAdminAbstractTest;
//
//import javax.annotation.Resource;
//
//import static com.xxl.job.core.biz.model.ReturnT.SUCCESS_CODE;
//
///**
// * @description:
// * @author: nikooh
// * @date: 2024/08/22 : 11:18
// */
//public class MarketCandlesTest extends BaoGuTangAdminAbstractTest {
//
// @Resource
// private OkCoinMarketCandlesHandler okCoinMarketCandlesHandler;
//
// @Test
// public void testMarketCandles() throws Exception {
// ReturnT<String> returnT = okCoinMarketCandlesHandler.execute("{\"onlyKey\":\"Bitcoin\",\"bar\":\"kline_1m\",\"sign\":\"marketCap\"}");
// Assert.assertEquals(SUCCESS_CODE, returnT.getCode());
// }
//}