Search Options

Results per page
Sort
Preferred Languages
Advance

Results 1 - 10 of 86 for interactions (0.13 sec)

  1. src/test/java/jcifs/internal/SMBProtocolDecodingExceptionTest.java

                assertTrue(ts.contains(message), "toString should include non-empty message");
            }
        }
    
        @Test
        @DisplayName("Cause-only constructor: preserves provided cause; no interactions with cause")
        void causeOnlyConstructor_preservesCause_andNoInteractions() {
            // Arrange & Act
            SMBProtocolDecodingException ex = new SMBProtocolDecodingException(mockCause);
    
    Registered: Sun Sep 07 00:10:21 UTC 2025
    - Last Modified: Thu Aug 14 05:31:44 UTC 2025
    - 5.1K bytes
    - Viewed (0)
  2. src/test/java/jcifs/internal/SmbBasicFileInfoTest.java

    import org.mockito.junit.jupiter.MockitoExtension;
    
    /**
     * Tests for SmbBasicFileInfo interface.
     * The tests exercise typical, edge, and null scenarios using a simple
     * implementation and a Mockito mock to verify interactions.
     */
    @ExtendWith(MockitoExtension.class)
    public class SmbBasicFileInfoTest {
    
        /**
         * Simple concrete implementation used for testing return values.
         */
    Registered: Sun Sep 07 00:10:21 UTC 2025
    - Last Modified: Thu Aug 14 05:31:44 UTC 2025
    - 5.8K bytes
    - Viewed (0)
  3. src/test/java/jcifs/dcerpc/ndr/NdrLongTest.java

            ndrLong.encode(mockNdrBuffer);
    
            // Verify that enc_ndr_long was called exactly once with the correct value
            verify(mockNdrBuffer, times(1)).enc_ndr_long(testValue);
            // Verify that no other interactions occurred with the mock buffer
            verifyNoMoreInteractions(mockNdrBuffer);
        }
    
        @Test
        void decode_shouldCallDecNdrLongAndAssignValue() throws NdrException {
            int decodedValue = 54321;
    Registered: Sun Sep 07 00:10:21 UTC 2025
    - Last Modified: Thu Aug 14 05:31:44 UTC 2025
    - 3.2K bytes
    - Viewed (0)
  4. 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
            Throwable mocked = mock(Throwable.class);
    
    Registered: Sun Sep 07 00:10:21 UTC 2025
    - Last Modified: Thu Aug 14 05:31:44 UTC 2025
    - 5.3K bytes
    - Viewed (0)
  5. src/test/java/jcifs/smb/SessionSetupHandlerTest.java

            // Assert
            assertEquals(SessionSetupHandler.class, c);
            assertTrue(c.isInterface());
        }
    
        @Mock
        SessionSetupHandler mocked;
    
        @Test
        @DisplayName("Interactions: Mockito mock has no interactions by default")
        void testMockitoNoInteractions() {
            // Intent: ensure we can mock the interface and verify no unexpected calls
            // Act & Assert
            assertNotNull(mocked);
    Registered: Sun Sep 07 00:10:21 UTC 2025
    - Last Modified: Thu Aug 14 05:31:44 UTC 2025
    - 4.3K bytes
    - Viewed (0)
  6. src/test/java/jcifs/smb/SmbUnsupportedOperationExceptionTest.java

            });
            assertEquals("Operation is not supported with the negotiated capabilities", ex.getMessage());
        }
    
        @Test
        @DisplayName("Mockito: stubbed collaborator throws RuntimeException wrapper and interactions are verified")
        void mockInteraction_stubsThrow_andVerifiesInvocation() {
            // Arrange: Since SmbUnsupportedOperationException is a checked exception (extends IOException),
    Registered: Sun Sep 07 00:10:21 UTC 2025
    - Last Modified: Thu Aug 14 05:31:44 UTC 2025
    - 5.2K bytes
    - Viewed (0)
  7. docs/en/docs/project-generation.md

    - ⚡ [**FastAPI**](https://fastapi.tiangolo.com) for the Python backend API.
        - 🧰 [SQLModel](https://sqlmodel.tiangolo.com) for the Python SQL database interactions (ORM).
        - 🔍 [Pydantic](https://docs.pydantic.dev), used by FastAPI, for the data validation and settings management.
        - 💾 [PostgreSQL](https://www.postgresql.org) as the SQL database.
    Registered: Sun Sep 07 07:19:17 UTC 2025
    - Last Modified: Sun Aug 31 09:15:41 UTC 2025
    - 2K bytes
    - Viewed (0)
  8. src/test/java/jcifs/smb/SmbNamedPipeTest.java

            // Act
            pipe.customizeCreate(req, resp);
    
            // Assert: verify interactions with dependencies
            verify(req, times(1)).addFlags0(0x16);
            verify(resp, times(1)).setExtended(true);
            verify(resp, never()).setExtended(false);
        }
    
        @Test
        @DisplayName("openPipe returns a handle bound to this pipe")
    Registered: Sun Sep 07 00:10:21 UTC 2025
    - Last Modified: Thu Aug 14 05:31:44 UTC 2025
    - 5.2K bytes
    - Viewed (0)
  9. CODE_OF_CONDUCT.md

    of actions.
    
    **Consequence**: A warning with consequences for continued behavior. No
    interaction with the people involved, including unsolicited interaction with
    those enforcing the Code of Conduct, for a specified period. This
    includes avoiding interactions in community spaces and external channels
    like social media. Violating these terms may lead to a temporary or
    permanent ban.
    
    Registered: Sun Sep 07 09:35:13 UTC 2025
    - Last Modified: Thu Oct 17 06:18:13 UTC 2024
    - 5K bytes
    - Viewed (0)
  10. src/test/java/jcifs/smb/SmbRenewableCredentialsTest.java

            // Act: invoke renew()
            CredentialsInternal result = renewable.renew();
    
            // Assert: verify interaction and returned value
            verify(renewable, times(1)).renew();
            assertSame(returned, result, "renew() should return the stubbed value");
    
            // Negative interaction check: no further interactions with the mock
            verifyNoMoreInteractions(renewable);
        }
    
        @Test
    Registered: Sun Sep 07 00:10:21 UTC 2025
    - Last Modified: Thu Aug 14 05:31:44 UTC 2025
    - 7K bytes
    - Viewed (0)
Back to top