- Sort Score
- Result 10 results
- Languages All
Results 11 - 20 of 26 for testDecode (0.05 sec)
-
src/test/java/jcifs/internal/smb2/nego/NegotiateContextResponseTest.java
assertEquals(0, buffer[2]); // salt length assertEquals(0, buffer[3]); } @Test @DisplayName("Should decode context correctly") void testDecode() throws SMBProtocolDecodingException { // Arrange context = new PreauthIntegrityNegotiateContext(); byte[] buffer = new byte[] { 0x02, 0x00, // 2 hash algos
Registered: Sat Dec 20 13:44:44 UTC 2025 - Last Modified: Thu Aug 14 07:14:38 UTC 2025 - 19.4K bytes - Viewed (0) -
src/test/java/jcifs/internal/fscc/FileSystemInformationTest.java
Registered: Sat Dec 20 13:44:44 UTC 2025 - Last Modified: Thu Aug 14 05:31:44 UTC 2025 - 18.1K bytes - Viewed (0) -
src/test/java/jcifs/internal/smb1/trans2/Trans2SetFileInformationResponseTest.java
assertNotNull(str); assertTrue(str.length() > "Trans2SetFileInformationResponse[]".length()); } @Test @DisplayName("Test decode method") void testDecode() throws Exception { // Test the decode method which is inherited from ServerMessageBlock byte[] buffer = new byte[256]; // Set up a minimal SMB header (size 32 bytes) // SMB signature
Registered: Sat Dec 20 13:44:44 UTC 2025 - Last Modified: Thu Aug 14 05:31:44 UTC 2025 - 15.9K bytes - Viewed (0) -
src/test/java/jcifs/internal/fscc/FileEndOfFileInformationTest.java
long decodedValue = SMBUtil.readInt8(buffer, offset); assertEquals(endOfFile, decodedValue); } @Test @DisplayName("Test decode method with valid buffer") void testDecode() throws SMBProtocolDecodingException { // Prepare buffer with known value long expectedValue = 0x0123456789ABCDEFL; byte[] buffer = new byte[16]; SMBUtil.writeInt8(expectedValue, buffer, 0);
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/internal/smb2/lease/DirectoryLeaseContextTest.java
assertEquals(expectedFlags, SMBUtil.readInt4(buffer, 68)); // Verify notification filter assertEquals(0x1F, SMBUtil.readInt4(buffer, 72)); } @Test public void testDecode() { // Create a context and encode it Smb2LeaseKey originalKey = new Smb2LeaseKey(); int originalLeaseState = DirectoryLeaseState.DIRECTORY_FULL;
Registered: Sat Dec 20 13:44:44 UTC 2025 - Last Modified: Sat Aug 23 01:47:47 UTC 2025 - 10.1K bytes - Viewed (0) -
src/test/java/jcifs/internal/smb1/trans/SmbComTransactionResponseTest.java
} @Test @DisplayName("Test encode operation") void testEncode() { byte[] buffer = new byte[1024]; int length = response.encode(buffer, 0); assertTrue(length >= 0); } @Test @DisplayName("Test decode operation") void testDecode() { byte[] buffer = new byte[1024]; // Fill with basic SMB header structureRegistered: Sat Dec 20 13:44:44 UTC 2025 - Last Modified: Thu Aug 14 05:31:44 UTC 2025 - 13.4K bytes - Viewed (0) -
src/test/java/jcifs/internal/smb2/create/CreateContextResponseTest.java
assertEquals(null, nullNameResponse.getName()); } @Test @DisplayName("Should decode data correctly") void testDecode() throws SMBProtocolDecodingException { int length = 50; int result = testResponse.decode(testBuffer, 10, length); assertEquals(length, result);
Registered: Sat Dec 20 13:44:44 UTC 2025 - Last Modified: Thu Aug 14 05:31:44 UTC 2025 - 16.2K bytes - Viewed (0) -
guava-tests/test/com/google/common/io/BaseEncodingTest.java
} public void testBase32LenientPadding() { testDecodes(base32(), "MZXW6", "foo"); testDecodes(base32(), "MZXW6=", "foo"); testDecodes(base32(), "MZXW6==", "foo"); testDecodes(base32(), "MZXW6===", "foo"); // proper padding length testDecodes(base32(), "MZXW6====", "foo"); testDecodes(base32(), "MZXW6=====", "foo"); } public void testBase32AlternatePadding() {
Registered: Fri Dec 26 12:43:10 UTC 2025 - Last Modified: Thu Aug 07 16:05:33 UTC 2025 - 24.7K bytes - Viewed (0) -
okhttp-hpacktests/src/test/java/okhttp3/internal/http2/HpackDecodeInteropTest.kt
@ArgumentsSource(StoriesTestProvider::class) fun testGoodDecoderInterop(story: Story) { assumeFalse( story === Story.MISSING, "Test stories missing, checkout git submodule", ) testDecoder(story) } internal class StoriesTestProvider : SimpleProvider() { override fun arguments(): List<Any> = createStories(HpackJsonUtil.storiesForCurrentDraft()) }
Registered: Fri Dec 26 11:42:13 UTC 2025 - Last Modified: Mon Jan 08 01:13:22 UTC 2024 - 1.4K bytes - Viewed (0) -
okhttp-hpacktests/src/test/java/okhttp3/internal/http2/HpackRoundTripTest.kt
) val newCases = mutableListOf<Case>() for (case in story.cases) { hpackWriter.writeHeaders(case.headersList) newCases += case.copy(wire = bytesOut.readByteString()) } testDecoder(story.copy(cases = newCases)) } companion object { private val RAW_DATA = arrayOf("raw-data") }Registered: Fri Dec 26 11:42:13 UTC 2025 - Last Modified: Mon Jan 08 01:13:22 UTC 2024 - 2K bytes - Viewed (0)