Search Options

Display Count
Sort
Preferred Language
Advanced Search

Results 31 - 40 of 2,160 for toString (0.17 seconds)

  1. src/test/java/jcifs/smb1/smb1/DfsReferralTest.java

                    "The 'next' property of the appended referral should point back to the initial referral, closing the loop.");
        }
    
        /**
         * Tests the toString method of the DfsReferral class.
         * It verifies that the toString method returns a string representation of the object
         * that accurately reflects its properties.
         */
        @Test
        void testToString() {
            // Given
    Created: Sun Apr 05 00:10:12 GMT 2026
    - Last Modified: Thu Aug 14 05:31:44 GMT 2025
    - 2.8K bytes
    - Click Count (0)
  2. src/test/java/org/codelibs/fess/util/PrunedTagTest.java

            PrunedTag tag = tags[0];
            assertEquals("div", tag.toString().split(", ")[0].split("=")[1]);
            assertTrue(tag.toString().contains("id=main-modal"));
            assertTrue(tag.toString().contains("css=modal"));
            assertTrue(tag.toString().contains("attrName=data-toggle"));
            assertTrue(tag.toString().contains("attrValue=modal"));
    
            // Test multiple tags with different combinations
    Created: Tue Mar 31 13:07:34 GMT 2026
    - Last Modified: Fri Mar 13 23:01:26 GMT 2026
    - 21.1K bytes
    - Click Count (0)
  3. android/guava-tests/test/com/google/common/net/HostAndPortTest.java

        assertThat(HostAndPort.fromString("foo:101").toString()).isEqualTo("foo:101");
        assertThat(HostAndPort.fromString(":102").toString()).isEqualTo(":102");
        assertThat(HostAndPort.fromParts("1::2", 103).toString()).isEqualTo("[1::2]:103");
        assertThat(HostAndPort.fromString("[::1]:104").toString()).isEqualTo("[::1]:104");
    
        // Without ports.
        assertThat(HostAndPort.fromString("foo").toString()).isEqualTo("foo");
    Created: Fri Apr 03 12:43:13 GMT 2026
    - Last Modified: Mon Mar 16 15:59:55 GMT 2026
    - 9.7K bytes
    - Click Count (0)
  4. guava-tests/test/com/google/common/net/HostAndPortTest.java

        assertThat(HostAndPort.fromString("foo:101").toString()).isEqualTo("foo:101");
        assertThat(HostAndPort.fromString(":102").toString()).isEqualTo(":102");
        assertThat(HostAndPort.fromParts("1::2", 103).toString()).isEqualTo("[1::2]:103");
        assertThat(HostAndPort.fromString("[::1]:104").toString()).isEqualTo("[::1]:104");
    
        // Without ports.
        assertThat(HostAndPort.fromString("foo").toString()).isEqualTo("foo");
    Created: Fri Apr 03 12:43:13 GMT 2026
    - Last Modified: Mon Mar 16 15:59:55 GMT 2026
    - 10K bytes
    - Click Count (0)
  5. src/test/java/jcifs/smb/SMBProtocolDowngradeExceptionTest.java

            assertNull(ex.getCause());
    
            // Assert - toString starts with class name and contains message when present
            if (message == null) {
                assertEquals(SMBProtocolDowngradeException.class.getName(), ex.toString());
            } else if (message.isEmpty()) {
                // Throwable.toString prints class + ": " (with space) even for empty string
    Created: Sun Apr 05 00:10:12 GMT 2026
    - Last Modified: Thu Aug 14 05:31:44 GMT 2025
    - 5.4K bytes
    - Click Count (0)
  6. android/guava-tests/test/com/google/common/hash/HashCodeTest.java

        HashCode hash2 = HashCode.fromString(hash1.toString());
        assertEquals(hash1, hash2);
      }
    
      public void testRoundTrip() {
        for (ExpectedHashCode expected : expectedHashCodes) {
          String string = HashCode.fromBytes(expected.bytes).toString();
          assertThat(string).isEqualTo(expected.toString);
          assertThat(HashCode.fromBytes(BaseEncoding.base16().lowerCase().decode(string)).toString())
              .isEqualTo(expected.toString);
    Created: Fri Apr 03 12:43:13 GMT 2026
    - Last Modified: Thu Mar 19 18:53:45 GMT 2026
    - 13.2K bytes
    - Click Count (0)
  7. src/test/java/jcifs/smb1/smb1/NetShareEnumResponseTest.java

            String resultString = response.toString();
            assertTrue(resultString.contains("status=0"), "toString should contain the status.");
            assertTrue(resultString.contains("converter=13330"), "toString should contain the converter.");
            assertTrue(resultString.contains("entriesReturned=2"), "toString should contain the number of entries.");
    Created: Sun Apr 05 00:10:12 GMT 2026
    - Last Modified: Thu Aug 14 05:31:44 GMT 2025
    - 5.4K bytes
    - Click Count (0)
  8. src/test/java/jcifs/netbios/NameQueryResponseTest.java

            // The toString method appends to super.toString(). We'll check the appended part.
            String expectedEnd = ",addrEntry=]";
            String actual = nameQueryResponse.toString();
            assertTrue(actual.endsWith(expectedEnd), "toString should end with ',addrEntry=]' when addrEntry is null");
            assertTrue(actual.startsWith("NameQueryResponse["), "toString should start with expected prefix");
        }
    
    Created: Sun Apr 05 00:10:12 GMT 2026
    - Last Modified: Thu Aug 14 05:31:44 GMT 2025
    - 14.4K bytes
    - Click Count (0)
  9. src/test/java/jcifs/smb1/smb1/Trans2FindNext2Test.java

            // When
            String s = next.toString();
    
            // Then
            assertTrue(s.startsWith("Trans2FindNext2["), "toString should start with class name");
            assertTrue(s.contains(",sid=" + sid), "toString should include sid in decimal");
            assertTrue(s.contains(",searchCount=" + Trans2FindFirst2.LIST_SIZE), "toString should include searchCount using LIST_SIZE");
    Created: Sun Apr 05 00:10:12 GMT 2026
    - Last Modified: Thu Aug 14 05:31:44 GMT 2025
    - 6.9K bytes
    - Click Count (0)
  10. guava-testlib/src/com/google/common/collect/testing/google/MultimapToStringTester.java

      public void testToStringEmpty() {
        assertEquals("{}", multimap().toString());
      }
    
      @CollectionSize.Require(ONE)
      @CollectionFeature.Require(absent = NON_STANDARD_TOSTRING)
      public void testToStringSingleton() {
        assertEquals("{" + k0() + "=[" + v0() + "]}", multimap().toString());
      }
    
      @CollectionSize.Require(absent = ZERO)
      @CollectionFeature.Require(absent = NON_STANDARD_TOSTRING)
    Created: Fri Apr 03 12:43:13 GMT 2026
    - Last Modified: Thu Nov 14 23:40:07 GMT 2024
    - 2.8K bytes
    - Click Count (0)
Back to Top