Package com.jcabi.http.mock

Examples of com.jcabi.http.mock.MkContainer.stop()


        final GistComment comment = comments.get(1);
        MatcherAssert.assertThat(
            new GistComment.Smart(comment).body(),
            Matchers.equalTo(body)
        );
        container.stop();
    }

    /**
     * RtGistComments can iterate comments.
     * @throws Exception if there is any error
View Full Code Here


        );
        MatcherAssert.assertThat(
            comments.iterate(),
            Matchers.<GistComment>iterableWithSize(2)
        );
        container.stop();
    }

    /**
     * RtGistComments can create a comment.
     * @throws Exception if there is any error
View Full Code Here

        );
        MatcherAssert.assertThat(
            new GistComment.Smart(comment).body(),
            Matchers.equalTo(body)
        );
        container.stop();
    }

    /**
     * Create and return JsonObject to test.
     * @param body The body of the comment
View Full Code Here

        );
        MatcherAssert.assertThat(
            repo.events(),
            Matchers.<Event>iterableWithSize(2)
        );
        container.stop();
    }

    /**
     * RtRepo can fetch its labels.
     *
 
View Full Code Here

        repo.patch(event(Event.ASSIGNED));
        MatcherAssert.assertThat(
            container.take().method(),
            Matchers.equalTo(Request.PATCH)
        );
        container.stop();
    }

    /**
     * RtRepo can describe as a JSON object.
     *
 
View Full Code Here

        );
        MatcherAssert.assertThat(
            repo.coordinates(),
            Matchers.equalTo((Coordinates) new Coordinates.Simple(owner, name))
        );
        container.stop();
    }

    /**
     * RtUsers can iterate users.
     * @throws Exception if there is any error
View Full Code Here

        );
        MatcherAssert.assertThat(
            repos.iterate(identifier),
            Matchers.<Repo>iterableWithSize(2)
        );
        container.stop();
    }

    /**
     * RtRepos can remove a repo.
     * @throws Exception if some problem inside
View Full Code Here

            MatcherAssert.assertThat(
                query.body(),
                Matchers.isEmptyString()
            );
        } finally {
            container.stop();
        }
    }

    /**
     * Create and return JsonObject to test response.
View Full Code Here

        );
        MatcherAssert.assertThat(
            fork.json().getString(ORGANIZATION),
            Matchers.equalTo(organization)
        );
        container.stop();
    }

    /**
     * Create and return repo for testing.
     *
 
View Full Code Here

            MatcherAssert.assertThat(
                hooks.iterate(),
                Matchers.emptyIterable()
            );
        } finally {
            container.stop();
        }
    }

    /**
     * RtHooks can fetch non empty list of hooks.
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.