Package com.jcabi.github.mock
Class MkCommit
java.lang.Object
com.jcabi.github.mock.MkCommit
- All Implemented Interfaces:
Commit,JsonReadable,Comparable<Commit>
Mock of GitHub Commit.
- Since:
- 0.3
-
Nested Class Summary
Nested classes/interfaces inherited from interface com.jcabi.github.Commit
Commit.Smart -
Constructor Summary
ConstructorsConstructorDescriptionMkCommit(MkStorage strg, String login, Coordinates crds, String commitsha) Public constructor. -
Method Summary
-
Constructor Details
-
MkCommit
Public constructor.- Parameters:
strg- The storage.login- The login namecrds- Credentialcommitsha- Commit's sha.- Suppressed Checkstyle violations:
- ParameterNumber (5 lines)
-
-
Method Details
-
repo
Description copied from interface:CommitThe repo we're in. -
sha
Description copied from interface:CommitSHA of it. -
json
Description copied from interface:JsonReadableDescribe it in a JSON object.- Specified by:
jsonin interfaceJsonReadable- Returns:
- JSON object
- Throws:
IOException- If there is any I/O problem
-
compareTo
- Specified by:
compareToin interfaceComparable<Commit>
-