- Sort Score
- Result 10 results
- Languages All
Results 31 - 40 of 540 for safety (0.19 sec)
-
src/test/java/jcifs/internal/smb1/com/SmbComTreeDisconnectTest.java
assertNotEquals(instance1.toString(), instance2.toString()); // Different object references in toString } /** * Test thread safety of read/write operations */ @Test @DisplayName("Test thread safety of operations") public void testThreadSafety() throws InterruptedException { // Given smbComTreeDisconnect = new SmbComTreeDisconnect(config);
Registered: Sun Sep 07 00:10:21 UTC 2025 - Last Modified: Thu Aug 14 05:31:44 UTC 2025 - 18.5K bytes - Viewed (0) -
src/test/java/jcifs/util/AuthenticationRateLimiterTest.java
rateLimiter.recordFailure(username, ip); } } @Test public void testConcurrentAccess() throws Exception { // Test thread safety with concurrent access // Use a separate rate limiter instance with higher limits for this test
Registered: Sun Sep 07 00:10:21 UTC 2025 - Last Modified: Sat Aug 30 05:58:03 UTC 2025 - 15.8K bytes - Viewed (0) -
src/test/java/jcifs/internal/smb2/session/Smb2LogoffRequestTest.java
void writeBytesWireFormat_writesExpectedValuesAtOffset(int offset) { // Arrange Smb2LogoffRequest req = newRequest(); byte[] buf = new byte[offset + 8]; // extra space for safety // Act int written = req.writeBytesWireFormat(buf, offset); // Assert: should write exactly 4 bytes assertEquals(4, written, "Should report 4 bytes written");
Registered: Sun Sep 07 00:10:21 UTC 2025 - Last Modified: Thu Aug 14 05:31:44 UTC 2025 - 5.4K bytes - Viewed (0) -
src/test/java/jcifs/smb1/smb1/BufferCacheSecurityTest.java
BufferCache.releaseBuffer(correctBuffer); // Should accept correct size }); } /** * Test concurrent buffer allocation and release for thread safety. */ @Test public void testConcurrentBufferOperations() throws Exception { // Given int threadCount = 10; int opsPerThread = 100;
Registered: Sun Sep 07 00:10:21 UTC 2025 - Last Modified: Sun Aug 31 08:00:57 UTC 2025 - 9.6K bytes - Viewed (0) -
cmd/dynamic-timeouts.go
// We are hitting the timeout too often, so increase the timeout by 25% timeout := min( // Set upper cap. atomic.LoadInt64(&dt.timeout)*125/100, int64(maxDynamicTimeout)) // Safety, shouldn't happen if timeout < dt.minimum { timeout = dt.minimum } atomic.StoreInt64(&dt.timeout, timeout) } else if failPct < dynamicTimeoutDecreaseThresholdPct {
Registered: Sun Sep 07 19:28:11 UTC 2025 - Last Modified: Fri Aug 29 02:39:48 UTC 2025 - 4.5K bytes - Viewed (0) -
CODE_OF_CONDUCT.md
## Attribution
Registered: Tue Sep 09 12:39:10 UTC 2025 - Last Modified: Fri Feb 05 18:43:16 UTC 2021 - 5.2K bytes - Viewed (0) -
src/test/java/jcifs/internal/smb1/trans/nt/FileNotifyInformationImplTest.java
Registered: Sun Sep 07 00:10:21 UTC 2025 - Last Modified: Thu Aug 14 05:31:44 UTC 2025 - 13.1K bytes - Viewed (0) -
src/test/java/jcifs/internal/smb2/RequestWithFileIdTest.java
assertTrue(RequestWithFileId.class.isAssignableFrom(impl), impl.getSimpleName() + " should implement RequestWithFileId"); } } @Test @DisplayName("Should test thread safety of setFileId") void testThreadSafety() throws InterruptedException { // Given RequestWithFileId request = new Smb2CloseRequest(mockConfig, emptyFileId); int threadCount = 10;
Registered: Sun Sep 07 00:10:21 UTC 2025 - Last Modified: Thu Aug 14 05:31:44 UTC 2025 - 11.9K bytes - Viewed (0) -
src/test/java/jcifs/internal/smb2/multichannel/ChannelManagerTest.java
} assertDoesNotThrow(() -> channelManager.shutdown()); } @Test void testConcurrentAccess() throws InterruptedException { // Test thread safety Thread[] threads = new Thread[10]; for (int i = 0; i < threads.length; i++) { threads[i] = new Thread(() -> { channelManager.getChannels();
Registered: Sun Sep 07 00:10:21 UTC 2025 - Last Modified: Thu Aug 21 11:13:46 UTC 2025 - 7.6K bytes - Viewed (0) -
src/test/java/org/codelibs/fess/thumbnail/ThumbnailGeneratorTest.java
assertFalse("Should not support " + mimeType, thumbnailGenerator.isTarget(docMap)); } } public void test_concurrentOperations() throws InterruptedException { // Test thread safety with concurrent operations final int threadCount = 10; Thread[] threads = new Thread[threadCount]; final boolean[] results = new boolean[threadCount];
Registered: Thu Sep 04 12:52:25 UTC 2025 - Last Modified: Tue Aug 19 14:09:36 UTC 2025 - 11.4K bytes - Viewed (0)