- Sort Score
- Result 10 results
- Languages All
Results 21 - 30 of 201 for 42 (0.01 sec)
-
guava-tests/test/com/google/common/util/concurrent/SettableFutureTest.java
assertFalse(future.isCancelled()); } public void testSetValue_simpleThreaded() throws Exception { SettableFuture<Integer> future = SettableFuture.create(); assertTrue(future.set(42)); // Later attempts to set the future should return false. assertFalse(future.set(23)); assertFalse(future.setException(new Exception("bar"))); assertFalse(future.setFuture(SettableFuture.<Integer>create()));
Registered: Fri Sep 05 12:43:10 UTC 2025 - Last Modified: Thu Dec 19 18:03:30 UTC 2024 - 7.3K bytes - Viewed (0) -
src/test/java/jcifs/smb1/smb1/Trans2SetFileInformationTest.java
// Total bytes written: 8+8+8+8+2+6=40 // But writeInt8 at position 34 needs to access position 34+7=41 // So we need at least 42 bytes in the array byte[] dst = new byte[42]; // When int result = trans2SetFileInformation.writeDataWireFormat(dst, 0); // Then assertEquals(40, result); // Returns 40 bytes written }
Registered: Sun Sep 07 00:10:21 UTC 2025 - Last Modified: Thu Aug 14 05:31:44 UTC 2025 - 3.3K bytes - Viewed (0) -
src/test/java/jcifs/smb1/smb1/AndXServerMessageBlockTest.java
// andxOffset (ignored when 0xFF) buf[36] = 0; buf[37] = 0; // byteCount at index start + 1 + wordCount*2 = 33 + 1 + 8 = 42 ServerMessageBlock.writeInt2(20, buf, 42); int len = block.decode(buf, 0); assertTrue(len > 0); assertEquals(4, block.wordCount); assertNull(block.andx); } @Test
Registered: Sun Sep 07 00:10:21 UTC 2025 - Last Modified: Thu Aug 14 05:31:44 UTC 2025 - 12.5K bytes - Viewed (0) -
src/test/java/jcifs/smb/SmbPipeInputStreamTest.java
availField.setAccessible(true); availField.setInt(resp, 42); return resp; }).when(tree).send(any(TransPeekNamedPipe.class), any(TransPeekNamedPipeResponse.class), eq(RequestParam.NO_RETRY)); int available = stream.available(); assertEquals(42, available, "Should return available bytes reported by SMB1 peek"); verify(fd, never()).markClosed();
Registered: Sun Sep 07 00:10:21 UTC 2025 - Last Modified: Thu Aug 14 05:31:44 UTC 2025 - 9.9K bytes - Viewed (0) -
src/test/java/jcifs/smb/SmbTreeHandleInternalTest.java
// Act + Assert CIFSException ex = assertThrows(CIFSException.class, () -> handle.hasCapability(42)); assertEquals("capability check failed", ex.getMessage()); verify(handle).hasCapability(42); } @Test @DisplayName("getSendBufferSize(): returns configured value") void getSendBufferSize_returns() throws Exception {
Registered: Sun Sep 07 00:10:21 UTC 2025 - Last Modified: Thu Aug 14 05:31:44 UTC 2025 - 9.3K bytes - Viewed (0) -
src/test/java/jcifs/internal/dfs/DfsReferralRequestBufferTest.java
buffer = new DfsReferralRequestBuffer(path, maxReferralLevel); assertNotNull(buffer); // Verify through encode since there are no getters int expectedSize = 4 + 2 * path.length(); assertEquals(expectedSize, buffer.size()); } @Test @DisplayName("Should create buffer with empty path") void testConstructorWithEmptyPath() {
Registered: Sun Sep 07 00:10:21 UTC 2025 - Last Modified: Thu Aug 14 05:31:44 UTC 2025 - 17.5K bytes - Viewed (0) -
src/test/java/jcifs/smb/SmbTransportInternalTest.java
doThrow(new SmbException("capability check failed")).when(transport).hasCapability(eq(42)); SmbException ex = assertThrows(SmbException.class, () -> transport.hasCapability(42)); assertTrue(ex.getMessage().contains("failed")); verify(transport).hasCapability(42); } // Edge: disconnected status toggles @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/internal/smb1/AndXServerMessageBlockTest.java
buffer[33] = 4; // wordCount buffer[34] = (byte) 0xFF; // andxCommand buffer[36] = 0; // andxOffset low buffer[37] = 0; // andxOffset high SMBUtil.writeInt2(20, buffer, 42); // byteCount int length = testBlock.decode(buffer, 0); assertTrue(length > 0); assertEquals(4, testBlock.wordCount); assertNull(testBlock.getAndx()); } @Test
Registered: Sun Sep 07 00:10:21 UTC 2025 - Last Modified: Thu Aug 14 05:31:44 UTC 2025 - 19.4K bytes - Viewed (0) -
src/test/java/jcifs/internal/smb2/RequestWithFileIdTest.java
capturedFileId[0] = fileId[0]; } } }; // When byte[] testId = new byte[] { 42 }; anonymousImpl.setFileId(testId); // Then assertEquals(42, capturedFileId[0], "Anonymous implementation should work correctly"); } @Test @DisplayName("Should verify all known implementations")
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/smb1/com/SmbComLockingAndXTest.java
SmbComLockingAndX cmd = new SmbComLockingAndX(cfg); setField(cmd, "fid", 42); setField(cmd, "typeOfLock", (byte) 0x07); setField(cmd, "newOpLockLevel", (byte) 0x02); String repr = cmd.toString(); assertTrue(repr.contains("fid=42")); assertTrue(repr.contains("typeOfLock=7")); assertTrue(repr.contains("newOplockLevel=2")); }
Registered: Sun Sep 07 00:10:21 UTC 2025 - Last Modified: Thu Aug 14 05:31:44 UTC 2025 - 7.1K bytes - Viewed (0)