Search Options

Results per page
Sort
Preferred Languages
Advance

Results 1831 - 1840 of 4,151 for text (0.02 sec)

  1. src/test/java/jcifs/pac/kerberos/KerberosPacAuthDataTest.java

            }
        }
    
        // Test exception for empty PAC
        @Test
        void testConstructorEmptyPac() {
            byte[] emptyToken = new byte[0];
            PACDecodingException e = assertThrows(PACDecodingException.class, () -> {
                new KerberosPacAuthData(emptyToken, keys);
            });
            assertTrue(e.getMessage().contains("PAC"));
        }
    
        // Test exception for short PAC
        @Test
    Registered: Sun Sep 07 00:10:21 UTC 2025
    - Last Modified: Thu Aug 14 07:14:38 UTC 2025
    - 6.3K bytes
    - Viewed (0)
  2. src/test/java/jcifs/internal/smb2/nego/PreauthIntegrityNegotiateContextTest.java

        class SizeCalculationTests {
    
            @Test
            @DisplayName("Should calculate size for null hash algorithms and salt")
            void testSizeWithNullHashAlgosAndSalt() {
                PreauthIntegrityNegotiateContext context = new PreauthIntegrityNegotiateContext(mockConfig, null, null);
    
                assertEquals(4, context.size());
            }
    
            @Test
            @DisplayName("Should calculate size for empty arrays")
    Registered: Sun Sep 07 00:10:21 UTC 2025
    - Last Modified: Thu Aug 14 05:31:44 UTC 2025
    - 34K bytes
    - Viewed (0)
  3. guava-tests/test/com/google/common/math/BigIntegerMathTest.java

      public void testRoundToDouble_zero() {
        new RoundToDoubleTester(BigInteger.ZERO).setExpectation(0.0, values()).test();
      }
    
      @J2ktIncompatible
      @GwtIncompatible
      public void testRoundToDouble_smallPositive() {
        new RoundToDoubleTester(BigInteger.valueOf(16)).setExpectation(16.0, values()).test();
      }
    
      @J2ktIncompatible
      @GwtIncompatible
      public void testRoundToDouble_maxPreciselyRepresentable() {
    Registered: Fri Sep 05 12:43:10 UTC 2025
    - Last Modified: Thu Aug 07 16:05:33 UTC 2025
    - 27K bytes
    - Viewed (0)
  4. guava-testlib/src/com/google/common/testing/ClassSanityTester.java

       *       {@code cls}:
       *       <ul>
       *         <li>Test will fail if default value for a parameter cannot be determined.
       *         <li>Test will fail if the factory method returns null so testing instance methods is
       *             impossible.
       *         <li>Test will fail if the constructor or factory method throws exception.
       *       </ul>
    Registered: Fri Sep 05 12:43:10 UTC 2025
    - Last Modified: Sat Aug 09 01:14:59 UTC 2025
    - 32.5K bytes
    - Viewed (0)
  5. src/test/java/jcifs/dcerpc/DcerpcSecurityProviderTest.java

        @Mock
        private NdrBuffer mockNdrBuffer;
    
        @BeforeEach
        void setUp() {
            // Initialize mocks before each test
            MockitoAnnotations.openMocks(this);
        }
    
        @Test
        void testWrapMethodIsCalled() throws DcerpcException {
            // Test that the wrap method can be called without throwing an exception
            dcerpcSecurityProvider.wrap(mockNdrBuffer);
    
    Registered: Sun Sep 07 00:10:21 UTC 2025
    - Last Modified: Thu Aug 14 05:31:44 UTC 2025
    - 2.5K bytes
    - Viewed (0)
  6. src/test/java/jcifs/config/SecurityConfigurationTest.java

    public class SecurityConfigurationTest {
    
        /**
         * Test that default security settings meet minimum security requirements
         */
        @Test
        public void testSecureDefaults() throws CIFSException {
            BaseConfiguration config = new BaseConfiguration(true);
    
            // Verify minimum SMB version is at least SMB 2.0.2 (SMB1 disabled)
    Registered: Sun Sep 07 00:10:21 UTC 2025
    - Last Modified: Sun Aug 31 08:00:57 UTC 2025
    - 3.1K bytes
    - Viewed (0)
  7. src/test/java/org/codelibs/fess/sso/SsoResponseTypeTest.java

        public void test_values() {
            // Test that values() returns all enum constants
            SsoResponseType[] values = SsoResponseType.values();
            assertNotNull(values);
            assertEquals(2, values.length);
            assertEquals(SsoResponseType.METADATA, values[0]);
            assertEquals(SsoResponseType.LOGOUT, values[1]);
        }
    
        public void test_valueOf() {
            // Test valueOf for valid enum names
    Registered: Thu Sep 04 12:52:25 UTC 2025
    - Last Modified: Tue Aug 19 14:09:36 UTC 2025
    - 6K bytes
    - Viewed (0)
  8. src/test/java/jcifs/smb1/smb1/SmbFilenameFilterTest.java

            assertTrue(filter.accept(dir, "Hello.TXT"));
        }
    
        @Test
        void acceptReturnsFalseWhenNameDoesNotMatch() throws Exception {
            SmbFile dir = Mockito.mock(SmbFile.class);
            SmbFilenameFilter filter = (d, n) -> n.equalsIgnoreCase("hello.txt");
            assertFalse(filter.accept(dir, "world.txt"));
        }
    
        @Test
    Registered: Sun Sep 07 00:10:21 UTC 2025
    - Last Modified: Thu Aug 14 05:31:44 UTC 2025
    - 1.6K bytes
    - Viewed (0)
  9. src/test/java/jcifs/internal/smb2/Smb3KeyDerivationTest.java

            assertFalse(Arrays.equals(signingKey, signingKey311), "Should be different from SMB 3.1.1 key");
        }
    
        @Test
        @DisplayName("Should derive keys with specific test vectors")
        void testDeriveKeys_TestVectors() {
            // Given - Use known test vector (simplified for demonstration)
            byte[] testSessionKey = new byte[16];
            Arrays.fill(testSessionKey, (byte) 0xAA);
    Registered: Sun Sep 07 00:10:21 UTC 2025
    - Last Modified: Thu Aug 14 05:31:44 UTC 2025
    - 17.5K bytes
    - Viewed (0)
  10. src/test/java/jcifs/internal/smb2/Smb2TransformHeaderTest.java

        }
    
        @Test
        @DisplayName("Should handle null protocol ID")
        void testNullProtocolId() {
            // Protocol ID is a constant in transform header, not settable
            // This test is not applicable - the protocol ID is always TRANSFORM_PROTOCOL_ID
            assertTrue(true);
        }
    
        @Test
        @DisplayName("Should handle invalid protocol ID length")
    Registered: Sun Sep 07 00:10:21 UTC 2025
    - Last Modified: Thu Aug 14 05:31:44 UTC 2025
    - 12.7K bytes
    - Viewed (0)
Back to top