Compare commits
No commits in common. "7f40a728f57e8874b5b4687442e598d6ccbf9d80" and "727124f2e96a970990be89e74e88a3e71c21371e" have entirely different histories.
7f40a728f5
...
727124f2e9
5 changed files with 0 additions and 122 deletions
|
|
@ -1,3 +0,0 @@
|
||||||
# runtime-role-matrix-live-20260714111146-v10-developer-001-attempt-1-run-9365f49b01fc
|
|
||||||
|
|
||||||
Forge 이슈 작업 브랜치 `forge/runtime-role-matrix-live-20260714111146-v10-developer-001-attempt-1-run-9365f49b01fc`.
|
|
||||||
45
pom.xml
45
pom.xml
|
|
@ -1,45 +0,0 @@
|
||||||
<?xml version="1.0" encoding="UTF-8"?>
|
|
||||||
<project xmlns="http://maven.apache.org/POM/4.0.0"
|
|
||||||
xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
|
|
||||||
xsi:schemaLocation="http://maven.apache.org/POM/4.0.0 http://maven.apache.org/xsd/maven-4.0.0.xsd">
|
|
||||||
<modelVersion>4.0.0</modelVersion>
|
|
||||||
|
|
||||||
<parent>
|
|
||||||
<groupId>org.springframework.boot</groupId>
|
|
||||||
<artifactId>spring-boot-starter-parent</artifactId>
|
|
||||||
<version>3.2.5</version>
|
|
||||||
<relativePath/>
|
|
||||||
</parent>
|
|
||||||
|
|
||||||
<groupId>com.developer</groupId>
|
|
||||||
<artifactId>developer-role-smoke</artifactId>
|
|
||||||
<version>1.0.0</version>
|
|
||||||
<packaging>jar</packaging>
|
|
||||||
<name>Developer Role Smoke Test</name>
|
|
||||||
<description>Spring Boot smoke application for Developer role</description>
|
|
||||||
|
|
||||||
<properties>
|
|
||||||
<java.version>17</java.version>
|
|
||||||
</properties>
|
|
||||||
|
|
||||||
<dependencies>
|
|
||||||
<dependency>
|
|
||||||
<groupId>org.springframework.boot</groupId>
|
|
||||||
<artifactId>spring-boot-starter</artifactId>
|
|
||||||
</dependency>
|
|
||||||
<dependency>
|
|
||||||
<groupId>org.springframework.boot</groupId>
|
|
||||||
<artifactId>spring-boot-starter-test</artifactId>
|
|
||||||
<scope>test</scope>
|
|
||||||
</dependency>
|
|
||||||
</dependencies>
|
|
||||||
|
|
||||||
<build>
|
|
||||||
<plugins>
|
|
||||||
<plugin>
|
|
||||||
<groupId>org.springframework.boot</groupId>
|
|
||||||
<artifactId>spring-boot-maven-plugin</artifactId>
|
|
||||||
</plugin>
|
|
||||||
</plugins>
|
|
||||||
</build>
|
|
||||||
</project>
|
|
||||||
|
|
@ -1,12 +0,0 @@
|
||||||
package com.developer;
|
|
||||||
|
|
||||||
import org.springframework.boot.SpringApplication;
|
|
||||||
import org.springframework.boot.autoconfigure.SpringBootApplication;
|
|
||||||
|
|
||||||
@SpringBootApplication
|
|
||||||
public class DeveloperApplication {
|
|
||||||
|
|
||||||
public static void main(String[] args) {
|
|
||||||
SpringApplication.run(DeveloperApplication.class, args);
|
|
||||||
}
|
|
||||||
}
|
|
||||||
|
|
@ -1,19 +0,0 @@
|
||||||
package com.developer.service;
|
|
||||||
|
|
||||||
import org.springframework.stereotype.Service;
|
|
||||||
|
|
||||||
@Service
|
|
||||||
public class DeveloperService {
|
|
||||||
|
|
||||||
public String getRole() {
|
|
||||||
return "Developer";
|
|
||||||
}
|
|
||||||
|
|
||||||
public String getRoleDescription() {
|
|
||||||
return "Software Developer responsible for implementation";
|
|
||||||
}
|
|
||||||
|
|
||||||
public boolean isValidRole(String role) {
|
|
||||||
return "Developer".equals(role);
|
|
||||||
}
|
|
||||||
}
|
|
||||||
|
|
@ -1,43 +0,0 @@
|
||||||
package com.developer.service;
|
|
||||||
|
|
||||||
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.assertFalse;
|
|
||||||
import static org.junit.jupiter.api.Assertions.assertNotNull;
|
|
||||||
import static org.junit.jupiter.api.Assertions.assertTrue;
|
|
||||||
|
|
||||||
@SpringBootTest
|
|
||||||
class DeveloperServiceTest {
|
|
||||||
|
|
||||||
@Autowired
|
|
||||||
private DeveloperService developerService;
|
|
||||||
|
|
||||||
@Test
|
|
||||||
void contextLoads() {
|
|
||||||
assertNotNull(developerService);
|
|
||||||
}
|
|
||||||
|
|
||||||
@Test
|
|
||||||
void getRole_ReturnsDeveloper() {
|
|
||||||
String role = developerService.getRole();
|
|
||||||
assertNotNull(role);
|
|
||||||
assertTrue(role.contains("Developer"));
|
|
||||||
}
|
|
||||||
|
|
||||||
@Test
|
|
||||||
void getRoleDescription_ReturnsDescription() {
|
|
||||||
String description = developerService.getRoleDescription();
|
|
||||||
assertNotNull(description);
|
|
||||||
assertTrue(description.length() > 0);
|
|
||||||
}
|
|
||||||
|
|
||||||
@Test
|
|
||||||
void isValidRole_ValidatesCorrectly() {
|
|
||||||
assertTrue(developerService.isValidRole("Developer"));
|
|
||||||
assertFalse(developerService.isValidRole("Admin"));
|
|
||||||
assertFalse(developerService.isValidRole(""));
|
|
||||||
assertFalse(developerService.isValidRole(null));
|
|
||||||
}
|
|
||||||
}
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue