File tree 1 file changed +3
-1
lines changed
server/api-service/lowcoder-server/src/test/java/org/lowcoder/api/service
1 file changed +3
-1
lines changed Original file line number Diff line number Diff line change 8
8
import org .lowcoder .domain .organization .model .Organization ;
9
9
import org .lowcoder .domain .organization .service .OrganizationService ;
10
10
import org .lowcoder .sdk .models .HasIdAndAuditing ;
11
+ import org .springframework .beans .factory .annotation .Autowired ;
11
12
import org .springframework .boot .test .context .SpringBootTest ;
12
13
import org .springframework .test .context .ActiveProfiles ;
13
14
import reactor .core .publisher .Mono ;
21
22
@ TestInstance (TestInstance .Lifecycle .PER_CLASS )
22
23
public class OrganizationServiceTest {
23
24
25
+ @ Autowired
24
26
private OrganizationService organizationService ;
25
27
26
28
private Mono <Organization > createOrganization (String name ) {
27
29
Organization organization = Organization .builder ()
28
30
.name (name )
29
31
.build ();
30
- return organizationService .create (organization , "" , false );
32
+ return organizationService .create (organization , "user01 " , false );
31
33
}
32
34
33
35
@ Test
You can’t perform that action at this time.
0 commit comments