public abstract class ApiImplTestBaseWithCreateAndUpdate<T extends Entity> extends ApiImplTestBase
| Modifier and Type | Field and Description |
|---|---|
protected ClientTester |
tester |
| Constructor and Description |
|---|
ApiImplTestBaseWithCreateAndUpdate() |
| Modifier and Type | Method and Description |
|---|---|
protected abstract T |
createEntity(T entity) |
void |
createPostsToCollectionResource() |
void |
createReturnsNewEntity() |
void |
createThrowsExceptionIfServerReturnsError() |
protected abstract URI |
getCollectionUri() |
protected abstract T |
makeEntityFromServer() |
protected abstract T |
makeEntityToCreate() |
protected abstract T |
makeEntityWithUpdates(T from) |
void |
setUp() |
protected abstract T |
updateEntity(T original,
T updated) |
void |
updateReturnsNewEntity() |
void |
updateSendsPatchRequest() |
void |
updateThrowsExceptionIfFinalQueryOfUpdatedEntityFails() |
void |
updateThrowsExceptionIfOriginalEntityIsNotFromServer() |
void |
updateThrowsExceptionIfServerReturnsError() |
protected ClientTester tester
public void setUp()
throws Exception
setUp in class ApiImplTestBaseExceptionprotected abstract URI getCollectionUri()
protected abstract T makeEntityToCreate()
protected abstract T makeEntityFromServer()
protected abstract T updateEntity(T original, T updated) throws Exception
Exceptionpublic void createPostsToCollectionResource()
throws Exception
Exceptionpublic void createThrowsExceptionIfServerReturnsError()
throws Exception
Exceptionpublic void updateThrowsExceptionIfServerReturnsError()
throws Exception
Exceptionpublic void updateThrowsExceptionIfFinalQueryOfUpdatedEntityFails()
throws Exception
ExceptionCopyright © 2016 Atlassian. All rights reserved.