Class TestApplicationAssetLoader
java.lang.Object
dev.getelements.elements.rest.test.TestApplicationAssetLoader
- All Implemented Interfaces:
ApplicationAssetLoader
An implementation of the
ApplicationAssetLoader
which loads test Element
s 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.sdk.cluster.ApplicationAssetLoader
ELEMENT_STORAGE
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptiongetAssetPath
(ApplicationId applicationId) Gets the assetPath
for the suppliedApplicationId
, performing any loading as needed.Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
Methods inherited from interface dev.getelements.elements.sdk.cluster.ApplicationAssetLoader
getAssetPath
-
Constructor Details
-
TestApplicationAssetLoader
public TestApplicationAssetLoader()
-
-
Method Details
-
getAssetPath
Description copied from interface:ApplicationAssetLoader
Gets the assetPath
for the suppliedApplicationId
, performing any loading as needed. The returnedPath
will be a location on disk from which to load the application's executable code.- Specified by:
getAssetPath
in interfaceApplicationAssetLoader
- Parameters:
applicationId
- theApplicationId
instance- Returns:
- the
Path
to the loaded asset
-