com.atlassian.confluence.setup
Class SetupAcceptanceTest

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.AbstractAtlassianWebTestCase
                  extended by com.atlassian.confluence.setup.SetupAcceptanceTest
All Implemented Interfaces:
junit.framework.Test

public class SetupAcceptanceTest
extends AbstractAtlassianWebTestCase

Tests the setup process.

If you execute this test from your IDE, you may (profiles are given as an example):


Constructor Summary
SetupAcceptanceTest()
           
 
Method Summary
 void assertElevatedSecurityCheckDoesntBreakSetup(java.lang.String baseUrl)
          Make sure that the elevated security check doesn't break fresh installs.
 void install()
          TestNG test that is responsible for testing and performing the Confluence setup wizard on all the instances used for the parallel build.
protected  void setUp()
           
protected  void setUpTestNG(java.lang.reflect.Method method)
          Don't do any set up in testNg.
 void testInstall()
           
 
Methods inherited from class com.atlassian.confluence.AbstractAtlassianWebTestCase
tearDown
 
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, failNotEquals, failNotSame, failSame, format
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
 

Constructor Detail

SetupAcceptanceTest

public SetupAcceptanceTest()
Method Detail

setUpTestNG

protected void setUpTestNG(java.lang.reflect.Method method)
                    throws java.lang.Exception
Don't do any set up in testNg. It is done by {link #install()}.

Throws:
java.lang.Exception

setUp

protected void setUp()
              throws java.lang.Exception
Overrides:
setUp in class junit.framework.TestCase
Throws:
java.lang.Exception

install

public void install()
             throws java.lang.Exception
TestNG test that is responsible for testing and performing the Confluence setup wizard on all the instances used for the parallel build.

Throws:
java.io.IOException - if it fails.
java.lang.Exception

assertElevatedSecurityCheckDoesntBreakSetup

public void assertElevatedSecurityCheckDoesntBreakSetup(java.lang.String baseUrl)
                                                 throws java.lang.Exception
Make sure that the elevated security check doesn't break fresh installs.

Changes for CONF-19314 mean that if you had this case where:

Then the Elevated Security check would throw an exception trying to perform the esc.

Parameters:
baseUrl - The base URL
Throws:
java.lang.Exception - If there are any I/O errors

testInstall

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


Copyright © 2003-2014 Atlassian. All Rights Reserved.