Developer 역할 Spring 골격 smoke #4

Showing only changes of commit f71aa3df5c - Show all commits

View file

@ -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"));
}
}