Search Options

Results per page
Sort
Preferred Languages
Advance

Results 1 - 10 of 335 for behaviors (0.07 sec)

  1. src/test/java/jcifs/smb/SmbRenewableCredentialsTest.java

            public CredentialsInternal renew() {
                // Returns null to represent an implementation that could not renew
                return null;
            }
        }
    
        // Provide different implementation behaviors to a parameterized test
        static Stream<Arguments> implementations() {
            return Stream.of(Arguments.of("returns self", (Supplier<SmbRenewableCredentials>) SelfRenewingCreds::new, true, false),
    Registered: Sun Sep 07 00:10:21 UTC 2025
    - Last Modified: Thu Aug 14 05:31:44 UTC 2025
    - 7K bytes
    - Viewed (0)
  2. src/test/java/jcifs/smb/DfsImplTest.java

            mockConfig = mock(Configuration.class);
            mockCredentials = mock(Credentials.class);
            mockTransportPool = mock(SmbTransportPool.class);
    
            // Set up mock behaviors
            when(mockContext.getConfig()).thenReturn(mockConfig);
            when(mockContext.getCredentials()).thenReturn(mockCredentials);
            when(mockContext.getTransportPool()).thenReturn(mockTransportPool);
    Registered: Sun Sep 07 00:10:21 UTC 2025
    - Last Modified: Thu Aug 14 05:31:44 UTC 2025
    - 5.5K bytes
    - Viewed (0)
  3. src/test/java/jcifs/smb/SMBProtocolDowngradeExceptionTest.java

    import org.junit.jupiter.params.provider.MethodSource;
    import org.mockito.Mockito;
    import org.mockito.junit.jupiter.MockitoExtension;
    
    /**
     * Tests for SMBProtocolDowngradeException covering all constructors and behaviors.
     */
    @ExtendWith(MockitoExtension.class)
    class SMBProtocolDowngradeExceptionTest {
    
        /**
         * Provides messages including edge cases (null and empty) for parameterized testing.
         */
    Registered: Sun Sep 07 00:10:21 UTC 2025
    - Last Modified: Thu Aug 14 05:31:44 UTC 2025
    - 5.4K bytes
    - Viewed (0)
  4. compat/maven-compat/src/test/java/org/apache/maven/project/inheritance/t10/ProjectInheritanceTest.java

    import static org.junit.jupiter.api.Assertions.assertNotNull;
    import static org.junit.jupiter.api.Assertions.assertTrue;
    
    /**
     * Verifies scope inheritance of direct and transitive dependencies.
     *
     * Should show three behaviors:
     *
     * 1. dependencyManagement should override the scope of transitive dependencies.
     * 2. Direct dependencies should override the scope of dependencyManagement.
    Registered: Sun Sep 07 03:35:12 UTC 2025
    - Last Modified: Wed Jul 23 17:27:08 UTC 2025
    - 3.7K bytes
    - Viewed (0)
  5. src/test/java/jcifs/smb/SmbFilenameFilterTest.java

    import org.junit.jupiter.params.provider.ValueSource;
    import org.mockito.Mock;
    import org.mockito.junit.jupiter.MockitoExtension;
    
    /**
     * Tests for SmbFilenameFilter interface behaviors via simple implementations.
     * Each test creates a concrete filter to validate expected contract semantics
     * including normal operation, null handling, edge cases, and exception flow.
     */
    @ExtendWith(MockitoExtension.class)
    Registered: Sun Sep 07 00:10:21 UTC 2025
    - Last Modified: Thu Aug 14 05:31:44 UTC 2025
    - 7.3K bytes
    - Viewed (0)
  6. src/test/java/jcifs/internal/SmbNegotiationRequestTest.java

                assertTrue(consistentRequest.isSigningEnforced(), "Implementation should consistently return the same value");
            }
        }
    
        @Test
        @DisplayName("Test different implementations can have different behaviors")
        void testDifferentImplementations() {
            // Given
            SmbNegotiationRequest enforcedRequest = new TestSmbNegotiationRequest(true);
    Registered: Sun Sep 07 00:10:21 UTC 2025
    - Last Modified: Thu Aug 14 05:31:44 UTC 2025
    - 6.4K bytes
    - Viewed (0)
  7. src/test/java/jcifs/util/transport/TransportTest.java

    import org.junit.jupiter.api.Test;
    
    import jcifs.RuntimeCIFSException;
    
    /**
     * Optimized test for Transport class focusing on core functionality
     * with fast execution and comprehensive coverage of key behaviors.
     */
    class TransportTest {
    
        private TestableTransport transport;
    
        /**
         * Minimal Transport implementation for testing core functionality
         */
    Registered: Sun Sep 07 00:10:21 UTC 2025
    - Last Modified: Thu Aug 14 05:31:44 UTC 2025
    - 9.5K bytes
    - Viewed (0)
  8. src/test/java/jcifs/smb/SmbTransportPoolImplTest.java

        @BeforeEach
        void setUp() {
            // Create a fresh pool instance for each test
            pool = new SmbTransportPoolImpl();
    
            // Setup default mock behaviors
            when(ctx.getConfig()).thenReturn(config);
            when(ctx.getNameServiceClient()).thenReturn(nameSvc);
            when(ctx.getCredentials()).thenReturn(creds);
            when(ctx.getTransportPool()).thenReturn(pool);
    
    Registered: Sun Sep 07 00:10:21 UTC 2025
    - Last Modified: Sun Aug 31 08:00:57 UTC 2025
    - 19.2K bytes
    - Viewed (0)
  9. src/test/java/jcifs/smb/SmbEnumerationUtilTest.java

                assertThrows(NullPointerException.class, () -> SmbEnumerationUtil.doEnum(null, "*", 0, null, null));
            }
        }
    
        @Nested
        @DisplayName("Wrapper behaviors")
        class WrapperBehaviorTests {
    
            @Test
            void resourceFilterWrapper_accept_falseForNonSmbFile_andNoDelegation() throws Exception {
                // Arrange
    Registered: Sun Sep 07 00:10:21 UTC 2025
    - Last Modified: Thu Aug 14 05:31:44 UTC 2025
    - 17.1K bytes
    - Viewed (0)
  10. src/test/java/jcifs/smb/SIDTest.java

                assertEquals(type, sid.getType());
                assertEquals(text, sid.getTypeText());
            }
    
            @Test
            @DisplayName("getDomainName and getAccountName behaviors for unknown, domain, and user")
            void testNamesByType() {
                byte[] ident = new byte[] { 0, 0, 0, 0, 0, 5 };
                // Unknown: domainName derived from numeric SID, accountName = RID
    Registered: Sun Sep 07 00:10:21 UTC 2025
    - Last Modified: Thu Aug 14 05:31:44 UTC 2025
    - 15.8K bytes
    - Viewed (0)
Back to top