public class ClassUtilityTest extends Object
ClassUtility.| Modifier and Type | Class and Description |
|---|---|
private static class |
ClassUtilityTest.Base
A simple base test class.
|
private static class |
ClassUtilityTest.Complex
A simple extending test class.
|
private static class |
ClassUtilityTest.Simple
A simple self-contained test class.
|
| Modifier and Type | Field and Description |
|---|---|
private static String |
NAME_AAS |
private static String |
NAME_TEST_SUBMODEL |
private static String |
NAME_TEST_VAR_COMPLEX |
private static String |
NAME_TEST_VAR_PRIMITIVE |
private static String |
NAME_TEST_VAR_SIMPLE |
private static String |
URN_AAS |
| Constructor and Description |
|---|
ClassUtilityTest() |
| Modifier and Type | Method and Description |
|---|---|
void |
addTestTypeToClassWithDeployment()
Tests adding a type to a deployed AAS.
|
private void |
assertTypeSubmodel(de.iip_ecosphere.platform.support.aas.Aas aas)
Asserts the type sub-model.
|
private void |
populateModel(de.iip_ecosphere.platform.support.aas.Submodel.SubmodelBuilder smBuilder)
Populates the model.
|
void |
testAddTypeToClass()
Tests adding a type to an AAS at AAS creation time.
|
void |
testGetId()
Tests the
ClassUtility.getId(String, Object) method. |
private static final String NAME_AAS
private static final String URN_AAS
private static final String NAME_TEST_SUBMODEL
private static final String NAME_TEST_VAR_PRIMITIVE
private static final String NAME_TEST_VAR_SIMPLE
private static final String NAME_TEST_VAR_COMPLEX
public void testAddTypeToClass()
throws ExecutionException
ExecutionException - shall not occurprivate void populateModel(de.iip_ecosphere.platform.support.aas.Submodel.SubmodelBuilder smBuilder)
smBuilder - the submodel builder to add the types toprivate void assertTypeSubmodel(de.iip_ecosphere.platform.support.aas.Aas aas)
throws ExecutionException
aas - the AAS to assert the sub-model forExecutionException - shall not occurpublic void testGetId()
ClassUtility.getId(String, Object) method.public void addTestTypeToClassWithDeployment()
throws IOException,
ExecutionException
IOException - shall not occurExecutionException - shall not occurCopyright © 2021. All rights reserved.