diff --git a/.forge/BAIS-RECOVERY-MIG-001-attempt-1.md b/.forge/BAIS-RECOVERY-MIG-001-attempt-1.md deleted file mode 100644 index 786b847..0000000 --- a/.forge/BAIS-RECOVERY-MIG-001-attempt-1.md +++ /dev/null @@ -1,3 +0,0 @@ -# BAIS-RECOVERY-MIG-001-attempt-1 - -Forge 이슈 작업 브랜치 `forge/BAIS-RECOVERY-MIG-001-attempt-1`. diff --git a/pom.xml b/pom.xml deleted file mode 100644 index 3c4eaa1..0000000 --- a/pom.xml +++ /dev/null @@ -1,48 +0,0 @@ - - - 4.0.0 - - com.example - bais-authorization-service - 1.0-SNAPSHOT - jar - - - org.springframework.boot - spring-boot-starter-parent - 3.1.0 - - - - - 17 - - - - - org.springframework.boot - spring-boot-starter - - - org.springframework.boot - spring-boot-starter-test - test - - - - - - - org.springframework.boot - spring-boot-maven-plugin - - - org.apache.maven.plugins - maven-surefire-plugin - 3.0.0-M5 - - - - \ No newline at end of file diff --git a/src/main/java/com/example/authorization/AuthorizationService.java b/src/main/java/com/example/authorization/AuthorizationService.java deleted file mode 100644 index 17ea076..0000000 --- a/src/main/java/com/example/authorization/AuthorizationService.java +++ /dev/null @@ -1,11 +0,0 @@ -package com.example.authorization; - -import org.springframework.stereotype.Service; - -@Service -public class AuthorizationService { - public boolean hasAccess(String userRole, String resource) { - // Simple access control logic - return "ADMIN".equals(userRole); - } -} \ No newline at end of file diff --git a/src/test/java/com/example/authorization/AuthorizationServiceTest.java b/src/test/java/com/example/authorization/AuthorizationServiceTest.java deleted file mode 100644 index e2bdde2..0000000 --- a/src/test/java/com/example/authorization/AuthorizationServiceTest.java +++ /dev/null @@ -1,14 +0,0 @@ -package com.example.authorization; - -import org.junit.jupiter.api.Test; -import static org.junit.jupiter.api.Assertions.*; - -class AuthorizationServiceTest { - - @Test - void testHasAccess() { - AuthorizationService service = new AuthorizationService(); - assertTrue(service.hasAccess("ADMIN", "someResource")); - assertFalse(service.hasAccess("USER", "someResource")); - } -} \ No newline at end of file