- Sort Score
- Num 10 results
- Language All
Results 1 - 5 of 5 for testThreadSafety (0.07 seconds)
-
src/test/java/jcifs/internal/smb2/lease/DirectoryCacheEntryTest.java
assertFalse(fileInfo.matches(1024L, 2000L, 0x20)); // Should not match with different attributes assertFalse(fileInfo.matches(1024L, 1000L, 0x10)); } @Test public void testThreadSafety() throws InterruptedException { // Test concurrent updates from multiple threads Thread[] threads = new Thread[10]; for (int i = 0; i < threads.length; i++) {
Created: Sun Apr 05 00:10:12 GMT 2026 - Last Modified: Sat Aug 23 01:47:47 GMT 2025 - 8.4K bytes - Click Count (0) -
src/test/java/jcifs/util/SimpleCircuitBreakerTest.java
assertEquals(SimpleCircuitBreaker.State.CLOSED, circuitBreaker.getState()); } @RepeatedTest(10) @DisplayName("Test thread safety") void testThreadSafety() throws InterruptedException { SimpleCircuitBreaker breaker = new SimpleCircuitBreaker("concurrent", 5, 3, 100); AtomicInteger successCount = new AtomicInteger(0);
Created: Sun Apr 05 00:10:12 GMT 2026 - Last Modified: Sat Aug 30 05:58:03 GMT 2025 - 10.6K bytes - Click Count (0) -
src/test/java/jcifs/internal/smb1/com/SmbComTreeDisconnectTest.java
} /** * Test thread safety of read/write operations */ @Test @DisplayName("Test thread safety of operations") public void testThreadSafety() throws InterruptedException { // Given smbComTreeDisconnect = new SmbComTreeDisconnect(config); byte[] buffer = new byte[1000]; int numThreads = 10;Created: Sun Apr 05 00:10:12 GMT 2026 - Last Modified: Thu Aug 14 05:31:44 GMT 2025 - 18.5K bytes - Click Count (0) -
src/test/java/jcifs/internal/smb2/Smb2EchoRequestTest.java
assertEquals(4, written); assertEquals(4, SMBUtil.readInt2(largeBuffer, 5000)); } @Test @DisplayName("Should maintain thread safety") void testThreadSafety() throws InterruptedException { int threadCount = 10; Thread[] threads = new Thread[threadCount]; boolean[] success = new boolean[threadCount];
Created: Sun Apr 05 00:10:12 GMT 2026 - Last Modified: Thu Aug 14 05:31:44 GMT 2025 - 11.3K bytes - Click Count (0) -
src/test/java/jcifs/internal/smb2/RequestWithFileIdTest.java
} } @Test @DisplayName("Should test thread safety of setFileId") void testThreadSafety() throws InterruptedException { // Given RequestWithFileId request = new Smb2CloseRequest(mockConfig, emptyFileId); int threadCount = 10; Thread[] threads = new Thread[threadCount];Created: Sun Apr 05 00:10:12 GMT 2026 - Last Modified: Thu Aug 14 05:31:44 GMT 2025 - 11.9K bytes - Click Count (0)