package test.msg;
|
|
import com.yeshi.makemoney.app.Application;
|
import com.yeshi.makemoney.app.entity.goldcorn.GoldCornGetRecord;
|
import com.yeshi.makemoney.app.entity.goldcorn.GoldCornGetType;
|
import com.yeshi.makemoney.app.exception.goldcorn.GoldCornGetFrequencyConfigException;
|
import com.yeshi.makemoney.app.exception.goldcorn.GoldCornGetPriceException;
|
import com.yeshi.makemoney.app.exception.goldcorn.GoldCornGetRecordException;
|
import com.yeshi.makemoney.app.exception.goldcorn.GoldCornMakeException;
|
import com.yeshi.makemoney.app.exception.user.UserInfoException;
|
import com.yeshi.makemoney.app.service.inter.goldcorn.GoldCornGetRecordService;
|
import com.yeshi.makemoney.app.service.inter.goldcorn.GoldCornMakeService;
|
import com.yeshi.makemoney.app.service.inter.goldcorn.GoldCornSettleService;
|
import com.yeshi.makemoney.app.service.inter.msg.UserMsgNotifyService;
|
import com.yeshi.makemoney.app.utils.factory.msg.UserMsgFactory;
|
import org.junit.jupiter.api.Test;
|
import org.springframework.boot.test.context.SpringBootTest;
|
|
import javax.annotation.Resource;
|
import java.math.BigDecimal;
|
import java.util.Date;
|
import java.util.List;
|
|
/**
|
* @author hxh
|
* @title: GoldCornTest
|
* @description: TODO
|
* @date 2022/4/7 10:13
|
*/
|
@SpringBootTest(classes = Application.class)
|
public class MsgTest {
|
|
@Resource
|
private UserMsgNotifyService userMsgNotifyService;
|
|
|
@Test
|
public void addMsg() {
|
userMsgNotifyService.notify(UserMsgFactory.createExtractFail(22392L, new BigDecimal(10), "这是测试备注,测试备注,测试备注"));
|
}
|
|
}
|