BAIS 권한 서비스를 Spring Java로 전환 #3
1 changed files with 13 additions and 0 deletions
13
src/test/java/com/example/AuthorizationServiceTest.java
Normal file
13
src/test/java/com/example/AuthorizationServiceTest.java
Normal file
|
|
@ -0,0 +1,13 @@
|
|||
package com.example;
|
||||
|
||||
import org.junit.jupiter.api.Test;
|
||||
import static org.junit.jupiter.api.Assertions.assertTrue;
|
||||
|
||||
class AuthorizationServiceTest {
|
||||
|
||||
@Test
|
||||
void testHasAccess() {
|
||||
AuthorizationService service = new AuthorizationService();
|
||||
assertTrue(service.hasAccess("user1", "resource1"));
|
||||
}
|
||||
}
|
||||
Loading…
Add table
Add a link
Reference in a new issue