Search Options

Display Count
Sort
Preferred Language
Advanced Search

Results 1 - 10 of 75 for array1 (0.04 seconds)

  1. src/test/java/org/codelibs/fess/util/MemoryUtilTest.java

            Map<String, Object> complexMap = new HashMap<>();
            complexMap.put("strings", Arrays.asList("test1", "test2"));
            complexMap.put("numbers", Arrays.asList(1, 2, 3));
            complexMap.put("nested", Maps.map("inner", "value").$());
            complexMap.put("array", new String[] { "array1", "array2" });
    
            // Calculate expected size based on actual behavior
    Created: Tue Mar 31 13:07:34 GMT 2026
    - Last Modified: Fri Mar 13 23:01:26 GMT 2026
    - 12K bytes
    - Click Count (0)
  2. src/test/java/org/codelibs/fess/util/DocumentUtilTest.java

            String[] array = { "a", "b", "c" };
            doc.put("key", array);
    
            List<String> result = DocumentUtil.getValue(doc, "key", List.class);
            assertEquals(Arrays.asList("a", "b", "c"), result);
        }
    
        @Test
        public void test_first_element_from_list() {
            Map<String, Object> doc = new HashMap<>();
            List<String> list = Arrays.asList("first", "second", "third");
    Created: Tue Mar 31 13:07:34 GMT 2026
    - Last Modified: Thu Mar 12 01:46:45 GMT 2026
    - 13.6K bytes
    - Click Count (0)
  3. src/main/java/org/codelibs/fess/helper/ProtocolHelper.java

            });
        }
    
        /**
         * Returns the array of supported web protocols.
         *
         * @return array of web protocol strings with colon suffix (e.g., "http:", "https:")
         */
        public String[] getWebProtocols() {
            return webProtocols;
        }
    
        /**
         * Returns the array of supported file protocols.
         *
         * @return array of file protocol strings with colon suffix (e.g., "file:", "ftp:")
    Created: Tue Mar 31 13:07:34 GMT 2026
    - Last Modified: Thu Mar 26 13:59:25 GMT 2026
    - 12.4K bytes
    - Click Count (1)
  4. src/test/java/org/codelibs/fess/query/QueryFieldConfigSetBasedLookupTest.java

            assertTrue(queryFieldConfig.sortFieldSet.contains("sort3"));
        }
    
        /**
         * Test isSortField with empty array - should return false, not throw exception.
         * This test addresses the Copilot AI concern about empty arrays.
         */
        @Test
        public void test_isSortField_withEmptyArray_returnsFalse() {
            String[] emptyFields = {};
    Created: Tue Mar 31 13:07:34 GMT 2026
    - Last Modified: Fri Mar 13 23:01:26 GMT 2026
    - 19.4K bytes
    - Click Count (0)
  5. src/test/java/org/codelibs/fess/annotation/SecuredTest.java

            assertNotNull(target);
            ElementType[] targetTypes = target.value();
            assertEquals(2, targetTypes.length);
            assertTrue(Arrays.asList(targetTypes).contains(ElementType.METHOD));
            assertTrue(Arrays.asList(targetTypes).contains(ElementType.TYPE));
    
            // Check Retention annotation
            Retention retention = Secured.class.getAnnotation(Retention.class);
    Created: Tue Mar 31 13:07:34 GMT 2026
    - Last Modified: Fri Mar 13 23:01:26 GMT 2026
    - 15.6K bytes
    - Click Count (0)
  6. src/test/java/org/codelibs/fess/job/CrawlJobTest.java

        private CrawlJob crawlJob;
    
        // Helper method to compare arrays
        private void assertArrayEquals(String[] expected, String[] actual) {
            if (expected == null && actual == null) {
                return;
            }
            if (expected == null || actual == null) {
                fail("Arrays are not equal: one is null");
            }
            assertEquals("Array lengths differ", expected.length, actual.length);
    Created: Tue Mar 31 13:07:34 GMT 2026
    - Last Modified: Fri Mar 13 23:01:26 GMT 2026
    - 25K bytes
    - Click Count (0)
  7. src/test/java/org/codelibs/fess/dict/mapping/CharMappingItemTest.java

            // Initially not deleted
            assertFalse(item.isDeleted());
    
            // Set newInputs to empty array and newOutput
            item.setNewInputs(new String[] {});
            item.setNewOutput("output");
            assertTrue(item.isDeleted());
    
            // Set newInputs to non-empty array - not deleted
            item.setNewInputs(new String[] { "something" });
            assertFalse(item.isDeleted());
        }
    
    Created: Tue Mar 31 13:07:34 GMT 2026
    - Last Modified: Fri Mar 13 23:01:26 GMT 2026
    - 16K bytes
    - Click Count (0)
  8. src/main/java/org/codelibs/fess/crawler/transformer/FessXpathTransformer.java

            } else if (logger.isDebugEnabled()) {
                logger.debug("Skipping child URL: url={}", u);
            }
        }
    
        /**
         * Checks if the byte array contains UTF-8 BOM (Byte Order Mark).
         *
         * @param b the byte array to check
         * @return true if the bytes represent UTF-8 BOM, false otherwise
         */
        private boolean isUtf8BomBytes(final byte[] b) {
    Created: Tue Mar 31 13:07:34 GMT 2026
    - Last Modified: Thu Mar 12 01:46:45 GMT 2026
    - 55.3K bytes
    - Click Count (0)
  9. src/test/java/org/codelibs/fess/dict/mapping/CharMappingFileTest.java

            } finally {
                CloseableUtil.closeQuietly(writer);
            }
        }
    
        // Helper method to assert arrays are equal (handles sorting)
        private void assertArrayEquals(String[] expected, String[] actual) {
            java.util.Arrays.sort(expected);
            java.util.Arrays.sort(actual);
            assertEquals(expected.length, actual.length);
            for (int i = 0; i < expected.length; i++) {
    Created: Tue Mar 31 13:07:34 GMT 2026
    - Last Modified: Fri Mar 13 23:01:26 GMT 2026
    - 18.9K bytes
    - Click Count (0)
  10. src/main/java/org/codelibs/fess/llm/AbstractLlmClient.java

                    return Arrays.stream(arrayContent.split(","))
                            .map(s -> s.trim().replaceAll("^\"|\"$", ""))
                            .filter(StringUtil::isNotBlank)
                            .collect(Collectors.toList());
                }
            }
            return Collections.emptyList();
        }
    
        /**
         * Extracts an integer array from JSON response.
         *
    Created: Tue Mar 31 13:07:34 GMT 2026
    - Last Modified: Sat Mar 21 06:04:58 GMT 2026
    - 72K bytes
    - Click Count (0)
Back to Top