Skip to content

Commit

Permalink
Tests cleanup
Browse files Browse the repository at this point in the history
  • Loading branch information
stephanj committed May 21, 2024
1 parent c6675ff commit dd8c906
Show file tree
Hide file tree
Showing 3 changed files with 3 additions and 12 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -13,7 +13,7 @@
import static org.mockito.Mockito.mock;
import static org.mockito.Mockito.when;

public class JanChatModelFactoryTest extends AbstractLightPlatformTestCase {
public class OpenAiChatModelFactoryTest extends AbstractLightPlatformTestCase {

@BeforeEach
public void setUp() throws Exception {
Expand Down
4 changes: 2 additions & 2 deletions src/test/java/com/devoxx/genie/model/GeminiClientTest.java
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,7 @@
import com.devoxx.genie.ui.SettingsState;
import com.intellij.openapi.application.ApplicationManager;
import com.intellij.testFramework.ServiceContainerUtil;
import org.junit.jupiter.api.Test;
import org.junit.Ignore;
import org.junit.jupiter.api.BeforeEach;

import java.time.Duration;
Expand All @@ -30,7 +30,7 @@ public void setUp() throws Exception {
ServiceContainerUtil.replaceService(ApplicationManager.getApplication(), SettingsState.class, settingsStateMock, getTestRootDisposable());
}

@Test
@Ignore
public void testGeminiRequest() {
String baseUrl = "https://generativelanguage.googleapis.com";
String apiKey = "dummy-key";
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -29,13 +29,4 @@ void testFromString_invalidDouble_throwsNumberFormatException() {
String value = "invalid";
assertThrows(NumberFormatException.class, () -> converter.fromString(value));
}

@Test
void testToString_validDouble_returnsFormattedString() {
Double value = 3.14;
String expected = "3.14";
String result = converter.toString(value);
assertEquals(expected, result);
}

}

0 comments on commit dd8c906

Please sign in to comment.