|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||
java.lang.ObjectTestCase
com.buglabs.osgi.cm.tests.ConfigurationTest
public class ConfigurationTest
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 |
|---|
public ConfigurationTest()
| Method Detail |
|---|
protected void setUp()
throws java.lang.Exception
java.lang.Exception
protected void tearDown()
throws java.lang.Exception
java.lang.Exception
public void testCreateConfig()
throws java.io.IOException
java.io.IOException
public void testConfigurationsEqual()
throws java.io.IOException
Configurations with same PIDs are equal
java.io.IOException
public void testConfigurationsNotEqual()
throws java.io.IOException
Configurations with different PIDs are not equal
java.io.IOException
public void testDeleteConfiguration()
throws java.io.IOException,
org.osgi.framework.InvalidSyntaxException
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.
java.io.IOException
org.osgi.framework.InvalidSyntaxException
public void testDeleteConfigurationFromPeristanceStorage()
throws java.io.IOException,
org.osgi.framework.InvalidSyntaxException
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.
java.io.IOException
org.osgi.framework.InvalidSyntaxException
public void testUpdateConfiguration()
throws java.io.IOException
Configuration's properties
java.io.IOException
public void testClearConfigurationProperites()
throws java.io.IOException
Configuration's properites
java.io.IOException
|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||