Movatterモバイル変換


[0]ホーム

URL:


Skip to content

Navigation Menu

Sign in
Appearance settings

Search code, repositories, users, issues, pull requests...

Provide feedback

We read every piece of feedback, and take your input very seriously.

Saved searches

Use saved searches to filter your results more quickly

Sign up
Appearance settings

Commitb462385

Browse files
Thomasrludomikula
Thomasr
authored andcommitted
Fix service autowire in test
1 parent86fa678 commitb462385

File tree

1 file changed

+3
-1
lines changed

1 file changed

+3
-1
lines changed

‎server/api-service/lowcoder-server/src/test/java/org/lowcoder/api/service/OrganizationServiceTest.java

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -8,6 +8,7 @@
88
importorg.lowcoder.domain.organization.model.Organization;
99
importorg.lowcoder.domain.organization.service.OrganizationService;
1010
importorg.lowcoder.sdk.models.HasIdAndAuditing;
11+
importorg.springframework.beans.factory.annotation.Autowired;
1112
importorg.springframework.boot.test.context.SpringBootTest;
1213
importorg.springframework.test.context.ActiveProfiles;
1314
importreactor.core.publisher.Mono;
@@ -21,13 +22,14 @@
2122
@TestInstance(TestInstance.Lifecycle.PER_CLASS)
2223
publicclassOrganizationServiceTest {
2324

25+
@Autowired
2426
privateOrganizationServiceorganizationService;
2527

2628
privateMono<Organization>createOrganization(Stringname) {
2729
Organizationorganization =Organization.builder()
2830
.name(name)
2931
.build();
30-
returnorganizationService.create(organization,"",false);
32+
returnorganizationService.create(organization,"user01",false);
3133
}
3234

3335
@Test

0 commit comments

Comments
 (0)

[8]ページ先頭

©2009-2025 Movatter.jp