Search Options

Results per page
Sort
Preferred Languages
Advance

Results 1 - 4 of 4 for testOf_empty (0.21 sec)

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

    import junit.framework.TestCase;
    
    /**
     * Unit test for {@link MinimalIterable}.
     *
     * @author Kevin Bourrillion
     */
    @GwtCompatible
    public class MinimalIterableTest extends TestCase {
    
      public void testOf_empty() {
        Iterable<String> iterable = MinimalIterable.<String>of();
        Iterator<String> iterator = iterable.iterator();
        assertFalse(iterator.hasNext());
        try {
          iterator.next();
          fail();
    Java
    - Registered: Fri Apr 19 12:43:09 GMT 2024
    - Last Modified: Mon Dec 04 17:37:03 GMT 2017
    - 2.8K bytes
    - Viewed (0)
  2. android/guava-testlib/test/com/google/common/collect/testing/MinimalIterableTest.java

    import junit.framework.TestCase;
    
    /**
     * Unit test for {@link MinimalIterable}.
     *
     * @author Kevin Bourrillion
     */
    @GwtCompatible
    public class MinimalIterableTest extends TestCase {
    
      public void testOf_empty() {
        Iterable<String> iterable = MinimalIterable.<String>of();
        Iterator<String> iterator = iterable.iterator();
        assertFalse(iterator.hasNext());
        try {
          iterator.next();
          fail();
    Java
    - Registered: Fri May 03 12:43:13 GMT 2024
    - Last Modified: Mon Dec 04 17:37:03 GMT 2017
    - 2.8K bytes
    - Viewed (0)
  3. guava-tests/test/com/google/common/collect/FluentIterableTest.java

      }
    
      public void testFromArray() {
        assertEquals(
            ImmutableList.of("1", "2", "3", "4"),
            Lists.newArrayList(FluentIterable.from(new Object[] {"1", "2", "3", "4"})));
      }
    
      public void testOf_empty() {
        assertEquals(ImmutableList.of(), Lists.newArrayList(FluentIterable.of()));
      }
    
      // Exhaustive tests are in IteratorsTest. These are copied from IterablesTest.
      public void testConcatIterable() {
    Java
    - Registered: Fri Apr 19 12:43:09 GMT 2024
    - Last Modified: Tue Feb 06 18:35:19 GMT 2024
    - 31.1K bytes
    - Viewed (0)
  4. android/guava-tests/test/com/google/common/collect/FluentIterableTest.java

      }
    
      public void testFromArray() {
        assertEquals(
            ImmutableList.of("1", "2", "3", "4"),
            Lists.newArrayList(FluentIterable.from(new Object[] {"1", "2", "3", "4"})));
      }
    
      public void testOf_empty() {
        assertEquals(ImmutableList.of(), Lists.newArrayList(FluentIterable.of()));
      }
    
      // Exhaustive tests are in IteratorsTest. These are copied from IterablesTest.
      public void testConcatIterable() {
    Java
    - Registered: Fri May 03 12:43:13 GMT 2024
    - Last Modified: Tue Jun 06 17:32:08 GMT 2023
    - 30.6K bytes
    - Viewed (0)
Back to top