Search Options

Results per page
Sort
Preferred Languages
Advance

Results 1 - 10 of 563 for mocks (0.02 sec)

  1. src/test/java/jcifs/internal/smb2/lease/DirectoryLeaseManagerTest.java

     */
    public class DirectoryLeaseManagerTest {
    
        @Mock
        private CIFSContext context;
    
        @Mock
        private Configuration config;
    
        @Mock
        private LeaseManager baseLeaseManager;
    
        @Mock
        private SmbFile mockFile1;
    
        @Mock
        private SmbFile mockFile2;
    
        private DirectoryLeaseManager directoryLeaseManager;
        private AutoCloseable mocks;
    
        @BeforeEach
        public void setUp() {
    Registered: Sun Sep 07 00:10:21 UTC 2025
    - Last Modified: Sat Aug 23 01:47:47 UTC 2025
    - 15.9K bytes
    - Viewed (0)
  2. src/test/java/jcifs/internal/smb2/rdma/RdmaBufferManagerTest.java

    import org.junit.jupiter.api.Test;
    import org.mockito.Mock;
    import org.mockito.MockitoAnnotations;
    
    import jcifs.internal.smb2.rdma.tcp.TcpMemoryRegion;
    
    /**
     * Unit tests for RDMA buffer manager
     */
    public class RdmaBufferManagerTest {
    
        @Mock
        private RdmaProvider mockProvider;
    
        private RdmaBufferManager bufferManager;
        private AutoCloseable mocks;
    
        @BeforeEach
    Registered: Sun Sep 07 00:10:21 UTC 2025
    - Last Modified: Sat Aug 23 05:11:12 UTC 2025
    - 7.1K bytes
    - Viewed (0)
  3. src/test/java/jcifs/dcerpc/msrpc/srvsvcTest.java

    import org.junit.jupiter.api.BeforeEach;
    import org.junit.jupiter.api.Test;
    import org.mockito.Mock;
    import org.mockito.MockitoAnnotations;
    
    import jcifs.dcerpc.ndr.NdrBuffer;
    import jcifs.dcerpc.ndr.NdrException;
    
    /**
     * Test class for srvsvc.java classes
     */
    class srvsvcTest {
    
        @Mock
        private NdrBuffer mockNdrBuffer;
    
        @Mock
        private NdrBuffer mockDeferredBuffer;
    
        @BeforeEach
        void setUp() {
    Registered: Sun Sep 07 00:10:21 UTC 2025
    - Last Modified: Thu Aug 14 05:31:44 UTC 2025
    - 12K bytes
    - Viewed (0)
  4. src/test/java/jcifs/http/NetworkExplorerTest.java

        private NetworkExplorer networkExplorer;
    
        @Mock
        private ServletConfig servletConfig;
    
        @Mock
        private ServletContext servletContext;
    
        @Mock
        private HttpServletRequest request;
    
        @Mock
        private HttpServletResponse response;
    
        @Mock
        private HttpSession session;
    
        @Mock
        private SmbFile smbFile;
    
        @Mock
        private SmbResourceLocator locator;
    
    Registered: Sun Sep 07 00:10:21 UTC 2025
    - Last Modified: Thu Aug 21 04:51:33 UTC 2025
    - 21.2K bytes
    - Viewed (0)
  5. src/test/java/jcifs/internal/smb2/lease/DirectoryLeasingIntegrationTest.java

        @Mock
        private SmbFile mockFile2;
    
        private LeaseManager baseLeaseManager;
        private DirectoryLeaseManager directoryLeaseManager;
        private AutoCloseable mocks;
    
        @BeforeEach
        public void setUp() throws Exception {
            mocks = MockitoAnnotations.openMocks(this);
    
            when(context.getConfig()).thenReturn(config);
            when(config.isDirectoryNotificationsEnabled()).thenReturn(false);
    
    Registered: Sun Sep 07 00:10:21 UTC 2025
    - Last Modified: Sat Aug 23 01:47:47 UTC 2025
    - 14.2K bytes
    - Viewed (0)
  6. src/test/java/jcifs/smb1/smb1/SmbFileTest.java

    import org.junit.jupiter.api.extension.ExtendWith;
    import org.mockito.Mock;
    import org.mockito.junit.jupiter.MockitoExtension;
    
    /**
     * Unit tests for the SmbFile class.
     * This class focuses on testing the logic of SmbFile without actual network communication,
     * using mocks where necessary.
     */
    @ExtendWith(MockitoExtension.class)
    public class SmbFileTest {
    
        @Mock
        private NtlmPasswordAuthentication mockAuth;
    
    Registered: Sun Sep 07 00:10:21 UTC 2025
    - Last Modified: Thu Aug 14 05:31:44 UTC 2025
    - 8.5K bytes
    - Viewed (0)
  7. src/test/java/jcifs/http/NtlmHttpURLConnectionTest.java

    class NtlmHttpURLConnectionTest {
    
        @Mock
        private HttpURLConnection mockConnection;
    
        private URL mockUrl;
    
        @Mock
        private CIFSContext mockCifsContext;
    
        @Mock
        private NameServiceClient mockNameServiceClient;
    
        private NtlmHttpURLConnection ntlmConnection;
    
        /**
         * Sets up the mocks and the NtlmHttpURLConnection instance before each test.
    Registered: Sun Sep 07 00:10:21 UTC 2025
    - Last Modified: Thu Aug 14 07:14:38 UTC 2025
    - 12.6K bytes
    - Viewed (0)
  8. src/test/java/jcifs/dcerpc/ndr/NdrHyperTest.java

    import org.junit.jupiter.api.BeforeEach;
    import org.junit.jupiter.api.Test;
    import org.mockito.Mock;
    import org.mockito.MockitoAnnotations;
    
    class NdrHyperTest {
    
        @Mock
        private NdrBuffer mockNdrBuffer;
    
        @BeforeEach
        void setUp() {
            // Initialize mocks before each test
            MockitoAnnotations.openMocks(this);
        }
    
        @Test
        void testConstructorAndGetValue() {
    Registered: Sun Sep 07 00:10:21 UTC 2025
    - Last Modified: Thu Aug 14 05:31:44 UTC 2025
    - 2.2K bytes
    - Viewed (0)
  9. docs/site-replication/gen-oidc-sts-cred.go

    //
    // You should have received a copy of the GNU Affero General Public License
    // along with this program.  If not, see <http://www.gnu.org/licenses/>.
    
    package main
    
    // This programs mocks user interaction against Dex IDP and generates STS
    // credentials. It is for MinIO testing purposes only.
    //
    // Run like:
    //
    // $ MINIO_ENDPOINT=http://localhost:9000 go run gen-oidc-sts-cred.go
    
    import (
    Registered: Sun Sep 07 19:28:11 UTC 2025
    - Last Modified: Fri Apr 29 01:27:09 UTC 2022
    - 2.3K bytes
    - Viewed (0)
  10. src/test/java/jcifs/smb1/smb1/FileEntryTest.java

            void nullName() {
                FileEntry mock = mock(FileEntry.class);
                when(mock.getName()).thenReturn(null);
                assertNull(mock.getName());
            }
    
            @Test
            @DisplayName("Negative length is allowed via mock")
            void negativeLength() {
                FileEntry mock = mock(FileEntry.class);
                when(mock.length()).thenReturn(-10L);
                assertEquals(-10L, mock.length());
    Registered: Sun Sep 07 00:10:21 UTC 2025
    - Last Modified: Thu Aug 14 05:31:44 UTC 2025
    - 3K bytes
    - Viewed (0)
Back to top