Class TestApplicationAssetLoader
java.lang.Object
dev.getelements.elements.rest.test.TestApplicationAssetLoader
- All Implemented Interfaces:
ApplicationAssetLoader
An implementation of the
ApplicationAssetLoader which loads test Elements from the
TestArtifactRegistry. For the sake of testing, this will load the same test case for all applications.-
Field Summary
Fields inherited from interface dev.getelements.elements.rt.ApplicationAssetLoader
ELEMENT_STORAGE -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptiongetAssetPath(ApplicationId applicationId) Gets the assetPathfor the suppliedApplicationId, performing any loading as needed.Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitMethods inherited from interface dev.getelements.elements.rt.ApplicationAssetLoader
getAssetPath
-
Constructor Details
-
TestApplicationAssetLoader
public TestApplicationAssetLoader()
-
-
Method Details
-
getAssetPath
Description copied from interface:ApplicationAssetLoaderGets the assetPathfor the suppliedApplicationId, performing any loading as needed. The returnedPathwill be a location on disk from which to load the application's executable code.- Specified by:
getAssetPathin interfaceApplicationAssetLoader- Parameters:
applicationId- theApplicationIdinstance- Returns:
- the
Pathto the loaded asset
-