|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectjunit.framework.Assert
junit.framework.TestCase
com.atlassian.plugin.TestStateAware
public class TestStateAware
Tests that the plugin manager properly notifies StateAware plugin modules of state transitions.
| Constructor Summary | |
|---|---|
TestStateAware()
|
|
| Method Summary | |
|---|---|
protected void |
setUp()
|
void |
testDisabledModuleDescriptorsAreEnabled()
If a plugin is enabled, any modules that are currently enabled should be sent the enabled message, but modules which are disabled should not. |
void |
testStateAwareOnInit()
Any StateAware plugin module that is active when the plugin manager is initialised should recieve an enabled message |
void |
testStateAwareOnPluginDisable()
If a plugin is disabled, any modules that are currently enabled should be sent the disabled message |
void |
testStateAwareOnPluginModule()
Any StateAware plugin moudle that is explicitly enabled or disabled through the plugin manager should receive the appropriate message |
| Methods inherited from class junit.framework.TestCase |
|---|
countTestCases, createResult, getName, run, run, runBare, runTest, setName, tearDown, toString |
| Methods inherited from class junit.framework.Assert |
|---|
assertEquals, assertEquals, assertEquals, assertEquals, assertEquals, assertEquals, assertEquals, assertEquals, assertEquals, assertEquals, assertEquals, assertEquals, assertEquals, assertEquals, assertEquals, assertEquals, assertEquals, assertEquals, assertEquals, assertEquals, assertFalse, assertFalse, assertNotNull, assertNotNull, assertNotSame, assertNotSame, assertNull, assertNull, assertSame, assertSame, assertTrue, assertTrue, fail, fail |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait |
| Constructor Detail |
|---|
public TestStateAware()
| Method Detail |
|---|
protected void setUp()
throws java.lang.Exception
setUp in class junit.framework.TestCasejava.lang.Exception
public void testStateAwareOnInit()
throws PluginParseException
PluginParseException
public void testStateAwareOnPluginModule()
throws PluginParseException
PluginParseException
public void testStateAwareOnPluginDisable()
throws PluginParseException
PluginParseException
public void testDisabledModuleDescriptorsAreEnabled()
throws PluginParseException
PluginParseException
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||