Search Options

Results per page
Sort
Preferred Languages
Advance

Results 51 - 60 of 66 for testCase (0.65 sec)

  1. src/test/java/jcifs/internal/smb2/create/CreateContextRequestTest.java

            private TestCreateContextRequest testRequest;
            private byte[] testName;
            private byte[] testBuffer;
    
            @BeforeEach
            void setUp() {
                testName = "CREATE_REQUEST_TEST".getBytes(StandardCharsets.UTF_8);
                testRequest = new TestCreateContextRequest(testName);
                testBuffer = new byte[256];
            }
    
            @Test
    Registered: Sat Dec 20 13:44:44 UTC 2025
    - Last Modified: Thu Aug 14 05:31:44 UTC 2025
    - 24.9K bytes
    - Viewed (0)
  2. fess-crawler/src/test/java/org/codelibs/fess/crawler/client/ftp/FtpClientTest.java

            return server;
        }
    
        public void test_doGet_root_dir() throws FtpException {
            FtpServer server = null;
            try {
                String username = "testuser";
                String password = "testpass";
                server = startFtpServer(FTP_PORT, username, password);
                Map<String, Object> params = new HashMap<String, Object>();
                FtpAuthentication auth = new FtpAuthentication();
    Registered: Sat Dec 20 11:21:39 UTC 2025
    - Last Modified: Mon Nov 24 03:59:47 UTC 2025
    - 21.5K bytes
    - Viewed (0)
  3. src/test/java/jcifs/internal/smb2/create/CreateContextResponseTest.java

            private TestCreateContextResponse testResponse;
            private byte[] testName;
            private byte[] testBuffer;
    
            @BeforeEach
            void setUp() {
                testName = "CREATE_CONTEXT_TEST".getBytes(StandardCharsets.UTF_8);
                testResponse = new TestCreateContextResponse(testName);
                testBuffer = new byte[256];
                Arrays.fill(testBuffer, (byte) 0x42);
            }
    Registered: Sat Dec 20 13:44:44 UTC 2025
    - Last Modified: Thu Aug 14 05:31:44 UTC 2025
    - 16.2K bytes
    - Viewed (0)
  4. src/test/java/jcifs/netbios/NodeStatusRequestTest.java

            assertEquals(originalHexCode, mockName.hexCode);
        }
    
        @Test
        void writeBodyWireFormat_withRealName_shouldWriteCorrectly() {
            // Arrange
            Name realName = new Name(mockConfig, "TESTNAME", 0x20, "test.scope");
            nodeStatusRequest = new NodeStatusRequest(mockConfig, realName);
            byte[] dst = new byte[200];
    
            // Act
            int result = nodeStatusRequest.writeBodyWireFormat(dst, 10);
    Registered: Sat Dec 20 13:44:44 UTC 2025
    - Last Modified: Thu Aug 14 05:31:44 UTC 2025
    - 13.9K bytes
    - Viewed (0)
  5. src/test/java/jcifs/config/PropertyConfigurationTest.java

            Properties props = new Properties();
            // Set some default test properties
            props.setProperty("jcifs.smb.client.username", "testuser");
            props.setProperty("jcifs.smb.client.password", "testpass");
            props.setProperty("jcifs.smb.client.domain", "testdomain");
            props.setProperty("jcifs.netbios.hostname", "testhost");
            props.setProperty("jcifs.netbios.scope", "");
    Registered: Sat Dec 20 13:44:44 UTC 2025
    - Last Modified: Thu Aug 14 05:31:44 UTC 2025
    - 11.3K bytes
    - Viewed (0)
  6. src/test/java/jcifs/smb1/smb1/SmbComSessionSetupAndXTest.java

            // Configure authentication - set fields directly since NtlmPasswordAuthentication is final
            mockAuth.username = "testuser";
            mockAuth.domain = "TESTDOMAIN";
            mockAuth.password = "testpass";
    
            when(mockAuth.getAnsiHash(any(byte[].class))).thenReturn(new byte[24]);
            when(mockAuth.getUnicodeHash(any(byte[].class))).thenReturn(new byte[24]);
            when(mockAuth.getName()).thenReturn("testuser");
    Registered: Sat Dec 20 13:44:44 UTC 2025
    - Last Modified: Thu Aug 14 05:31:44 UTC 2025
    - 4.5K bytes
    - Viewed (0)
  7. src/test/java/jcifs/internal/smb2/ioctl/SrvCopychunkCopyTest.java

                Arrays.fill(sourceKey, (byte) 0x55);
    
                SrvCopychunk[] testCases = { new SrvCopychunk(1, 2, 3), new SrvCopychunk(4, 5, 6), new SrvCopychunk(7, 8, 9),
                        new SrvCopychunk(10, 11, 12), new SrvCopychunk(13, 14, 15) };
    
                for (int numChunks = 0; numChunks <= testCases.length; numChunks++) {
                    // Create copy with varying number of chunks
    Registered: Sat Dec 20 13:44:44 UTC 2025
    - Last Modified: Thu Aug 14 05:31:44 UTC 2025
    - 23.1K bytes
    - Viewed (0)
  8. fess-crawler/src/test/java/org/codelibs/fess/crawler/client/ftp/FtpAuthenticationTest.java

            FtpAuthentication auth = new FtpAuthentication();
            auth.setServer("hostname");
            auth.setPort(21);
            auth.setUsername("testuser");
            auth.setPassword("testpass");
    
            assertTrue(auth.matches("ftp://hostname:21/test/aaa.html"));
            assertTrue(auth.matches("ftp://hostname/test/aaa.html"));
            assertTrue(auth.matches("ftp://hostname:21/test"));
    Registered: Sat Dec 20 11:21:39 UTC 2025
    - Last Modified: Sat Mar 15 06:52:00 UTC 2025
    - 3.8K bytes
    - Viewed (0)
  9. src/test/java/jcifs/smb1/smb1/SmbSessionTest.java

        @BeforeEach
        void setUp() throws Exception {
            // Create a real NtlmPasswordAuthentication instance
            auth = new NtlmPasswordAuthentication("TESTDOMAIN", "testuser", "testpass");
    
            // Initialize ServerData to avoid NullPointerException
            SmbTransport.ServerData serverData = transport.new ServerData();
            serverData.security = 0; // Set to 0 or appropriate value for SECURITY_SHARE
    Registered: Sat Dec 20 13:44:44 UTC 2025
    - Last Modified: Thu Aug 14 05:31:44 UTC 2025
    - 5.6K bytes
    - Viewed (0)
  10. src/test/java/jcifs/internal/smb1/net/NetServerEnum2ResponseTest.java

        void testServerInfo1GetName() throws Exception {
            NetServerEnum2Response.ServerInfo1 server = response.new ServerInfo1();
            String testName = "TESTSERVER";
            server.name = testName;
            assertEquals(testName, server.getName());
        }
    
        @Test
        @DisplayName("Test ServerInfo1 getAttributes")
        void testServerInfo1GetAttributes() throws Exception {
    Registered: Sat Dec 20 13:44:44 UTC 2025
    - Last Modified: Thu Aug 14 05:31:44 UTC 2025
    - 25.4K bytes
    - Viewed (0)
Back to top