Package in.partake.controller

Examples of in.partake.controller.ActionProxy.execute()


        addFormParameter(proxy, "query", SEARCH_QUERY);
        addFormParameter(proxy, "category", "all");
        addFormParameter(proxy, "beforeDeadlineOnly", "false");
        addFormParameter(proxy, "sortOrder", "score");
        addFormParameter(proxy, "maxNum", "10");
        proxy.execute();

        assertResultOK(proxy);
        ObjectNode json = getJSON(proxy);
        DateTime now = TimeUtil.getCurrentDateTime();
        boolean findEventWhichIsAfterDeadline = false;
View Full Code Here


        addFormParameter(proxy, "query", SEARCH_QUERY);
        addFormParameter(proxy, "category", "all");
        // addFormParameter(proxy, "beforeDeadlineOnly", null);
        addFormParameter(proxy, "sortOrder", "score");
        addFormParameter(proxy, "maxNum", "10");
        proxy.execute();

        assertResultOK(proxy);
        ObjectNode json = getJSON(proxy);
        assertOnlyBeforeDeadlineAreFound(json);
    }
View Full Code Here

        addFormParameter(proxy, "query", SEARCH_QUERY);
        addFormParameter(proxy, "category", "all");
        addFormParameter(proxy, "beforeDeadlineOnly", "(´・ω・`)");
        addFormParameter(proxy, "sortOrder", "score");
        addFormParameter(proxy, "maxNum", "10");
        proxy.execute();

        assertResultOK(proxy);
    }

    private Event createEvent() {
View Full Code Here

        addFormParameter(proxy, "query", SEARCH_QUERY);
        addFormParameter(proxy, "category", "all");
        addFormParameter(proxy, "beforeDeadlineOnly", "true");
        addFormParameter(proxy, "sortOrder", "score");
        addFormParameter(proxy, "maxNum", "10000");
        proxy.execute();

        assertResultOK(proxy);
    }

    /**
 
View Full Code Here

        addFormParameter(proxy, "query", SEARCH_QUERY);
        addFormParameter(proxy, "category", "all");
        addFormParameter(proxy, "beforeDeadlineOnly", "true");
        addFormParameter(proxy, "sortOrder", "score");
        // addFormParameter(proxy, "maxNum", null);
        proxy.execute();

        assertResultOK(proxy);
        ObjectNode json = getJSON(proxy);
        assertThat(json.has("reason"), equalTo(false));
        assertThat(json.get("events").size(), equalTo(10));
View Full Code Here

        addFormParameter(proxy, "query", SEARCH_QUERY);
        addFormParameter(proxy, "category", "all");
        addFormParameter(proxy, "beforeDeadlineOnly", "true");
        addFormParameter(proxy, "sortOrder", "score");
        addFormParameter(proxy, "maxNum", "");
        proxy.execute();

        assertResultOK(proxy);
    }

    @Test
View Full Code Here

        addFormParameter(proxy, "query", SEARCH_QUERY);
        addFormParameter(proxy, "category", "all");
        addFormParameter(proxy, "beforeDeadlineOnly", "true");
        addFormParameter(proxy, "sortOrder", "score");
        addFormParameter(proxy, "maxNum", "m(_ _)m");
        proxy.execute();

        assertResultOK(proxy);
    }

    /**
 
View Full Code Here

        addFormParameter(proxy, "category", "all");
        addFormParameter(proxy, "beforeDeadlineOnly", "true");
        addFormParameter(proxy, "sortOrder", "score");
        // addFormParameter(proxy, "maxNum", null);
        addFormParameter(proxy, "maxnum", "10");
        proxy.execute();

        assertResultOK(proxy);
        ObjectNode json = getJSON(proxy);
        assertThat(json.has("reason"), equalTo(false));
        assertThat(json.get("events").size(), equalTo(10));
View Full Code Here

        ActionProxy proxy = getActionProxy(POST, "/api/event/search");
        addFormParameter(proxy, "query", SEARCH_QUERY);
        addFormParameter(proxy, "category", "all");
        addFormParameter(proxy, "maxNum", "2");
        proxy.execute();

        assertResultOK(proxy);
        ObjectNode json = getJSON(proxy);
        String expectedId = json.get("events").get(1).get("id").asText();
View Full Code Here

        assertResultOK(proxy);
        ObjectNode json = getJSON(proxy);
        String expectedId = json.get("events").get(1).get("id").asText();

        addFormParameter(proxy, "offset", "1");
        proxy.execute();

        assertResultOK(proxy);
        json = getJSON(proxy);
        String actualId = json.get("events").get(0).get("id").asText();
        assertThat(actualId, is(equalTo(expectedId)));
View Full Code Here

TOP
Copyright © 2018 www.massapi.com. All rights reserved.
All source code are property of their respective owners. Java is a trademark of Sun Microsystems, Inc and owned by ORACLE Inc. Contact coftware#gmail.com.