admin
2020-11-13 ae08b37317103344b9be1b9f91b6bdf7abbc839b
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
package com.ks.goldcorn.mapper;
 
import com.ks.goldcorn.service.remote.GoldCornTradeService;
import org.junit.jupiter.api.Test;
import org.springframework.boot.test.context.SpringBootTest;
 
import javax.annotation.Resource;
 
@SpringBootTest
public class TradeTest {
 
    @Resource
    private GoldCornTradeService goldCornTradeService;
 
    @Test
    public void addGoldCorn() throws Exception {
        String appCode = "test1";
        goldCornTradeService.addGoldCorn(appCode, "1", "source1", "测试自定义标题", null);
    }
 
    @Test
    public void consumeGoldCorn() throws Exception {
        String appCode = "test1";
        goldCornTradeService.consumeGoldCorn(appCode, "1", "source1", "测试自定义标题", null);
    }
 
 
}