Search Options

Results per page
Sort
Preferred Languages
Advance

Results 281 - 290 of 574 for mocks (0.02 sec)

  1. src/test/java/jcifs/internal/smb1/com/SmbComCloseTest.java

        private PropertyConfiguration config;
    
        @BeforeEach
        public void setUp() throws CIFSException {
            // Create a mock configuration for testing
            Properties properties = new Properties();
            config = new PropertyConfiguration(properties);
            context = mock(CIFSContext.class);
            when(context.getConfig()).thenReturn(config);
        }
    
        /**
    Registered: Sun Sep 07 00:10:21 UTC 2025
    - Last Modified: Thu Aug 14 05:31:44 UTC 2025
    - 6.4K bytes
    - Viewed (0)
  2. src/test/java/jcifs/smb/SmbRenewableCredentialsTest.java

            }
        }
    
        @Test
        @DisplayName("Mockito: verify renew() interaction and return value")
        void mockitoInteraction(@Mock CredentialsInternal returned, @Mock SmbRenewableCredentials renewable) {
            // Arrange: stub renew() to return a mocked CredentialsInternal
            when(renewable.renew()).thenReturn(returned);
    
            // Act: invoke renew()
    Registered: Sun Sep 07 00:10:21 UTC 2025
    - Last Modified: Thu Aug 14 05:31:44 UTC 2025
    - 7K bytes
    - Viewed (0)
  3. src/test/java/jcifs/smb/SmbResourceLocatorInternalTest.java

    import org.mockito.Mock;
    import org.mockito.junit.jupiter.MockitoExtension;
    
    import jcifs.CIFSException;
    import jcifs.DfsReferralData;
    import jcifs.SmbResourceLocator;
    
    @ExtendWith(MockitoExtension.class)
    public class SmbResourceLocatorInternalTest {
    
        @Mock
        SmbResourceLocatorInternal locator;
    
        @Mock
        SmbResourceLocator other;
    
        @Mock
        DfsReferralData referral;
    
    Registered: Sun Sep 07 00:10:21 UTC 2025
    - Last Modified: Thu Aug 14 05:31:44 UTC 2025
    - 6.9K bytes
    - Viewed (0)
  4. src/main/resources/fess_env.properties

    # ----------------------------------------------------------
    #                                                      Mail
    #                                                     ------
    # Does it send mock mail? (true: no send actually, logging only)
    mail.send.mock = true
    
    # SMTP server settings for main: host:port
    mail.smtp.server.main.host.and.port = localhost:25
    
    # The prefix of subject to show test environment or not
    Registered: Thu Sep 04 12:52:25 UTC 2025
    - Last Modified: Sat Aug 07 04:53:24 UTC 2021
    - 2.2K bytes
    - Viewed (0)
  5. src/test/java/jcifs/smb/PreauthIntegrityTest.java

     */
    @ExtendWith(MockitoExtension.class)
    @MockitoSettings(strictness = Strictness.LENIENT)
    public class PreauthIntegrityTest {
    
        @Mock
        private CIFSContext context;
    
        @Mock
        private Configuration config;
    
        @Mock
        private Address address;
    
        @Mock
        private Smb2NegotiateResponse negotiateResponse;
    
        private SmbTransportImpl transport;
    
        @BeforeEach
    Registered: Sun Sep 07 00:10:21 UTC 2025
    - Last Modified: Sat Aug 30 05:58:03 UTC 2025
    - 10.5K bytes
    - Viewed (0)
  6. src/test/java/jcifs/internal/smb1/trans2/Trans2SetFileInformationResponseTest.java

            assertEquals(SmbComTransaction.TRANS2_SET_FILE_INFORMATION, response.getSubCommand());
        }
    
        @Test
        @DisplayName("Test constructor with mock configuration")
        void testConstructorWithMockConfig() {
            // Test constructor with mock configuration
            Trans2SetFileInformationResponse mockResponse = new Trans2SetFileInformationResponse(mockConfig);
            assertNotNull(mockResponse);
    Registered: Sun Sep 07 00:10:21 UTC 2025
    - Last Modified: Thu Aug 14 05:31:44 UTC 2025
    - 15.9K bytes
    - Viewed (0)
  7. src/test/java/jcifs/dcerpc/msrpc/MsrpcShareGetInfoTest.java

    import org.mockito.Mock;
    import org.mockito.junit.jupiter.MockitoExtension;
    
    import jcifs.dcerpc.DcerpcConstants;
    import jcifs.internal.dtyp.ACE;
    import jcifs.internal.dtyp.SecurityDescriptor;
    
    @ExtendWith(MockitoExtension.class)
    class MsrpcShareGetInfoTest {
    
        @Mock
        private srvsvc.ShareInfo502 mockShareInfo502;
    
        @Mock
        private SecurityDescriptor mockSecurityDescriptor;
    
    Registered: Sun Sep 07 00:10:21 UTC 2025
    - Last Modified: Thu Aug 14 05:31:44 UTC 2025
    - 14.3K bytes
    - Viewed (0)
  8. src/test/java/jcifs/SmbResourceLocatorTest.java

                DummySmbResourceLocator root = new DummySmbResourceLocator("smb://server/");
                assertEquals("server/", root.getName());
            }
        }
    
        @Mock
        DfsReferralData dfs;
        @Mock
        Address addr;
    
        @Test
        @DisplayName("Mockito interaction – dependent objects are called appropriately")
        void testInteractionsWithStubbedDependencies() throws Exception {
    Registered: Sun Sep 07 00:10:21 UTC 2025
    - Last Modified: Thu Aug 14 05:31:44 UTC 2025
    - 8K bytes
    - Viewed (0)
  9. src/test/java/org/codelibs/fess/helper/DataIndexHelperTest.java

            // Reduce default interval to minimize test execution time
            dataIndexHelper.setCrawlingExecutionInterval(1L); // 1ms instead of 5000ms
        }
    
        private void setupMockComponents() {
            // Lightweight mock CrawlingConfigHelper
            ComponentUtil.register(new CrawlingConfigHelper() {
                @Override
                public List<DataConfig> getAllDataConfigList() {
    Registered: Thu Sep 04 12:52:25 UTC 2025
    - Last Modified: Sat Jul 12 05:35:01 UTC 2025
    - 12.7K bytes
    - Viewed (0)
  10. src/test/java/jcifs/internal/smb2/info/Smb2QueryDirectoryResponseTest.java

            Field resultsField = Smb2QueryDirectoryResponse.class.getDeclaredField("results");
            resultsField.setAccessible(true);
            FileEntry[] entries = new FileEntry[] { mock(FileBothDirectoryInfo.class), mock(FileBothDirectoryInfo.class) };
            resultsField.set(response, entries);
    
            FileEntry[] results = response.getResults();
            assertNotNull(results);
            assertEquals(2, results.length);
    Registered: Sun Sep 07 00:10:21 UTC 2025
    - Last Modified: Thu Aug 14 05:31:44 UTC 2025
    - 23.5K bytes
    - Viewed (0)
Back to top