Search Options

Results per page
Sort
Preferred Languages
Advance

Results 1 - 2 of 2 for testCheckPositive_zeroInt (0.22 sec)

  1. guava-tests/test/com/google/common/math/MathPreconditionsTest.java

    import junit.framework.TestCase;
    
    /**
     * Unit tests for {@link MathPreconditions}.
     *
     * @author Ben Yu
     */
    @GwtCompatible
    public class MathPreconditionsTest extends TestCase {
    
      public void testCheckPositive_zeroInt() {
        try {
          MathPreconditions.checkPositive("int", 0);
          fail();
        } catch (IllegalArgumentException expected) {
        }
      }
    
      public void testCheckPositive_maxInt() {
    Java
    - Registered: Fri Apr 12 12:43:09 GMT 2024
    - Last Modified: Mon Oct 10 19:45:10 GMT 2022
    - 8.2K bytes
    - Viewed (0)
  2. android/guava-tests/test/com/google/common/math/MathPreconditionsTest.java

    import junit.framework.TestCase;
    
    /**
     * Unit tests for {@link MathPreconditions}.
     *
     * @author Ben Yu
     */
    @GwtCompatible
    public class MathPreconditionsTest extends TestCase {
    
      public void testCheckPositive_zeroInt() {
        try {
          MathPreconditions.checkPositive("int", 0);
          fail();
        } catch (IllegalArgumentException expected) {
        }
      }
    
      public void testCheckPositive_maxInt() {
    Java
    - Registered: Fri May 03 12:43:13 GMT 2024
    - Last Modified: Mon Oct 10 19:45:10 GMT 2022
    - 8.2K bytes
    - Viewed (0)
Back to top