- Sort Score
- Num 10 results
- Language All
Results 1 - 10 of 102 for array1 (0.03 seconds)
-
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) -
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) -
src/test/java/org/codelibs/fess/crawler/transformer/FessTransformerTest.java
@Override protected void tearDown(TestInfo testInfo) throws Exception { super.tearDown(testInfo); } /** * Test putResultDataBody with Object[] arrays * This tests the improved array handling using java.lang.reflect.Array */ @Test public void test_putResultDataBody_withObjectArray() { TestFessTransformer transformer = new TestFessTransformer();Created: Tue Mar 31 13:07:34 GMT 2026 - Last Modified: Wed Jan 14 14:29:07 GMT 2026 - 10.8K bytes - Click Count (0) -
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) -
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) -
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) -
src/main/java/org/codelibs/fess/crawler/serializer/DataSerializer.java
} } /** * Deserializes a byte array using Kryo deserialization. * <p> * Uses the thread-local Kryo instance to read both the class information * and object data from the byte array input stream. * </p> * * @param bytes the byte array to deserialize * @return the deserialized object */Created: Tue Mar 31 13:07:34 GMT 2026 - Last Modified: Sat Jan 10 01:54:09 GMT 2026 - 10.5K bytes - Click Count (3) -
src/test/java/org/codelibs/fess/util/QueryResponseListTest.java
documentList.add(doc2); QueryResponseList qrList = new QueryResponseList(documentList, 0, 10, 0); Object[] array = qrList.toArray(); assertEquals(2, array.length); assertEquals(doc1, array[0]); assertEquals(doc2, array[1]); @SuppressWarnings("unchecked") Map<String, Object>[] typedArray = qrList.toArray(new Map[0]);
Created: Tue Mar 31 13:07:34 GMT 2026 - Last Modified: Sun Jan 11 08:43:05 GMT 2026 - 40.1K bytes - Click Count (0) -
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) -
src/test/java/org/codelibs/fess/dict/synonym/SynonymItemTest.java
assertEquals("r", outputs2[2]); } @Test public void test_defensiveCopy_nullArrays() { // Test that defensive copy handles null arrays correctly SynonymItem item1 = new SynonymItem(1, new String[] { "a" }, new String[] { "x" }); // Set to null item1.setNewInputs(null); item1.setNewOutputs(null); // Should return null, not crash
Created: Tue Mar 31 13:07:34 GMT 2026 - Last Modified: Sun Jan 11 08:43:05 GMT 2026 - 8K bytes - Click Count (1)