|
|
@@ -1,9 +1,17 @@
|
|
|
package com.webflux.launchadmin;
|
|
|
|
|
|
+import com.alibaba.fastjson.JSON;
|
|
|
+import com.webflux.launchadmin.mysql.controller.planNew.PlanNewCommonOutController;
|
|
|
+import com.webflux.launchadmin.mysql.controller.planNew.req.PlanNewCommonMaterialReq;
|
|
|
+import com.webflux.launchadmin.mysql.controller.planNew.res.PlanNewCommonMaterialRes;
|
|
|
import com.webflux.launchadmin.mysql.entity.planNew.DomainSelect;
|
|
|
+import com.webflux.launchcommon.returnObj.RStatus;
|
|
|
import org.json.JSONObject;
|
|
|
import org.junit.jupiter.api.Test;
|
|
|
+import org.junit.jupiter.api.TestTemplate;
|
|
|
+import org.springframework.beans.factory.annotation.Autowired;
|
|
|
import org.springframework.boot.test.context.SpringBootTest;
|
|
|
+import reactor.core.publisher.Mono;
|
|
|
|
|
|
import java.net.URI;
|
|
|
import java.net.http.HttpClient;
|
|
|
@@ -13,6 +21,20 @@ import java.net.http.HttpResponse;
|
|
|
|
|
|
@SpringBootTest
|
|
|
class LaunchAdminApplicationTests {
|
|
|
+
|
|
|
+ @Autowired
|
|
|
+ private PlanNewCommonOutController planNewCommonOutController;
|
|
|
+
|
|
|
+ @Test
|
|
|
+ public void testGetCommon() {
|
|
|
+ PlanNewCommonMaterialReq req = new PlanNewCommonMaterialReq();
|
|
|
+ req.setCode("lmyquu");
|
|
|
+ req.setAlbumNum(6);
|
|
|
+ req.setBottomAdvBl(true);
|
|
|
+ req.setReturnLoopId(10L);
|
|
|
+ Mono<RStatus<PlanNewCommonMaterialRes>> commonMaterial = planNewCommonOutController.getCommonMaterial(req);
|
|
|
+ commonMaterial.subscribe();
|
|
|
+ }
|
|
|
|
|
|
@Test
|
|
|
public void te() {
|