Search Options

Results per page
Sort
Preferred Languages
Advance

Results 1 - 2 of 2 for testCheckArgument_simple_failure (0.8 sec)

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

    @GwtCompatible(emulated = true)
    public class PreconditionsTest extends TestCase {
      public void testCheckArgument_simple_success() {
        Preconditions.checkArgument(true);
      }
    
      public void testCheckArgument_simple_failure() {
        try {
          Preconditions.checkArgument(false);
          fail("no exception thrown");
        } catch (IllegalArgumentException expected) {
        }
      }
    
    Java
    - Registered: Fri Apr 19 12:43:09 GMT 2024
    - Last Modified: Fri Feb 09 15:49:48 GMT 2024
    - 19.8K bytes
    - Viewed (0)
  2. android/guava-tests/test/com/google/common/base/PreconditionsTest.java

    @GwtCompatible(emulated = true)
    public class PreconditionsTest extends TestCase {
      public void testCheckArgument_simple_success() {
        Preconditions.checkArgument(true);
      }
    
      public void testCheckArgument_simple_failure() {
        try {
          Preconditions.checkArgument(false);
          fail("no exception thrown");
        } catch (IllegalArgumentException expected) {
        }
      }
    
    Java
    - Registered: Fri May 03 12:43:13 GMT 2024
    - Last Modified: Fri Feb 09 15:49:48 GMT 2024
    - 19.8K bytes
    - Viewed (0)
Back to top