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()org.projectnessie.client.http.HttpClientgetHttpClient()protected static voidgetOrCreateEmptyBranch(org.projectnessie.client.api.NessieApiV1 api, java.lang.String gcBranchName)java.net.URIgetUri()protected voidinit(java.net.URI uri)protected voidinit(org.projectnessie.client.api.NessieApiV1 api, org.projectnessie.client.http.HttpClient.Builder httpClient, java.net.URI uri)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.voidsetUp()voidtearDown()
-
-
-
Method Detail
-
init
protected void init(java.net.URI uri)
-
init
protected void init(org.projectnessie.client.api.NessieApiV1 api, @Nullable org.projectnessie.client.http.HttpClient.Builder httpClient, java.net.URI uri)
-
setUp
@BeforeEach public void setUp()
-
tearDown
@AfterEach public void tearDown() throws java.lang.Exception- Throws:
java.lang.Exception
-
getApi
public org.projectnessie.client.api.NessieApiV1 getApi()
-
getHttpClient
public org.projectnessie.client.http.HttpClient getHttpClient()
-
getUri
public java.net.URI getUri()
-
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.
-
-