Developer 역할 Spring 골격 smoke (runtime-role-matrix-live-20260714103305-v8-developer-001)
All checks were successful
ci / test (pull_request) Successful in 1m55s
All checks were successful
ci / test (pull_request) Successful in 1m55s
This commit is contained in:
parent
1b71c21a67
commit
f71aa3df5c
1 changed files with 25 additions and 0 deletions
|
|
@ -0,0 +1,25 @@
|
|||
package com.example.developer;
|
||||
|
||||
import org.junit.jupiter.api.Test;
|
||||
import org.springframework.beans.factory.annotation.Autowired;
|
||||
import org.springframework.boot.test.context.SpringBootTest;
|
||||
|
||||
import static org.junit.jupiter.api.Assertions.assertEquals;
|
||||
import static org.junit.jupiter.api.Assertions.assertTrue;
|
||||
|
||||
@SpringBootTest
|
||||
class DeveloperServiceTest {
|
||||
|
||||
@Autowired
|
||||
private DeveloperService developerService;
|
||||
|
||||
@Test
|
||||
void getRole_returnsDeveloper() {
|
||||
assertEquals("Developer", developerService.getRole());
|
||||
}
|
||||
|
||||
@Test
|
||||
void isValidRole_withDeveloper_returnsTrue() {
|
||||
assertTrue(developerService.isValidRole("Developer"));
|
||||
}
|
||||
}
|
||||
Loading…
Add table
Add a link
Reference in a new issue