Search Options

Results per page
Sort
Preferred Languages
Advance

Results 11 - 20 of 210 for behaviors (0.2 sec)

  1. 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: Sat Dec 20 13:44:44 UTC 2025
    - Last Modified: Sun Aug 31 08:00:57 UTC 2025
    - 19.2K bytes
    - Viewed (0)
  2. 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: Sat Dec 20 13:44:44 UTC 2025
    - Last Modified: Thu Aug 14 05:31:44 UTC 2025
    - 17.1K bytes
    - Viewed (0)
  3. 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: Sat Dec 20 13:44:44 UTC 2025
    - Last Modified: Thu Aug 14 05:31:44 UTC 2025
    - 15.8K bytes
    - Viewed (0)
  4. src/test/java/jcifs/internal/dfs/DfsReferralDataInternalTest.java

                assertNotNull(combined);
            }
        }
    
        @Nested
        @DisplayName("Mock Behavior Verification Tests")
        class MockBehaviorTests {
    
            @Test
            @DisplayName("Should verify all interface methods can be mocked")
            void testAllMethodsCanBeMocked() {
                // Setup all mock behaviors
                when(mockReferralData.getExpiration()).thenReturn(1000L);
    Registered: Sat Dec 20 13:44:44 UTC 2025
    - Last Modified: Thu Aug 14 05:31:44 UTC 2025
    - 28.2K bytes
    - Viewed (0)
  5. src/test/java/jcifs/dcerpc/msrpc/LsaPolicyHandleTest.java

        // Mocking MsrpcLsarOpenPolicy2 and MsrpcLsarClose is tricky because they are created inside the constructor/method.
        // We need to use ArgumentCaptor or a custom Answer to control their behavior.
        // For now, let's assume we can mock their behavior through the sendrecv method of DcerpcHandle.
    
        @BeforeEach
        void setUp() {
            // MockitoAnnotations.openMocks(this); // Not needed with @ExtendWith(MockitoExtension.class)
        }
    
    Registered: Sat Dec 20 13:44:44 UTC 2025
    - Last Modified: Thu Aug 14 05:31:44 UTC 2025
    - 8.9K bytes
    - Viewed (0)
  6. src/test/java/jcifs/SmbWatchHandleTest.java

            mockNotifications.add(fileNotifyInfo3);
        }
    
        /**
         * Test watch() method returning notifications
         */
        @Test
        void testWatch() throws CIFSException {
            // Setup mock behavior
            when(watchHandle.watch()).thenReturn(mockNotifications);
    
            // Execute
            List<FileNotifyInformation> result = watchHandle.watch();
    
            // Verify
            assertNotNull(result);
    Registered: Sat Dec 20 13:44:44 UTC 2025
    - Last Modified: Thu Aug 14 05:31:44 UTC 2025
    - 13.2K bytes
    - Viewed (1)
  7. src/main/java/org/codelibs/fess/opensearch/common/ImplementedInvokerAssistant.java

            // Default constructor
        }
    
        /** Default client invoke names for DBFlute behavior invocation. */
        protected static final String[] DEFAULT_CLIENT_INVOKE_NAMES = { "Page", "Action", "Controller", "ControllerImpl", "Task", "Test" };
    
        /** Default bypass invoke names for DBFlute behavior invocation. */
        protected static final String[] DEFAULT_BYPASS_INVOKE_NAMES =
    Registered: Sat Dec 20 09:19:18 UTC 2025
    - Last Modified: Thu Jul 17 08:28:31 UTC 2025
    - 6.1K bytes
    - Viewed (0)
  8. .github/ISSUE_TEMPLATE/bug_report.md

    **Describe the bug**
    A clear and concise description of what the bug is.
    
    **To Reproduce**
    Steps to reproduce the behavior:
    1. Go to '...'
    2. Click on '....'
    3. Scroll down to '....'
    4. See error
    
    **Expected behavior**
    A clear and concise description of what you expected to happen.
    
    **Screenshots**
    If applicable, add screenshots to help explain your problem.
    
    Registered: Sat Dec 20 13:04:59 UTC 2025
    - Last Modified: Mon Feb 10 22:19:06 UTC 2020
    - 749 bytes
    - Viewed (0)
  9. .github/ISSUE_TEMPLATE/bug_report.md

    **Describe the bug**
    A clear and concise description of what the bug is.
    
    **To Reproduce**
    Steps to reproduce the behavior:
    1. Go to '...'
    2. Click on '....'
    3. Scroll down to '....'
    4. See error
    
    **Expected behavior**
    A clear and concise description of what you expected to happen.
    
    **Screenshots**
    If applicable, add screenshots to help explain your problem.
    
    Registered: Sat Dec 20 11:21:39 UTC 2025
    - Last Modified: Mon Feb 10 22:18:26 UTC 2020
    - 748 bytes
    - Viewed (0)
  10. src/test/java/jcifs/smb/SmbFileOutputStreamTest.java

            // Close the stream
            outputStream.close();
    
            // When & Then - after close, tmp is null so write(int) will throw NullPointerException
            // This is the actual behavior of the implementation
            assertThrows(NullPointerException.class, () -> outputStream.write(65));
        }
    
        @Test
        void testWriteNullArray() throws CIFSException {
            // Given
    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