- Sort Score
- Num 10 results
- Language All
Results 1 - 3 of 3 for test_close_idempotent (0.09 seconds)
-
src/test/java/org/codelibs/fess/script/groovy/GroovyEngineTest.java
engine.close(); } // ===== Close Lifecycle Tests ===== /** * Test that close() can be called multiple times without error */ @Test public void test_close_idempotent() { final GroovyEngine engine = new GroovyEngine(); engine.evaluate("return 1", new HashMap<>()); engine.close(); engine.close(); // second close should not throw }
Created: Tue Mar 31 13:07:34 GMT 2026 - Last Modified: Sun Mar 15 06:03:38 GMT 2026 - 29.1K bytes - Click Count (0) -
src/test/java/jcifs/smb/NetServerEnumIteratorTest.java
assertEquals("remove", exception.getMessage()); } @Test @DisplayName("Close should be idempotent") void testClose_Idempotent() throws Exception { // Given: A valid iterator setup when(locator.getType()).thenReturn(SmbConstants.TYPE_WORKGROUP); when(locator.getURL()).thenReturn(createSmbURL("smb://"));
Created: Sun Apr 05 00:10:12 GMT 2026 - Last Modified: Thu Aug 14 05:31:44 GMT 2025 - 9.8K bytes - Click Count (0) -
src/test/java/jcifs/smb/NtlmPasswordAuthenticatorTest.java
} /** * Test multiple close() calls (idempotency) */ @Test @DisplayName("Test close() method is idempotent") public void testCloseIdempotent() { NtlmPasswordAuthenticator auth = new NtlmPasswordAuthenticator("user", "IdempotentPass123!"); assertFalse(auth.isClosed()); // Close multiple times auth.close();Created: Sun Apr 05 00:10:12 GMT 2026 - Last Modified: Sat Aug 30 05:58:03 GMT 2025 - 23.3K bytes - Click Count (0)