Class AasPartRegistryTest
java.lang.Object
test.de.iip_ecosphere.platform.support.TestWithPlugin
test.de.iip_ecosphere.platform.support.aas.TestWithPlugin
test.de.iip_ecosphere.platform.support.iip_aas.AasPartRegistryTest
public class AasPartRegistryTest
extends test.de.iip_ecosphere.platform.support.aas.TestWithPlugin
Tests
AasPartRegistry, ActiveAasBase and SubmodelClient. Do not rename, this class is
referenced in META-INF/services.- Author:
- Holger Eichelberger, SSE
-
Nested Class Summary
Nested ClassesModifier and TypeClassDescriptionstatic classA first contributor, mapped in viaMETA-INF/services.static classA second contributor with own AAS, mapped in viaMETA-INF/services.private static classA simple submodel client.static classConfiguration class for YAML test. -
Field Summary
FieldsFields inherited from class test.de.iip_ecosphere.platform.support.TestWithPlugin
PROP_AAS_PLUGIN -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionprivate static StringaasUrlPath(String withPath) Returns an adjusted (expected) URL path.voidTests the checks inSubmodelClient.voidtestGet()Tests theAasPartRegistry.getAas(List, String)helper method.voidTests the part registry.voidTests a setup withAasPartRegistry.AasSetupusing the file "aasPartRegistry.yml".voidTests a setup forAasPartRegistry.AasSetupusing the file "aasPartRegistry_eph.yml".Methods inherited from class test.de.iip_ecosphere.platform.support.aas.TestWithPlugin
setAasPluginId, setup, setupAASPluginsMethods inherited from class test.de.iip_ecosphere.platform.support.TestWithPlugin
addPluginLocation, addRunAfterLoading, clear, enableLocalPlugins, loadPlugins, setInstallDir
-
Field Details
-
NAME_MY_AAS
- See Also:
-
-
Constructor Details
-
AasPartRegistryTest
public AasPartRegistryTest()
-
-
Method Details
-
testPartRegistry
Tests the part registry.- Throws:
IOException- shall not occurExecutionException- shall not occur
-
testAasClientChecks
public void testAasClientChecks()Tests the checks inSubmodelClient. -
testGet
public void testGet()Tests theAasPartRegistry.getAas(List, String)helper method. -
testSetup_aasPartRegistry
Tests a setup withAasPartRegistry.AasSetupusing the file "aasPartRegistry.yml".- Throws:
IOException- shall not occur
-
aasUrlPath
Returns an adjusted (expected) URL path.- Parameters:
withPath- the path if the AAS implementation supports URL paths- Returns:
withPathif the AAS implementation supports URL paths, else empty
-
testSetup_aasPartRegistry_eph
Tests a setup forAasPartRegistry.AasSetupusing the file "aasPartRegistry_eph.yml".- Throws:
IOException- shall not occur
-