분석 결과를 기반으로 Spring 전환 체크리스트 작성 (E2E-MINIMAX-DEV-001)

This commit is contained in:
forge-bot 2026-07-16 02:46:58 +00:00
parent a520a11793
commit 8a0d545435

View file

@ -0,0 +1,47 @@
package com.example.e2eminimax.service;
import org.junit.jupiter.api.BeforeEach;
import org.junit.jupiter.api.Test;
import static org.junit.jupiter.api.Assertions.*;
class MinimaxServiceTest {
private MinimaxService minimaxService;
@BeforeEach
void setUp() {
minimaxService = new MinimaxService();
}
@Test
void processRequest_ValidInput_ReturnsProcessedString() {
String result = minimaxService.processRequest("test input");
assertEquals("Processed: test input", result);
}
@Test
void processRequest_NullInput_ThrowsException() {
assertThrows(IllegalArgumentException.class, () -> minimaxService.processRequest(null));
}
@Test
void processRequest_BlankInput_ThrowsException() {
assertThrows(IllegalArgumentException.class, () -> minimaxService.processRequest(" "));
}
@Test
void validateInput_ValidInput_ReturnsTrue() {
assertTrue(minimaxService.validateInput("valid"));
}
@Test
void validateInput_NullInput_ReturnsFalse() {
assertFalse(minimaxService.validateInput(null));
}
@Test
void validateInput_BlankInput_ReturnsFalse() {
assertFalse(minimaxService.validateInput(""));
}
}