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
  • Field Details

  • Constructor Details

    • ClassUtilityTest

      public ClassUtilityTest()
  • Method Details

    • testAddTypeToClass

      public void testAddTypeToClass() throws ExecutionException
      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 the ClassUtility.getId(String, Object) method.
    • addTestTypeToClassWithDeployment

      public void addTestTypeToClassWithDeployment() throws IOException, ExecutionException
      Tests adding a type to a deployed AAS. We pre-deploy the sub-models to keep the scenario simple.
      Throws:
      IOException - shall not occur
      ExecutionException - shall not occur