Search Options

Display Count
Sort
Preferred Language
Advanced Search

Results 1 - 10 of 27 for AssertionFailedError (0.13 seconds)

  1. android/guava-testlib/test/com/google/common/collect/testing/HelpersTest.java

        map.put("a", "b");
        assertThrows(AssertionFailedError.class, () -> assertEmpty(map));
      }
    
      public void testAssertEqualInOrder() {
        List<?> list = asList("a", "b", "c");
        assertEqualInOrder(list, list);
    
        List<?> fewer = asList("a", "b");
        assertThrows(AssertionFailedError.class, () -> assertEqualInOrder(list, fewer));
    
        assertThrows(AssertionFailedError.class, () -> assertEqualInOrder(fewer, list));
    
    Created: Fri Apr 03 12:43:13 GMT 2026
    - Last Modified: Mon Feb 09 19:16:24 GMT 2026
    - 4.4K bytes
    - Click Count (0)
  2. guava-testlib/test/com/google/common/collect/testing/HelpersTest.java

        map.put("a", "b");
        assertThrows(AssertionFailedError.class, () -> assertEmpty(map));
      }
    
      public void testAssertEqualInOrder() {
        List<?> list = asList("a", "b", "c");
        assertEqualInOrder(list, list);
    
        List<?> fewer = asList("a", "b");
        assertThrows(AssertionFailedError.class, () -> assertEqualInOrder(list, fewer));
    
        assertThrows(AssertionFailedError.class, () -> assertEqualInOrder(fewer, list));
    
    Created: Fri Apr 03 12:43:13 GMT 2026
    - Last Modified: Mon Feb 09 19:16:24 GMT 2026
    - 4.4K bytes
    - Click Count (0)
  3. android/guava-tests/test/com/google/common/util/concurrent/JSR166TestCase.java

          } else if (t instanceof Exception) {
            throw (Exception) t;
          } else {
            AssertionFailedError afe = new AssertionFailedError(t.toString());
            afe.initCause(t);
            throw afe;
          }
        }
    
        if (Thread.interrupted()) {
          throw new AssertionFailedError("interrupted status set in main thread");
        }
      }
    
      /**
    Created: Fri Apr 03 12:43:13 GMT 2026
    - Last Modified: Sat Mar 07 02:20:33 GMT 2026
    - 8.8K bytes
    - Click Count (0)
  4. guava-tests/test/com/google/common/util/concurrent/JSR166TestCase.java

          } else if (t instanceof Exception) {
            throw (Exception) t;
          } else {
            AssertionFailedError afe = new AssertionFailedError(t.toString());
            afe.initCause(t);
            throw afe;
          }
        }
    
        if (Thread.interrupted()) {
          throw new AssertionFailedError("interrupted status set in main thread");
        }
      }
    
      /**
    Created: Fri Apr 03 12:43:13 GMT 2026
    - Last Modified: Sat Mar 07 02:20:33 GMT 2026
    - 8.8K bytes
    - Click Count (0)
  5. android/guava-testlib/test/com/google/common/testing/SerializableTesterTest.java

     * limitations under the License.
     */
    
    package com.google.common.testing;
    
    import static com.google.common.truth.Truth.assertThat;
    
    import java.io.Serializable;
    import junit.framework.AssertionFailedError;
    import junit.framework.TestCase;
    import org.jspecify.annotations.NullUnmarked;
    import org.jspecify.annotations.Nullable;
    
    /**
     * Tests for {@link SerializableTester}.
     *
     * @author Nick Kralevich
     */
    Created: Fri Apr 03 12:43:13 GMT 2026
    - Last Modified: Fri Mar 13 13:01:07 GMT 2026
    - 4.1K bytes
    - Click Count (0)
  6. guava-testlib/test/com/google/common/testing/SerializableTesterTest.java

     * limitations under the License.
     */
    
    package com.google.common.testing;
    
    import static com.google.common.truth.Truth.assertThat;
    
    import java.io.Serializable;
    import junit.framework.AssertionFailedError;
    import junit.framework.TestCase;
    import org.jspecify.annotations.NullUnmarked;
    import org.jspecify.annotations.Nullable;
    
    /**
     * Tests for {@link SerializableTester}.
     *
     * @author Nick Kralevich
     */
    Created: Fri Apr 03 12:43:13 GMT 2026
    - Last Modified: Fri Mar 13 13:01:07 GMT 2026
    - 4.1K bytes
    - Click Count (0)
  7. android/guava-tests/test/com/google/common/util/concurrent/JdkFutureAdaptersTest.java

          throw new RuntimeException("expected, should be caught");
        }
    
        @Override
        public V get(long timeout, TimeUnit unit) {
          throw new AssertionFailedError();
        }
    
        @Override
        public boolean isCancelled() {
          throw new AssertionFailedError();
        }
    
        @Override
        public boolean isDone() {
          /*
           * If isDone is true during the call to listenInPoolThread,
    Created: Fri Apr 03 12:43:13 GMT 2026
    - Last Modified: Fri Mar 13 13:01:07 GMT 2026
    - 10K bytes
    - Click Count (0)
  8. guava-tests/test/com/google/common/util/concurrent/JdkFutureAdaptersTest.java

          throw new RuntimeException("expected, should be caught");
        }
    
        @Override
        public V get(long timeout, TimeUnit unit) {
          throw new AssertionFailedError();
        }
    
        @Override
        public boolean isCancelled() {
          throw new AssertionFailedError();
        }
    
        @Override
        public boolean isDone() {
          /*
           * If isDone is true during the call to listenInPoolThread,
    Created: Fri Apr 03 12:43:13 GMT 2026
    - Last Modified: Fri Mar 13 13:01:07 GMT 2026
    - 10K bytes
    - Click Count (0)
  9. android/guava-tests/test/com/google/common/base/VerifyTest.java

    import com.google.common.annotations.GwtCompatible;
    import com.google.common.annotations.GwtIncompatible;
    import com.google.common.annotations.J2ktIncompatible;
    import junit.framework.AssertionFailedError;
    import junit.framework.TestCase;
    import org.jspecify.annotations.NullUnmarked;
    
    /** Unit test for {@link com.google.common.base.Verify}. */
    @GwtCompatible
    @NullUnmarked
    Created: Fri Apr 03 12:43:13 GMT 2026
    - Last Modified: Fri Mar 13 13:01:07 GMT 2026
    - 3.3K bytes
    - Click Count (0)
  10. guava-tests/test/com/google/common/base/VerifyTest.java

    import com.google.common.annotations.GwtCompatible;
    import com.google.common.annotations.GwtIncompatible;
    import com.google.common.annotations.J2ktIncompatible;
    import junit.framework.AssertionFailedError;
    import junit.framework.TestCase;
    import org.jspecify.annotations.NullUnmarked;
    
    /** Unit test for {@link com.google.common.base.Verify}. */
    @GwtCompatible
    @NullUnmarked
    Created: Fri Apr 03 12:43:13 GMT 2026
    - Last Modified: Fri Mar 13 13:01:07 GMT 2026
    - 3.3K bytes
    - Click Count (0)
Back to Top