Search Options

Display Count
Sort
Preferred Language
Advanced Search

Results 411 - 420 of 1,160 for cases (0.04 seconds)

  1. src/test/java/org/codelibs/fess/entity/FacetQueryViewTest.java

            assertNotNull(result);
            assertTrue(result.contains("title=Empty Map Test"));
            assertTrue(result.contains("queryMap={}"));
        }
    
        // Test edge cases
        @Test
        public void test_addQuery_withNullValues() {
            facetQueryView.addQuery(null, "query1");
            assertEquals("query1", facetQueryView.getQueryMap().get(null));
    
    Created: Tue Mar 31 13:07:34 GMT 2026
    - Last Modified: Wed Jan 14 14:29:07 GMT 2026
    - 17.9K bytes
    - Click Count (0)
  2. src/test/java/org/codelibs/fess/dict/stopwords/StopwordsFileTest.java

            // Test writing a comment line
            updater.write("# This is a comment");
    
            updater.close();
        }
    
        // Test edge cases
        @Test
        public void test_emptyFile() {
            String content = "";
            InputStream is = new ByteArrayInputStream(content.getBytes(StandardCharsets.UTF_8));
            stopwordsFile.reload(null, is);
    
    Created: Tue Mar 31 13:07:34 GMT 2026
    - Last Modified: Fri Mar 13 23:01:26 GMT 2026
    - 18K bytes
    - Click Count (0)
  3. guava-tests/test/com/google/common/collect/TreeBasedTableTest.java

    import java.util.Set;
    import java.util.SortedMap;
    import junit.framework.Test;
    import junit.framework.TestSuite;
    import org.jspecify.annotations.NullMarked;
    import org.jspecify.annotations.Nullable;
    
    /**
     * Test cases for {@link TreeBasedTable}.
     *
     * @author Jared Levy
     * @author Louis Wasserman
     */
    @GwtCompatible
    @NullMarked
    public class TreeBasedTableTest extends AbstractTableTest<Character> {
      @J2ktIncompatible
    Created: Fri Apr 03 12:43:13 GMT 2026
    - Last Modified: Fri Mar 13 13:01:07 GMT 2026
    - 15.3K bytes
    - Click Count (0)
  4. src/main/java/org/codelibs/fess/helper/QueryHelper.java

            defaultSortBuilders = list.toArray(new SortBuilder[list.size()]);
        }
    
        /**
         * Creates a sort builder for the specified field and order.
         * This method handles special cases for score fields and regular field sorting.
         *
         * @param field the field name to sort by
         * @param order the sort order (ASC or DESC)
         * @return a configured sort builder
         */
    Created: Tue Mar 31 13:07:34 GMT 2026
    - Last Modified: Thu Jul 17 08:28:31 GMT 2025
    - 19.9K bytes
    - Click Count (0)
  5. android/guava/src/com/google/common/base/Optional.java

       * }
       * }
       *
       * ... can be replaced with:
       *
       * {@snippet :
       * possibleFoo.ifPresent(foo -> doSomethingWith(foo));
       * }
       *
       * <p><b>Java 9 users:</b> some use cases can be written with calls to {@code optional.stream()}.
       *
       * @since 11.0
       */
      public abstract Set<T> asSet();
    
      /**
    Created: Fri Apr 03 12:43:13 GMT 2026
    - Last Modified: Wed Jun 04 13:03:16 GMT 2025
    - 15.4K bytes
    - Click Count (0)
  6. src/test/java/org/codelibs/fess/crawler/serializer/DataSerializerTest.java

                                || message.contains("unregistered")));
            }
        }
    
        /**
         * Test that all registered types work correctly.
         * This ensures our registration covers the common use cases.
         */
        @Test
        public void test_allRegisteredTypesWork() {
            // Test various registered types
            Map<String, Object> testData = new HashMap<>();
            testData.put("string", "test");
    Created: Tue Mar 31 13:07:34 GMT 2026
    - Last Modified: Wed Jan 14 14:29:07 GMT 2026
    - 21.6K bytes
    - Click Count (0)
  7. src/archive/zip/writer_test.go

    		if err := w.Close(); test.ok == (err != nil) {
    			t.Fatal(err)
    		}
    
    		if w.closed != test.ok {
    			t.Fatalf("Writer.closed: got %v, want %v", w.closed, test.ok)
    		}
    
    		// skip read test in failure cases
    		if !test.ok {
    			continue
    		}
    
    		// read it back
    		r, err := NewReader(bytes.NewReader(buf.Bytes()), int64(buf.Len()))
    		if err != nil {
    			t.Fatal(err)
    		}
    		if r.Comment != test.comment {
    Created: Tue Apr 07 11:13:11 GMT 2026
    - Last Modified: Tue Jan 28 04:20:09 GMT 2025
    - 14.4K bytes
    - Click Count (0)
  8. src/bytes/bytes.go

    func Index(s, sep []byte) int {
    	n := len(sep)
    	switch {
    	case n == 0:
    		return 0
    	case n == 1:
    		return IndexByte(s, sep[0])
    	case n == len(s):
    		if Equal(sep, s) {
    			return 0
    		}
    		return -1
    	case n > len(s):
    		return -1
    	case n <= bytealg.MaxLen:
    		// Use brute force when s and sep both are small
    		if len(s) <= bytealg.MaxBruteForce {
    Created: Tue Apr 07 11:13:11 GMT 2026
    - Last Modified: Thu Mar 12 17:56:55 GMT 2026
    - 36.3K bytes
    - Click Count (0)
  9. android/guava/src/com/google/common/eventbus/EventBus.java

     * href="https://kotlinlang.org/docs/channels.html">Channels</a>. Yet other usages are better served
     * by individual libraries that provide specialized support for particular use cases.
     *
     * <p>Disadvantages of EventBus include:
     *
     * <ul>
     *   <li>It makes the cross-references between producer and subscriber harder to find. This can
    Created: Fri Apr 03 12:43:13 GMT 2026
    - Last Modified: Sat Dec 21 03:10:51 GMT 2024
    - 12.7K bytes
    - Click Count (0)
  10. android/guava/src/com/google/common/util/concurrent/AggregateFuture.java

        for (; t != null; t = t.getCause()) {
          boolean firstTimeSeen = seen.add(t);
          if (!firstTimeSeen) {
            /*
             * We've seen this, so we've seen its causes, too. No need to re-add them. (There's one case
             * where this isn't true, but we ignore it: If we record an exception, then someone calls
             * initCause() on it, and then we examine it again, we'll conclude that we've seen the whole
    Created: Fri Apr 03 12:43:13 GMT 2026
    - Last Modified: Sun Dec 22 03:38:46 GMT 2024
    - 16K bytes
    - Click Count (0)
Back to Top