Search Options

Results per page
Sort
Preferred Languages
Advance

Results 1 - 10 of 32 for hasMessageThat (0.07 sec)

  1. guava-tests/test/com/google/common/base/PreconditionsTest.java

        assertThat(throwable).isInstanceOf(clazz);
        if (params.length == 1) {
          assertThat(throwable).hasMessageThat().isNull();
        } else if (params.length == 2) {
          assertThat(throwable).hasMessageThat().isEmpty();
        } else {
          assertThat(throwable)
              .hasMessageThat()
              .isEqualTo(Strings.lenientFormat("", Arrays.copyOfRange(params, 2, params.length)));
        }
      }
    
      /**
    Registered: Fri Nov 01 12:43:10 UTC 2024
    - Last Modified: Tue Sep 17 18:14:12 UTC 2024
    - 19K bytes
    - Viewed (0)
  2. android/guava-tests/test/com/google/common/collect/RangeTest.java

            assertThrows(IllegalArgumentException.class, () -> range.intersection(Range.open(3, 5)));
        assertThat(expected).hasMessageThat().contains("connected");
        expected =
            assertThrows(IllegalArgumentException.class, () -> range.intersection(Range.closed(0, 2)));
        assertThat(expected).hasMessageThat().contains("connected");
      }
    
      public void testIntersection_deFactoEmpty() {
        {
    Registered: Fri Nov 01 12:43:10 UTC 2024
    - Last Modified: Wed Oct 30 16:15:19 UTC 2024
    - 23.9K bytes
    - Viewed (0)
  3. android/guava-tests/test/com/google/common/util/concurrent/AbstractExecutionThreadServiceTest.java

            assertThrows(IllegalStateException.class, () -> service.awaitRunning());
        assertThat(expected).hasCauseThat().hasMessageThat().isEqualTo("kaboom!");
        executionThread.join();
    
        assertTrue(service.startUpCalled);
        assertEquals(Service.State.FAILED, service.state());
        assertThat(service.failureCause()).hasMessageThat().isEqualTo("kaboom!");
      }
    
      private class ThrowOnStartUpService extends AbstractExecutionThreadService {
    Registered: Fri Nov 01 12:43:10 UTC 2024
    - Last Modified: Fri Oct 18 22:10:29 UTC 2024
    - 12.7K bytes
    - Viewed (0)
  4. guava-tests/test/com/google/common/util/concurrent/AbstractExecutionThreadServiceTest.java

            assertThrows(IllegalStateException.class, () -> service.awaitRunning());
        assertThat(expected).hasCauseThat().hasMessageThat().isEqualTo("kaboom!");
        executionThread.join();
    
        assertTrue(service.startUpCalled);
        assertEquals(Service.State.FAILED, service.state());
        assertThat(service.failureCause()).hasMessageThat().isEqualTo("kaboom!");
      }
    
      private class ThrowOnStartUpService extends AbstractExecutionThreadService {
    Registered: Fri Nov 01 12:43:10 UTC 2024
    - Last Modified: Fri Oct 18 22:10:29 UTC 2024
    - 12.7K bytes
    - Viewed (0)
  5. guava-tests/test/com/google/common/math/MathPreconditionsTest.java

            assertThrows(
                ArithmeticException.class,
                () -> MathPreconditions.checkInRangeForRoundingInputs(false, 1.0, RoundingMode.UP));
        assertThat(expected).hasMessageThat().contains("1.0");
        assertThat(expected).hasMessageThat().contains("UP");
      }
    
      public void testCheckNoOverflow_success() {
        MathPreconditions.checkNoOverflow(true, "testCheckNoOverflow_success", 0, 0);
      }
    
    Registered: Fri Nov 01 12:43:10 UTC 2024
    - Last Modified: Fri Oct 18 15:00:32 UTC 2024
    - 8K bytes
    - Viewed (0)
  6. guava-tests/test/com/google/common/base/VerifyTest.java

        verify(true, "message");
      }
    
      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() {
    Registered: Fri Nov 01 12:43:10 UTC 2024
    - Last Modified: Tue Sep 17 18:14:12 UTC 2024
    - 3.2K bytes
    - Viewed (0)
  7. android/guava-tests/test/com/google/common/base/VerifyTest.java

        verify(true, "message");
      }
    
      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() {
    Registered: Fri Nov 01 12:43:10 UTC 2024
    - Last Modified: Tue Sep 17 18:14:12 UTC 2024
    - 3.2K bytes
    - Viewed (0)
  8. android/guava-tests/test/com/google/common/net/PercentEscaperTest.java

        IllegalArgumentException expected =
            assertThrows(IllegalArgumentException.class, () -> new PercentEscaper("-+#abc.!", false));
        assertThat(expected).hasMessageThat().isEqualTo(msg);
      }
    
      public void testBadArguments_plusforspace() {
        // space can be a safe char if plusForSpace is false
        PercentEscaper unused = new PercentEscaper(" ", false);
    
    Registered: Fri Nov 01 12:43:10 UTC 2024
    - Last Modified: Mon Oct 21 15:41:36 UTC 2024
    - 5.2K bytes
    - Viewed (0)
  9. guava-tests/test/com/google/common/util/concurrent/ListenableFutureTester.java

        assertFalse(future.isCancelled());
    
        try {
          future.get();
          fail("Future should rethrow the exception.");
        } catch (ExecutionException e) {
          assertThat(e).hasCauseThat().hasMessageThat().isEqualTo(message);
        }
      }
    Registered: Fri Nov 01 12:43:10 UTC 2024
    - Last Modified: Fri Oct 18 22:10:29 UTC 2024
    - 3.3K bytes
    - Viewed (0)
  10. guava-tests/test/com/google/common/net/PercentEscaperTest.java

        IllegalArgumentException expected =
            assertThrows(IllegalArgumentException.class, () -> new PercentEscaper("-+#abc.!", false));
        assertThat(expected).hasMessageThat().isEqualTo(msg);
      }
    
      public void testBadArguments_plusforspace() {
        // space can be a safe char if plusForSpace is false
        PercentEscaper unused = new PercentEscaper(" ", false);
    
    Registered: Fri Nov 01 12:43:10 UTC 2024
    - Last Modified: Mon Oct 21 15:41:36 UTC 2024
    - 5.2K bytes
    - Viewed (0)
Back to top