- Sort Score
- Result 10 results
- Languages All
Results 11 - 20 of 21 for testDecodes (0.04 sec)
-
src/test/java/org/codelibs/core/misc/Base64UtilTest.java
assertEquals("1", ENCODED_DATA, Base64Util.encode(BINARY_DATA)); System.out.println(Base64Util.encode(new byte[] { 'a', 'b', 'c' })); } /** * @throws Exception */ public void testDecode() throws Exception { final byte[] decodedData = Base64Util.decode(ENCODED_DATA); assertEquals("1", BINARY_DATA.length, decodedData.length); for (int i = 0; i < decodedData.length; i++) {
Registered: Sat Dec 20 08:55:33 UTC 2025 - Last Modified: Sat Nov 22 11:21:59 UTC 2025 - 6K bytes - Viewed (0) -
src/test/java/jcifs/dcerpc/ndr/NdrObjectTest.java
* Verifies that the decode method of a concrete implementation is called * and interacts with the NdrBuffer as expected. * @throws NdrException if decoding fails. */ @Test void testDecode() throws NdrException { // When ndrObject.decode(mockBuffer); // Then // Verify that our mock buffer had the expected method called. verify(mockBuffer).dec_ndr_long(); }Registered: Sat Dec 20 13:44:44 UTC 2025 - Last Modified: Thu Aug 14 05:31:44 UTC 2025 - 3.4K bytes - Viewed (0) -
src/test/java/jcifs/dcerpc/ndr/NdrSmallTest.java
// Verify that enc_ndr_small was called with the correct value verify(mockNdrBuffer, times(1)).enc_ndr_small(100); verifyNoMoreInteractions(mockNdrBuffer); } @Test void testDecode() throws NdrException { // Define the value that dec_ndr_small should return int decodedValue = 200; when(mockNdrBuffer.dec_ndr_small()).thenReturn(decodedValue);Registered: 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/smb1/util/Base64Test.java
Arguments.of("////", new byte[] { (byte) 0xff, (byte) 0xff, (byte) 0xff })); // all 0xFF bytes } @ParameterizedTest(name = "decode({1}) -> {2}") @MethodSource("decodeProvider") void testDecode(String encoded, byte[] expected) { // Act byte[] actual = Base64.decode(encoded); // Assert assertArrayEquals(expected, actual, "Base64.decode should return original bytes"); }
Registered: Sat Dec 20 13:44:44 UTC 2025 - Last Modified: Thu Aug 14 05:31:44 UTC 2025 - 3K bytes - Viewed (0) -
src/test/java/jcifs/internal/fscc/FileBasicInfoTest.java
assertEquals(TEST_LAST_WRITE_TIME, decoded.getLastWriteTime()); assertEquals(TEST_ATTRIBUTES, decoded.getAttributes()); } @Test @DisplayName("Test decode method") void testDecode() throws SMBProtocolDecodingException { // First encode using a known FileBasicInfo FileBasicInfo original =
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/internal/smb1/trans/SmbComTransactionResponseTest.java
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 structure System.arraycopy(new byte[] { (byte) 0xFF, 'S', 'M', 'B' }, 0, buffer, 0, 4); buffer[4] = 1; // wordCount
Registered: 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/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/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/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) -
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)