Skip to content

Commit db6f7e3

Browse files
committed
Fix service autowire in test
1 parent 70eb016 commit db6f7e3

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)