Search Options

Results per page
Sort
Preferred Languages
Advance

Results 1 - 4 of 4 for callAndAssertThrows (0.28 sec)

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

        monitor.leave();
        thread1.assertPriorCallReturns(waitFor());
      }
    
      public final void testWaitFor_withoutEnter() throws Exception {
        TestGuard guard = new TestGuard(true);
        thread1.callAndAssertThrows(IllegalMonitorStateException.class, waitFor(), guard);
      }
    
      public void testNulls() {
        monitor.enter(); // Inhibit IllegalMonitorStateException
        new NullPointerTester()
    Registered: Wed Jun 12 16:38:11 UTC 2024
    - Last Modified: Wed Apr 26 20:07:17 UTC 2023
    - 8K bytes
    - Viewed (0)
  2. android/guava-tests/test/com/google/common/util/concurrent/MonitorTestCase.java

        monitor.leave();
        thread1.assertPriorCallReturns(waitFor());
      }
    
      public final void testWaitFor_withoutEnter() throws Exception {
        TestGuard guard = new TestGuard(true);
        thread1.callAndAssertThrows(IllegalMonitorStateException.class, waitFor(), guard);
      }
    
      public void testNulls() {
        monitor.enter(); // Inhibit IllegalMonitorStateException
        new NullPointerTester()
    Registered: Wed Jun 12 16:38:11 UTC 2024
    - Last Modified: Wed Apr 26 20:07:17 UTC 2023
    - 7.9K bytes
    - Viewed (0)
  3. guava-tests/test/com/google/common/util/concurrent/TestThread.java

      }
    
      /**
       * Causes this thread to call the named method, and asserts that the call throws the expected type
       * of throwable.
       */
      public void callAndAssertThrows(
          Class<? extends Throwable> expected, String methodName, Object... arguments)
          throws Exception {
        checkNotNull(expected);
        checkNotNull(methodName);
        checkNotNull(arguments);
    Registered: Wed Jun 12 16:38:11 UTC 2024
    - Last Modified: Tue Jun 11 16:13:05 UTC 2024
    - 10.8K bytes
    - Viewed (0)
  4. android/guava-tests/test/com/google/common/util/concurrent/TestThread.java

      }
    
      /**
       * Causes this thread to call the named method, and asserts that the call throws the expected type
       * of throwable.
       */
      public void callAndAssertThrows(
          Class<? extends Throwable> expected, String methodName, Object... arguments)
          throws Exception {
        checkNotNull(expected);
        checkNotNull(methodName);
        checkNotNull(arguments);
    Registered: Wed Jun 12 16:38:11 UTC 2024
    - Last Modified: Tue Jun 11 16:13:05 UTC 2024
    - 10.8K bytes
    - Viewed (0)
Back to top