Search Options

Results per page
Sort
Preferred Languages
Advance

Results 81 - 90 of 2,544 for Then (0.5 sec)

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

        void testSetFileIdInCloseRequest() {
            // Given
            Smb2CloseRequest request = new Smb2CloseRequest(mockConfig, emptyFileId);
    
            // When
            request.setFileId(testFileId);
    
            // Then - verify through internal state (would need getter or reflection in real scenario)
            // Since we can't directly verify the internal state, we create a new request to test
    Registered: Sat Dec 20 13:44:44 UTC 2025
    - Last Modified: Thu Aug 14 05:31:44 UTC 2025
    - 11.9K bytes
    - Viewed (0)
  2. src/test/java/jcifs/CIFSExceptionTest.java

            // When
            CIFSException exception = new CIFSException(cause);
    
            // Then
            assertNotNull(exception);
            assertEquals(cause, exception.getCause());
            assertTrue(exception.getMessage().contains("Root cause"));
        }
    
        @Test
        @DisplayName("Should handle null message")
        void testNullMessage() {
            // When/Then
            assertDoesNotThrow(() -> {
    Registered: Sat Dec 20 13:44:44 UTC 2025
    - Last Modified: Thu Aug 14 05:31:44 UTC 2025
    - 2.5K bytes
    - Viewed (0)
  3. src/test/java/jcifs/smb1/smb1/SmbComTreeDisconnectTest.java

     */
    class SmbComTreeDisconnectTest {
    
        /**
         * Test the constructor of SmbComTreeDisconnect.
         */
        @Test
        void testConstructor() {
            // When
            SmbComTreeDisconnect smbComTreeDisconnect = new SmbComTreeDisconnect();
    
            // Then
            assertEquals(ServerMessageBlock.SMB_COM_TREE_DISCONNECT, smbComTreeDisconnect.command, "Command should be SMB_COM_TREE_DISCONNECT");
        }
    
        /**
    Registered: Sat Dec 20 13:44:44 UTC 2025
    - Last Modified: Thu Aug 14 05:31:44 UTC 2025
    - 2.8K bytes
    - Viewed (0)
  4. docs/en/docs/tutorial/middleware.md

    * It takes each **request** that comes to your application.
    * It can then do something to that **request** or run any needed code.
    * Then it passes the **request** to be processed by the rest of the application (by some *path operation*).
    * It then takes the **response** generated by the application (by some *path operation*).
    * It can do something to that **response** or run any needed code.
    * Then it returns the **response**.
    
    /// note | Technical Details
    
    Registered: Sun Dec 28 07:19:09 UTC 2025
    - Last Modified: Wed Dec 17 20:41:43 UTC 2025
    - 4.1K bytes
    - Viewed (0)
  5. src/test/java/jcifs/spnego/SpnegoExceptionTest.java

    class SpnegoExceptionTest extends BaseTest {
    
        @Test
        @DisplayName("Should create SpnegoException with default constructor")
        void testDefaultConstructor() {
            // When
            SpnegoException ex = new SpnegoException();
    
            // Then
            assertNotNull(ex, "Exception should be created");
            assertNull(ex.getMessage(), "Default message should be null");
    Registered: Sat Dec 20 13:44:44 UTC 2025
    - Last Modified: Thu Aug 14 05:31:44 UTC 2025
    - 4.9K bytes
    - Viewed (0)
  6. src/test/java/jcifs/smb/NetServerEnumIteratorTest.java

            }
        }
    
        @BeforeEach
        void setUp() throws Exception {
            parent = mock(SmbFile.class);
            when(parent.getLocator()).thenReturn(locator);
            when(treeHandle.getConfig()).thenReturn(config);
            when(treeHandle.acquire()).thenReturn(treeHandle);
            when(treeHandle.getOEMDomainName()).thenReturn("TESTDOMAIN");
        }
    
        @Test
    Registered: Sat Dec 20 13:44:44 UTC 2025
    - Last Modified: Thu Aug 14 05:31:44 UTC 2025
    - 9.8K bytes
    - Viewed (0)
  7. src/test/java/jcifs/CIFSUnsupportedCryptoExceptionTest.java

        void testMessageConstructor() {
            // Given & When
            CIFSUnsupportedCryptoException exception = new CIFSUnsupportedCryptoException(CRYPTO_ERROR_MESSAGE);
    
            // Then
            assertEquals(CRYPTO_ERROR_MESSAGE, exception.getMessage(), "Message should be preserved");
            assertNull(exception.getCause(), "Cause should be null when not specified");
        }
    
        @ParameterizedTest
    Registered: Sat Dec 20 13:44:44 UTC 2025
    - Last Modified: Thu Aug 14 05:31:44 UTC 2025
    - 4.1K bytes
    - Viewed (0)
  8. src/test/java/jcifs/ntlmssp/Type3MessageTest.java

            lenient().when(mockConfig.getDefaultDomain()).thenReturn("TESTDOMAIN");
            lenient().when(mockConfig.isUseUnicode()).thenReturn(true);
            lenient().when(mockConfig.getOemEncoding()).thenReturn("UTF-8");
            lenient().when(mockConfig.getRandom()).thenReturn(mockRandom);
            lenient().when(mockConfig.getLanManCompatibility()).thenReturn(level);
    Registered: Sat Dec 20 13:44:44 UTC 2025
    - Last Modified: Thu Aug 14 05:31:44 UTC 2025
    - 17.3K bytes
    - Viewed (0)
  9. src/test/java/jcifs/config/DelegatingConfigurationTest.java

            // Given
            when(mockDelegate.isUseSMB2OnlyNegotiation()).thenReturn(true);
            when(mockDelegate.isRequireSecureNegotiate()).thenReturn(false);
            when(mockDelegate.isSendNTLMTargetName()).thenReturn(true);
            when(mockDelegate.isPort139FailoverEnabled()).thenReturn(false);
            when(mockDelegate.isDfsStrictView()).thenReturn(true);
    
            // When
    Registered: Sat Dec 20 13:44:44 UTC 2025
    - Last Modified: Thu Aug 14 05:31:44 UTC 2025
    - 20.7K bytes
    - Viewed (0)
  10. docs/en/docs/advanced/settings.md

    In the dependency override we set a new value for the `admin_email` when creating the new `Settings` object, and then we return that new object.
    
    Then we can test that it is used.
    
    ## Reading a `.env` file { #reading-a-env-file }
    
    If you have many settings that possibly change a lot, maybe in different environments, it might be useful to put them on a file and then read them from it as if they were environment variables.
    
    Registered: Sun Dec 28 07:19:09 UTC 2025
    - Last Modified: Sat Dec 20 15:55:38 UTC 2025
    - 11.2K bytes
    - Viewed (0)
Back to top