Search Options

Results per page
Sort
Preferred Languages
Advance

Results 101 - 110 of 3,508 for should (0.04 sec)

  1. src/test/java/jcifs/ntlmssp/NtlmMessageTest.java

            assertFalse(message.getFlag(0b0001), "Flag 0b0001 should not be set.");
    
            message.setFlags(0); // No flags set
            assertFalse(message.getFlag(0b1000), "No flags should be set.");
        }
    
        @Test
        void testSetFlag() {
            // Test setting a flag
            message.setFlags(0);
            message.setFlag(0b0001, true);
            assertEquals(0b0001, message.getFlags(), "Flag 0b0001 should be set.");
    
    Registered: Sun Sep 07 00:10:21 UTC 2025
    - Last Modified: Thu Aug 14 05:31:44 UTC 2025
    - 12.5K bytes
    - Viewed (0)
  2. src/test/java/jcifs/netbios/NameServiceClientImplTest.java

        }
    
        @Test
        @DisplayName("Should get local host name")
        void testGetLocalName() {
            // When
            NetbiosName localName = nameServiceClient.getLocalName();
    
            // Then
            assertNotNull(localName, "Local name should not be null");
            assertTrue(localName.getName().length() > 0, "Local name should not be empty");
        }
    
        @Test
        @DisplayName("Should get unknown name")
    Registered: Sun Sep 07 00:10:21 UTC 2025
    - Last Modified: Sat Aug 30 05:58:03 UTC 2025
    - 11K bytes
    - Viewed (0)
  3. src/test/java/jcifs/EmptyIteratorTest.java

        void testHasNextAlwaysReturnsFalse() {
            // When & Then
            assertFalse(emptyIterator.hasNext(), "hasNext should return false");
            assertFalse(emptyIterator.hasNext(), "hasNext should consistently return false");
            assertFalse(emptyIterator.hasNext(), "hasNext should always return false on repeated calls");
        }
    
        @Test
        @DisplayName("next should return null")
    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/smb1/dcerpc/ndr/NdrShortTest.java

            NdrShort ns = new NdrShort(original);
            buf.reset();
            ns.encode(buf); // should not throw
    
            // After encoding, check how many bytes were used
            int bytesUsed = buf.getIndex();
            // Should be 2 bytes for the short value (alignment may add padding)
            assertTrue(bytesUsed >= 2, "Should use at least 2 bytes for short");
    
            // Reset index to read back
            buf.reset();
    Registered: Sun Sep 07 00:10:21 UTC 2025
    - Last Modified: Thu Aug 14 05:31:44 UTC 2025
    - 5.1K bytes
    - Viewed (0)
  5. src/test/java/jcifs/smb1/UniAddressTest.java

            assertEquals("NEXT", next, "nextCalledName should delegate to NbtAddress when called");
        }
    
        @Test
        void nextCalledNameWithInetAddressReturnsSMBSERVERFirstIfNotDefault() {
            // Arrange
            InetAddress addr = mock(InetAddress.class);
            when(addr.getHostName()).thenReturn("mycomputer.foo.com");
            UniAddress ua = new UniAddress(addr);
            // Act: first call should set to SMBSERVER_NAME
    Registered: Sun Sep 07 00:10:21 UTC 2025
    - Last Modified: Thu Aug 14 05:31:44 UTC 2025
    - 7.9K bytes
    - Viewed (0)
  6. src/test/java/jcifs/internal/smb1/trans/TransWaitNamedPipeResponseTest.java

        }
    
        @Test
        @DisplayName("Constructor should initialize TransWaitNamedPipeResponse")
        void testConstructor() {
            // Assert
            assertNotNull(response);
            // Verify parent class is properly initialized
            assertTrue(response instanceof SmbComTransactionResponse);
        }
    
        @Test
        @DisplayName("writeSetupWireFormat should return 0")
        void testWriteSetupWireFormat() {
            // Arrange
    Registered: Sun Sep 07 00:10:21 UTC 2025
    - Last Modified: Thu Aug 14 05:31:44 UTC 2025
    - 14.1K bytes
    - Viewed (0)
  7. src/test/java/org/codelibs/fess/helper/ThemeHelperTest.java

            try {
                Artifact artifact = new Artifact("fess-theme-test", "1.0.0");
                themeHelper.getJarFile(artifact);
                fail("Should throw ThemeException");
            } catch (Exception e) {
                // Should throw ThemeException or other exception related to file not found
                assertTrue(e.getMessage().contains("does not exist") || e instanceof ThemeException);
            }
        }
    
    Registered: Thu Sep 04 12:52:25 UTC 2025
    - Last Modified: Sat Jul 19 23:49:30 UTC 2025
    - 14.5K bytes
    - Viewed (0)
  8. src/test/java/jcifs/ACETest.java

                assertEquals(0x00000008, ACE.FILE_READ_EA, "FILE_READ_EA should be 0x00000008");
                assertEquals(0x00000010, ACE.FILE_WRITE_EA, "FILE_WRITE_EA should be 0x00000010");
                assertEquals(0x00000020, ACE.FILE_EXECUTE, "FILE_EXECUTE should be 0x00000020");
                assertEquals(0x00000040, ACE.FILE_DELETE, "FILE_DELETE should be 0x00000040");
    Registered: Sun Sep 07 00:10:21 UTC 2025
    - Last Modified: Thu Aug 14 05:31:44 UTC 2025
    - 24.4K bytes
    - Viewed (0)
  9. src/test/java/jcifs/audit/SecurityAuditLoggerTest.java

            assertEquals(Long.valueOf(1), stats.get(EventType.AUTHENTICATION_SUCCESS), "Should have 1 authentication success event");
            assertEquals(Long.valueOf(1), stats.get(EventType.AUTHENTICATION_FAILURE), "Should have 1 authentication failure event");
            assertEquals(Long.valueOf(1), stats.get(EventType.FILE_ACCESS), "Should have 1 file access event");
        }
    
        @Test
        @DisplayName("Test reset statistics")
    Registered: Sun Sep 07 00:10:21 UTC 2025
    - Last Modified: Sat Aug 30 05:58:03 UTC 2025
    - 8.6K bytes
    - Viewed (0)
  10. src/test/java/jcifs/config/DelegatingConfigurationTest.java

            // Then
            assertTrue(smb2Only, "Should delegate SMB2 only negotiation");
            assertFalse(secureNegotiate, "Should delegate secure negotiate requirement");
            assertTrue(ntlmTargetName, "Should delegate NTLM target name setting");
            assertFalse(port139Failover, "Should delegate port 139 failover setting");
            assertTrue(dfsStrictView, "Should delegate DFS strict view setting");
    
    Registered: Sun Sep 07 00:10:21 UTC 2025
    - Last Modified: Thu Aug 14 05:31:44 UTC 2025
    - 20.7K bytes
    - Viewed (0)
Back to top