- Sort Score
- Num 10 results
- Language All
Results 1641 - 1650 of 1,693 for assertEquals (0.11 seconds)
-
guava-tests/test/com/google/common/util/concurrent/RateLimiterTest.java
RateLimiter rateLimiter = RateLimiter.create(qps, warmupMillis, MILLISECONDS, coldFactor, stopwatch); assertEquals(warmupMillis, measureTotalTimeMillis(rateLimiter, warmupPermits, random)); } } } } public void testNulls() { NullPointerTester tester = new NullPointerTester()Created: Fri Apr 03 12:43:13 GMT 2026 - Last Modified: Thu Mar 12 17:47:10 GMT 2026 - 22K bytes - Click Count (0) -
src/test/java/jcifs/internal/smb2/nego/PreauthIntegrityNegotiateContextTest.java
int bytesWritten = context.encode(buffer, 0); assertEquals(12, bytesWritten); assertEquals(3, SMBUtil.readInt2(buffer, 0)); assertEquals(2, SMBUtil.readInt2(buffer, 2)); assertEquals(0x01, SMBUtil.readInt2(buffer, 4)); assertEquals(0x02, SMBUtil.readInt2(buffer, 6)); assertEquals(0x03, SMBUtil.readInt2(buffer, 8));Created: Sun Apr 05 00:10:12 GMT 2026 - Last Modified: Thu Aug 14 05:31:44 GMT 2025 - 34K bytes - Click Count (0) -
src/test/java/jcifs/dcerpc/DcerpcErrorTest.java
assertEquals(0x00000001, DcerpcError.DCERPC_FAULT_OTHER); } @Test @DisplayName("Should verify DCERPC_FAULT_ACCESS_DENIED constant value") void testDcerpcFaultAccessDenied() { assertEquals(0x00000005, DcerpcError.DCERPC_FAULT_ACCESS_DENIED); } @Test @DisplayName("Should verify DCERPC_FAULT_CANT_PERFORM constant value") void testDcerpcFaultCantPerform() {Created: Sun Apr 05 00:10:12 GMT 2026 - Last Modified: Thu Aug 14 05:31:44 GMT 2025 - 7K bytes - Click Count (0) -
src/test/java/jcifs/internal/SmbBasicFileInfoTest.java
// Act & Assert Assertions.assertEquals(attributes, info.getAttributes()); Assertions.assertEquals(createTime, info.getCreateTime()); Assertions.assertEquals(lastWrite, info.getLastWriteTime()); Assertions.assertEquals(lastAccess, info.getLastAccessTime()); Assertions.assertEquals(size, info.getSize()); } // Supplies a range of normal and edge case values.Created: Sun Apr 05 00:10:12 GMT 2026 - Last Modified: Thu Aug 14 05:31:44 GMT 2025 - 5.8K bytes - Click Count (0) -
android/guava/src/com/google/common/base/Throwables.java
/** * Returns the innermost cause of {@code throwable}. The first throwable in a chain provides * context from when the error or exception was initially detected. Example usage: * * <pre> * assertEquals("Unable to assign a customer id", Throwables.getRootCause(e).getMessage()); * </pre> * * @throws IllegalArgumentException if there is a loop in the causal chain */Created: Fri Apr 03 12:43:13 GMT 2026 - Last Modified: Thu Aug 07 16:05:33 GMT 2025 - 20.6K bytes - Click Count (0) -
src/test/java/jcifs/internal/smb2/lock/Smb2OplockBreakNotificationTest.java
int result = notification.writeBytesWireFormat(buffer, 0); assertEquals(0, result); // Test with different offsets result = notification.writeBytesWireFormat(buffer, 10); assertEquals(0, result); result = notification.writeBytesWireFormat(buffer, 50); assertEquals(0, result); } @Test
Created: Sun Apr 05 00:10:12 GMT 2026 - Last Modified: Thu Aug 14 05:31:44 GMT 2025 - 17.6K bytes - Click Count (0) -
guava/src/com/google/common/base/Throwables.java
/** * Returns the innermost cause of {@code throwable}. The first throwable in a chain provides * context from when the error or exception was initially detected. Example usage: * * <pre> * assertEquals("Unable to assign a customer id", Throwables.getRootCause(e).getMessage()); * </pre> * * @throws IllegalArgumentException if there is a loop in the causal chain */Created: Fri Apr 03 12:43:13 GMT 2026 - Last Modified: Thu Aug 07 16:05:33 GMT 2025 - 20.6K bytes - Click Count (0) -
docs/smb3-features/05-rdma-smb-direct-design.md
RdmaMemoryRegion region = provider.registerMemory(buffer, EnumSet.of(RdmaAccess.LOCAL_READ, RdmaAccess.REMOTE_READ)); assertNotNull(region); assertEquals(4096, region.getSize()); assertTrue(region.hasAccess(RdmaAccess.LOCAL_READ)); region.close(); } @Test public void testRdmaBufferManager() throws Exception {
Created: Sun Apr 05 00:10:12 GMT 2026 - Last Modified: Sat Aug 16 02:53:50 GMT 2025 - 35.9K bytes - Click Count (0) -
src/test/java/jcifs/smb/SmbFileIntegrationTest.java
int bytesRead = in.read(buffer); assertEquals(10, bytesRead, "Should read requested bytes"); assertEquals("0123456789", new String(buffer, 0, bytesRead, "UTF-8")); // Read next chunk bytesRead = in.read(buffer); assertEquals(10, bytesRead, "Should read next chunk"); assertEquals("ABCDEFGHIJ", new String(buffer, 0, bytesRead, "UTF-8")); }
Created: Sun Apr 05 00:10:12 GMT 2026 - Last Modified: Sat Aug 30 05:58:03 GMT 2025 - 56K bytes - Click Count (0) -
src/test/java/jcifs/smb/CriticalPerformanceTest.java
assertTrue(avgReleaseTimeNs < 10000, "Average release should be under 10000ns (O(1) performance)"); assertEquals(threadCount * operationsPerThread, allocations.get()); assertEquals(threadCount * operationsPerThread, releases.get()); // Verify cache statistics String stats = BufferCache.getCacheStatistics();
Created: Sun Apr 05 00:10:12 GMT 2026 - Last Modified: Sun Aug 31 08:00:57 GMT 2025 - 15.3K bytes - Click Count (0)