Search Options

Results per page
Sort
Preferred Languages
Advance

Results 51 - 60 of 86 for Beal (0.03 sec)

  1. src/test/java/jcifs/dcerpc/msrpc/MsrpcShareEnumTest.java

                fail("Failed to access servername field: " + e.getMessage());
            }
        }
    
        @Test
        void testGetEntriesWithMultipleShares() throws Exception {
            // Create real ShareInfo1 objects instead of mocks
            srvsvc.ShareInfo1 shareInfo1 = new srvsvc.ShareInfo1();
            shareInfo1.netname = "Share1";
            shareInfo1.type = 0;
            shareInfo1.remark = "Remark for Share1";
    
    Registered: Sat Dec 20 13:44:44 UTC 2025
    - Last Modified: Thu Aug 14 05:31:44 UTC 2025
    - 8.1K bytes
    - Viewed (0)
  2. src/test/java/jcifs/internal/smb2/multichannel/MultiChannelIntegrationTest.java

    import jcifs.smb.SmbSessionInternal;
    import jcifs.smb.SmbTransportInternal;
    
    /**
     * Unit tests for SMB3 Multi-Channel functionality
     *
     * These tests verify the multi-channel implementation without requiring a real SMB server.
     */
    @ExtendWith(MockitoExtension.class)
    @MockitoSettings(strictness = Strictness.LENIENT)
    class MultiChannelIntegrationTest {
    
        @Mock
        private SmbTransportInternal mockTransport;
    
        @Mock
    Registered: Sat Dec 20 13:44:44 UTC 2025
    - Last Modified: Thu Aug 21 11:13:46 UTC 2025
    - 8.2K bytes
    - Viewed (0)
  3. src/main/java/jcifs/netbios/NbtAddress.java

                        return null;
                    }
                    if (this.isDataFromNodeStatus) {
                        /*
                         * 'this' has been updated and should now
                         * have a real NetBIOS name
                         */
                        this.calledName = null;
                        return getHostName();
                    }
                } catch (final UnknownHostException uhe) {
    Registered: Sat Dec 20 13:44:44 UTC 2025
    - Last Modified: Sat Aug 16 01:32:48 UTC 2025
    - 15.1K bytes
    - Viewed (0)
  4. src/main/java/jcifs/http/NtlmHttpFilter.java

            p.setProperty("jcifs.netbios.cachePolicy", "1200");
            /*
             * The Filter can only work with NTLMv1 as it uses a man-in-the-middle
             * technique that NTLMv2 specifically thwarts. A real NTLM Filter would
             * need to do a NETLOGON RPC that JCIFS will likely never implement
             * because it requires a lot of extra crypto not used by CIFS.
             */
    Registered: Sat Dec 20 13:44:44 UTC 2025
    - Last Modified: Sat Aug 30 05:58:03 UTC 2025
    - 15.3K bytes
    - Viewed (0)
  5. src/test/java/jcifs/smb/SmbEnumerationUtilTest.java

            void doEnum_withEmptyHost_throwsUnsupportedWithoutNetwork() throws Exception {
                // Arrange: mock parent + locator so no real network is used
                SmbFile parent = mock(SmbFile.class, RETURNS_DEEP_STUBS);
                SmbResourceLocator locator = mock(SmbResourceLocator.class);
                when(parent.getLocator()).thenReturn(locator);
    Registered: Sat Dec 20 13:44:44 UTC 2025
    - Last Modified: Thu Aug 14 05:31:44 UTC 2025
    - 17.1K bytes
    - Viewed (0)
  6. src/test/java/jcifs/smb1/smb1/SmbTreeTest.java

        @Test
        void testSend() throws SmbException {
            SmbTree tree = new SmbTree(session, "testShare", "A:");
            tree.connectionState = 2; // Connected state
            tree.tid = 123;
    
            // Create real request and response objects since they're not interfaces
            ServerMessageBlock request = new SmbComOpenAndX("testfile.txt", 0x01, 0, null);
            ServerMessageBlock response = new SmbComOpenAndXResponse();
    
    Registered: Sat Dec 20 13:44:44 UTC 2025
    - Last Modified: Thu Aug 14 07:14:38 UTC 2025
    - 10.2K bytes
    - Viewed (0)
  7. src/test/java/jcifs/internal/smb1/net/NetServerEnum2Test.java

        private NetServerEnum2 netServerEnum2;
        private Configuration realConfig;
    
        @BeforeEach
        void setUp() throws Exception {
            MockitoAnnotations.openMocks(this);
            // Use real configuration for most tests
            realConfig = new BaseConfiguration(false);
            // Mock configuration setup
            when(mockConfig.getTransactionBufferSize()).thenReturn(65535);
        }
    
        @Test
    Registered: Sat Dec 20 13:44:44 UTC 2025
    - Last Modified: Thu Aug 14 05:31:44 UTC 2025
    - 19.7K bytes
    - Viewed (0)
  8. src/test/java/jcifs/smb/SmbTransportImplTest.java

            when(address.getHostAddress()).thenReturn("127.0.0.1");
            when(address.getHostName()).thenReturn("localhost");
    
            // Create the transport with safe defaults (no real sockets)
            transport = new SmbTransportImpl(ctx, address, 445, null, 0, false);
    
            // Reset MID to a known starting point for deterministic behavior
            setField(transport, "mid", new AtomicLong());
        }
    
    Registered: Sat Dec 20 13:44:44 UTC 2025
    - Last Modified: Thu Aug 14 05:31:44 UTC 2025
    - 17.6K bytes
    - Viewed (0)
  9. src/test/java/jcifs/smb1/smb1/SmbFileTest.java

                // This test focuses on the logic based on the URL structure.
                SmbFile file = new SmbFile("smb1://server/share/file.txt");
                // Without a real connection, getType relies on path parsing.
                // getUncPath0() will result in a path > 1, so it should be TYPE_FILESYSTEM
                assertEquals(SmbFile.TYPE_FILESYSTEM, file.getType());
            }
    
    Registered: Sat Dec 20 13:44:44 UTC 2025
    - Last Modified: Thu Aug 14 05:31:44 UTC 2025
    - 8.5K bytes
    - Viewed (0)
  10. src/test/java/jcifs/SmbWatchHandleTest.java

            verify(watchHandle, times(1)).call();
        }
    
        /**
         * Test call() method as Callable in executor service
         */
        @Test
        void testCallAsCallable() throws Exception {
            // Create a real implementation for testing Callable behavior
            SmbWatchHandle realHandle = new SmbWatchHandle() {
                private int callCount = 0;
    
                @Override
    Registered: Sat Dec 20 13:44:44 UTC 2025
    - Last Modified: Thu Aug 14 05:31:44 UTC 2025
    - 13.2K bytes
    - Viewed (1)
Back to top