Skip to content

Commit b462385

Browse files
dragonpooludomikula
authored andcommitted
Fix service autowire in test
1 parent 86fa678 commit b462385

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
import org.lowcoder.domain.organization.model.Organization;
99
import org.lowcoder.domain.organization.service.OrganizationService;
1010
import org.lowcoder.sdk.models.HasIdAndAuditing;
11+
import org.springframework.beans.factory.annotation.Autowired;
1112
import org.springframework.boot.test.context.SpringBootTest;
1213
import org.springframework.test.context.ActiveProfiles;
1314
import reactor.core.publisher.Mono;
@@ -21,13 +22,14 @@
2122
@TestInstance(TestInstance.Lifecycle.PER_CLASS)
2223
public class OrganizationServiceTest {
2324

25+
@Autowired
2426
private OrganizationService organizationService;
2527

2628
private Mono<Organization> createOrganization(String name) {
2729
Organization organization = Organization.builder()
2830
.name(name)
2931
.build();
30-
return organizationService.create(organization, "", false);
32+
return organizationService.create(organization, "user01", false);
3133
}
3234

3335
@Test

0 commit comments

Comments
 (0)
pFad - Phonifier reborn

Pfad - The Proxy pFad of © 2024 Garber Painting. All rights reserved.

Note: This service is not intended for secure transactions such as banking, social media, email, or purchasing. Use at your own risk. We assume no liability whatsoever for broken pages.


Alternative Proxies:

Alternative Proxy

pFad Proxy

pFad v3 Proxy

pFad v4 Proxy