Search Options

Results per page
Sort
Preferred Languages
Advance

Results 11 - 20 of 53 for hasMessageThat (0.1 sec)

  1. 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)
  2. 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)
  3. 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)
  4. 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)
  5. 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)
  6. android/guava-tests/test/com/google/common/io/CountingInputStreamTest.java

        assertThat(expected).hasMessageThat().isEqualTo("Mark not set");
      }
    
      public void testMarkNotSupported() {
        counter = new CountingInputStream(new UnmarkableInputStream());
    
        IOException expected = assertThrows(IOException.class, () -> counter.reset());
        assertThat(expected).hasMessageThat().isEqualTo("Mark not supported");
      }
    
    Registered: Fri Nov 01 12:43:10 UTC 2024
    - Last Modified: Wed Sep 06 17:04:31 UTC 2023
    - 3.5K bytes
    - Viewed (0)
  7. 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)
  8. android/guava-tests/test/com/google/common/graph/PackageSanityTests.java

          super.testNulls();
        } catch (AssertionError e) {
          assertWithMessage("Method did not throw null pointer OR element not in graph exception.")
              .that(e)
              .hasCauseThat()
              .hasMessageThat()
              .contains(ERROR_ELEMENT_NOT_IN_GRAPH);
        }
      }
    Registered: Fri Nov 01 12:43:10 UTC 2024
    - Last Modified: Tue Jun 11 16:13:05 UTC 2024
    - 3.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