public abstract class UESTestAbstract
extends java.lang.Object
| Modifier and Type | Field and Description |
|---|---|
protected static UESURI |
ART_FAKE_URI
UESURI of testing fake art.
|
protected static java.lang.String |
TERR_URI_PREFIX
UESURI of testing territory.
|
| Constructor and Description |
|---|
UESTestAbstract() |
| Modifier and Type | Method and Description |
|---|---|
protected void |
assertEqualsDTO(java.lang.Object expectedDTO,
Asserts two strings.
|
protected void |
assertEqualsDTO(java.lang.Object expectedDTO,
Asserts two DTOs by their attributes.
|
private void |
assertEqualsDTO(java.lang.Object expectedDTO,
Asserts two lists of DTO by their attributes.
|
private void |
assertEqualsDTO(java.lang.Object expectedDTO,
Asserts two DTOs by their attributes.
|
protected void |
assertEqualsListDTO(java.util.List<? extends java.lang.Object> expectedDTOs,
Asserts two lists of DTO by their attributes.
|
protected void |
assertException(UESApplicationRTException e,
Asserts application runtime exception by the specified error codes.
|
protected void |
assertNotEmpty(java.util.List<?> list)
Checks if the specified list is not empty.
|
protected void |
assertSimilarDTO(java.lang.Object expectedDTO,
Asserts if two DTOs have same values of the specified attributes.
|
protected void |
assertStringFromDTO(java.lang.String expectedString,
Asserts two strings.
|
protected void |
assertUri(UESURI expectedUri,
Asserts two UESURI.
|
protected java.lang.Object |
getValue(java.lang.reflect.Method getter,
Gets value by the specified get-method.
|
e - exceptionexpectedCodes - expected codesexpectedUri - expected UESURIuri - tested UESURIlist - expectedString - expected strings - tested stringallowNullString - expectedString - expected strings - tested stringexpectedDTO - expected DTOdto - tested DTOexpectedDTO - expected DTOdto - tested DTOattrNames - names of attributes that are same in expected DTO and tested DTOexpectedDTOs - expected DTO listdto - tested DTO listexpectedDTO - expected DTO listdto - tested DTO listgetters - expectedDTO - expected DTOdto - tested DTOgetter - getterobj - object with the specified getter