Search Options

Results per page
Sort
Preferred Languages
Advance

Results 1031 - 1040 of 1,141 for assertTrue (0.05 sec)

  1. guava-testlib/src/com/google/common/collect/testing/testers/CollectionClearTester.java

    @SuppressWarnings("JUnit4ClassUsedInJUnit3")
    public class CollectionClearTester<E> extends AbstractCollectionTester<E> {
      @CollectionFeature.Require(SUPPORTS_REMOVE)
      public void testClear() {
        collection.clear();
        assertTrue("After clear(), a collection should be empty.", collection.isEmpty());
        assertEquals(0, collection.size());
        assertFalse(collection.iterator().hasNext());
      }
    
      @CollectionFeature.Require(absent = SUPPORTS_REMOVE)
    Registered: Fri Sep 05 12:43:10 UTC 2025
    - Last Modified: Thu Nov 14 23:40:07 UTC 2024
    - 3.1K bytes
    - Viewed (0)
  2. fess-crawler/src/test/java/org/codelibs/fess/crawler/interval/impl/HostIntervalControllerTest.java

            } catch (final ExecutionException e) {
                // no thing to do
            }
    
            long elapsed = (System.nanoTime() - time) / 1000000;
            long wait = waittime * (numTasks - 1);
            assertTrue(elapsed + " >= " + wait, elapsed + 1L >= wait);
        }
    Registered: Sun Sep 21 03:50:09 UTC 2025
    - Last Modified: Sat Mar 15 06:52:00 UTC 2025
    - 3.2K bytes
    - Viewed (0)
  3. src/test/java/org/codelibs/fess/cors/CorsHandlerFactoryTest.java

            // Execute
            CorsHandlerFactory factory = new CorsHandlerFactory();
    
            // Verify
            assertNotNull(factory);
            assertNotNull(factory.handerMap);
            assertTrue(factory.handerMap.isEmpty());
        }
    
        // Test implementation of CorsHandler for testing purposes
        private static class TestCorsHandler extends CorsHandler {
            private final String name;
    
    Registered: Thu Sep 04 12:52:25 UTC 2025
    - Last Modified: Tue Aug 19 14:09:36 UTC 2025
    - 9.1K bytes
    - Viewed (0)
  4. src/test/java/jcifs/internal/smb2/create/Smb2CloseRequestTest.java

    import static org.junit.jupiter.api.Assertions.assertEquals;
    import static org.junit.jupiter.api.Assertions.assertNotNull;
    import static org.junit.jupiter.api.Assertions.assertThrows;
    import static org.junit.jupiter.api.Assertions.assertTrue;
    import static org.mockito.Mockito.mock;
    import static org.mockito.Mockito.when;
    
    import java.lang.reflect.Field;
    import java.util.Arrays;
    
    import org.junit.jupiter.api.BeforeEach;
    Registered: Sun Sep 07 00:10:21 UTC 2025
    - Last Modified: Thu Aug 14 05:31:44 UTC 2025
    - 20.5K bytes
    - Viewed (0)
  5. src/test/java/org/codelibs/fess/suggest/SuggesterBuilderTest.java

            assertNotNull(suggester.indexer());
            assertNotNull(suggester.getNormalizer());
            assertNotNull(suggester.getReadingConverter());
            assertNotNull(suggester.settings());
            assertTrue(!Strings.isNullOrEmpty(suggester.index));
        }
    
        public void test_buildWithParameters() throws Exception {
            final String settingsIndexName = "test-settings-index";
    Registered: Fri Sep 19 09:08:11 UTC 2025
    - Last Modified: Thu Aug 07 02:41:28 UTC 2025
    - 3.7K bytes
    - Viewed (0)
  6. android/guava-tests/test/com/google/common/collect/EnumBiMapTest.java

        suite.addTestSuite(EnumBiMapTest.class);
        return suite;
      }
    
      public void testCreate() {
        EnumBiMap<Currency, Country> bimap = EnumBiMap.create(Currency.class, Country.class);
        assertTrue(bimap.isEmpty());
        assertEquals("{}", bimap.toString());
        assertEquals(HashBiMap.create(), bimap);
        bimap.put(Currency.DOLLAR, Country.CANADA);
        assertEquals(Country.CANADA, bimap.get(Currency.DOLLAR));
    Registered: Fri Sep 05 12:43:10 UTC 2025
    - Last Modified: Thu Aug 07 16:05:33 UTC 2025
    - 11.9K bytes
    - Viewed (0)
  7. src/test/java/org/codelibs/fess/validation/UriTypeTest.java

                    hasWeb = true;
                } else if (type == ProtocolType.FILE) {
                    hasFile = true;
                }
            }
    
            assertTrue("Should have WEB protocol type", hasWeb);
            assertTrue("Should have FILE protocol type", hasFile);
        }
    
        // Test ProtocolType valueOf
        public void test_protocolTypeValueOf() {
    Registered: Thu Sep 04 12:52:25 UTC 2025
    - Last Modified: Tue Aug 19 14:09:36 UTC 2025
    - 21K bytes
    - Viewed (0)
  8. guava-tests/test/com/google/common/collect/AbstractMapEntryTest.java

        assertEquals("null=null", entry(NK, NV).toString());
      }
    
      public void testEquals() {
        Entry<String, Integer> foo1 = entry("foo", 1);
        // Explicitly call `equals`; `assertEquals` might return fast
        assertTrue(foo1.equals(foo1));
        assertEquals(control("foo", 1), foo1);
        assertEquals(control("bar", 2), entry("bar", 2));
        assertFalse(control("foo", 1).equals(entry("foo", 2)));
        assertFalse(foo1.equals(control("bar", 1)));
    Registered: Fri Sep 05 12:43:10 UTC 2025
    - Last Modified: Tue May 13 18:46:00 UTC 2025
    - 3.1K bytes
    - Viewed (0)
  9. guava-tests/test/com/google/common/cache/CacheLoadingTest.java

        assertThat(expected).hasCauseThat().isSameInstanceAs(e);
        assertTrue(Thread.interrupted());
        stats = cache.stats();
        assertEquals(2, stats.missCount());
        assertEquals(0, stats.loadSuccessCount());
        assertEquals(2, stats.loadExceptionCount());
        assertEquals(0, stats.hitCount());
    
        cache.refresh(new Object());
        assertTrue(Thread.interrupted());
        checkLoggedCause(e);
    Registered: Fri Sep 05 12:43:10 UTC 2025
    - Last Modified: Mon Aug 11 19:31:30 UTC 2025
    - 85.7K bytes
    - Viewed (0)
  10. src/test/java/jcifs/smb/SmbRandomAccessFileTest.java

    import static org.junit.jupiter.api.Assertions.assertEquals;
    import static org.junit.jupiter.api.Assertions.assertNull;
    import static org.junit.jupiter.api.Assertions.assertThrows;
    import static org.junit.jupiter.api.Assertions.assertTrue;
    import static org.mockito.ArgumentMatchers.any;
    import static org.mockito.ArgumentMatchers.anyInt;
    import static org.mockito.ArgumentMatchers.eq;
    import static org.mockito.Mockito.atLeast;
    Registered: Sun Sep 07 00:10:21 UTC 2025
    - Last Modified: Thu Aug 14 05:31:44 UTC 2025
    - 18.1K bytes
    - Viewed (0)
Back to top