Package com.jcabi.github

Examples of com.jcabi.github.Content


     */
    @Test
    public void canGetOwnRepo() throws Exception {
        final Repo repo = MkContentTest.repo();
        final Contents contents = repo.contents();
        final Content content = contents.create(
            jsonContent("repo.txt", "for repo", "json repo")
        );
        MatcherAssert.assertThat(
            content.repo(),
            Matchers.is(repo)
        );
    }
View Full Code Here


     */
    @Test
    public void canGetOwnPath() throws Exception {
        final Contents contents = MkContentTest.repo().contents();
        final String path = "dummy.txt";
        final Content content = contents.create(
            jsonContent(path, "for path", "path test")
        );
        MatcherAssert.assertThat(
            content.path(),
            Matchers.is(path)
        );
    }
View Full Code Here

     */
    @Test
    public void fetchesJsonRepresentation() throws Exception {
        final Contents contents = MkContentTest.repo().contents();
        final String path = "fake.txt";
        final Content content = contents.create(
            jsonContent(path, "for json", "json test")
        );
        MatcherAssert.assertThat(
            // @checkstyle MultipleStringLiterals (1 line)
            content.json().getString("name"),
            Matchers.is(path)
        );
    }
View Full Code Here

TOP

Related Classes of com.jcabi.github.Content

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.