test: Add OpenRouterConfig mock to OpenRouterServiceTest

This commit is contained in:
2025-02-15 18:50:21 +03:00
committed by Sanders
parent fc283bb295
commit bd050c9658
@@ -9,6 +9,7 @@ import org.springframework.http.HttpStatus;
import org.springframework.http.ResponseEntity;
import org.springframework.web.client.RestClientException;
import org.springframework.web.client.RestTemplate;
import ru.cathub.telegabot.configuration.OpenRouterConfig;
import ru.cathub.telegabot.exception.OpenRouterException;
import ru.cathub.telegabot.service.impl.OpenRouterServiceImpl;
@@ -28,6 +29,9 @@ class OpenRouterServiceTest {
@InjectMocks
private OpenRouterServiceImpl openRouterService;
@InjectMocks
private OpenRouterConfig openRouterConfig;
@Test
void shouldReturnValidResponse() throws OpenRouterException {
// Mock response