Package com.netflix.genie.common.model

Examples of com.netflix.genie.common.model.Job


     *
     * @throws GenieException On any error.
     */
    @Test(expected = GenieException.class)
    public void testBuildRequestBadUri() throws GenieException {
        BaseGenieClient.buildRequest(HttpRequest.Verb.PUT, "I am not a valid URI", null, new Job());
    }
View Full Code Here


     * @throws GenieException On any error.
     */
    @Test
    public void testBuildRequestValidPost() throws GenieException {
        final String uri = "http://localhost:7001/genie/v2/jobs";
        final Job job = new Job();
        final HttpRequest validRequest = BaseGenieClient.buildRequest(
                HttpRequest.Verb.POST, uri, null, job);

        Assert.assertEquals(HttpRequest.Verb.POST, validRequest.getVerb());
        Assert.assertEquals(uri, validRequest.getUri().toString());
View Full Code Here

TOP

Related Classes of com.netflix.genie.common.model.Job

Copyright © 2018 www.massapicom. 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.