Search Options

Display Count
Sort
Preferred Language
Advanced Search

Results 371 - 380 of 524 for isEqualTo (0.06 seconds)

  1. guava-tests/test/com/google/common/util/concurrent/AtomicDoubleTest.java

        }
      }
    
      /** toString returns current value */
      public void testToString() {
        AtomicDouble at = new AtomicDouble();
        assertThat(at.toString()).isEqualTo("0.0");
        for (double x : VALUES) {
          at.set(x);
          assertThat(at.toString()).isEqualTo(Double.toString(x));
        }
      }
    
      /** intValue returns current value. */
      public void testIntValue() {
        AtomicDouble at = new AtomicDouble();
    Created: Fri Apr 03 12:43:13 GMT 2026
    - Last Modified: Fri Mar 13 13:01:07 GMT 2026
    - 10.6K bytes
    - Click Count (0)
  2. android/guava-testlib/test/com/google/common/testing/TearDownStackTest.java

          fail("runTearDown should have thrown an exception");
        } catch (RuntimeException expected) {
          assertThat(expected).hasMessageThat().isEqualTo("two");
          assertThat(getOnlyElement(asList(expected.getSuppressed())))
              .hasMessageThat()
              .isEqualTo("one");
        }
    
        assertEquals(true, tearDownOne.ran);
        assertEquals(true, tearDownTwo.ran);
      }
    
      @Override
    Created: Fri Apr 03 12:43:13 GMT 2026
    - Last Modified: Tue Mar 17 16:11:48 GMT 2026
    - 4.5K bytes
    - Click Count (0)
  3. guava-tests/test/com/google/common/io/CharSinkTester.java

        sink.writeLines(lines.stream(), separator);
    
        assertContainsExpectedLines(separator);
      }
    
      private void assertContainsExpectedString() throws IOException {
        assertThat(factory.getSinkContents()).isEqualTo(expected);
      }
    
      private void assertContainsExpectedLines(String separator) throws IOException {
        String expected = expectedLines.isEmpty() ? "" : Joiner.on(separator).join(expectedLines);
    Created: Fri Apr 03 12:43:13 GMT 2026
    - Last Modified: Thu Mar 12 17:47:10 GMT 2026
    - 4.5K bytes
    - Click Count (0)
  4. android/guava-tests/test/com/google/common/base/VerifyTest.java

      }
    
      public void testVerify_simpleMessage_failure() {
        VerifyException expected = assertThrows(VerifyException.class, () -> verify(false, "message"));
        assertThat(expected).hasMessageThat().isEqualTo("message");
      }
    
      public void testVerify_complexMessage_success() {
        verify(true, "%s", IGNORE_ME);
      }
    
      public void testVerify_complexMessage_failure() {
    Created: Fri Apr 03 12:43:13 GMT 2026
    - Last Modified: Fri Mar 13 13:01:07 GMT 2026
    - 3.3K bytes
    - Click Count (0)
  5. guava-tests/test/com/google/common/collect/TablesTest.java

        Cell<String, Integer, Character> entry = immutableCell("foo", 1, 'a');
        assertThat(entry.toString()).isEqualTo("(foo,1)=a");
    
        Cell<@Nullable String, @Nullable Integer, @Nullable Character> nullEntry =
            immutableCell(null, null, null);
        assertThat(nullEntry.toString()).isEqualTo("(null,null)=null");
      }
    
      public void testEntryEquals() {
    Created: Fri Apr 03 12:43:13 GMT 2026
    - Last Modified: Thu Mar 12 17:47:10 GMT 2026
    - 3.1K bytes
    - Click Count (0)
  6. android/guava-tests/test/com/google/common/base/FunctionsTest.java

      }
    
      @SuppressWarnings("nullness") // test of a bogus call
      public void testToStringFunction_apply() {
        assertThat(Functions.toStringFunction().apply(3)).isEqualTo("3");
        assertThat(Functions.toStringFunction().apply("hiya")).isEqualTo("hiya");
        assertThat(
                Functions.toStringFunction()
                    .apply(
                        new Object() {
                          @Override
    Created: Fri Apr 03 12:43:13 GMT 2026
    - Last Modified: Mon Mar 16 15:59:55 GMT 2026
    - 16.2K bytes
    - Click Count (0)
  7. android/guava-tests/test/com/google/common/collect/MapsTransformValuesUnmodifiableIteratorTest.java

            transformValues(ImmutableMap.of("a", 1), Functions.toStringFunction());
        Map<String, String> expected = ImmutableMap.of("a", "1");
        assertMapsEqual(expected, map);
        assertThat(map.get("a")).isEqualTo(expected.get("a"));
      }
    
      public void testTransformIdentityFunctionEquality() {
        Map<String, Integer> underlying = ImmutableMap.of("a", 1);
    Created: Fri Apr 03 12:43:13 GMT 2026
    - Last Modified: Thu Mar 12 17:47:10 GMT 2026
    - 12.4K bytes
    - Click Count (0)
  8. android/guava-tests/test/com/google/common/collect/SetViewTest.java

      }
    
      public void testUnion_maxSize_saturated() {
        assertThat(union(setSize(Integer.MAX_VALUE), setSize(1)).maxSize())
            .isEqualTo(Integer.MAX_VALUE);
        assertThat(union(setSize(1), setSize(Integer.MAX_VALUE)).maxSize())
            .isEqualTo(Integer.MAX_VALUE);
      }
    
      public void testIntersection_minSize() {
        assertMinSize(intersection(emptySet(), emptySet()), 0);
    Created: Fri Apr 03 12:43:13 GMT 2026
    - Last Modified: Thu Aug 07 16:05:33 GMT 2025
    - 29.9K bytes
    - Click Count (0)
  9. android/guava-tests/test/com/google/common/util/concurrent/AbstractAbstractFutureTest.java

        assertDone(future);
        assertThat(future.isCancelled()).isFalse();
    
        assertThat(getDone(future)).isEqualTo(expectedResult);
        assertThat(getDoneFromTimeoutOverload(future)).isEqualTo(expectedResult);
    
        assertThat(future.resultNow()).isEqualTo(expectedResult);
        assertThrows(IllegalStateException.class, future::exceptionNow);
      }
    
      private static void assertFailed(
    Created: Fri Apr 03 12:43:13 GMT 2026
    - Last Modified: Mon Mar 16 22:45:21 GMT 2026
    - 16.3K bytes
    - Click Count (0)
  10. android/guava-tests/test/com/google/common/collect/ImmutableClassToInstanceMapTest.java

        assertEquals(2, map.size());
    
        Number zero = map.getInstance(Number.class);
        assertEquals(0, zero);
    
        Double pi = map.getInstance(Double.class);
        assertThat(pi).isEqualTo(Math.PI);
    
        assertThat(ImmutableClassToInstanceMap.copyOf(map)).isSameInstanceAs(map);
      }
    
      public void testCopyOf_map_nulls() {
    Created: Fri Apr 03 12:43:13 GMT 2026
    - Last Modified: Tue Mar 31 20:00:15 GMT 2026
    - 5.8K bytes
    - Click Count (0)
Back to Top