Package org.projectnessie.jaxrs
Class AbstractRest
- java.lang.Object
-
- org.projectnessie.jaxrs.AbstractRest
-
- Direct Known Subclasses:
AbstractRestAssign
public abstract class AbstractRest extends java.lang.ObjectSeeAbstractTestRestfor details about and reason for the inheritance model.
-
-
Constructor Summary
Constructors Constructor Description AbstractRest()
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description 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 voiddeleteBranch(java.lang.String name, java.lang.String hash)org.projectnessie.client.api.NessieApiV1getApi()protected static voidgetOrCreateEmptyBranch(org.projectnessie.client.api.NessieApiV1 api, java.lang.String gcBranchName)protected voidinitApi(java.net.URI nessieApiUri)protected voidinitApi(org.projectnessie.client.api.NessieApiV1 api)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.voidtearDown()
-
-
-
Method Detail
-
initApi
protected void initApi(java.net.URI nessieApiUri)
-
initApi
protected void initApi(org.projectnessie.client.api.NessieApiV1 api)
-
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
-
createBranch
protected org.projectnessie.model.Branch createBranch(java.lang.String name) throws org.projectnessie.error.BaseNessieClientServerException- Throws:
org.projectnessie.error.BaseNessieClientServerException
-
getOrCreateEmptyBranch
protected static void getOrCreateEmptyBranch(org.projectnessie.client.api.NessieApiV1 api, java.lang.String gcBranchName)
-
deleteBranch
protected void deleteBranch(java.lang.String name, java.lang.String hash) 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.
-
-