- Sort Score
- Result 10 results
- Languages All
Results 41 - 50 of 357 for pero (0.49 sec)
-
src/test/java/jcifs/internal/smb1/com/SmbComSeekResponseTest.java
@Test @DisplayName("writeParameterWordsWireFormat returns zero bytes written") void testWriteParameterWordsWireFormat() { byte[] buf = new byte[10]; assertEquals(0, response.writeParameterWordsWireFormat(buf, 0), "Should write 0 bytes"); } @Test @DisplayName("writeParameterWordsWireFormat with null buffer - returns zero") void testWriteParameterWordsWireFormatNullBuffer() {Registered: Sat Dec 20 13:44:44 UTC 2025 - Last Modified: Thu Aug 14 05:31:44 UTC 2025 - 8.1K bytes - Viewed (0) -
src/test/java/jcifs/internal/util/SMBUtilTest.java
assertEquals((byte) 0xFF, dst[i]); } // Test with zero SMBUtil.writeInt8(0L, dst, 16); for (int i = 16; i < 24; i++) { assertEquals((byte) 0x00, dst[i]); } } @Test void testReadTime() { byte[] src = new byte[16]; // Test with zero time SMBUtil.writeInt8(0L, src, 0);
Registered: Sat Dec 20 13:44:44 UTC 2025 - Last Modified: Thu Aug 14 05:31:44 UTC 2025 - 11.1K bytes - Viewed (0) -
src/test/java/jcifs/smb1/smb1/SmbComNtTransactionTest.java
smbComNtTransaction.dataOffset = 200; byte[] dst = new byte[100]; smbComNtTransaction.writeParameterWordsWireFormat(dst, 0); // Check that offsets are zero when counts are zero assertEquals(0, SmbComTransaction.readInt4(dst, 23), "parameterOffset should be 0 when parameterCount is 0"); assertEquals(0, SmbComTransaction.readInt4(dst, 31), "dataOffset should be 0 when dataCount is 0");Registered: Sat Dec 20 13:44:44 UTC 2025 - Last Modified: Thu Aug 14 05:31:44 UTC 2025 - 7.9K bytes - Viewed (0) -
src/test/java/jcifs/dcerpc/ndr/NdrSmallTest.java
} @Test void testConstructor_zeroValue() { // Test with zero value NdrSmall ndrSmall = new NdrSmall(0); assertEquals(0, ndrSmall.value, "Value should be initialized correctly for zero."); } @Test void testConstructor_negativeValue() { // Test with a negative value, expecting it to be masked to a positive byteRegistered: Sat Dec 20 13:44:44 UTC 2025 - Last Modified: Thu Aug 14 05:31:44 UTC 2025 - 3.2K bytes - Viewed (0) -
src/test/java/jcifs/internal/smb1/trans/TransTransactNamedPipeResponseTest.java
byte[] buffer = new byte[100]; // Should work with zero length int result = emptyBufferResponse.readDataWireFormat(buffer, 0, 0); assertEquals(0, result); // Should throw exception with non-zero length assertThrows(SMBProtocolDecodingException.class, () -> emptyBufferResponse.readDataWireFormat(buffer, 0, 1)); }
Registered: Sat Dec 20 13:44:44 UTC 2025 - Last Modified: Thu Aug 14 05:31:44 UTC 2025 - 9.5K bytes - Viewed (0) -
src/test/java/jcifs/dcerpc/UnicodeStringTest.java
assertEquals(testStringTrue.charAt(i), (char) unicodeStringTrue.buffer[i], "Character mismatch"); } assertEquals(0, unicodeStringTrue.buffer[testStringTrue.length()], "Last character should be zero"); // Test with a non-empty string and zterm = false String testStringFalse = "Hello"; UnicodeString unicodeStringFalse = new UnicodeString(testStringFalse, false);
Registered: Sat Dec 20 13:44:44 UTC 2025 - Last Modified: Thu Aug 14 05:31:44 UTC 2025 - 9.3K bytes - Viewed (0) -
src/test/java/jcifs/smb/SmbSessionImplTest.java
// First release drops usage to zero and releases transport session.release(); verify(transport, times(1)).release(); assertFalse(session.isInUse()); // Next release goes below zero and throws RuntimeException ex = assertThrows(RuntimeCIFSException.class, session::release); assertTrue(ex.getMessage().contains("below zero"));Registered: Sat Dec 20 13:44:44 UTC 2025 - Last Modified: Thu Aug 14 05:31:44 UTC 2025 - 12.5K bytes - Viewed (0) -
src/test/java/jcifs/internal/fscc/SmbInfoAllocationTest.java
long expectedFree = free * sectPerAlloc * bytesPerSect; assertEquals(expectedFree, smbInfoAllocation.getFree()); } @Test @DisplayName("Test getCapacity with zero values") void testGetCapacityWithZeroValues() throws SMBProtocolDecodingException { // Prepare test data with zeros byte[] buffer = new byte[22]; // All zerosRegistered: Sat Dec 20 13:44:44 UTC 2025 - Last Modified: Thu Aug 14 05:31:44 UTC 2025 - 14.2K bytes - Viewed (0) -
src/test/java/jcifs/internal/smb2/nego/EncryptionNegotiateContextTest.java
assertEquals(EncryptionNegotiateContext.CIPHER_AES128_GCM, SMBUtil.readInt2(buffer, 4)); } @Test @DisplayName("Should encode null ciphers as zero count") void testEncodeNullCiphers() { EncryptionNegotiateContext context = new EncryptionNegotiateContext(mockConfig, null); int bytesWritten = context.encode(buffer, 0);
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/test/java/jcifs/internal/fscc/FileStandardInfoTest.java
offset += 4; buffer[offset++] = (byte) 0xFF; // Non-zero value for deletePending buffer[offset++] = (byte) 0x80; // Non-zero value for directory // Decode int bytesDecoded = fileStandardInfo.decode(buffer, 0, buffer.length); // Verify - non-zero values should be treated as true assertEquals(22, bytesDecoded);Registered: Sat Dec 20 13:44:44 UTC 2025 - Last Modified: Thu Aug 14 05:31:44 UTC 2025 - 13.1K bytes - Viewed (0)