From bc1a7a895284d755d633b74482c979e38e69b5de Mon Sep 17 00:00:00 2001 From: Oracle Date: Wed, 29 Apr 2026 17:08:10 +0200 Subject: [PATCH] Fix test error --- .idea/inspectionProfiles/Project_Default.xml | 27 +++++++++++++++++++ .../ai/nomyo/SecureChatCompletionTest.java | 27 ------------------- 2 files changed, 27 insertions(+), 27 deletions(-) create mode 100644 .idea/inspectionProfiles/Project_Default.xml 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")