Class StorageFactoryDescriptorTest


  • public class StorageFactoryDescriptorTest
    extends java.lang.Object
    Tests the storage factory descriptor.
    Author:
    Dennis Pidun, University of Hildesheim
    • Field Detail

      • configuration

        private de.iip_ecosphere.platform.deviceMgt.DeviceMgtSetup configuration
    • Constructor Detail

      • StorageFactoryDescriptorTest

        public StorageFactoryDescriptorTest()
    • Method Detail

      • setUp

        public void setUp()
        Configures the test.
      • createRuntimeStorage_withConfiguration_createsStorage

        public void createRuntimeStorage_withConfiguration_createsStorage()
        Tests that creating a runtime storage with configuration also creates a storage.
      • createRuntimeStorage_withInvalidConfiguration_returnsNull

        public void createRuntimeStorage_withInvalidConfiguration_returnsNull()
        Tests that creating a runtime storage with invalid configuration does not create a storage.
      • createRuntimeStorage_withServiceProvider_usesServiceProvider

        public void createRuntimeStorage_withServiceProvider_usesServiceProvider()
        Tests that creating a runtime storage with service provide uses the service provider.
      • createStorages_withoutServiceProvider_isJSL

        public void createStorages_withoutServiceProvider_isJSL()
        Tests that creating a runtime storage leads to the JSL-configured storage.