|
|
@@ -0,0 +1,22 @@
|
|
|
+package com.izouma.nineth.service;
|
|
|
+
|
|
|
+import com.izouma.nineth.ApplicationTests;
|
|
|
+import com.izouma.nineth.utils.SnowflakeIdWorker;
|
|
|
+import org.junit.jupiter.api.Test;
|
|
|
+import org.springframework.beans.factory.annotation.Autowired;
|
|
|
+
|
|
|
+import java.math.BigDecimal;
|
|
|
+
|
|
|
+import static org.junit.jupiter.api.Assertions.*;
|
|
|
+
|
|
|
+class PayEaseServiceTest extends ApplicationTests {
|
|
|
+ @Autowired
|
|
|
+ private PayEaseService payEaseService;
|
|
|
+
|
|
|
+ @Test
|
|
|
+ public void transfer() {
|
|
|
+
|
|
|
+ payEaseService.transfer(new SnowflakeIdWorker(1, 1).nextId() + "",
|
|
|
+ "熊竹", "6222024301070380161", new BigDecimal("1"), "15077886171");
|
|
|
+ }
|
|
|
+}
|