Class MkCommit

  • All Implemented Interfaces:
    Commit, JsonReadable, Comparable<Commit>

    @Immutable
    @Loggable(1)
    public final class MkCommit
    extends Object
    implements Commit
    Mock of Github Commit.
    Version:
    $Id: 14ae9ed91106cc4995cba01bd759c87891d27f15 $
    Author:
    Ed Hillmann (edhillmann@yahoo.com)
    • Constructor Detail

      • MkCommit

        public MkCommit​(MkStorage strg,
                        String login,
                        Coordinates crds,
                        String commitsha)
        Public constructor.
        Parameters:
        strg - The storage.
        login - The login name
        crds - Credential
        commitsha - Commit's sha.
    • Method Detail

      • repo

        public Repo repo()
        Description copied from interface: Commit
        The repo we're in.
        Specified by:
        repo in interface Commit
        Returns:
        Repo
      • sha

        public String sha()
        Description copied from interface: Commit
        SHA of it.
        Specified by:
        sha in interface Commit
        Returns:
        SHA
      • json

        public javax.json.JsonObject json()
                                   throws IOException
        Description copied from interface: JsonReadable
        Describe it in a JSON object.
        Specified by:
        json in interface JsonReadable
        Returns:
        JSON object
        Throws:
        IOException - If there is any I/O problem