forked from Sanders/TelegaBot
test: Add OpenRouterConfig mock to OpenRouterServiceTest
This commit is contained in:
@@ -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
|
||||
|
||||
Reference in New Issue
Block a user