- Sort Score
- Result 10 results
- Languages All
Results 21 - 30 of 39 for taip (0.04 sec)
-
src/test/java/jcifs/internal/smb1/com/SmbComLockingAndXTest.java
byte[] buffer = new byte[0]; assertThrows(ArrayIndexOutOfBoundsException.class, () -> cmd.readBytesWireFormat(buffer, 0)); } /** * Test round‑trip encoding/decoding of ranges using the public * {@link LockingAndXRange} encode/decode methods. */ @Test void lockRangeEncodeDecodeRoundTrip() throws Exception {
Registered: Sat Dec 20 13:44:44 UTC 2025 - Last Modified: Thu Aug 14 05:31:44 UTC 2025 - 7.1K bytes - Viewed (0) -
src/test/java/jcifs/smb1/smb1/SmbComQueryInformationResponseTest.java
// getLastWriteTime returns lastWriteTime (from readUTime) + serverTimeZoneOffset // readUTime multiplies the seconds value by 1000, and writeUTime divides milliseconds by 1000 // So the round-trip should preserve the milliseconds value assertEquals(sampleTimeMillis + serverTimeZoneOffset, response.getLastWriteTime()); assertEquals(1024, response.getSize()); } /**
Registered: Sat Dec 20 13:44:44 UTC 2025 - Last Modified: Thu Aug 14 05:31:44 UTC 2025 - 5.5K bytes - Viewed (0) -
src/test/java/jcifs/smb1/dcerpc/ndr/NdrShortTest.java
// NdrShort masks to 0xFF (8 bits) in its constructor int expected = input & 0xFF; assertEquals(expected, ns.value, "value should be masked to 0xFF before storing"); } /** * Round-trip encode/decode for a selection of representative values. */ @ParameterizedTest @ValueSource(ints = { 0, 42, 255, -1, 128 }) void encodeDecodeRoundTrip(int original) throws Exception {
Registered: Sat Dec 20 13:44:44 UTC 2025 - Last Modified: Thu Aug 14 05:31:44 UTC 2025 - 5.1K bytes - Viewed (0) -
src/test/java/jcifs/internal/fscc/FileBasicInfoTest.java
FileBasicInfo decoded = new FileBasicInfo(); decoded.decode(buffer, startIndex, 36); // decode only reads 36 bytes // Verify the values match after round-trip assertEquals(TEST_CREATE_TIME, decoded.getCreateTime()); assertEquals(TEST_LAST_ACCESS_TIME, decoded.getLastAccessTime()); assertEquals(TEST_LAST_WRITE_TIME, decoded.getLastWriteTime());
Registered: Sat Dec 20 13:44:44 UTC 2025 - Last Modified: Thu Aug 14 05:31:44 UTC 2025 - 11.5K bytes - Viewed (0) -
src/test/java/jcifs/smb1/dcerpc/DcerpcMessageTest.java
import jcifs.smb1.dcerpc.ndr.NdrBuffer; import jcifs.smb1.dcerpc.ndr.NdrException; /** * Unit tests for {@link DcerpcMessage}. The tests exercise flag handling, * result extraction, header encoding/decoding, and the round-trip of an * encode/decode operation. */ public class DcerpcMessageTest { /** * A trivial concrete subclass used for testing. It simply writes a * single small value in {@code encode_in} and reads it inRegistered: Sat Dec 20 13:44:44 UTC 2025 - Last Modified: Thu Aug 14 07:14:38 UTC 2025 - 7K bytes - Viewed (0) -
src/test/java/jcifs/internal/CommonServerMessageBlockTest.java
Registered: Sat Dec 20 13:44:44 UTC 2025 - Last Modified: Thu Aug 14 05:31:44 UTC 2025 - 15.7K bytes - Viewed (0) -
src/test/java/jcifs/internal/fscc/FileEndOfFileInformationTest.java
assertEquals(8, bytesRead); assertTrue(fileInfo.toString().contains("endOfFile=" + expectedValue)); } @Test @DisplayName("Test encode and decode round trip") void testEncodeDecodeRoundTrip() throws SMBProtocolDecodingException { // Test various values long[] testValues = { 0L, 1L, -1L, Long.MAX_VALUE, Long.MIN_VALUE, 0x123456789ABCDEFL };Registered: Sat Dec 20 13:44:44 UTC 2025 - Last Modified: Thu Aug 14 05:31:44 UTC 2025 - 9.9K bytes - Viewed (0) -
src/test/java/jcifs/ntlmssp/av/AvPairsTest.java
assertEquals(0, SMBUtil.readInt2(encoded, 2), "EOL length should be 0"); } /** * Test round-trip encoding and decoding */ @Test @DisplayName("Round-trip encode and decode should preserve data") void testRoundTrip() throws CIFSException { List<AvPair> originalPairs = new LinkedList<>();
Registered: Sat Dec 20 13:44:44 UTC 2025 - Last Modified: Thu Aug 14 05:31:44 UTC 2025 - 20.5K bytes - Viewed (0) -
src/main/java/jcifs/util/SmbCircuitBreaker.java
public void reset() { log.info("[{}] Manually resetting circuit breaker to CLOSED", name); transitionTo(State.CLOSED); } /** * Manually trip the circuit breaker to open state */ public void trip() { log.info("[{}] Manually tripping circuit breaker to OPEN", name); transitionTo(State.OPEN); } /**
Registered: Sat Dec 20 13:44:44 UTC 2025 - Last Modified: Sat Aug 30 05:58:03 UTC 2025 - 33.4K bytes - Viewed (0) -
src/test/java/jcifs/internal/smb2/Smb2SigningDigestTest.java
} } @Nested @DisplayName("Integration Tests") class IntegrationTests { @Test @DisplayName("Should sign and verify round trip for SMB 2.0.2") void testSignAndVerifyRoundTripSmb202() throws GeneralSecurityException { Smb2SigningDigest digest1 = new Smb2SigningDigest(sessionKey, Smb2Constants.SMB2_DIALECT_0202, null);Registered: Sat Dec 20 13:44:44 UTC 2025 - Last Modified: Sat Aug 30 05:58:03 UTC 2025 - 43.7K bytes - Viewed (0)