Package org.projectnessie.jaxrs.tests
Class AbstractRest
- java.lang.Object
-
- org.projectnessie.jaxrs.tests.AbstractRest
-
- Direct Known Subclasses:
AbstractRestAssign
public abstract class AbstractRest extends java.lang.ObjectSeeAbstractTestRestfor details about and reason for the inheritance model.
-
-
Field Summary
Fields Modifier and Type Field Description protected org.assertj.core.api.SoftAssertionssoft
-
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.ContentcontentWithoutId(org.projectnessie.model.Content content)protected org.projectnessie.model.BranchcreateBranch(java.lang.String name)protected org.projectnessie.model.BranchcreateBranch(java.lang.String name, org.projectnessie.model.Branch from)protected java.lang.StringcreateCommits(org.projectnessie.model.Reference branch, int numAuthors, int commitsPerAuthor, java.lang.String currentHash)protected org.projectnessie.model.TagcreateTag(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.DiffEntrydiffEntryWithoutContentId(org.projectnessie.model.DiffResponse.DiffEntry diff)org.projectnessie.client.api.NessieApiV1getApi()protected static java.lang.StringmaybeAsDetachedName(boolean withDetachedCommit, org.projectnessie.model.Reference ref)Used by parameterized tests to return the "DETACHED", ifwithDetachedCommitistrueor thereference namefrom the givenref.protected static java.util.List<org.projectnessie.model.Operation>operationsWithoutContentId(java.util.List<org.projectnessie.model.Operation> operations)protected static org.projectnessie.model.OperationoperationWithoutContentId(org.projectnessie.model.Operation op)voidtearDown()
-
-
-
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", ifwithDetachedCommitistrueor thereference namefrom the givenref.
-
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)
-
-