Search Options

Results per page
Sort
Preferred Languages
Advance

Results 31 - 40 of 56 for triggered (0.41 sec)

  1. src/test/java/jcifs/internal/smb2/Smb2EncryptionContextTest.java

            assertNotNull(encrypted1);
    
            // Encrypt larger message to trigger rotation
            byte[] largeMessage = new byte[150]; // Exceed 100 byte limit
            Arrays.fill(largeMessage, (byte) 'A');
    
            // Should trigger automatic rotation and succeed
            byte[] encrypted2 = assertDoesNotThrow(() -> context.encryptMessage(largeMessage, 2L));
    Registered: Sat Dec 20 13:44:44 UTC 2025
    - Last Modified: Sun Aug 31 08:00:57 UTC 2025
    - 44.1K bytes
    - Viewed (0)
  2. src/test/java/jcifs/internal/smb2/lease/LeaseManagerTest.java

            // Register a mock file with cache
            leaseManager.registerFileCache(path, null); // Using null for simplicity in test
    
            // Handle lease break which should trigger cache operations
            leaseManager.handleLeaseBreak(key, Smb2LeaseState.SMB2_LEASE_NONE);
    
            LeaseEntry entry = leaseManager.getLease(key);
            assertNotNull(entry);
    Registered: Sat Dec 20 13:44:44 UTC 2025
    - Last Modified: Thu Aug 21 00:16:17 UTC 2025
    - 13.2K bytes
    - Viewed (0)
  3. src/test/java/jcifs/smb/SMBSignatureValidationExceptionTest.java

            assertEquals(NtStatus.NT_STATUS_UNSUCCESSFUL, ex.getNtStatus(), "Status should default to unsuccessful for message+cause ctor");
        }
    
        // Interaction: passing a mocked cause should not trigger interactions (nothing to call)
        @Test
        @DisplayName("Mocked cause: no interactions occur when stored as cause")
        void mockedCause_isStored_withoutInteraction() {
            // Arrange
    Registered: Sat Dec 20 13:44:44 UTC 2025
    - Last Modified: Thu Aug 14 05:31:44 UTC 2025
    - 5.3K bytes
    - Viewed (0)
  4. src/test/java/jcifs/smb/SmbRenewableCredentialsTest.java

        void renewOnNullReferenceThrowsNPE() {
            // Arrange: null reference to the interface
            SmbRenewableCredentials creds = null;
    
            // Act + Assert: invoking renew() on null triggers NullPointerException
            assertThrows(NullPointerException.class, () -> {
                // Intentional NPE through dereference of a null interface reference
                creds.renew();
            });
        }
    
    Registered: Sat Dec 20 13:44:44 UTC 2025
    - Last Modified: Thu Aug 14 05:31:44 UTC 2025
    - 7K bytes
    - Viewed (0)
  5. src/test/java/jcifs/smb/HandlerTest.java

        }
    
        @Test
        @DisplayName("parseURL: exact 'smb://' sets default port")
        void testParseURL_ExactRoot_DefaultPort() throws MalformedURLException {
            // Arrange & Act: constructing this URL triggers Handler.parseURL("smb://")
            Handler handler = newHandler();
            URL url = new URL(null, "smb://", handler);
    
            // Assert
            assertEquals("smb", url.getProtocol());
    Registered: Sat Dec 20 13:44:44 UTC 2025
    - Last Modified: Thu Aug 14 05:31:44 UTC 2025
    - 7.8K bytes
    - Viewed (0)
  6. src/test/java/jcifs/smb/MIENameTest.java

                        return buf;
                    }, IllegalArgumentException.class),
    
                    // Negative NAME_LEN (0xFFFFFFFF) causes StringIndexOutOfBoundsException
                    Arguments.of("negative name length triggers SIOOBE", (java.util.function.Supplier<byte[]>) () -> {
                        byte[] tok = new byte[] { 0x04, 0x01 };
                        byte[] buf = new byte[2 + 2 + der.length + 4];
                        int p = 0;
    Registered: Sat Dec 20 13:44:44 UTC 2025
    - Last Modified: Thu Aug 14 05:31:44 UTC 2025
    - 8.6K bytes
    - Viewed (0)
  7. src/test/java/jcifs/smb/SpnegoContextTest.java

            when(this.mechContext.getFlags()).thenReturn(0x1234);
            when(this.mechContext.initSecContext(any(byte[].class), eq(0), eq(0))).thenReturn(new byte[] { 0x01, 0x02 });
    
            // Act: len==0 triggers initial token construction
            byte[] out = ctx.initSecContext(null, 0, 0);
    
            // Assert: returns a SPNEGO token (opaque here but non-null/non-empty)
            assertNotNull(out);
            assertTrue(out.length > 0);
    Registered: Sat Dec 20 13:44:44 UTC 2025
    - Last Modified: Thu Aug 14 05:31:44 UTC 2025
    - 9.3K bytes
    - Viewed (0)
  8. fess-crawler/src/test/java/org/codelibs/fess/crawler/client/fs/FileSystemClientTest.java

            for (int i = 0; i < threadCount; i++) {
                final int index = i;
                threads[i] = new Thread(() -> {
                    try {
                        // Call processRequest which triggers initialization
                        client.doGet("file://nonexistent.txt");
                    } catch (Exception e) {
                        // Expected for nonexistent file
                    }
    Registered: Sat Dec 20 11:21:39 UTC 2025
    - Last Modified: Wed Nov 19 08:59:28 UTC 2025
    - 11.2K bytes
    - Viewed (0)
  9. src/test/java/jcifs/smb/PreauthIntegrityTest.java

         */
        @Test
        @DisplayName("Pre-auth integrity hash should reset on error")
        void testPreauthHashResetOnError() throws Exception {
            // Setup invalid SMB2 state to trigger error
            setPrivateField(transport, "smb2", false);
    
            // Try to update preauth hash - should fail and reset
            Method updateMethod = findMethod(transport.getClass(), "updatePreauthHash", byte[].class);
    Registered: Sat Dec 20 13:44:44 UTC 2025
    - Last Modified: Sat Aug 30 05:58:03 UTC 2025
    - 10.5K bytes
    - Viewed (0)
  10. src/test/java/jcifs/smb/SmbFileOutputStreamTest.java

            // Given
            when(mockTreeHandle.isSMB2()).thenReturn(true);
            when(mockTreeHandle.getSendBufferSize()).thenReturn(65536);
            when(mockFileHandle.isValid()).thenReturn(false, true); // First false to trigger ensureOpen, then true
            when(mockFileHandle.getFileId()).thenReturn(new byte[16]);
            when(mockFileHandle.acquire()).thenReturn(mockFileHandle);
    
            // Mock for ensureOpen to reopen file
    Registered: Sat Dec 20 13:44:44 UTC 2025
    - Last Modified: Thu Aug 14 05:31:44 UTC 2025
    - 15.8K bytes
    - Viewed (0)
Back to top