com.atlassian.confluence.cluster
Class ClusteredPluginAcceptanceTest

java.lang.Object
  extended by junit.framework.Assert
      extended by junit.framework.TestCase
          extended by com.atlassian.confluence.junit3.JUnit3TimingTestCase
              extended by com.atlassian.confluence.cluster.AbstractClusteredTestCase
                  extended by com.atlassian.confluence.cluster.ClusteredPluginAcceptanceTest
All Implemented Interfaces:
junit.framework.Test

public class ClusteredPluginAcceptanceTest
extends AbstractClusteredTestCase


Field Summary
 
Fields inherited from class com.atlassian.confluence.cluster.AbstractClusteredTestCase
node1, node1tester, node2, node2tester, TEST_SPACE, TESTPAGE_TITLE
 
Constructor Summary
ClusteredPluginAcceptanceTest()
           
 
Method Summary
protected  void setUp()
           
protected  void tearDown()
           
 void testDisableWithoutPersistingDoesNotPersist()
           
 void testDynamicModuleStateChanges()
          "rest-filter" module is added dynamically when "rest" module is enabled in a plugin.
 void testEnableDisableStateAwarePlugin()
           
 void testEnablingPluginAcrossCluster()
           
 void testUploadingAndUninstallingPluginAcrossCluster()
           
 void testUploadPluginOnNode2()
           
 
Methods inherited from class com.atlassian.confluence.junit3.JUnit3TimingTestCase
runBare, setExceptionTransformer
 
Methods inherited from class junit.framework.TestCase
countTestCases, createResult, getName, run, run, runTest, 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
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
 

Constructor Detail

ClusteredPluginAcceptanceTest

public ClusteredPluginAcceptanceTest()
Method Detail

setUp

protected void setUp()
              throws java.lang.Exception
Overrides:
setUp in class AbstractClusteredTestCase
Throws:
java.lang.Exception

tearDown

protected void tearDown()
                 throws java.lang.Exception
Overrides:
tearDown in class AbstractClusteredTestCase
Throws:
java.lang.Exception

testEnablingPluginAcrossCluster

public void testEnablingPluginAcrossCluster()
                                     throws java.lang.Exception
Throws:
java.lang.Exception

testUploadingAndUninstallingPluginAcrossCluster

public void testUploadingAndUninstallingPluginAcrossCluster()
                                                     throws java.lang.Exception
Throws:
java.lang.Exception

testEnableDisableStateAwarePlugin

public void testEnableDisableStateAwarePlugin()
                                       throws java.lang.Exception
Throws:
java.lang.Exception

testUploadPluginOnNode2

public void testUploadPluginOnNode2()
                             throws java.lang.Exception
Throws:
java.lang.Exception

testDynamicModuleStateChanges

public void testDynamicModuleStateChanges()
                                   throws java.lang.Exception
"rest-filter" module is added dynamically when "rest" module is enabled in a plugin. It also also removed dynamically when "rest" module is disabled in a plugin. This causes the peculiar behaviour of UPM module count being higher when a plugin is enabled. This test tries to ensure that this dynamic behaviour works correctly in a cluster.

Throws:
java.lang.Exception

testDisableWithoutPersistingDoesNotPersist

public void testDisableWithoutPersistingDoesNotPersist()
                                                throws java.lang.Exception
Throws:
java.lang.Exception


Copyright © 2003-2014 Atlassian. All Rights Reserved.