- Sort Score
- Result 10 results
- Languages All
Results 1 - 7 of 7 for testDecode (0.29 sec)
-
src/test/java/org/codelibs/core/net/URLUtilTest.java
* */ public class URLUtilTest extends TestCase { /** * @throws Exception */ public void testEncode() throws Exception { assertEquals("Program+Files", URLUtil.encode("Program Files", "UTF-8")); } /** * @throws Exception */ public void testDecode() throws Exception { assertEquals("Program Files", URLUtil.decode("Program+Files", "UTF-8")); } /**Registered: Sat Dec 20 08:55:33 UTC 2025 - Last Modified: Sat May 10 01:32:17 UTC 2025 - 1.9K bytes - Viewed (0) -
src/test/java/jcifs/dcerpc/ndr/NdrHyperTest.java
verify(mockNdrBuffer, times(1)).enc_ndr_hyper(testValue); verifyNoMoreInteractions(mockNdrBuffer); } @Test void testDecode() throws NdrException { // Test the decode method long decodedValue = 112233445566778L; NdrHyper ndrHyper = new NdrHyper(0); // Initialize with a dummy value
Registered: Sat Dec 20 13:44:44 UTC 2025 - Last Modified: Thu Aug 14 05:31:44 UTC 2025 - 2.2K 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(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/org/codelibs/core/misc/Base64UtilTest.java
/** * @throws Exception */ public void testEncode() throws Exception { 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);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/internal/smb2/create/LeaseV1CreateContextRequestTest.java
leaseContext.setLeaseFlags(newFlags); assertEquals(newFlags, leaseContext.getLeaseFlags()); } @Test @DisplayName("Should encode context correctly") void testEncode() { byte[] buffer = new byte[leaseContext.size()]; int encoded = leaseContext.encode(buffer, 0); assertEquals(leaseContext.size(), encoded);Registered: Sat Dec 20 13:44:44 UTC 2025 - Last Modified: Thu Aug 21 00:16:17 UTC 2025 - 5.8K bytes - Viewed (0) -
src/test/java/jcifs/internal/smb2/lease/Smb2LeaseKeyTest.java
assertThrows(IllegalArgumentException.class, () -> new Smb2LeaseKey(new byte[0])); } @Test @DisplayName("Should encode lease key to buffer") void testEncode() { byte[] testBytes = new byte[] { 0x11, 0x22, 0x33, 0x44, 0x55, 0x66, 0x77, (byte) 0x88, (byte) 0x99, (byte) 0xAA, (byte) 0xBB, (byte) 0xCC, (byte) 0xDD, (byte) 0xEE, (byte) 0xFF, 0x00 };
Registered: Sat Dec 20 13:44:44 UTC 2025 - Last Modified: Thu Aug 21 00:16:17 UTC 2025 - 6K bytes - Viewed (0)