file-parse
This commit is contained in:
parent
1b710c56d6
commit
ab0c8510a7
File diff suppressed because one or more lines are too long
@ -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());
|
||||
// }
|
||||
//}
|
||||
|
||||
Loading…
Reference in New Issue
Block a user