|
|
@@ -1,6 +1,9 @@
|
|
|
package com.izouma.nineth.service;
|
|
|
|
|
|
import com.izouma.nineth.ApplicationTests;
|
|
|
+import com.izouma.nineth.domain.User;
|
|
|
+import com.izouma.nineth.enums.PayMethod;
|
|
|
+import com.izouma.nineth.repo.UserRepo;
|
|
|
import org.junit.jupiter.api.Test;
|
|
|
import org.springframework.beans.factory.annotation.Autowired;
|
|
|
|
|
|
@@ -10,6 +13,8 @@ class MintOrderServiceTest extends ApplicationTests {
|
|
|
|
|
|
@Autowired
|
|
|
private MintOrderService mintOrderService;
|
|
|
+ @Autowired
|
|
|
+ private UserRepo userRepo;
|
|
|
|
|
|
@Test
|
|
|
void exchange() throws InterruptedException {
|
|
|
@@ -18,7 +23,18 @@ class MintOrderServiceTest extends ApplicationTests {
|
|
|
}
|
|
|
|
|
|
@Test
|
|
|
- void test(){
|
|
|
+ void test() {
|
|
|
mintOrderService.batchCancel();
|
|
|
}
|
|
|
+
|
|
|
+ @Test
|
|
|
+ public void test1() {
|
|
|
+ User user = userRepo.findByIdAndDelFalse(9972L).orElse(null);
|
|
|
+ mintOrderService.create(user, Arrays.asList(151339L), 151155L, null);
|
|
|
+ }
|
|
|
+
|
|
|
+ @Test
|
|
|
+ public void test2() {
|
|
|
+ mintOrderService.mintNotify(151376L, PayMethod.ALIPAY, "xxx");
|
|
|
+ }
|
|
|
}
|