Search Options

Display Count
Sort
Preferred Language
Advanced Search

Results 1 - 10 of 29 for jsonPath (0.04 seconds)

  1. src/test/java/org/codelibs/fess/it/admin/CrawlerLogTests.java

            String response = checkMethodBase(searchBody).get("/api/admin/crawlinginfo/logs").asString();
            JsonPath jsonPath = JsonPath.from(response);
            assertEquals(0, jsonPath.getInt("response.status"));
            List<Map<String, Object>> logs = jsonPath.getList("response.logs");
            assertTrue(logs.size() >= 1);
    
            // Test with pagination
            searchBody.put("size", 10);
    Created: Tue Mar 31 13:07:34 GMT 2026
    - Last Modified: Mon Mar 30 14:01:34 GMT 2026
    - 13.4K bytes
    - Click Count (0)
  2. src/test/java/org/codelibs/fess/it/search/LabelsApiTests.java

            Response response = checkMethodBase(labelBody).post("/api/admin/labeltype/setting");
            JsonPath jsonPath = JsonPath.from(response.asString());
            assertTrue(jsonPath.getBoolean("response.created"));
            assertEquals(0, jsonPath.getInt("response.status"));
            return jsonPath.get("response.id");
        }
    
        private static void deleteLabel(final String id) {
    Created: Tue Mar 31 13:07:34 GMT 2026
    - Last Modified: Sat Dec 20 03:03:44 GMT 2025
    - 4.1K bytes
    - Click Count (0)
  3. src/test/java/org/codelibs/fess/it/CrawlTestBase.java

            String response = checkMethodBase(requestBody).post("/api/admin/webconfig/setting").asString();
            JsonPath jsonPath = JsonPath.from(response);
            assertTrue(jsonPath.getBoolean("response.created"));
            assertEquals(0, jsonPath.getInt("response.status"));
            return jsonPath.getString("response.id");
        }
    
        protected static List<String> getWebConfigIds(final String namePrefix) {
    Created: Tue Mar 31 13:07:34 GMT 2026
    - Last Modified: Sun Jan 11 08:43:05 GMT 2026
    - 10.6K bytes
    - Click Count (0)
  4. src/test/java/org/codelibs/fess/it/search/FavoritesApiTests.java

            Response response = checkMethodBase(labelBody).post("/api/admin/labeltype/setting");
            JsonPath jsonPath = JsonPath.from(response.asString());
            assertTrue(jsonPath.getBoolean("response.created"));
            assertEquals(0, jsonPath.getInt("response.status"));
            return jsonPath.get("response.id");
        }
    
        protected static void deleteLabel(String id) {
    Created: Tue Mar 31 13:07:34 GMT 2026
    - Last Modified: Sat Dec 20 03:03:44 GMT 2025
    - 9.9K bytes
    - Click Count (0)
  5. src/test/java/org/codelibs/fess/it/search/SuggestWordsApiTests.java

                    .when()
                    .get("/api/v1/suggest-words")
                    .asString();
    
            JsonPath jsonPath = JsonPath.from(response);
            assertTrue(jsonPath.getInt("record_count") >= 0);
            assertTrue(jsonPath.getInt("page_size") >= 0);
            assertTrue(jsonPath.getLong("query_time") >= 0);
        }
    
        @Test
        public void testSuggestWords_pageSizeDefault() {
    Created: Tue Mar 31 13:07:34 GMT 2026
    - Last Modified: Sat Dec 20 03:03:44 GMT 2025
    - 5.7K bytes
    - Click Count (0)
  6. src/test/java/org/codelibs/fess/it/search/PopularWordsApiTests.java

            String response = given().contentType("application/json").when().get("/api/v1/popular-words").asString();
    
            JsonPath jsonPath = JsonPath.from(response);
            assertTrue(jsonPath.getInt("record_count") >= 0);
            // data is an array of strings
            assertTrue(jsonPath.getList("data") != null);
        }
    Created: Tue Mar 31 13:07:34 GMT 2026
    - Last Modified: Sat Dec 20 03:03:44 GMT 2025
    - 3.6K bytes
    - Click Count (0)
  7. src/test/java/org/codelibs/fess/it/admin/ElevateWordTests.java

            assertTrue(statusCode == 200 || statusCode == 400, "Status code should be 200 or 400, but was " + statusCode);
    
            if (statusCode == 200) {
                JsonPath jsonPath = JsonPath.from(response.asString());
                assertEquals(Integer.valueOf(0), jsonPath.get("response.status"));
            }
        }
    Created: Tue Mar 31 13:07:34 GMT 2026
    - Last Modified: Sat Dec 20 03:03:44 GMT 2025
    - 4K bytes
    - Click Count (0)
  8. src/test/java/org/codelibs/fess/it/admin/BadWordTests.java

            assertTrue(statusCode == 200 || statusCode == 400, "Status code should be 200 or 400, but was " + statusCode);
    
            if (statusCode == 200) {
                JsonPath jsonPath = JsonPath.from(response.asString());
                assertEquals(Integer.valueOf(0), jsonPath.get("response.status"));
            }
        }
    Created: Tue Mar 31 13:07:34 GMT 2026
    - Last Modified: Sat Dec 20 03:03:44 GMT 2025
    - 4.1K bytes
    - Click Count (0)
  9. src/test/java/org/codelibs/fess/it/admin/PluginTests.java

        }
    
        @Test
        void testCRUD() throws Exception {
            List<Map<String, Object>> available =
                    checkGetMethod(Collections.emptyMap(), getAvailableEndpointSuffix() + "/").body().jsonPath().get("response.plugins");
            final Map<String, Object> targetMap =
                    available.stream().filter(map -> !map.get("name").toString().startsWith("fess-")).toList().get(0);
    Created: Tue Mar 31 13:07:34 GMT 2026
    - Last Modified: Sun Jan 11 08:43:05 GMT 2026
    - 6.5K bytes
    - Click Count (0)
  10. src/test/java/org/codelibs/fess/it/search/SearchApiTests.java

            Response response = checkMethodBase(labelBody).post("/api/admin/labeltype/setting");
            JsonPath jsonPath = JsonPath.from(response.asString());
            assertTrue(jsonPath.getBoolean("response.created"));
            assertEquals(0, jsonPath.getInt("response.status"));
            return jsonPath.get("response.id");
        }
    
        private static String createCrawlLabel() {
    Created: Tue Mar 31 13:07:34 GMT 2026
    - Last Modified: Fri Nov 21 13:29:45 GMT 2025
    - 19K bytes
    - Click Count (0)
Back to Top