Skip to content

Commit e6cb951

Browse files
Thomasludomikula
Thomas
authored andcommitted
fix compile issue
1 parent c7db3e0 commit e6cb951

File tree

3 files changed

+16
-3
lines changed

3 files changed

+16
-3
lines changed

server/api-service/lowcoder-server/src/test/java/org/lowcoder/api/application/ApplicationApiServiceIntegrationTest.java

Lines changed: 7 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -18,6 +18,7 @@
1818
import org.lowcoder.domain.application.model.ApplicationType;
1919
import org.lowcoder.domain.datasource.model.Datasource;
2020
import org.lowcoder.domain.permission.model.ResourceRole;
21+
import org.lowcoder.sdk.constants.FieldName;
2122
import org.lowcoder.sdk.exception.BizError;
2223
import org.lowcoder.sdk.exception.BizException;
2324
import org.springframework.beans.factory.annotation.Autowired;
@@ -68,6 +69,7 @@ public void testCreateApplicationSuccess() {
6869
//
6970
Mono<ApplicationView> applicationViewMono = datasourceMono.map(datasource -> new CreateApplicationRequest(
7071
"org01",
72+
"",
7173
"app05",
7274
ApplicationType.APPLICATION.getValue(),
7375
Map.of("comp", "table"),
@@ -77,7 +79,10 @@ public void testCreateApplicationSuccess() {
7779
.flatMap(createApplicationRequest -> applicationApiService.create(createApplicationRequest));
7880

7981
StepVerifier.create(applicationViewMono)
80-
.assertNext(applicationView -> Assertions.assertNotNull(applicationView.getApplicationInfoView().getApplicationId()))
82+
.assertNext(applicationView -> {
83+
Assertions.assertNotNull(applicationView.getApplicationInfoView().getApplicationId());
84+
Assertions.assertTrue(FieldName.isGID(applicationView.getApplicationInfoView().getApplicationGid()));
85+
})
8186
.verifyComplete();
8287
}
8388

@@ -100,6 +105,7 @@ public void testUpdateApplicationFailedDueToLackOfDatasourcePermissions() {
100105
//
101106
Mono<ApplicationView> applicationViewMono = datasourceMono.map(datasource -> new CreateApplicationRequest(
102107
"org01",
108+
"",
103109
"app03",
104110
ApplicationType.APPLICATION.getValue(),
105111
Map.of("comp", "table"),

server/api-service/lowcoder-server/src/test/java/org/lowcoder/api/application/ApplicationApiServiceTest.java

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -124,7 +124,7 @@ public void testDeleteNormalApplicationWithError() {
124124

125125
private Mono<ApplicationView> createApplication(String name, String folderId) {
126126
CreateApplicationRequest createApplicationRequest =
127-
new CreateApplicationRequest("org01", name, ApplicationType.APPLICATION.getValue(),
127+
new CreateApplicationRequest("org01", "", name, ApplicationType.APPLICATION.getValue(),
128128
Map.of("comp", "table"), Map.of("comp", "list"), folderId);
129129
return applicationApiService.create(createApplicationRequest);
130130
}

server/api-service/lowcoder-server/src/test/java/org/lowcoder/api/bundle/BundleApiServiceImplTest.java

Lines changed: 8 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -53,6 +53,7 @@ public void createBundleTestAdminUser() {
5353
//When org admin user creates bundle it succeed
5454
Mono<BundleInfoView> bundleInfoViewMono = bundleApiService.create(new BundleEndpoints.CreateBundleRequest(
5555
"org01",
56+
"",
5657
"name1",
5758
"title",
5859
"description",
@@ -80,6 +81,7 @@ public void createBundleTestDevUser() {
8081
//When org dev user creates bundle it succeed
8182
Mono<BundleInfoView> bundleInfoViewMono1 = bundleApiService.create(new BundleEndpoints.CreateBundleRequest(
8283
"org01",
84+
"",
8385
"name2",
8486
"title",
8587
"description",
@@ -107,6 +109,7 @@ public void createBundleTestNonDevUser() {
107109
//When non-dev create bundle throws error
108110
Mono<BundleInfoView> bundleInfoViewMono2 = bundleApiService.create(new BundleEndpoints.CreateBundleRequest(
109111
"org01",
112+
"",
110113
"name3",
111114
"title",
112115
"description",
@@ -124,6 +127,7 @@ public void moveAddAppTestAdmin() {
124127
//Create bundles
125128
Mono<BundleInfoView> bundleInfoViewMono = bundleApiService.create(new BundleEndpoints.CreateBundleRequest(
126129
"org01",
130+
"",
127131
"name4",
128132
"title",
129133
"description",
@@ -133,6 +137,7 @@ public void moveAddAppTestAdmin() {
133137

134138
Mono<BundleInfoView> bundleInfoViewMono2 = bundleApiService.create(new BundleEndpoints.CreateBundleRequest(
135139
"org01",
140+
"",
136141
"name5",
137142
"title",
138143
"description",
@@ -167,6 +172,7 @@ public void moveAddAppTestNonDev() {
167172
//Create bundles
168173
Mono<BundleInfoView> bundleInfoViewMono = bundleApiService.create(new BundleEndpoints.CreateBundleRequest(
169174
"org01",
175+
"",
170176
"name4",
171177
"title",
172178
"description",
@@ -176,6 +182,7 @@ public void moveAddAppTestNonDev() {
176182

177183
Mono<BundleInfoView> bundleInfoViewMono2 = bundleApiService.create(new BundleEndpoints.CreateBundleRequest(
178184
"org01",
185+
"",
179186
"name5",
180187
"title",
181188
"description",
@@ -203,7 +210,7 @@ public void moveAddAppTestNonDev() {
203210

204211
private Mono<BundleInfoView> createBundle(String name, String folderId) {
205212
BundleEndpoints.CreateBundleRequest createBundleRequest =
206-
new BundleEndpoints.CreateBundleRequest("org01", name, "title", "desc", "category", "image", folderId);
213+
new BundleEndpoints.CreateBundleRequest("org01", "" ,name, "title", "desc", "category", "image", folderId);
207214
return bundleApiService.create(createBundleRequest);
208215
}
209216

0 commit comments

Comments
 (0)