Search Options

Results per page
Sort
Preferred Languages
Advance

Results 1 - 6 of 6 for assertEmpty (2.6 sec)

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

      }
    
      public void testIsEmpty_iterable() {
        List<Object> list = new ArrayList<>();
        assertEmpty(list);
        assertEmpty(() -> emptyIterator());
    
        list.add("a");
        try {
          assertEmpty(list);
          throw new Error();
        } catch (AssertionFailedError expected) {
        }
        try {
          assertEmpty(
              new Iterable<String>() {
                @Override
                public Iterator<String> iterator() {
    Registered: Fri Sep 05 12:43:10 UTC 2025
    - Last Modified: Sat Apr 12 15:07:59 UTC 2025
    - 4.9K bytes
    - Viewed (0)
  2. guava-testlib/test/com/google/common/collect/testing/HelpersTest.java

      }
    
      public void testIsEmpty_iterable() {
        List<Object> list = new ArrayList<>();
        assertEmpty(list);
        assertEmpty(() -> emptyIterator());
    
        list.add("a");
        try {
          assertEmpty(list);
          throw new Error();
        } catch (AssertionFailedError expected) {
        }
        try {
          assertEmpty(
              new Iterable<String>() {
                @Override
                public Iterator<String> iterator() {
    Registered: Fri Sep 05 12:43:10 UTC 2025
    - Last Modified: Sat Apr 12 15:07:59 UTC 2025
    - 4.9K bytes
    - Viewed (0)
  3. android/guava-testlib/src/com/google/common/collect/testing/google/MultisetRemoveTester.java

     * See the License for the specific language governing permissions and
     * limitations under the License.
     */
    
    package com.google.common.collect.testing.google;
    
    import static com.google.common.collect.testing.Helpers.assertEmpty;
    import static com.google.common.collect.testing.Helpers.copyToList;
    import static com.google.common.collect.testing.Helpers.getMethod;
    import static com.google.common.collect.testing.features.CollectionFeature.ALLOWS_NULL_QUERIES;
    Registered: Fri Sep 05 12:43:10 UTC 2025
    - Last Modified: Thu Aug 07 16:05:33 UTC 2025
    - 7K bytes
    - Viewed (0)
  4. guava-testlib/src/com/google/common/collect/testing/google/MultisetRemoveTester.java

     * See the License for the specific language governing permissions and
     * limitations under the License.
     */
    
    package com.google.common.collect.testing.google;
    
    import static com.google.common.collect.testing.Helpers.assertEmpty;
    import static com.google.common.collect.testing.Helpers.copyToList;
    import static com.google.common.collect.testing.Helpers.getMethod;
    import static com.google.common.collect.testing.features.CollectionFeature.ALLOWS_NULL_QUERIES;
    Registered: Fri Sep 05 12:43:10 UTC 2025
    - Last Modified: Thu Aug 07 16:05:33 UTC 2025
    - 7K bytes
    - Viewed (0)
  5. android/guava-testlib/src/com/google/common/collect/testing/Helpers.java

            ? ((Collection<?>) iterable).isEmpty()
            : !iterable.iterator().hasNext();
      }
    
      public static void assertEmpty(Iterable<?> iterable) {
        if (!isEmpty(iterable)) {
          fail("Not true that " + iterable + " is empty");
        }
      }
    
      public static void assertEmpty(Map<?, ?> map) {
        if (!map.isEmpty()) {
          fail("Not true that " + map + " is empty");
        }
      }
    
    Registered: Fri Sep 05 12:43:10 UTC 2025
    - Last Modified: Sun Aug 10 19:54:19 UTC 2025
    - 17.2K bytes
    - Viewed (0)
  6. android/guava-tests/test/com/google/common/collect/SetsTest.java

        Set<Integer> mt = emptySet();
        assertEmpty(cartesianProduct(mt, mt));
      }
    
      public void testCartesianProduct_binary0x1() {
        Set<Integer> mt = emptySet();
        assertEmpty(cartesianProduct(mt, set(1)));
      }
    
      public void testCartesianProduct_binary1x0() {
        Set<Integer> mt = emptySet();
        assertEmpty(cartesianProduct(set(1), mt));
      }
    
    Registered: Fri Sep 05 12:43:10 UTC 2025
    - Last Modified: Thu Aug 07 16:05:33 UTC 2025
    - 45.3K bytes
    - Viewed (0)
Back to top