Search Options

Results per page
Sort
Preferred Languages
Advance

Results 11 - 20 of 26 for test_encode (0.33 sec)

  1. src/test/java/jcifs/dcerpc/ndr/NdrShortTest.java

            }
        }
    
        @Nested
        @DisplayName("Encoding Tests")
        class EncodingTests {
    
            @Test
            @DisplayName("Should encode value correctly")
            void testEncode() throws NdrException {
                // Given: NdrShort with test value
                int testValue = 123;
                NdrShort ndrShort = new NdrShort(testValue);
    
                // When: Encoding the value
    Registered: Sun Sep 07 00:10:21 UTC 2025
    - Last Modified: Thu Aug 14 05:31:44 UTC 2025
    - 11.2K bytes
    - Viewed (0)
  2. src/test/java/jcifs/internal/fscc/FileBasicInfoTest.java

        @Test
        @DisplayName("Test size method returns correct buffer size")
        void testSize() {
            assertEquals(40, fileBasicInfo.size());
        }
    
        @Test
        @DisplayName("Test encode method")
        void testEncode() throws SMBProtocolDecodingException {
            // Create instance with test values
            FileBasicInfo info =
    Registered: Sun Sep 07 00:10:21 UTC 2025
    - Last Modified: Thu Aug 14 05:31:44 UTC 2025
    - 11.5K bytes
    - Viewed (0)
  3. src/test/java/jcifs/internal/fscc/FileEndOfFileInformationTest.java

            FileEndOfFileInformation info = new FileEndOfFileInformation(999L);
            assertEquals(8, info.size());
        }
    
        @Test
        @DisplayName("Test encode method with valid buffer")
        void testEncode() {
            // Create instance with known value
            long endOfFile = 0x123456789ABCDEFL;
            FileEndOfFileInformation info = new FileEndOfFileInformation(endOfFile);
    
            // Create buffer for encoding
    Registered: Sun Sep 07 00:10:21 UTC 2025
    - Last Modified: Thu Aug 14 05:31:44 UTC 2025
    - 9.9K bytes
    - Viewed (0)
  4. src/test/java/jcifs/internal/smb2/lease/DirectoryLeaseContextTest.java

            // Padding: 4 bytes
            // Standard lease data: 32 bytes
            // Directory-specific data: 20 bytes
            assertEquals(76, context.size());
        }
    
        @Test
        public void testEncode() {
            Smb2LeaseKey key = new Smb2LeaseKey();
            int leaseState = DirectoryLeaseState.DIRECTORY_READ_HANDLE;
            DirectoryCacheScope scope = DirectoryCacheScope.RECURSIVE_TREE;
    
    Registered: Sun Sep 07 00:10:21 UTC 2025
    - Last Modified: Sat Aug 23 01:47:47 UTC 2025
    - 10.1K bytes
    - Viewed (0)
  5. 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 structure
    Registered: Sun Sep 07 00:10:21 UTC 2025
    - Last Modified: Thu Aug 14 05:31:44 UTC 2025
    - 13.4K bytes
    - Viewed (0)
  6. guava-tests/test/com/google/common/io/BaseEncodingTest.java

     */
    @GwtCompatible
    @NullUnmarked
    public class BaseEncodingTest extends TestCase {
    
      public void testSeparatorsExplicitly() {
        testEncodes(base64().withSeparator("\n", 3), "foobar", "Zm9\nvYm\nFy");
        testEncodes(base64().withSeparator("$", 4), "foobar", "Zm9v$YmFy");
        testEncodes(base32().withSeparator("*", 4), "foobar", "MZXW*6YTB*OI==*====");
      }
    
      public void testSeparatorSameAsPadChar() {
    Registered: Fri Sep 05 12:43:10 UTC 2025
    - Last Modified: Thu Aug 07 16:05:33 UTC 2025
    - 24.7K bytes
    - Viewed (0)
  7. android/guava-tests/test/com/google/common/io/BaseEncodingTest.java

     */
    @GwtCompatible
    @NullUnmarked
    public class BaseEncodingTest extends TestCase {
    
      public void testSeparatorsExplicitly() {
        testEncodes(base64().withSeparator("\n", 3), "foobar", "Zm9\nvYm\nFy");
        testEncodes(base64().withSeparator("$", 4), "foobar", "Zm9v$YmFy");
        testEncodes(base32().withSeparator("*", 4), "foobar", "MZXW*6YTB*OI==*====");
      }
    
      public void testSeparatorSameAsPadChar() {
    Registered: Fri Sep 05 12:43:10 UTC 2025
    - Last Modified: Thu Aug 07 16:05:33 UTC 2025
    - 24.7K bytes
    - Viewed (0)
  8. src/test/java/org/codelibs/fess/filter/EncodingFilterTest.java

            paramMap = filter.parseQueryString("=", "UTF-8");
            assertEquals(1, paramMap.size());
            assertEquals("", paramMap.get("")[0]);
    
        }
    
        public void test_decode() throws IOException {
            final EncodingFilter filter = new EncodingFilter();
            Map<String, String[]> paramMap;
    
            paramMap = filter.parseQueryString("a=%E3%83%86%E3%82%B9%E3%83%88", "UTF-8");
    Registered: Thu Sep 04 12:52:25 UTC 2025
    - Last Modified: Sat Mar 15 06:53:53 UTC 2025
    - 3.3K bytes
    - Viewed (0)
  9. 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: Sun Sep 07 00:10:21 UTC 2025
    - Last Modified: Thu Aug 21 00:16:17 UTC 2025
    - 5.8K bytes
    - Viewed (0)
  10. 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: Sun Sep 07 00:10:21 UTC 2025
    - Last Modified: Thu Aug 21 00:16:17 UTC 2025
    - 6K bytes
    - Viewed (0)
Back to top