Search Options

Results per page
Sort
Preferred Languages
Advance

Results 51 - 60 of 213 for assertSame (0.23 sec)

  1. guava-tests/test/com/google/common/html/HtmlEscapersTest.java

        // If the string contains no escapes, it should return the arg.
        // Note: assert<b>Same</b> for this implementation.
        String s = "blah blah farhvergnugen";
        assertSame(s, htmlEscaper().escape(s));
    
        // Tests escapes at begin and end of string.
        assertEquals("&lt;p&gt;", htmlEscaper().escape("<p>"));
    
        // Test all escapes.
    Java
    - Registered: Fri Apr 19 12:43:09 GMT 2024
    - Last Modified: Mon Dec 04 17:37:03 GMT 2017
    - 2.3K bytes
    - Viewed (0)
  2. guava-tests/test/com/google/common/cache/AbstractLoadingCacheTest.java

            assertThrows(UncheckedExecutionException.class, () -> cache.getUnchecked(new Object()));
        assertThat(expected).hasCauseThat().isEqualTo(cause);
    
        Object newValue = new Object();
        valueRef.set(newValue);
        assertSame(newValue, cache.getUnchecked(new Object()));
      }
    
      public void testGetUnchecked_unchecked() {
        final RuntimeException cause = new RuntimeException();
        final AtomicReference<Object> valueRef = new AtomicReference<>();
    Java
    - Registered: Fri Apr 19 12:43:09 GMT 2024
    - Last Modified: Wed Sep 06 17:04:31 GMT 2023
    - 5K bytes
    - Viewed (0)
  3. maven-core/src/test/java/org/apache/maven/execution/scope/internal/MojoExecutionScopeTest.java

    import static org.junit.jupiter.api.Assertions.assertSame;
    import static org.junit.jupiter.api.Assertions.assertThrows;
    
    class MojoExecutionScopeTest {
        @Test
        void testNestedEnter() throws Exception {
            MojoExecutionScope scope = new MojoExecutionScope();
    
            scope.enter();
    
            Object o1 = new Object();
            scope.seed(Object.class, o1);
            assertSame(o1, scope.scope(Key.get(Object.class), null).get());
    Java
    - Registered: Sun Apr 28 03:35:10 GMT 2024
    - Last Modified: Sat Apr 15 17:24:20 GMT 2023
    - 3.6K bytes
    - Viewed (0)
  4. guava-tests/test/com/google/common/hash/FunnelsTest.java

      }
    
      public void testSerialization() {
        assertSame(
            Funnels.byteArrayFunnel(), SerializableTester.reserialize(Funnels.byteArrayFunnel()));
        assertSame(Funnels.integerFunnel(), SerializableTester.reserialize(Funnels.integerFunnel()));
        assertSame(Funnels.longFunnel(), SerializableTester.reserialize(Funnels.longFunnel()));
        assertSame(
            Funnels.unencodedCharsFunnel(),
    Java
    - Registered: Fri Apr 19 12:43:09 GMT 2024
    - Last Modified: Fri Oct 02 16:24:50 GMT 2020
    - 5.9K bytes
    - Viewed (0)
  5. guava-tests/test/com/google/common/base/VerifyTest.java

        assertSame(NON_NULL_STRING, result);
      }
    
      public void testVerifyNotNull_simple_failure() {
        try {
          verifyNotNull(null);
          fail();
        } catch (VerifyException expected) {
        }
      }
    
      public void testVerifyNotNull_complexMessage_success() {
        String result = verifyNotNull(NON_NULL_STRING, "%s", IGNORE_ME);
        assertSame(NON_NULL_STRING, result);
      }
    
    Java
    - Registered: Fri Apr 19 12:43:09 GMT 2024
    - Last Modified: Thu May 04 09:41:29 GMT 2023
    - 3.2K bytes
    - Viewed (0)
  6. android/guava-tests/test/com/google/common/collect/ImmutableListTest.java

        Collection<String> c = ImmutableList.of();
        assertSame(c, ImmutableList.copyOf(c));
      }
    
      public void testCopyOf_shortcut_singleton() {
        Collection<String> c = ImmutableList.of("a");
        assertSame(c, ImmutableList.copyOf(c));
      }
    
      public void testCopyOf_shortcut_immutableList() {
        Collection<String> c = ImmutableList.of("a", "b", "c");
        assertSame(c, ImmutableList.copyOf(c));
      }
    
    Java
    - Registered: Fri Apr 26 12:43:10 GMT 2024
    - Last Modified: Thu Mar 07 18:34:03 GMT 2024
    - 23.9K bytes
    - Viewed (0)
  7. guava-tests/test/com/google/common/base/MoreObjectsTest.java

        String s1 = "foo";
        String s2 = MoreObjects.firstNonNull(s1, "bar");
        assertSame(s1, s2);
    
        Long n1 = 42L;
        Long n2 = MoreObjects.firstNonNull(null, n1);
        assertSame(n1, n2);
    
        Boolean b1 = true;
        Boolean b2 = MoreObjects.firstNonNull(b1, null);
        assertSame(b1, b2);
      }
    
      public void testFirstNonNull_throwsNullPointerException() {
        try {
    Java
    - Registered: Fri Apr 19 12:43:09 GMT 2024
    - Last Modified: Thu Feb 22 21:24:55 GMT 2024
    - 2K bytes
    - Viewed (0)
  8. android/guava-tests/test/com/google/common/collect/TreeBasedTableTest.java

        sortedTable.put("", 42, 'x');
        assertSame(Ordering.natural(), sortedTable.columnComparator());
        assertSame(
            Ordering.natural(),
            ((SortedMap<Integer, Character>) sortedTable.rowMap().values().iterator().next())
                .comparator());
    
        sortedTable = TreeBasedTable.create(Collections.reverseOrder(), Ordering.usingToString());
        sortedTable.put("", 42, 'x');
    Java
    - Registered: Fri Apr 26 12:43:10 GMT 2024
    - Last Modified: Thu Mar 07 18:34:03 GMT 2024
    - 15K bytes
    - Viewed (0)
  9. android/guava-testlib/src/com/google/common/collect/testing/google/BiMapInverseTester.java

        assertEquals(pair.forward, copy.forward);
        assertEquals(pair.backward, copy.backward);
        assertSame(copy.backward, copy.forward.inverse());
        assertSame(copy.forward, copy.backward.inverse());
      }
    
      private static class BiMapPair<K, V> implements Serializable {
        final BiMap<K, V> forward;
        final BiMap<V, K> backward;
    
        BiMapPair(BiMap<K, V> original) {
          this.forward = original;
    Java
    - Registered: Fri Apr 26 12:43:10 GMT 2024
    - Last Modified: Wed Feb 21 16:49:06 GMT 2024
    - 3K bytes
    - Viewed (0)
  10. guava-testlib/src/com/google/common/collect/testing/google/BiMapInverseTester.java

        assertEquals(pair.forward, copy.forward);
        assertEquals(pair.backward, copy.backward);
        assertSame(copy.backward, copy.forward.inverse());
        assertSame(copy.forward, copy.backward.inverse());
      }
    
      private static class BiMapPair<K, V> implements Serializable {
        final BiMap<K, V> forward;
        final BiMap<V, K> backward;
    
        BiMapPair(BiMap<K, V> original) {
          this.forward = original;
    Java
    - Registered: Fri Apr 26 12:43:10 GMT 2024
    - Last Modified: Wed Feb 21 16:49:06 GMT 2024
    - 3K bytes
    - Viewed (0)
Back to top