Class DeviceRegistryFactoryTest

java.lang.Object
de.iip_ecosphere.platform.deviceMgt.registry.DeviceRegistryFactoryTest

public class DeviceRegistryFactoryTest extends Object
Tests the DeviceRegistryFactory.
Author:
Dennis Pidun, University of Hildesheim
  • Field Details

  • Constructor Details

    • DeviceRegistryFactoryTest

      public DeviceRegistryFactoryTest()
  • Method Details

    • tearDown

      public void tearDown() throws Exception
      Shuts down the test.
      Throws:
      Exception - shall not occur
    • getDeviceRegistry_withServiceLoaderConfiguration_returnsDeviceRegistry

      public void getDeviceRegistry_withServiceLoaderConfiguration_returnsDeviceRegistry()
      Tests that a device registry with service loader configuration returns a device registry.
    • allFunctions_withFakeRegistry_callsDownstreamRegistryFunction

      public void allFunctions_withFakeRegistry_callsDownstreamRegistryFunction() throws ExecutionException
      Tests all functions with a fake registry leading to downstream calls.
      Throws:
      ExecutionException - AAS execution problems shall not occur
    • getDevice_returnsDeviceFromDeviceRegistry

      public void getDevice_returnsDeviceFromDeviceRegistry()
      Returns that getting a device also returns a device.
    • getDeviceRegistry_withNoPlugin_returnsNull

      public void getDeviceRegistry_withNoPlugin_returnsNull()
      Returns that getting a device with no plugin returns null.