com.buglabs.osgi.cm.tests
Class ConfigurationTest

java.lang.Object
  extended by TestCase
      extended by com.buglabs.osgi.cm.tests.ConfigurationTest

public class ConfigurationTest
extends TestCase

Tests for Configuration implementation


Constructor Summary
ConfigurationTest()
           
 
Method Summary
protected  void setUp()
           
protected  void tearDown()
           
 void testClearConfigurationProperites()
          Test to clear Configuration's properites
 void testConfigurationsEqual()
          Tests whether Configurations with same PIDs are equal
 void testConfigurationsNotEqual()
          Tests whether Configurations with different PIDs are not equal
 void testCreateConfig()
           
 void testDeleteConfiguration()
          Test deletion of Configuration from memory.
 void testDeleteConfigurationFromPeristanceStorage()
          Test deletion of Configuration from persisted storage.
 void testUpdateConfiguration()
          Test update Configuration's properties
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

ConfigurationTest

public ConfigurationTest()
Method Detail

setUp

protected void setUp()
              throws java.lang.Exception
Throws:
java.lang.Exception

tearDown

protected void tearDown()
                 throws java.lang.Exception
Throws:
java.lang.Exception

testCreateConfig

public void testCreateConfig()
                      throws java.io.IOException
Throws:
java.io.IOException

testConfigurationsEqual

public void testConfigurationsEqual()
                             throws java.io.IOException
Tests whether Configurations with same PIDs are equal

Throws:
java.io.IOException

testConfigurationsNotEqual

public void testConfigurationsNotEqual()
                                throws java.io.IOException
Tests whether Configurations with different PIDs are not equal

Throws:
java.io.IOException

testDeleteConfiguration

public void testDeleteConfiguration()
                             throws java.io.IOException,
                                    org.osgi.framework.InvalidSyntaxException
Test deletion of Configuration from memory. According to specifications when Configuration is created it is initially stored in memory and persisted when it is first updated. This will test deletion before it is updated.

Throws:
java.io.IOException
org.osgi.framework.InvalidSyntaxException

testDeleteConfigurationFromPeristanceStorage

public void testDeleteConfigurationFromPeristanceStorage()
                                                  throws java.io.IOException,
                                                         org.osgi.framework.InvalidSyntaxException
Test deletion of Configuration from persisted storage. According to specifications when Configuration is created it is initially stored in memory and persisted when it is first updated. This will test deletion after Configuration has been updated.

Throws:
java.io.IOException
org.osgi.framework.InvalidSyntaxException

testUpdateConfiguration

public void testUpdateConfiguration()
                             throws java.io.IOException
Test update Configuration's properties

Throws:
java.io.IOException

testClearConfigurationProperites

public void testClearConfigurationProperites()
                                      throws java.io.IOException
Test to clear Configuration's properites

Throws:
java.io.IOException