Developer 역할 Spring 골격 smoke (runtime-role-matrix-live-20260714101723-v7-developer-001)
All checks were successful
ci / test (pull_request) Successful in 1m51s

This commit is contained in:
forge-bot 2026-07-14 10:18:49 +00:00
parent 3ef86bf9bf
commit bd8b77feac

View file

@ -0,0 +1,32 @@
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.assertTrue;
@SpringBootTest
class DeveloperServiceTest {
@Autowired
private DeveloperService developerService;
@Test
void getRole_returnsDeveloper() {
String role = developerService.getRole();
assertTrue("Developer".equals(role), "Role should be Developer");
}
@Test
void isValidRole_withDeveloper_returnsTrue() {
boolean valid = developerService.isValidRole("Developer");
assertTrue(valid, "Developer role should be valid");
}
@Test
void isValidRole_withOtherRole_returnsFalse() {
boolean valid = developerService.isValidRole("Admin");
assertTrue(!valid, "Admin role should not be valid for DeveloperService");
}
}