Search Options

Results per page
Sort
Preferred Languages
Advance

Results 101 - 110 of 3,275 for Test (0.02 sec)

  1. src/test/java/jcifs/netbios/UniAddressTest.java

                assertFalse(UniAddress.isDotQuadIP(input));
            }
    
            @Test
            void shouldReturnTrueForInvalidOctetValues() {
                // isDotQuadIP does not validate octet values, only checks format
                assertTrue(UniAddress.isDotQuadIP("192.168.1.256"));
                assertTrue(UniAddress.isDotQuadIP("999.999.999.999"));
            }
    
            @Test
            void shouldThrowExceptionForNullInput() {
    Registered: Sun Sep 07 00:10:21 UTC 2025
    - Last Modified: Thu Aug 14 05:31:44 UTC 2025
    - 16.4K bytes
    - Viewed (0)
  2. src/test/java/jcifs/smb1/util/transport/TransportExceptionTest.java

        class GetRootCauseTests {
    
            @Test
            @DisplayName("Should return root cause when set")
            void testGetRootCause() {
                Exception rootCause = new IllegalStateException("Test root cause");
                TransportException exception = new TransportException("Message", rootCause);
    
                assertEquals(rootCause, exception.getRootCause());
            }
    
            @Test
    Registered: Sun Sep 07 00:10:21 UTC 2025
    - Last Modified: Thu Aug 14 05:31:44 UTC 2025
    - 11.5K bytes
    - Viewed (0)
  3. src/test/java/jcifs/SmbTreeHandleTest.java

        }
    
        /**
         * Test for getRemoteHostName() method.
         * Verifies that the method returns the correct remote host name.
         */
        @Test
        void testGetRemoteHostName() {
            when(smbTreeHandle.getRemoteHostName()).thenReturn("test-server");
            assertEquals("test-server", smbTreeHandle.getRemoteHostName(), "Remote host name should be test-server");
        }
    
        /**
    Registered: Sun Sep 07 00:10:21 UTC 2025
    - Last Modified: Thu Aug 14 05:31:44 UTC 2025
    - 7.1K bytes
    - Viewed (0)
  4. src/test/java/jcifs/internal/smb1/trans/nt/NtTransNotifyChangeResponseTest.java

        }
    
        @Test
        @DisplayName("Test constructor creates instance with empty notification list")
        void testConstructor() {
            assertNotNull(response);
            assertNotNull(response.getNotifyInformation());
            assertTrue(response.getNotifyInformation().isEmpty());
        }
    
        @Test
        @DisplayName("Test writeSetupWireFormat returns 0")
        void testWriteSetupWireFormat() {
    Registered: Sun Sep 07 00:10:21 UTC 2025
    - Last Modified: Thu Aug 14 05:31:44 UTC 2025
    - 14.7K bytes
    - Viewed (0)
  5. src/test/java/org/codelibs/fess/opensearch/client/CrawlerEngineClientTest.java

            crawlerEngineClient = null;
            super.tearDown();
        }
    
        // Test constructor
        public void test_constructor() {
            // Test that constructor creates a non-null instance
            assertNotNull(crawlerEngineClient);
        }
    
        // Test inheritance
        public void test_inheritance() {
            // Test that CrawlerEngineClient is properly inherited
    Registered: Thu Sep 04 12:52:25 UTC 2025
    - Last Modified: Tue Aug 19 14:09:36 UTC 2025
    - 4.7K bytes
    - Viewed (0)
  6. src/test/java/jcifs/tests/persistent/HandleInfoTest.java

                testFileId[i] = (byte) (i + 1);
            }
            testLeaseKey = new Smb2LeaseKey();
        }
    
        @Test
        public void testHandleInfoCreation() {
            HandleInfo info = new HandleInfo("/test/file.txt", testGuid, testFileId, HandleType.DURABLE_V2, 120000, testLeaseKey);
    
            assertEquals("/test/file.txt", info.getPath());
            assertEquals(testGuid, info.getCreateGuid());
    Registered: Sun Sep 07 00:10:21 UTC 2025
    - Last Modified: Thu Aug 21 04:51:33 UTC 2025
    - 4.6K bytes
    - Viewed (0)
  7. src/test/java/jcifs/internal/smb1/trans/TransTransactNamedPipeResponseTest.java

            }
        }
    
        @Test
        void testWriteSetupWireFormat() {
            // Test that writeSetupWireFormat returns 0
            byte[] dst = new byte[100];
            int result = response.writeSetupWireFormat(dst, 10);
            assertEquals(0, result);
        }
    
        @Test
        void testWriteParametersWireFormat() {
            // Test that writeParametersWireFormat returns 0
    Registered: Sun Sep 07 00:10:21 UTC 2025
    - Last Modified: Thu Aug 14 05:31:44 UTC 2025
    - 9.5K bytes
    - Viewed (0)
  8. src/test/java/jcifs/internal/smb1/trans/TransPeekNamedPipeResponseTest.java

            });
        }
    
        @Test
        @DisplayName("Test inherited behavior from parent class")
        void testInheritedBehavior() {
            // Test that response inherits from SmbComTransactionResponse
            assertTrue(response.hasMoreElements());
            assertNotNull(response.nextElement());
    
            // Test reset behavior
            response.reset();
    Registered: Sun Sep 07 00:10:21 UTC 2025
    - Last Modified: Thu Aug 14 05:31:44 UTC 2025
    - 15.8K bytes
    - Viewed (0)
  9. src/test/java/jcifs/ConfigTest.java

            testProperties.setProperty("test.bool.false", "false");
            testProperties.setProperty("test.host", "localhost");
            testProperties.setProperty("test.invalid.int", "abc");
        }
    
        @Test
        @DisplayName("Should get integer property with default value")
        void testGetIntWithDefault() {
            assertEquals(123, Config.getInt(testProperties, "test.int", 0));
    Registered: Sun Sep 07 00:10:21 UTC 2025
    - Last Modified: Thu Aug 14 05:31:44 UTC 2025
    - 3.6K bytes
    - Viewed (0)
  10. src/test/java/jcifs/smb1/smb1/SmbComQueryInformationResponseTest.java

        }
    
        /**
         * Test of getAttributes method, of class SmbComQueryInformationResponse.
         */
        @Test
        public void testGetAttributes() {
            // Initially, attributes should be 0.
            assertEquals(0, response.getAttributes());
        }
    
        /**
         * Test of getCreateTime method, of class SmbComQueryInformationResponse.
         */
        @Test
        public void testGetCreateTime() {
    Registered: Sun Sep 07 00:10:21 UTC 2025
    - Last Modified: Thu Aug 14 05:31:44 UTC 2025
    - 5.5K bytes
    - Viewed (0)
Back to top