Search Options

Results per page
Sort
Preferred Languages
Advance

Results 1 - 1 of 1 for testCheckArgument_complexMessage_failure (0.19 sec)

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

        assertThat(e).hasMessageThat().isEqualTo("A (Object[])null C");
      }
    
      public void testCheckArgument_complexMessage_success() {
        checkArgument(true, "%s", IGNORE_ME);
      }
    
      public void testCheckArgument_complexMessage_failure() {
        IllegalArgumentException expected =
            assertThrows(IllegalArgumentException.class, () -> checkArgument(false, FORMAT, 5));
        verifyComplexMessage(expected);
      }
    
    Registered: Fri Nov 01 12:43:10 UTC 2024
    - Last Modified: Tue Sep 17 18:14:12 UTC 2024
    - 19K bytes
    - Viewed (0)
Back to top