Search Options

Results per page
Sort
Preferred Languages
Advance

Results 1 - 10 of 66 for AssertionFailedError (0.21 sec)

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

          throw new Error();
        } catch (AssertionFailedError expected) {
        }
    
        try {
          Helpers.assertContentsInOrder(list, "a", "c", "b");
          throw new Error();
        } catch (AssertionFailedError expected) {
        }
    
        try {
          Helpers.assertContentsInOrder(list, "a", "B", "c");
          throw new Error();
        } catch (AssertionFailedError expected) {
        }
      }
    
    Java
    - Registered: Fri Apr 26 12:43:10 GMT 2024
    - Last Modified: Mon Dec 04 17:37:03 GMT 2017
    - 4.9K bytes
    - Viewed (0)
  2. guava-testlib/test/com/google/common/collect/testing/HelpersTest.java

          throw new Error();
        } catch (AssertionFailedError expected) {
        }
    
        try {
          Helpers.assertContentsInOrder(list, "a", "c", "b");
          throw new Error();
        } catch (AssertionFailedError expected) {
        }
    
        try {
          Helpers.assertContentsInOrder(list, "a", "B", "c");
          throw new Error();
        } catch (AssertionFailedError expected) {
        }
      }
    
    Java
    - Registered: Fri Apr 19 12:43:09 GMT 2024
    - Last Modified: Mon Dec 04 17:37:03 GMT 2017
    - 4.9K bytes
    - Viewed (0)
  3. guava-testlib/test/com/google/common/testing/ClassSanityTesterTest.java

        } catch (AssertionFailedError expected) {
          return;
        }
        fail();
      }
    
      public void testNullsOnReturnValues_returnTypeFiltered() throws Exception {
        try {
          tester
              .forAllPublicStaticMethods(BadNullsFactory.class)
              .thatReturn(Iterable.class)
              .testNulls();
        } catch (AssertionFailedError expected) {
          assertThat(expected)
    Java
    - Registered: Fri Apr 19 12:43:09 GMT 2024
    - Last Modified: Thu Nov 16 15:12:31 GMT 2023
    - 36.3K bytes
    - Viewed (0)
  4. 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("interrupt status set in main thread");
      }
    
      /**
    Java
    - Registered: Fri Apr 26 12:43:10 GMT 2024
    - Last Modified: Thu Feb 22 17:15:24 GMT 2024
    - 37.2K bytes
    - Viewed (0)
  5. android/guava-testlib/test/com/google/common/testing/SerializableTesterTest.java

     * See the License for the specific language governing permissions and
     * limitations under the License.
     */
    
    package com.google.common.testing;
    
    import java.io.Serializable;
    import junit.framework.AssertionFailedError;
    import junit.framework.TestCase;
    import org.checkerframework.checker.nullness.qual.Nullable;
    
    /**
     * Tests for {@link SerializableTester}.
     *
     * @author Nick Kralevich
     */
    Java
    - Registered: Fri Apr 26 12:43:10 GMT 2024
    - Last Modified: Mon Apr 17 15:49:06 GMT 2023
    - 4K bytes
    - Viewed (0)
  6. android/guava-testlib/test/com/google/common/collect/testing/IteratorTesterTest.java

                throw new AssertionFailedError(message);
              }
            };
        AssertionFailedError actual = null;
        try {
          tester.test();
        } catch (AssertionFailedError e) {
          actual = e;
        }
        assertNotNull("verify() should be able to cause test failure", actual);
        assertTrue(
            "AssertionFailedError should have info about why test failed",
    Java
    - Registered: Fri Apr 26 12:43:10 GMT 2024
    - Last Modified: Mon Apr 17 12:41:04 GMT 2023
    - 10.4K bytes
    - Viewed (0)
  7. android/guava-testlib/test/com/google/common/testing/EqualsTesterTest.java

    import com.google.common.base.Preconditions;
    import com.google.common.collect.ImmutableList;
    import com.google.common.collect.Sets;
    import java.util.Set;
    import junit.framework.AssertionFailedError;
    import junit.framework.TestCase;
    import org.checkerframework.checker.nullness.qual.Nullable;
    
    /**
     * Unit tests for {@link EqualsTester}.
     *
     * @author Jim McMaster
     */
    @GwtCompatible
    Java
    - Registered: Fri Apr 26 12:43:10 GMT 2024
    - Last Modified: Mon Apr 17 15:49:06 GMT 2023
    - 12.9K bytes
    - Viewed (0)
  8. guava-testlib/test/com/google/common/testing/EquivalenceTesterTest.java

    import com.google.common.base.Equivalence;
    import com.google.common.base.MoreObjects;
    import com.google.common.collect.ImmutableMap;
    import com.google.common.collect.ImmutableTable;
    import junit.framework.AssertionFailedError;
    import junit.framework.TestCase;
    
    /**
     * Tests for {@link EquivalenceTester}.
     *
     * @author Gregory Kick
     */
    @GwtCompatible
    public class EquivalenceTesterTest extends TestCase {
    Java
    - Registered: Fri Apr 19 12:43:09 GMT 2024
    - Last Modified: Mon Oct 10 19:45:10 GMT 2022
    - 8.3K bytes
    - Viewed (0)
  9. android/guava-testlib/test/com/google/common/testing/EquivalenceTesterTest.java

    import com.google.common.base.Equivalence;
    import com.google.common.base.MoreObjects;
    import com.google.common.collect.ImmutableMap;
    import com.google.common.collect.ImmutableTable;
    import junit.framework.AssertionFailedError;
    import junit.framework.TestCase;
    
    /**
     * Tests for {@link EquivalenceTester}.
     *
     * @author Gregory Kick
     */
    @GwtCompatible
    public class EquivalenceTesterTest extends TestCase {
    Java
    - Registered: Fri Apr 26 12:43:10 GMT 2024
    - Last Modified: Mon Oct 10 19:45:10 GMT 2022
    - 8.3K bytes
    - Viewed (0)
  10. 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("interrupt status set in main thread");
      }
    
      /**
    Java
    - Registered: Fri Apr 12 12:43:09 GMT 2024
    - Last Modified: Thu Feb 22 17:15:24 GMT 2024
    - 37.7K bytes
    - Viewed (0)
Back to top