This is an automated email from the ASF dual-hosted git repository.

chrisdutz pushed a commit to branch develop
in repository https://gitbox.apache.org/repos/asf/plc4x.git

commit 2ad31bafb957e8ef039e6c7d2cc76c1f631aa161
Author: Christofer Dutz <[email protected]>
AuthorDate: Sun Aug 16 12:27:58 2026 +0200

    test(plc4j/connection-cache): Added tests for special cases in the 
Connection Cache.
    
    Little code cleanup...
    
    Refs: 2418
---
 .../org/apache/plc4x/java/utils/cache/EvictNeverConnectedTest.java     | 3 ++-
 1 file changed, 2 insertions(+), 1 deletion(-)

diff --git 
a/plc4j/tools/connection-cache/src/test/java/org/apache/plc4x/java/utils/cache/EvictNeverConnectedTest.java
 
b/plc4j/tools/connection-cache/src/test/java/org/apache/plc4x/java/utils/cache/EvictNeverConnectedTest.java
index 61cc615c2a..61606a6762 100644
--- 
a/plc4j/tools/connection-cache/src/test/java/org/apache/plc4x/java/utils/cache/EvictNeverConnectedTest.java
+++ 
b/plc4j/tools/connection-cache/src/test/java/org/apache/plc4x/java/utils/cache/EvictNeverConnectedTest.java
@@ -34,6 +34,7 @@ import static 
org.junit.jupiter.api.Assertions.assertDoesNotThrow;
 import static org.junit.jupiter.api.Assertions.assertEquals;
 import static org.junit.jupiter.api.Assertions.assertThrows;
 import static org.mockito.ArgumentMatchers.anyString;
+import static org.mockito.Mockito.mock;
 import static org.mockito.Mockito.when;
 
 /**
@@ -93,7 +94,7 @@ class EvictNeverConnectedTest {
      */
     @Test
     void evictsAfterTheConnectionWasAlreadyDropped() throws Exception {
-        PlcConnection connection = 
org.mockito.Mockito.mock(PlcConnection.class);
+        PlcConnection connection = mock(PlcConnection.class);
         when(connection.isConnected()).thenReturn(true);
         
when(mockConnectionManager.getConnection(anyString())).thenReturn(connection);
 

Reply via email to