Class AbstractRest

  • Direct Known Subclasses:
    AbstractRestAssign

    public abstract class AbstractRest
    extends java.lang.Object
    See AbstractTestRest for details about and reason for the inheritance model.
    • Field Summary

      Fields 
      Modifier and Type Field Description
      protected org.assertj.core.api.SoftAssertions soft  
    • Constructor Summary

      Constructors 
      Constructor Description
      AbstractRest()  
    • Method Summary

      All Methods Static Methods Instance Methods Concrete Methods 
      Modifier and Type Method Description
      protected static org.projectnessie.model.Content contentWithoutId​(org.projectnessie.model.Content content)  
      protected org.projectnessie.model.Branch createBranch​(java.lang.String name)  
      protected org.projectnessie.model.Branch createBranch​(java.lang.String name, org.projectnessie.model.Branch from)  
      protected java.lang.String createCommits​(org.projectnessie.model.Reference branch, int numAuthors, int commitsPerAuthor, java.lang.String currentHash)  
      protected org.projectnessie.model.Tag createTag​(java.lang.String name, org.projectnessie.model.Reference from)  
      protected static java.util.List<org.projectnessie.model.DiffResponse.DiffEntry> diffEntriesWithoutContentId​(java.util.List<org.projectnessie.model.DiffResponse.DiffEntry> diff)  
      protected static org.projectnessie.model.DiffResponse.DiffEntry diffEntryWithoutContentId​(org.projectnessie.model.DiffResponse.DiffEntry diff)  
      org.projectnessie.client.api.NessieApiV1 getApi()  
      protected static java.lang.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.
      protected static java.util.List<org.projectnessie.model.Operation> operationsWithoutContentId​(java.util.List<org.projectnessie.model.Operation> operations)  
      protected static org.projectnessie.model.Operation operationWithoutContentId​(org.projectnessie.model.Operation op)  
      void tearDown()  
      • Methods inherited from class java.lang.Object

        clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
    • Field Detail

      • soft

        protected final org.assertj.core.api.SoftAssertions soft
    • Constructor Detail

      • AbstractRest

        public AbstractRest()
    • Method Detail

      • getApi

        public org.projectnessie.client.api.NessieApiV1 getApi()
      • tearDown

        @AfterEach
        public void tearDown()
                      throws java.lang.Exception
        Throws:
        java.lang.Exception
      • createCommits

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

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

        protected org.projectnessie.model.Tag createTag​(java.lang.String name,
                                                        org.projectnessie.model.Reference from)
                                                 throws org.projectnessie.error.BaseNessieClientServerException
        Throws:
        org.projectnessie.error.BaseNessieClientServerException
      • createBranch

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

        protected static java.lang.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.
      • contentWithoutId

        protected static org.projectnessie.model.Content contentWithoutId​(org.projectnessie.model.Content content)
      • operationWithoutContentId

        protected static org.projectnessie.model.Operation operationWithoutContentId​(org.projectnessie.model.Operation op)
      • diffEntryWithoutContentId

        protected static org.projectnessie.model.DiffResponse.DiffEntry diffEntryWithoutContentId​(org.projectnessie.model.DiffResponse.DiffEntry diff)
      • diffEntriesWithoutContentId

        protected static java.util.List<org.projectnessie.model.DiffResponse.DiffEntry> diffEntriesWithoutContentId​(java.util.List<org.projectnessie.model.DiffResponse.DiffEntry> diff)
      • operationsWithoutContentId

        protected static java.util.List<org.projectnessie.model.Operation> operationsWithoutContentId​(java.util.List<org.projectnessie.model.Operation> operations)