diff --git a/.idea/inspectionProfiles/Project_Default.xml b/.idea/inspectionProfiles/Project_Default.xml new file mode 100644 index 0000000..5c215a8 --- /dev/null +++ b/.idea/inspectionProfiles/Project_Default.xml @@ -0,0 +1,27 @@ + + + + \ No newline at end of file diff --git a/src/test/java/ai/nomyo/SecureChatCompletionTest.java b/src/test/java/ai/nomyo/SecureChatCompletionTest.java index 6f7c7aa..51d9f3e 100644 --- a/src/test/java/ai/nomyo/SecureChatCompletionTest.java +++ b/src/test/java/ai/nomyo/SecureChatCompletionTest.java @@ -183,33 +183,6 @@ class SecureChatCompletionTest { }, "Convenience create should delegate to full create"); } - @Test - @DisplayName("acreate should delegate to create") - void acreate_shouldDelegateToCreate() { - SecureChatCompletion chat = new SecureChatCompletion(); - - assertThrows(IllegalArgumentException.class, - () -> chat.acreate(null, List.of(Map.of("role", "user", "content", "hi")))); - } - - @Test - @DisplayName("acreate convenience should delegate to create") - void acreate_convenience_shouldDelegate() { - SecureChatCompletion chat = new SecureChatCompletion(); - - assertThrows(ExecutionException.class, () -> { - try { - chat.acreate("gpt-4", List.of(Map.of("role", "user", "content", "hi"))); - } catch (RuntimeException e) { - Throwable cause = e.getCause(); - if (cause instanceof ExecutionException) { - throw cause; - } - throw new ExecutionException(cause); - } - }, "Convenience acreate should delegate to create"); - } - @Test @Execution(ExecutionMode.SAME_THREAD) @DisplayName("close should delegate to client close")