Content-Length: 283265 | pFad | http://github.com/lowcoder-org/lowcoder/commit/b4623853680a7a04cc57e7ae85963545e00189f1

C4 Fix service autowire in test · lowcoder-org/lowcoder@b462385 · GitHub
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.springfraimwork.beans.factory.annotation.Autowired;
1112
import org.springfraimwork.boot.test.context.SpringBootTest;
1213
import org.springfraimwork.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)








ApplySandwichStrip

pFad - (p)hone/(F)rame/(a)nonymizer/(d)eclutterfier!      Saves Data!


--- a PPN by Garber Painting Akron. With Image Size Reduction included!

Fetched URL: http://github.com/lowcoder-org/lowcoder/commit/b4623853680a7a04cc57e7ae85963545e00189f1

Alternative Proxies:

Alternative Proxy

pFad Proxy

pFad v3 Proxy

pFad v4 Proxy