Package org.projectnessie.jaxrs
Class AbstractRest
- java.lang.Object
-
- org.projectnessie.jaxrs.AbstractRest
-
- Direct Known Subclasses:
AbstractRestAssign,AbstractRestGC
public abstract class AbstractRest extends Object
SeeAbstractTestRestfor 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(String name)protected org.projectnessie.model.BranchcreateBranch(String name, org.projectnessie.model.Branch from)protected StringcreateCommits(org.projectnessie.model.Reference branch, int numAuthors, int commitsPerAuthor, String currentHash)protected voiddeleteBranch(String name, String hash)NessieApiV1getApi()HttpClientgetHttpClient()URIgetUri()protected voidinit(URI uri)protected voidinit(NessieApiV1 api, HttpClient.Builder httpClient, URI uri)protected static 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(URI uri)
-
init
protected void init(NessieApiV1 api, @Nullable HttpClient.Builder httpClient, URI uri)
-
setUp
@BeforeEach public void setUp()
-
getApi
public NessieApiV1 getApi()
-
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", ifwithDetachedCommitistrueor thereference namefrom the givenref.
-
-