Skip to content

MkGithub mock version of Github server

Compare
Choose a tag to compare
@yegor256 yegor256 released this 26 Nov 11:48
· 2879 commits to master since this release

This version introduces class MkGithub, which is a mock version of Github server-side implementation. This is how you can use it in your unit tests:

Github github = new MkGithub();
Repo repo = github.repos().create(
  Json.createObjectBuilder().add("name", "test").build()
);
Issue issue = repo.issues().create("title of the issue", "body of it");
issue.comments().post("How are you?");