Search Options

Results per page
Sort
Preferred Languages
Advance

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

  1. 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());
        assertThrows(NoSuchElementException.class, () -> iterator.next());
    Registered: Fri Nov 01 12:43:10 UTC 2024
    - Last Modified: Wed Oct 30 16:15:19 UTC 2024
    - 2.6K bytes
    - Viewed (0)
  2. 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());
        assertThrows(NoSuchElementException.class, () -> iterator.next());
    Registered: Fri Nov 01 12:43:10 UTC 2024
    - Last Modified: Wed Oct 30 16:15:19 UTC 2024
    - 2.6K bytes
    - Viewed (0)
  3. 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() {
    Registered: Fri Nov 01 12:43:10 UTC 2024
    - Last Modified: Wed Oct 30 16:15:19 UTC 2024
    - 30.4K bytes
    - Viewed (0)
  4. src/test/java/org/codelibs/fess/crawler/util/FieldConfigsTest.java

    import java.util.Collections;
    import java.util.Map;
    
    import org.apache.groovy.util.Maps;
    import org.codelibs.fess.unit.UnitFessTestCase;
    
    public class FieldConfigsTest extends UnitFessTestCase {
        public void test_empty() {
            final FieldConfigs fieldConfigs = new FieldConfigs(Collections.emptyMap());
            assertTrue(fieldConfigs.getConfig("test").isEmpty());
        }
    
        public void test_values() {
    Registered: Thu Oct 31 13:40:30 UTC 2024
    - Last Modified: Thu Jul 04 06:20:49 UTC 2024
    - 3.3K bytes
    - Viewed (0)
Back to top