142143144145146147148149150151152
MatcherAssert.assertThat( json.getString("body"), Matchers.is("test5") ); } finally { container.stop(); } } /** * RtComment can patch a comment.
169170171172173174175176177178179
final MkQuery query = container.take(); MatcherAssert.assertThat( query.method(), Matchers.equalTo(Request.PATCH) ); } finally { container.stop(); } } /** * This tests that the toString() method is working fine.
194195196197198199200201202203204
MatcherAssert.assertThat( stringComment, Matchers.not(Matchers.isEmptyOrNullString()) ); MatcherAssert.assertThat(stringComment, Matchers.endsWith("10")); } finally { container.stop(); } } /** * This method returns a Repo for testing.
8283848586878889909192
MatcherAssert.assertThat( container.take().uri().toString(), Matchers.endsWith("/user/orgs") ); } finally { container.stop(); } } /** * RtOrganizations can iterate organizations for an unauthenticated user.
119120121122123124125126127128129
MatcherAssert.assertThat( container.take().uri().toString(), Matchers.endsWith(String.format("/users/%s/orgs", username)) ); } finally { container.stop(); } } /** * RtOrganizations should be able to get a single organization.
144145146147148149150151152153154
MatcherAssert.assertThat( orgs.get("org"), Matchers.notNullValue() ); } finally { container.stop(); } } /** * Create and return organization to test.
7172737475767778798081
); MatcherAssert.assertThat( users.iterate(), Matchers.<User>iterableWithSize(2) ); container.stop(); } /** * RtAssignees can check if user is assignee for this repo. * @throws Exception Exception If some problem inside
979899100101102103104105106107
); MatcherAssert.assertThat( users.check("octocat2"), Matchers.equalTo(true) ); container.stop(); } /** * RtAssignees can check if user is NOT assignee for this repo. * @throws Exception Exception If some problem inside
123124125126127128129130131132133
); MatcherAssert.assertThat( users.check("octocat33"), Matchers.equalTo(false) ); container.stop(); } /** * Create and return JsonObject to test. * @param login Username to login
8788899091929394959697
MatcherAssert.assertThat( newCommit.sha(), Matchers.equalTo("0abcd89jcabitest") ); } finally { container.stop(); } } /** * This method returns a Repo for testing.