Search Options

Results per page
Sort
Preferred Languages
Advance

Results 1 - 10 of 14 for test_decode (0.06 sec)

  1. src/test/java/org/codelibs/fess/helper/PermissionHelperTest.java

                assertEquals("guest", permissionHelper.encode("guest"));
            } finally {
                ComponentUtil.setFessConfig(fessConfig);
            }
        }
    
        public void test_decode() {
            assertNull(permissionHelper.decode(null));
            assertNull(permissionHelper.decode(""));
            assertNull(permissionHelper.decode(" "));
    
    Registered: Thu Sep 04 12:52:25 UTC 2025
    - Last Modified: Thu Jul 10 13:41:04 UTC 2025
    - 13.7K bytes
    - Viewed (0)
  2. android/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 Sep 05 12:43:10 UTC 2025
    - Last Modified: Thu Aug 07 16:05:33 UTC 2025
    - 24.7K bytes
    - Viewed (0)
  3. 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 Sep 05 12:43:10 UTC 2025
    - Last Modified: Thu Aug 07 16:05:33 UTC 2025
    - 24.7K bytes
    - Viewed (0)
  4. src/test/java/jcifs/smb1/dcerpc/msrpc/samrTest.java

                verify(mockNdrBuffer).enc_ndr_referent(null, 1);
            }
    
            @Test
            @DisplayName("Should decode entry correctly")
            void testDecode() throws NdrException {
                // Given: Mocked buffer data
                samr.SamrSamEntry entry = new samr.SamrSamEntry();
                when(mockNdrBuffer.dec_ndr_long()).thenReturn(1, 100); // idx, _name_bufferp
    Registered: Sun Sep 07 00:10:21 UTC 2025
    - Last Modified: Thu Aug 14 05:31:44 UTC 2025
    - 33.6K bytes
    - Viewed (0)
  5. src/test/java/jcifs/dcerpc/msrpc/samrTest.java

                verify(mockNdrBuffer).enc_ndr_referent(null, 1);
            }
    
            @Test
            @DisplayName("Should decode entry correctly")
            void testDecode() throws NdrException {
                // Given: Mocked buffer data
                samr.SamrSamEntry entry = new samr.SamrSamEntry();
                when(mockNdrBuffer.dec_ndr_long()).thenReturn(1, 100); // idx, _name_bufferp
    Registered: Sun Sep 07 00:10:21 UTC 2025
    - Last Modified: Thu Aug 14 05:31:44 UTC 2025
    - 33.7K bytes
    - Viewed (0)
  6. src/test/java/jcifs/dcerpc/ndr/NdrShortTest.java

            }
        }
    
        @Nested
        @DisplayName("Decoding Tests")
        class DecodingTests {
    
            @Test
            @DisplayName("Should decode value correctly")
            void testDecode() throws NdrException {
                // Given: NdrShort and mock returning specific value
                int decodedValue = 200;
                NdrShort ndrShort = new NdrShort(0);
    Registered: Sun Sep 07 00:10:21 UTC 2025
    - Last Modified: Thu Aug 14 05:31:44 UTC 2025
    - 11.2K bytes
    - Viewed (0)
  7. src/test/java/jcifs/internal/fscc/FileSystemInformationTest.java

                verify(mockFileSystemInfo, times(1)).getFileSystemInformationClass();
            }
    
            @Test
            @DisplayName("Should decode buffer correctly")
            void testDecode() throws SMBProtocolDecodingException {
                byte[] buffer = new byte[100];
                when(mockFileSystemInfo.decode(any(byte[].class), anyInt(), anyInt())).thenReturn(24);
    
    Registered: Sun Sep 07 00:10:21 UTC 2025
    - Last Modified: Thu Aug 14 05:31:44 UTC 2025
    - 18.1K bytes
    - Viewed (0)
  8. 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: Sun Sep 07 00:10:21 UTC 2025
    - Last Modified: Thu Aug 14 07:14:38 UTC 2025
    - 19.4K bytes
    - Viewed (0)
  9. 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: Sun Sep 07 00:10:21 UTC 2025
    - Last Modified: Thu Aug 14 05:31:44 UTC 2025
    - 15.9K bytes
    - Viewed (0)
  10. 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: Sun Sep 07 00:10:21 UTC 2025
    - Last Modified: Thu Aug 14 05:31:44 UTC 2025
    - 11.5K bytes
    - Viewed (0)
Back to top