Class AbstractRest

    • Constructor Detail

      • AbstractRest

        public AbstractRest()
    • Method Detail

      • init

        protected void init​(URI uri)
      • setUp

        @BeforeEach
        public void setUp()
      • getHttpClient

        public HttpClient getHttpClient()
      • getUri

        public URI getUri()
      • createCommits

        protected String createCommits​(org.projectnessie.model.Reference branch,
                                       int numAuthors,
                                       int commitsPerAuthor,
                                       String currentHash)
                                throws org.projectnessie.error.BaseNessieClientServerException
        Throws:
        org.projectnessie.error.BaseNessieClientServerException
      • createBranch

        protected org.projectnessie.model.Branch createBranch​(String name,
                                                              org.projectnessie.model.Branch from)
                                                       throws org.projectnessie.error.BaseNessieClientServerException
        Throws:
        org.projectnessie.error.BaseNessieClientServerException
      • createBranch

        protected org.projectnessie.model.Branch createBranch​(String name)
                                                       throws org.projectnessie.error.BaseNessieClientServerException
        Throws:
        org.projectnessie.error.BaseNessieClientServerException
      • deleteBranch

        protected void deleteBranch​(String name,
                                    String hash)
                             throws org.projectnessie.error.BaseNessieClientServerException
        Throws:
        org.projectnessie.error.BaseNessieClientServerException
      • maybeAsDetachedName

        protected static String maybeAsDetachedName​(boolean withDetachedCommit,
                                                    org.projectnessie.model.Reference ref)
        Used by parameterized tests to return the "DETACHED", if withDetachedCommit is true or the reference name from the given ref.