Search Options

Results per page
Sort
Preferred Languages
Advance

Results 1 - 3 of 3 for TestRoundTrip (0.11 sec)

  1. guava-tests/test/com/google/common/hash/HashCodeTest.java

        HashCode hash1 = Hashing.sha1().hashString("foo", US_ASCII);
        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(
    Registered: Fri Nov 01 12:43:10 UTC 2024
    - Last Modified: Mon Oct 21 14:28:19 UTC 2024
    - 13.1K bytes
    - Viewed (0)
  2. compat/maven-repository-metadata/src/test/java/org/apache/maven/artifact/repository/metadata/MetadataTest.java

            assertEquals(2, target.getVersioning().getSnapshot().getBuildNumber());
        }
        /*-- END test "groupId/artifactId/version" metadata ---*/
    
        @Test
        void testRoundtrip() throws Exception {
            Metadata source = new Metadata(org.apache.maven.api.metadata.Metadata.newBuilder(
                            createMetadataFromArtifact(artifact).getDelegate(), true)
    Registered: Sun Nov 03 03:35:11 UTC 2024
    - Last Modified: Fri Oct 25 12:31:46 UTC 2024
    - 13.7K bytes
    - Viewed (0)
  3. android/guava-tests/test/com/google/common/hash/HashCodeTest.java

        HashCode hash1 = Hashing.sha1().hashString("foo", US_ASCII);
        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(
    Registered: Fri Nov 01 12:43:10 UTC 2024
    - Last Modified: Mon Oct 21 14:28:19 UTC 2024
    - 13.1K bytes
    - Viewed (0)
Back to top