Interface FileFT<E extends dev.daymor.sakuraboot.DataPresentation<I>,I extends Comparable<? super I> & Serializable>
- Type Parameters:
E
- The entity typeDataPresentation
.I
- The ID of type Comparable and Serializable.
- All Superinterfaces:
dev.daymor.sakuraboot.test.BasicTest<E,
,I> DeleteFileFT<E,
,I> DownloadFileFT<E,
,I> dev.daymor.sakuraboot.test.file.api.SuperFileTest<E,
,I> SuperFT<E,
,I> dev.daymor.sakuraboot.test.SuperIT<E,
,I> dev.daymor.sakuraboot.test.SuperTest<I>
,UploadFileFT<E,
I>
public interface FileFT<E extends dev.daymor.sakuraboot.DataPresentation<I>,I extends Comparable<? super I> & Serializable>
extends DownloadFileFT<E,I>, UploadFileFT<E,I>, DeleteFileFT<E,I>
The interface for file functional tests.
Example:
To create a concrete test class that inherits from FileFT
,
follow
these steps:
Implements the FileFT
class:
public class YourFT implements FileFT<YourEntity, YourIdType> { private final YourUtil util; private final ApplicationContext applicationContext; private final ObjectMapper objectMapper; @LocalServerPort private int port; @Autowired YourFT( final YourUtil util, final ApplicationContext applicationContext, final ObjectMapper objectMapper) { this.util = util; this.applicationContext = applicationContext; this.objectMapper = objectMapper; } @Override public YourUtil getUtil() { return util; } @Override public ApplicationContext getApplicationContext() { return applicationContext; } @Override public ObjectMapper getObjectMapper() { return objectMapper; } @Override public int getPort() { return port; } }
- Since:
- 0.1.2
- See Also:
-
Nested Class Summary
Nested classes/interfaces inherited from interface dev.daymor.sakuraboot.test.SuperTest
dev.daymor.sakuraboot.test.SuperTest.DataPresentationForTest<I extends Comparable<? super I> & Serializable>
-
Field Summary
Fields inherited from interface dev.daymor.sakuraboot.test.functional.SuperFT
BASE_URI, ENCODE_SPACE, ID_MISSING_ERROR_MESSAGE, MEDIA_TYPE_ERROR_MESSAGE, REQUIRED_BODY_ERROR_MESSAGE, VALIDATION_ERROR_MESSAGE
Fields inherited from interface dev.daymor.sakuraboot.test.functional.file.UploadFileFT
FILE_NAME
-
Method Summary
Methods inherited from interface dev.daymor.sakuraboot.test.BasicTest
getUtil
Methods inherited from interface dev.daymor.sakuraboot.test.functional.file.DeleteFileFT
testDeleteFile, testDeleteFileWithNoId
Methods inherited from interface dev.daymor.sakuraboot.test.functional.file.DownloadFileFT
testDownloadFile, testDownloadFileWithNoId
Methods inherited from interface dev.daymor.sakuraboot.test.file.api.SuperFileTest
getFileFieldNames, getInvalidFileFieldName
Methods inherited from interface dev.daymor.sakuraboot.test.functional.SuperFT
assertErrorResponse, assertResponse, assertResponse, assertResponse, createAndSaveEntity, createHrefForEntity, createHrefWithParam, fieldsToIgnoreInAssert, getApplicationContext, getBasePath, getObjectMapper, getPort, getRepository, getUtil, reset, setUp, showStackTrace, testCacheConfigurationInitialization
Methods inherited from interface dev.daymor.sakuraboot.test.SuperTest
getBiggerValidId, getInvalidId, getOtherValidId, getValidId
Methods inherited from interface dev.daymor.sakuraboot.test.functional.file.UploadFileFT
testUploadFile, testUploadFileWithNoFile, testUploadFileWithNoFileAndContentType