인증/권한 저위험 파일 Spring 전환 스파이크 (BAIS-SPRING-DEV-AUTH-001)
This commit is contained in:
parent
8a830d1113
commit
4fe6a50b65
1 changed files with 17 additions and 0 deletions
|
|
@ -0,0 +1,17 @@
|
||||||
|
package com.example.authorization;
|
||||||
|
|
||||||
|
import org.junit.jupiter.api.Test;
|
||||||
|
import static org.mockito.Mockito.*;
|
||||||
|
|
||||||
|
class Maz02f116rServiceTest {
|
||||||
|
@Test
|
||||||
|
void testAuthorize() {
|
||||||
|
Maz02f116rService service = new Maz02f116rService();
|
||||||
|
Maz02f116rDto dto = new Maz02f116rDto();
|
||||||
|
dto.setRole("admin");
|
||||||
|
dto.setPermissions("read, write");
|
||||||
|
|
||||||
|
service.authorize(dto);
|
||||||
|
// Add assertions here
|
||||||
|
}
|
||||||
|
}
|
||||||
Loading…
Add table
Add a link
Reference in a new issue