Search Options

Results per page
Sort
Preferred Languages
Advance

Results 51 - 60 of 1,541 for docstring (0.12 sec)

  1. src/test/java/jcifs/dcerpc/UUIDTest.java

                UUID uuid = new UUID(rpcUuid);
    
                // Act
                String result = uuid.toString();
    
                // Assert
                assertEquals(VALID_UUID_STRING, result.toUpperCase(), "toString() should return the correct UUID string in uppercase");
            }
    
            @Test
            @DisplayName("toString() should work correctly for UUID created from string")
            void testToStringFromConstructorWithString() {
    Registered: Sun Sep 07 00:10:21 UTC 2025
    - Last Modified: Thu Aug 14 05:31:44 UTC 2025
    - 13.2K bytes
    - Viewed (0)
  2. guava-tests/test/com/google/common/hash/MacHashFunctionTest.java

        assertEquals(knownOutput, HashCode.fromBytes(mac.doFinal()).toString());
        assertEquals(knownOutput, HashCode.fromBytes(mac.doFinal(input.getBytes(UTF_8))).toString());
        assertEquals(knownOutput, Hashing.hmacMd5(MD5_KEY).hashString(input, UTF_8).toString());
        assertEquals(knownOutput, Hashing.hmacMd5(MD5_KEY).hashBytes(input.getBytes(UTF_8)).toString());
      }
    
      public void testKnownInputs_mixedAlgorithms() throws Exception {
    Registered: Fri Sep 05 12:43:10 UTC 2025
    - Last Modified: Fri Dec 27 16:19:35 UTC 2024
    - 13.8K bytes
    - Viewed (0)
  3. android/guava-tests/test/com/google/common/hash/HashingTest.java

            .testEquals();
    
        assertEquals(hashFunction1a.toString(), hashFunction1b.toString());
        assertEquals(hashFunction2a.toString(), hashFunction2b.toString());
        assertEquals(hashFunction3a.toString(), hashFunction3b.toString());
        assertEquals(hashFunction4a.toString(), hashFunction4b.toString());
      }
    
      static void assertSeedlessHashFunctionEquals(Class<?> clazz) throws Exception {
    Registered: Fri Sep 05 12:43:10 UTC 2025
    - Last Modified: Tue May 13 17:27:14 UTC 2025
    - 26.4K bytes
    - Viewed (0)
  4. src/test/java/jcifs/internal/SMBProtocolDecodingExceptionTest.java

            // toString should include the class name and (if non-null) the message
            String ts = ex.toString();
            assertTrue(ts.contains("SMBProtocolDecodingException"), "toString should include class name");
            if (message != null && !message.isEmpty()) {
                assertTrue(ts.contains(message), "toString should include non-empty message");
            }
        }
    
        @Test
    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/smb/SecurityBlobTest.java

                    Arguments.of(new byte[] { (byte) 0x7F, (byte) 0x80, (byte) 0xFF }, "7f80ff"));
        }
    
        // Verifies that toString() formats bytes as lower-case hex with zero-padding
        @ParameterizedTest(name = "toString renders hex for {0}")
        @MethodSource("hexCases")
        @DisplayName("toString() renders lower-case hex with zero-padding")
        void toString_rendersHex(byte[] input, String expected) {
            // Arrange
    Registered: Sun Sep 07 00:10:21 UTC 2025
    - Last Modified: Thu Aug 14 05:31:44 UTC 2025
    - 9.4K bytes
    - Viewed (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();
          assertEquals(expected.toString, string);
          assertEquals(
              expected.toString,
    Registered: Fri Sep 05 12:43:10 UTC 2025
    - Last Modified: Sun Dec 22 03:38:46 UTC 2024
    - 13.1K bytes
    - Viewed (0)
  7. src/test/java/jcifs/dcerpc/DcerpcBindingTest.java

            assertTrue(result.startsWith(PROTO + ":" + SERVER + "[null,"), "toString should start correctly.");
            assertTrue(result.contains("connect=80"), "toString should contain connect option.");
            assertTrue(result.contains("bind=123"), "toString should contain bind option.");
        }
    
        @Test
        void testToStringWithEndpointAndOptions() throws DcerpcException {
            String endpoint = "\\pipe\\srvsvc";
    Registered: Sun Sep 07 00:10:21 UTC 2025
    - Last Modified: Thu Aug 14 05:31:44 UTC 2025
    - 8.5K bytes
    - Viewed (0)
  8. src/test/java/jcifs/smb1/smb1/Trans2QueryFSInformationResponseTest.java

            String infoString = info.toString();
            assertTrue(infoString.contains("alloc=1000"), "toString should contain alloc");
            assertTrue(infoString.contains("free=500"), "toString should contain free");
            assertTrue(infoString.contains("sectPerAlloc=100"), "toString should contain sectPerAlloc");
            assertTrue(infoString.contains("bytesPerSect=512"), "toString should contain bytesPerSect");
        }
    
    Registered: Sun Sep 07 00:10:21 UTC 2025
    - Last Modified: Thu Aug 14 05:31:44 UTC 2025
    - 8.6K bytes
    - Viewed (0)
  9. 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
    Registered: Thu Sep 04 12:52:25 UTC 2025
    - Last Modified: Sat Jul 12 07:34:10 UTC 2025
    - 21K bytes
    - Viewed (0)
  10. guava/src/com/google/common/hash/ChecksumHashFunction.java

      private final int bits;
      private final String toString;
    
      ChecksumHashFunction(
          ImmutableSupplier<? extends Checksum> checksumSupplier, int bits, String toString) {
        this.checksumSupplier = checkNotNull(checksumSupplier);
        checkArgument(bits == 32 || bits == 64, "bits (%s) must be either 32 or 64", bits);
        this.bits = bits;
        this.toString = checkNotNull(toString);
      }
    
      @Override
      public int bits() {
    Registered: Fri Sep 05 12:43:10 UTC 2025
    - Last Modified: Thu Feb 13 17:34:21 UTC 2025
    - 4.4K bytes
    - Viewed (0)
Back to top