Package com.jcabi.http.mock

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


            MatcherAssert.assertThat(
                container.take().uri().toString(),
                Matchers.endsWith("/git/refs/tags")
            );
        } finally {
            container.stop();
        }
    }

    /**
     * RtReferences should be able to iterate over heads.
View Full Code Here


            MatcherAssert.assertThat(
                container.take().uri().toString(),
                Matchers.endsWith("/git/refs/heads")
            );
        } finally {
            container.stop();
        }
    }

    /**
     * This method returns a Repo for testing.
View Full Code Here

            MatcherAssert.assertThat(
                event.json().getString("test"),
                Matchers.equalTo("events")
            );
        } finally {
            container.stop();
        }
    }

    /**
     * RtEvent should be able to compare different instances.
View Full Code Here

            MatcherAssert.assertThat(
                pull.commits(),
                Matchers.notNullValue()
            );
        } finally {
            container.stop();
        }
    }

    /**
     * RtPull should be able to retrieve files.
View Full Code Here

            MatcherAssert.assertThat(
                pull.files().iterator().next().getString("file1"),
                Matchers.equalTo("testFile")
            );
        } finally {
            container.stop();
        }
    }

    /**
     * RtPull should be able to perform a merge.
View Full Code Here

            MatcherAssert.assertThat(
                query.body(),
                Matchers.equalTo("{\"commit_message\":\"Test commit.\"}")
            );
        } finally {
            container.stop();
        }
    }

    /**
     * RtPull should be able to compare different instances.
View Full Code Here

            MatcherAssert.assertThat(
                query.body(),
                Matchers.equalTo("{\"patch\":\"test\"}")
            );
        } finally {
            container.stop();
        }
    }

    /**
     * RtIssue should be able to compare different instances.
View Full Code Here

        );
        MatcherAssert.assertThat(
            iterator.next().toString(),
            Matchers.containsString("Mark")
        );
        container.stop();
    }

    /**
     * RtPagination can throw if there is no more elements in pagination.
     *
 
View Full Code Here

            MatcherAssert.assertThat(
                iterator.next(),
                Matchers.notNullValue()
            );
        } finally {
            container.stop();
        }
    }

    /**
     * Create and return MkAnswer.Simple to test.
View Full Code Here

        );
        MatcherAssert.assertThat(
            release.json().getString("tag_name"),
            Matchers.equalTo(tag)
        );
        container.stop();
    }

    /**
     * RtReleases can delete a release.
     * @throws Exception If some problem inside
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.