|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object junit.framework.Assert junit.framework.TestCase com.atlassian.jira.functest.framework.FuncTestCase com.atlassian.jira.webtests.ztests.plugin.reloadable.AbstractReloadablePluginsTest com.atlassian.jira.webtests.ztests.plugin.reloadable.disabling.TestRestModuleTypeDisabling
public class TestRestModuleTypeDisabling
Responsible for verifying that the rest resources defined within a plugin are disabled correctly.
After being disabled, the rest resource should not be reachable by any request made to it.
This scenario assumes that the module has never been enabled and that the plugin is loaded in a disabled state when JIRA starts up.
This is also what we call the from ON to OFF scenario.
Field Summary |
---|
Fields inherited from class com.atlassian.jira.webtests.ztests.plugin.reloadable.AbstractReloadablePluginsTest |
---|
referencePlugin |
Fields inherited from class com.atlassian.jira.functest.framework.FuncTestCase |
---|
administration, assertions, backdoor, environmentData, form, funcTestHelperFactory, issueTableAssertions, locator, log, navigation, oldway_consider_porting, page, parse, tester, text |
Constructor Summary | |
---|---|
TestRestModuleTypeDisabling()
|
Method Summary | |
---|---|
void |
testShouldBeReachableAfterEnablingItBackAgain()
Tries to enable the rest resources module after disabling it and then assert that the resource is reachable again and returns the expected response (it has been "reloaded"). |
void |
testShouldBeReachableAfterEnablingTheReferencePluginBackAgain()
Tries to enable the whole plugin after disabling it and then assert that the resource is reachable again and returns the expected response (it has been "reloaded"). |
void |
testShouldNotBeReachableAfterBeingDisabled()
|
void |
testShouldNotBeReachableAfterDisablingTheReferencePlugin()
|
Methods inherited from class com.atlassian.jira.webtests.ztests.plugin.reloadable.AbstractReloadablePluginsTest |
---|
setUpTest |
Methods inherited from class com.atlassian.jira.functest.framework.FuncTestCase |
---|
builtInCustomFieldKey, getAssertions, getEnvironmentData, getTester, getWebClientListener, isDumpHTML, log, log, runBare, runTest, setEnvironmentData, setUp, setUpHttpUnitOptions, shouldSkipSetup, tearDown, tearDownTest, xpath |
Methods inherited from class junit.framework.TestCase |
---|
countTestCases, createResult, getName, run, run, setName, 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, failNotEquals, failNotSame, failSame, format |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait |
Constructor Detail |
---|
public TestRestModuleTypeDisabling()
Method Detail |
---|
public void testShouldNotBeReachableAfterBeingDisabled() throws JSONException
JSONException
public void testShouldNotBeReachableAfterDisablingTheReferencePlugin() throws JSONException
JSONException
public void testShouldBeReachableAfterEnablingTheReferencePluginBackAgain() throws JSONException
JSONException
- If the response from the reference rest resource contains.
malformed JSON.public void testShouldBeReachableAfterEnablingItBackAgain() throws JSONException
JSONException
- If the response from the reference rest resource contains.
malformed JSON.
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |