Search Options

Results per page
Sort
Preferred Languages
Advance

Results 1 - 7 of 7 for testSize0 (0.05 sec)

  1. android/guava-tests/test/com/google/common/collect/FluentIterableTest.java

         * applicable for the arguments (Predicate<FluentIterableTest.X>)
         */
        // FluentIterable.of().append(aIterable).append(bIterable).filter(xPredicate);
      }
    
      public void testSize0() {
        assertEquals(0, FluentIterable.<String>of().size());
      }
    
      public void testSize1Collection() {
        assertEquals(1, FluentIterable.from(asList("a")).size());
      }
    
    Registered: Fri Nov 01 12:43:10 UTC 2024
    - Last Modified: Wed Oct 30 16:15:19 UTC 2024
    - 30.4K bytes
    - Viewed (0)
  2. android/guava-tests/test/com/google/common/collect/IterablesTest.java

     *
     * @author Kevin Bourrillion
     * @author Jared Levy
     */
    @GwtCompatible(emulated = true)
    @ElementTypesAreNonnullByDefault
    public class IterablesTest extends TestCase {
    
      public void testSize0() {
        Iterable<String> iterable = emptySet();
        assertEquals(0, Iterables.size(iterable));
      }
    
      public void testSize1Collection() {
        Iterable<String> iterable = singleton("a");
    Registered: Fri Nov 01 12:43:10 UTC 2024
    - Last Modified: Wed Oct 30 19:12:33 UTC 2024
    - 45K bytes
    - Viewed (0)
  3. guava-tests/test/com/google/common/collect/IteratorsTest.java

        assertThrows(IllegalStateException.class, () -> iterator.remove());
      }
    
      public void testSize0() {
        Iterator<String> iterator = emptyIterator();
        assertEquals(0, Iterators.size(iterator));
      }
    
      public void testSize1() {
        Iterator<Integer> iterator = singleton(0).iterator();
        assertEquals(1, Iterators.size(iterator));
      }
    
    Registered: Fri Nov 01 12:43:10 UTC 2024
    - Last Modified: Wed Oct 30 16:15:19 UTC 2024
    - 54.1K bytes
    - Viewed (0)
  4. android/guava-tests/test/com/google/common/collect/IteratorsTest.java

        assertThrows(IllegalStateException.class, () -> iterator.remove());
      }
    
      public void testSize0() {
        Iterator<String> iterator = emptyIterator();
        assertEquals(0, Iterators.size(iterator));
      }
    
      public void testSize1() {
        Iterator<Integer> iterator = singleton(0).iterator();
        assertEquals(1, Iterators.size(iterator));
      }
    
    Registered: Fri Nov 01 12:43:10 UTC 2024
    - Last Modified: Wed Oct 30 16:15:19 UTC 2024
    - 54.1K bytes
    - Viewed (0)
  5. compat/maven-embedder/src/test/java/org/apache/maven/cli/transfer/FileSizeFormatTest.java

            FileSizeFormat format = new FileSizeFormat();
    
            long negativeSize = -100L;
            assertThrows(IllegalArgumentException.class, () -> format.format(negativeSize));
        }
    
        @Test
        void testSize() {
            FileSizeFormat format = new FileSizeFormat();
    
            long _0_bytes = 0L;
            assertEquals("0 B", format.format(_0_bytes));
    
            long _5_bytes = 5L;
    Registered: Sun Nov 03 03:35:11 UTC 2024
    - Last Modified: Fri Oct 25 12:31:46 UTC 2024
    - 13K bytes
    - Viewed (0)
  6. android/guava-testlib/src/com/google/common/collect/testing/MapInterfaceTest.java

          assertEquals(initialSize, map.size());
        } else {
          assertThrows(UnsupportedOperationException.class, () -> map.remove(keyToRemove));
        }
        assertInvariants(map);
      }
    
      public void testSize() {
        assertInvariants(makeEitherMap());
      }
    
      public void testKeySetRemove() {
        Map<K, V> map;
        try {
          map = makePopulatedMap();
        } catch (UnsupportedOperationException e) {
    Registered: Fri Nov 01 12:43:10 UTC 2024
    - Last Modified: Wed Oct 30 16:15:19 UTC 2024
    - 43.8K bytes
    - Viewed (0)
  7. guava-testlib/src/com/google/common/collect/testing/MapInterfaceTest.java

          assertEquals(initialSize, map.size());
        } else {
          assertThrows(UnsupportedOperationException.class, () -> map.remove(keyToRemove));
        }
        assertInvariants(map);
      }
    
      public void testSize() {
        assertInvariants(makeEitherMap());
      }
    
      public void testKeySetRemove() {
        Map<K, V> map;
        try {
          map = makePopulatedMap();
        } catch (UnsupportedOperationException e) {
    Registered: Fri Nov 01 12:43:10 UTC 2024
    - Last Modified: Wed Oct 30 16:15:19 UTC 2024
    - 43.8K bytes
    - Viewed (0)
Back to top