Class DeviceRegistryFactoryTest
java.lang.Object
de.iip_ecosphere.platform.deviceMgt.registry.DeviceRegistryFactoryTest
Tests the
DeviceRegistryFactory.- Author:
- Dennis Pidun, University of Hildesheim
-
Field Summary
Fields -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionvoidTests all functions with a fake registry leading to downstream calls.voidReturns that getting a device also returns a device.voidReturns that getting a device with no plugin returns null.voidTests that a device registry with service loader configuration returns a device registry.voidtearDown()Shuts down the test.
-
Field Details
-
A_DEVICE_ID
- See Also:
-
SOME_TELEMETRY
- See Also:
-
AN_IP
- See Also:
-
A_SECRET
- See Also:
-
-
Constructor Details
-
DeviceRegistryFactoryTest
public DeviceRegistryFactoryTest()
-
-
Method Details
-
tearDown
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 ExecutionExceptionTests 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.
-