- Sort Score
- Result 10 results
- Languages All
Results 61 - 70 of 461 for Timers (0.33 sec)
-
src/test/java/jcifs/smb/SmbTransportInternalTest.java
assertTrue(transport.isSMB2()); assertFalse(transport.isSMB2()); verify(transport, times(2)).isSMB2(); doThrow(new SmbException("query failed")).when(transport).isSMB2(); assertThrows(SmbException.class, () -> transport.isSMB2()); verify(transport, times(3)).isSMB2(); } // Inflight requests count including edge values @ParameterizedTest
Registered: Sun Sep 07 00:10:21 UTC 2025 - Last Modified: Thu Aug 14 07:14:38 UTC 2025 - 12.1K bytes - Viewed (0) -
src/test/java/jcifs/smb/SmbTreeHandleImplTest.java
handle.close(); verify(treeConnection, times(1)).release(); // Second release -> usage 0 -> -1 triggers RuntimeCIFSException RuntimeCIFSException ex = assertThrows(RuntimeCIFSException.class, () -> handle.release()); assertTrue(ex.getMessage().contains("below zero")); verify(treeConnection, times(1)).release(); // still only once } @Test
Registered: Sun Sep 07 00:10:21 UTC 2025 - Last Modified: Thu Aug 14 05:31:44 UTC 2025 - 14.4K bytes - Viewed (0) -
src/test/java/jcifs/dcerpc/msrpc/SamrPolicyHandleTest.java
assertNotNull(handle); // Verify that sendrecv was called with MsrpcSamrConnect4 and then MsrpcSamrConnect2 verify(mockHandle, times(1)).sendrecv(any(MsrpcSamrConnect4.class)); verify(mockHandle, times(1)).sendrecv(any(MsrpcSamrConnect2.class)); } } @Test void testConstructor_OtherDcerpcException() throws DcerpcException, IOException {
Registered: Sun Sep 07 00:10:21 UTC 2025 - Last Modified: Thu Aug 14 05:31:44 UTC 2025 - 7.4K bytes - Viewed (0) -
cmd/tier.go
const tierCfgRefreshAtHdr = "X-MinIO-TierCfg-RefreshedAt" // TierConfigMgr holds the collection of remote tiers configured in this deployment. type TierConfigMgr struct { sync.RWMutex `msg:"-"` drivercache map[string]WarmBackend `msg:"-"` Tiers map[string]madmin.TierConfig `json:"tiers"` lastRefreshedAt time.Time `msg:"-"` } type tierMetrics struct {
Registered: Sun Sep 07 19:28:11 UTC 2025 - Last Modified: Fri Aug 29 02:39:48 UTC 2025 - 15.6K bytes - Viewed (0) -
src/test/java/jcifs/smb/SmbRandomAccessFileTest.java
raf.writeFloat(1.0f); raf.writeDouble(1.0); // Verify length counts - using times() to check exact counts verify(raf, times(2)).write(any(byte[].class), anyInt(), eq(2)); // short and char verify(raf, times(2)).write(any(byte[].class), anyInt(), eq(4)); // int and float verify(raf, times(2)).write(any(byte[].class), anyInt(), eq(8)); // long and double } @Test
Registered: Sun Sep 07 00:10:21 UTC 2025 - Last Modified: Thu Aug 14 05:31:44 UTC 2025 - 18.1K bytes - Viewed (0) -
src/test/java/jcifs/SmbSessionTest.java
assertDoesNotThrow(mockSession::close); verify(mockSession, times(1)).getConfig(); verify(mockSession, times(1)).getContext(); verify(mockSession, times(1)).unwrap(SmbSession.class); verify(mockSession, times(1)).close(); } @Test @DisplayName("Should support partial mocking scenarios")
Registered: Sun Sep 07 00:10:21 UTC 2025 - Last Modified: Thu Aug 14 05:31:44 UTC 2025 - 15.1K bytes - Viewed (0) -
src/test/java/jcifs/SmbWatchHandleTest.java
import static org.junit.jupiter.api.Assertions.assertThrows; import static org.junit.jupiter.api.Assertions.assertTrue; import static org.mockito.Mockito.doThrow; import static org.mockito.Mockito.mock; import static org.mockito.Mockito.times; import static org.mockito.Mockito.verify; import static org.mockito.Mockito.when; import java.util.ArrayList; import java.util.Arrays; import java.util.Collections; import java.util.List;
Registered: Sun Sep 07 00:10:21 UTC 2025 - Last Modified: Thu Aug 14 05:31:44 UTC 2025 - 13.2K bytes - Viewed (0) -
src/test/java/jcifs/SmbTreeTest.java
Registered: Sun Sep 07 00:10:21 UTC 2025 - Last Modified: Thu Aug 14 05:31:44 UTC 2025 - 9.2K bytes - Viewed (0) -
src/test/java/org/codelibs/fess/tomcat/valve/SuppressErrorReportValveTest.java
// Test toggling ShowReport multiple times assertFalse(valve.isShowReport()); valve.setShowReport(true); assertTrue(valve.isShowReport()); valve.setShowReport(false); assertFalse(valve.isShowReport()); valve.setShowReport(true); assertTrue(valve.isShowReport()); // Test toggling ShowServerInfo multiple times assertFalse(valve.isShowServerInfo());
Registered: Thu Sep 04 12:52:25 UTC 2025 - Last Modified: Tue Aug 19 14:09:36 UTC 2025 - 4.4K bytes - Viewed (0) -
okhttp-sse/src/test/java/okhttp3/sse/internal/ServerSentEventIteratorTest.kt
id: String?, type: String?, data: String, ) { callbacks.add(Event(id, type, data)) } override fun onRetryChange(timeMs: Long) { callbacks.add(timeMs) } } val buffer = Buffer().writeUtf8(source) val reader = ServerSentEventReader(buffer, callback) while (reader.processNextEvent()) { }
Registered: Fri Sep 05 11:42:10 UTC 2025 - Last Modified: Mon Jan 08 01:13:22 UTC 2024 - 6.4K bytes - Viewed (0)