Search Options

Display Count
Sort
Preferred Language
Advanced Search

Results 1 - 3 of 3 for createItem (0.09 seconds)

  1. src/test/java/org/codelibs/fess/dict/stopwords/StopwordsItemTest.java

        @Test
        public void test_createMode() {
            // Test special behavior when id is 0 (create mode)
            StopwordsItem createItem = new StopwordsItem(0, "newword");
            assertTrue(createItem.isUpdated());
            assertEquals("newword", createItem.getNewInput());
            assertEquals("newword", createItem.toLineString());
    
            // Non-zero id should not auto-set newInput
    Created: Tue Mar 31 13:07:34 GMT 2026
    - Last Modified: Fri Mar 13 23:01:26 GMT 2026
    - 11.4K bytes
    - Click Count (0)
  2. src/main/java/org/codelibs/fess/app/web/admin/user/AdminUserAction.java

         *
         * @param label the display label for the item
         * @param value the value associated with the item
         * @return a map containing the label and value entries
         */
        protected Map<String, String> createItem(final String label, final String value) {
            final Map<String, String> map = new HashMap<>(2);
            map.put(Constants.ITEM_LABEL, label);
            map.put(Constants.ITEM_VALUE, value);
            return map;
        }
    Created: Tue Mar 31 13:07:34 GMT 2026
    - Last Modified: Fri Jan 02 06:18:24 GMT 2026
    - 21K bytes
    - Click Count (0)
  3. src/test/java/org/codelibs/fess/app/web/admin/user/AdminUserActionTest.java

            assertNull(form.password);
            assertNull(form.confirmPassword);
        }
    
        @Test
        public void test_createItem() {
            final Map<String, String> item = adminUserAction.createItem("Label", "value");
    
            assertNotNull(item);
            assertEquals(2, item.size());
            assertEquals("Label", item.get(Constants.ITEM_LABEL));
            assertEquals("value", item.get(Constants.ITEM_VALUE));
    Created: Tue Mar 31 13:07:34 GMT 2026
    - Last Modified: Thu Jan 15 12:54:47 GMT 2026
    - 5.3K bytes
    - Click Count (0)
Back to Top