Class ClassUtilityTest
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.ClassUtilityTest
public class ClassUtilityTest
extends test.de.iip_ecosphere.platform.support.aas.TestWithPlugin
Tests
ClassUtility.- Author:
- Holger Eichelberger, SSE
-
Nested Class Summary
Nested ClassesModifier and TypeClassDescriptionprivate static classA simple base test class.private static classA simple extending test class.private static classA simple self-contained test class. -
Field Summary
FieldsModifier and TypeFieldDescriptionprivate static final Stringprivate static final Stringprivate static final Stringprivate static final Stringprivate static final Stringprivate static final StringFields inherited from class test.de.iip_ecosphere.platform.support.TestWithPlugin
PROP_AAS_PLUGIN -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionvoidTests adding a type to a deployed AAS.private voidassertTypeSubmodel(de.iip_ecosphere.platform.support.aas.Aas aas) Asserts the type sub-model.private voidpopulateModel(de.iip_ecosphere.platform.support.aas.Submodel.SubmodelBuilder smBuilder) Populates the model.voidTests adding a type to an AAS at AAS creation time.voidTests theClassUtility.getId(String, Object)method.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_AAS
- See Also:
-
URN_AAS
- See Also:
-
NAME_TEST_SUBMODEL
- See Also:
-
NAME_TEST_VAR_PRIMITIVE
- See Also:
-
NAME_TEST_VAR_SIMPLE
- See Also:
-
NAME_TEST_VAR_COMPLEX
- See Also:
-
-
Constructor Details
-
ClassUtilityTest
public ClassUtilityTest()
-
-
Method Details
-
testAddTypeToClass
Tests adding a type to an AAS at AAS creation time.- Throws:
ExecutionException- shall not occur
-
populateModel
private void populateModel(de.iip_ecosphere.platform.support.aas.Submodel.SubmodelBuilder smBuilder) Populates the model. The types are created implicitly.- Parameters:
smBuilder- the submodel builder to add the types to
-
assertTypeSubmodel
private void assertTypeSubmodel(de.iip_ecosphere.platform.support.aas.Aas aas) throws ExecutionException Asserts the type sub-model.- Parameters:
aas- the AAS to assert the sub-model for- Throws:
ExecutionException- shall not occur
-
testGetId
public void testGetId()Tests theClassUtility.getId(String, Object)method. -
addTestTypeToClassWithDeployment
Tests adding a type to a deployed AAS. We pre-deploy the sub-models to keep the scenario simple.- Throws:
IOException- shall not occurExecutionException- shall not occur
-