@@ -31,7 +31,7 @@ public void createBundleTest() {
31
31
when (sessionUserService .getVisitorOrgMemberCache ()).thenReturn (Mono .just (new OrgMember ("org01" , "user01" , MemberRole .ADMIN , "NORMAL" , 0 )));
32
32
Mono <BundleInfoView > bundleInfoViewMono = bundleApiService .create (new BundleEndpoints .CreateBundleRequest (
33
33
"org01" ,
34
- "name " ,
34
+ "name1 " ,
35
35
"title" ,
36
36
"description" ,
37
37
"category" ,
@@ -40,7 +40,7 @@ public void createBundleTest() {
40
40
StepVerifier .create (bundleInfoViewMono )
41
41
.assertNext (bundleInfoView -> {
42
42
assertNotNull (bundleInfoView .getBundleId ());
43
- assertEquals ("name " , bundleInfoView .getName ());
43
+ assertEquals ("name1 " , bundleInfoView .getName ());
44
44
assertEquals ("title" , bundleInfoView .getTitle ());
45
45
assertEquals ("description" , bundleInfoView .getDescription ());
46
46
assertEquals ("category" , bundleInfoView .getCategory ());
@@ -57,7 +57,7 @@ public void createBundleTest() {
57
57
when (sessionUserService .getVisitorOrgMemberCache ()).thenReturn (Mono .just (new OrgMember ("org01" , "user02" , MemberRole .MEMBER , "NORMAL" , 0 )));
58
58
Mono <BundleInfoView > bundleInfoViewMono1 = bundleApiService .create (new BundleEndpoints .CreateBundleRequest (
59
59
"org01" ,
60
- "name " ,
60
+ "name2 " ,
61
61
"title" ,
62
62
"description" ,
63
63
"category" ,
@@ -66,7 +66,7 @@ public void createBundleTest() {
66
66
StepVerifier .create (bundleInfoViewMono1 )
67
67
.assertNext (bundleInfoView -> {
68
68
assertNotNull (bundleInfoView .getBundleId ());
69
- assertEquals ("name " , bundleInfoView .getName ());
69
+ assertEquals ("name2 " , bundleInfoView .getName ());
70
70
assertEquals ("title" , bundleInfoView .getTitle ());
71
71
assertEquals ("description" , bundleInfoView .getDescription ());
72
72
assertEquals ("category" , bundleInfoView .getCategory ());
@@ -83,7 +83,7 @@ public void createBundleTest() {
83
83
when (sessionUserService .getVisitorOrgMemberCache ()).thenReturn (Mono .just (new OrgMember ("org01" , "user01" , MemberRole .MEMBER , "NORMAL" , 0 )));
84
84
Mono <BundleInfoView > bundleInfoViewMono2 = bundleApiService .create (new BundleEndpoints .CreateBundleRequest (
85
85
"org01" ,
86
- "name " ,
86
+ "name3 " ,
87
87
"title" ,
88
88
"description" ,
89
89
"category" ,
@@ -101,24 +101,26 @@ public void moveAddAppTest() {
101
101
//Create bundles
102
102
Mono <BundleInfoView > bundleInfoViewMono = bundleApiService .create (new BundleEndpoints .CreateBundleRequest (
103
103
"org01" ,
104
- "name " ,
104
+ "name4 " ,
105
105
"title" ,
106
106
"description" ,
107
107
"category" ,
108
108
"image" ,
109
109
null ));
110
- BundleInfoView bundleInfoView2 = bundleApiService .create (new BundleEndpoints .CreateBundleRequest (
110
+
111
+ Mono <BundleInfoView > bundleInfoViewMono2 = bundleApiService .create (new BundleEndpoints .CreateBundleRequest (
111
112
"org01" ,
112
- "name2 " ,
113
+ "name5 " ,
113
114
"title" ,
114
115
"description" ,
115
116
"category" ,
116
117
"image" ,
117
- null )).block ();
118
- assert bundleInfoView2 != null ;
118
+ null ));
119
119
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 ();
122
124
//And then add app01 to created bundle
123
125
StepVerifier .create (bundleApiService .addApp ("app01" , bundleInfoView .getBundleId ()))
124
126
.verifyComplete ();
0 commit comments