Search Options

Results per page
Sort
Preferred Languages
Advance

Results 151 - 160 of 1,360 for assertEquals (0.46 sec)

  1. guava-tests/test/com/google/common/net/HostAndPortTest.java

      public void testToString() {
        // With ports.
        assertEquals("foo:101", "" + HostAndPort.fromString("foo:101"));
        assertEquals(":102", HostAndPort.fromString(":102").toString());
        assertEquals("[1::2]:103", HostAndPort.fromParts("1::2", 103).toString());
        assertEquals("[::1]:104", HostAndPort.fromString("[::1]:104").toString());
    
        // Without ports.
        assertEquals("foo", "" + HostAndPort.fromString("foo"));
    Registered: Fri Dec 26 12:43:10 UTC 2025
    - Last Modified: Tue Oct 28 16:03:47 UTC 2025
    - 9.9K bytes
    - Viewed (0)
  2. android/guava-tests/test/com/google/common/net/HostAndPortTest.java

      public void testToString() {
        // With ports.
        assertEquals("foo:101", "" + HostAndPort.fromString("foo:101"));
        assertEquals(":102", HostAndPort.fromString(":102").toString());
        assertEquals("[1::2]:103", HostAndPort.fromParts("1::2", 103).toString());
        assertEquals("[::1]:104", HostAndPort.fromString("[::1]:104").toString());
    
        // Without ports.
        assertEquals("foo", "" + HostAndPort.fromString("foo"));
    Registered: Fri Dec 26 12:43:10 UTC 2025
    - Last Modified: Tue Oct 28 16:03:47 UTC 2025
    - 9.5K bytes
    - Viewed (0)
  3. src/test/java/jcifs/internal/fscc/FileStandardInfoTest.java

            // Verify
            assertEquals(22, bytesEncoded);
    
            // Verify encoded data
            assertEquals(expectedAllocationSize, SMBUtil.readInt8(destinationBuffer, dstIndex));
            assertEquals(expectedEndOfFile, SMBUtil.readInt8(destinationBuffer, dstIndex + 8));
            assertEquals(expectedNumberOfLinks, SMBUtil.readInt4(destinationBuffer, dstIndex + 16));
    Registered: Sat Dec 20 13:44:44 UTC 2025
    - Last Modified: Thu Aug 14 05:31:44 UTC 2025
    - 13.1K bytes
    - Viewed (0)
  4. src/test/java/jcifs/internal/witness/WitnessNotificationTest.java

            assertEquals(2, newAddresses.size());
            assertEquals(1, oldAddresses.size());
    
            // Check IPv4 address
            WitnessNotification.WitnessIPAddress newIPv4 = newAddresses.get(0);
            assertEquals(ipv4, newIPv4.getAddress());
            assertTrue(newIPv4.isIPv4());
            assertFalse(newIPv4.isIPv6());
            assertEquals(WitnessNotification.WitnessIPAddress.IPV4, newIPv4.getFlags());
    Registered: Sat Dec 20 13:44:44 UTC 2025
    - Last Modified: Sat Aug 23 09:06:40 UTC 2025
    - 5K bytes
    - Viewed (0)
  5. android/guava-tests/test/com/google/common/reflect/TypesTest.java

        assertEquals(jvmType.toString(), ourType.toString());
        assertEquals(jvmType.hashCode(), ourType.hashCode());
        assertEquals(HashMap.class, ourType.getRawType());
        assertThat(ourType.getActualTypeArguments())
            .asList()
            .containsExactlyElementsIn(asList(jvmType.getActualTypeArguments()))
            .inOrder();
        assertEquals(
    Registered: Fri Dec 26 12:43:10 UTC 2025
    - Last Modified: Tue Feb 11 19:03:19 UTC 2025
    - 15.4K bytes
    - Viewed (0)
  6. src/test/java/jcifs/internal/SmbNegotiationTest.java

            assertSame(emptyRequestBuffer, negotiationWithEmptyBuffers.getRequestRaw());
            assertSame(emptyResponseBuffer, negotiationWithEmptyBuffers.getResponseRaw());
            assertEquals(0, negotiationWithEmptyBuffers.getRequestRaw().length);
            assertEquals(0, negotiationWithEmptyBuffers.getResponseRaw().length);
        }
    
        @Test
        @DisplayName("Test with large buffers")
        void testWithLargeBuffers() {
    Registered: Sat Dec 20 13:44:44 UTC 2025
    - Last Modified: Thu Aug 14 05:31:44 UTC 2025
    - 10.9K bytes
    - Viewed (0)
  7. src/test/java/jcifs/internal/smb2/nego/Smb2NegotiateRequestTest.java

            // Then
            int[] dialects = request.getDialects();
            assertNotNull(dialects);
            assertEquals(4, dialects.length); // SMB210, SMB300, SMB302, SMB311
            assertEquals(0x0210, dialects[0]);
            assertEquals(0x0300, dialects[1]);
            assertEquals(0x0302, dialects[2]);
            assertEquals(0x0311, dialects[3]);
        }
    
        @Test
        @DisplayName("Should set client GUID for SMB2.1+")
    Registered: Sat Dec 20 13:44:44 UTC 2025
    - Last Modified: Thu Aug 14 05:31:44 UTC 2025
    - 20.7K bytes
    - Viewed (0)
  8. src/test/java/jcifs/dcerpc/msrpc/lsarpcIntegrationTest.java

            assertEquals(domainInfo.name.length, decodedInfo.name.length);
            assertEquals(domainInfo.name.maximum_length, decodedInfo.name.maximum_length);
            assertNotNull(decodedInfo.name.buffer);
            assertEquals(domainInfo.name.maximum_length / 2, decodedInfo.name.buffer.length);
    
            // Verify SID
            assertNotNull(decodedInfo.sid);
    Registered: Sat Dec 20 13:44:44 UTC 2025
    - Last Modified: Thu Aug 14 05:31:44 UTC 2025
    - 10.8K bytes
    - Viewed (0)
  9. src/test/java/jcifs/dcerpc/msrpc/MsrpcQueryInformationPolicyTest.java

            // Act
            queryPolicy = new MsrpcQueryInformationPolicy(mockPolicyHandle, level, mockNdrObject);
    
            // Assert
            assertNotNull(queryPolicy);
            assertEquals(0, queryPolicy.getPtype());
            assertEquals(DcerpcConstants.DCERPC_FIRST_FRAG | DcerpcConstants.DCERPC_LAST_FRAG, queryPolicy.getFlags());
        }
    
        @Test
        void constructor_shouldSetHandleCorrectly() {
            // Arrange
    Registered: Sat Dec 20 13:44:44 UTC 2025
    - Last Modified: Thu Aug 14 05:31:44 UTC 2025
    - 6.6K bytes
    - Viewed (0)
  10. fess-crawler/src/test/java/org/codelibs/fess/crawler/rule/RuleManagerTest.java

            ruleManager.addRule(rule4);
    
            List<Rule> rules = ruleManager.getRules();
            assertEquals(4, rules.size());
            assertEquals("rule1", rules.get(0).getRuleId());
            assertEquals("rule2", rules.get(1).getRuleId());
            assertEquals("rule3", rules.get(2).getRuleId());
            assertEquals("rule4", rules.get(3).getRuleId());
        }
    
        /**
         * Test adding duplicate rules
         */
    Registered: Sat Dec 20 11:21:39 UTC 2025
    - Last Modified: Sat Sep 06 04:15:37 UTC 2025
    - 23.8K bytes
    - Viewed (0)
Back to top