@@ -31,7 +31,7 @@ public void createBundleTest() {
3131 when (sessionUserService .getVisitorOrgMemberCache ()).thenReturn (Mono .just (new OrgMember ("org01" , "user01" , MemberRole .ADMIN , "NORMAL" , 0 )));
3232 Mono <BundleInfoView > bundleInfoViewMono = bundleApiService .create (new BundleEndpoints .CreateBundleRequest (
3333 "org01" ,
34- "name " ,
34+ "name1 " ,
3535 "title" ,
3636 "description" ,
3737 "category" ,
@@ -40,7 +40,7 @@ public void createBundleTest() {
4040 StepVerifier .create (bundleInfoViewMono )
4141 .assertNext (bundleInfoView -> {
4242 assertNotNull (bundleInfoView .getBundleId ());
43- assertEquals ("name " , bundleInfoView .getName ());
43+ assertEquals ("name1 " , bundleInfoView .getName ());
4444 assertEquals ("title" , bundleInfoView .getTitle ());
4545 assertEquals ("description" , bundleInfoView .getDescription ());
4646 assertEquals ("category" , bundleInfoView .getCategory ());
@@ -57,7 +57,7 @@ public void createBundleTest() {
5757 when (sessionUserService .getVisitorOrgMemberCache ()).thenReturn (Mono .just (new OrgMember ("org01" , "user02" , MemberRole .MEMBER , "NORMAL" , 0 )));
5858 Mono <BundleInfoView > bundleInfoViewMono1 = bundleApiService .create (new BundleEndpoints .CreateBundleRequest (
5959 "org01" ,
60- "name " ,
60+ "name2 " ,
6161 "title" ,
6262 "description" ,
6363 "category" ,
@@ -66,7 +66,7 @@ public void createBundleTest() {
6666 StepVerifier .create (bundleInfoViewMono1 )
6767 .assertNext (bundleInfoView -> {
6868 assertNotNull (bundleInfoView .getBundleId ());
69- assertEquals ("name " , bundleInfoView .getName ());
69+ assertEquals ("name2 " , bundleInfoView .getName ());
7070 assertEquals ("title" , bundleInfoView .getTitle ());
7171 assertEquals ("description" , bundleInfoView .getDescription ());
7272 assertEquals ("category" , bundleInfoView .getCategory ());
@@ -83,7 +83,7 @@ public void createBundleTest() {
8383 when (sessionUserService .getVisitorOrgMemberCache ()).thenReturn (Mono .just (new OrgMember ("org01" , "user01" , MemberRole .MEMBER , "NORMAL" , 0 )));
8484 Mono <BundleInfoView > bundleInfoViewMono2 = bundleApiService .create (new BundleEndpoints .CreateBundleRequest (
8585 "org01" ,
86- "name " ,
86+ "name3 " ,
8787 "title" ,
8888 "description" ,
8989 "category" ,
@@ -101,24 +101,26 @@ public void moveAddAppTest() {
101101 //Create bundles
102102 Mono <BundleInfoView > bundleInfoViewMono = bundleApiService .create (new BundleEndpoints .CreateBundleRequest (
103103 "org01" ,
104- "name " ,
104+ "name4 " ,
105105 "title" ,
106106 "description" ,
107107 "category" ,
108108 "image" ,
109109 null ));
110- BundleInfoView bundleInfoView2 = bundleApiService .create (new BundleEndpoints .CreateBundleRequest (
110+
111+ Mono <BundleInfoView > bundleInfoViewMono2 = bundleApiService .create (new BundleEndpoints .CreateBundleRequest (
111112 "org01" ,
112- "name2 " ,
113+ "name5 " ,
113114 "title" ,
114115 "description" ,
115116 "category" ,
116117 "image" ,
117- null )).block ();
118- assert bundleInfoView2 != null ;
118+ null ));
119119
120- StepVerifier .create (bundleInfoViewMono )
121- .assertNext (bundleInfoView -> {
120+ StepVerifier .create (Mono .zip (bundleInfoViewMono , bundleInfoViewMono2 ))
121+ .assertNext (tuple2 -> {
122+ var bundleInfoView = tuple2 .getT1 ();
123+ var bundleInfoView2 = tuple2 .getT2 ();
122124 //And then add app01 to created bundle
123125 StepVerifier .create (bundleApiService .addApp ("app01" , bundleInfoView .getBundleId ()))
124126 .verifyComplete ();
0 commit comments