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