From 9a6934049c8b37a15e21bccd65359c6613f54e04 Mon Sep 17 00:00:00 2001 From: extio-de Date: Sun, 22 Mar 2026 18:13:25 +0100 Subject: [PATCH] chore: Update version to 2.5.0 in pom.xml and modify test to use isNull matcher --- pom.xml | 2 +- src/test/java/de/extio/lmlib/agent/AgentErrorHandlingTest.java | 3 ++- 2 files changed, 3 insertions(+), 2 deletions(-) diff --git a/pom.xml b/pom.xml index cd08e2a..5f07abb 100755 --- a/pom.xml +++ b/pom.xml @@ -4,7 +4,7 @@ lm-lib de.extio lm-lib - 2.4.2 + 2.5.0 25 diff --git a/src/test/java/de/extio/lmlib/agent/AgentErrorHandlingTest.java b/src/test/java/de/extio/lmlib/agent/AgentErrorHandlingTest.java index 8193ed0..8d77556 100644 --- a/src/test/java/de/extio/lmlib/agent/AgentErrorHandlingTest.java +++ b/src/test/java/de/extio/lmlib/agent/AgentErrorHandlingTest.java @@ -6,6 +6,7 @@ import static org.junit.jupiter.api.Assertions.assertNull; import static org.junit.jupiter.api.Assertions.assertTrue; import static org.mockito.ArgumentMatchers.any; import static org.mockito.ArgumentMatchers.anyBoolean; +import static org.mockito.ArgumentMatchers.isNull; import static org.mockito.Mockito.doAnswer; import static org.mockito.Mockito.mock; import static org.mockito.Mockito.when; @@ -39,7 +40,7 @@ class AgentErrorHandlingTest { @Test void parsingErrorsKeepTheirTypeWithoutAnExceptionWhenTheHandlerReturnsFalse() { final Client client = mock(Client.class); - when(client.conversation(any(ModelCategory.class), any(), any(ToolCallData.class), anyBoolean())).thenReturn(new Completion("not json", null, null, new CompletionStatistics(1, Duration.ofMillis(1), 1, 0, 1, 0, BigDecimal.ZERO, false))); + when(client.conversation(any(ModelCategory.class), any(), isNull(), anyBoolean())).thenReturn(new Completion("not json", null, null, new CompletionStatistics(1, Duration.ofMillis(1), 1, 0, 1, 0, BigDecimal.ZERO, false))); final AgentResponseHandler responseHandler = (completion, context) -> false; final var agent = new Agent("ParseAgent",