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 Classes
    Modifier and Type
    Class
    Description
    static class 
    A first contributor, mapped in via META-INF/services.
    static class 
    A second contributor with own AAS, mapped in via META-INF/services.
    private static class 
    A simple submodel client.
    static class 
    Configuration class for YAML test.
  • Field Summary

    Fields
    Modifier and Type
    Field
    Description
    private static final String
     

    Fields inherited from class test.de.iip_ecosphere.platform.support.TestWithPlugin

    PROP_AAS_PLUGIN
  • Constructor Summary

    Constructors
    Constructor
    Description
     
  • Method Summary

    Modifier and Type
    Method
    Description
    private static String
    aasUrlPath(String withPath)
    Returns an adjusted (expected) URL path.
    void
    Tests the checks in SubmodelClient.
    void
    Tests the AasPartRegistry.getAas(List, String) helper method.
    void
    Tests the part registry.
    void
    Tests a setup with AasPartRegistry.AasSetup using the file "aasPartRegistry.yml".
    void
    Tests a setup for AasPartRegistry.AasSetup using the file "aasPartRegistry_eph.yml".

    Methods inherited from class test.de.iip_ecosphere.platform.support.aas.TestWithPlugin

    setAasPluginId, setup, setupAASPlugins

    Methods inherited from class test.de.iip_ecosphere.platform.support.TestWithPlugin

    addPluginLocation, addRunAfterLoading, clear, enableLocalPlugins, loadPlugins, setInstallDir

    Methods inherited from class java.lang.Object

    clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
  • Field Details

  • Constructor Details

    • AasPartRegistryTest

      public AasPartRegistryTest()
  • Method Details

    • testPartRegistry

      public void testPartRegistry() throws IOException, ExecutionException
      Tests the part registry.
      Throws:
      IOException - shall not occur
      ExecutionException - shall not occur
    • testAasClientChecks

      public void testAasClientChecks()
      Tests the checks in SubmodelClient.
    • testGet

      public void testGet()
      Tests the AasPartRegistry.getAas(List, String) helper method.
    • testSetup_aasPartRegistry

      public void testSetup_aasPartRegistry() throws IOException
      Tests a setup with AasPartRegistry.AasSetup using the file "aasPartRegistry.yml".
      Throws:
      IOException - shall not occur
    • aasUrlPath

      private static String aasUrlPath(String withPath)
      Returns an adjusted (expected) URL path.
      Parameters:
      withPath - the path if the AAS implementation supports URL paths
      Returns:
      withPath if the AAS implementation supports URL paths, else empty
    • testSetup_aasPartRegistry_eph

      public void testSetup_aasPartRegistry_eph() throws IOException
      Tests a setup for AasPartRegistry.AasSetup using the file "aasPartRegistry_eph.yml".
      Throws:
      IOException - shall not occur