public class

SetupAcceptanceTest

extends AbstractAtlassianWebTestCase
java.lang.Object
   ↳ junit.framework.Assert
     ↳ junit.framework.TestCase
       ↳ com.atlassian.confluence.ThreadLocalWebTestCase
         ↳ com.atlassian.confluence.AbstractAtlassianWebTestCase
           ↳ com.atlassian.confluence.setup.SetupAcceptanceTest

Class Overview

Tests the setup process.

If you execute this test from your IDE, you may (profiles are given as an example):
  • Run mvn clean install -Pextended-acceptance-test,local,multi-setup,cargo,jaacs -Dcargo.wait=true which waits when Confluence (and JIRA if required) is up, with 5005 as a debug port.
  • Configure SetupAcceptanceTest in your IDE with the right System Properties. Look for the 00_setup section in: mvn help:effective-pom -Pthe,same,profiles,as,above

Summary

[Expand]
Inherited Constants
From class com.atlassian.confluence.AbstractAtlassianWebTestCase
[Expand]
Inherited Fields
From class com.atlassian.confluence.AbstractAtlassianWebTestCase
Public Constructors
SetupAcceptanceTest()
Public Methods
void assertElevatedSecurityCheckDoesntBreakSetup(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.
void testInstall()
Protected Methods
void setUp()
void setUpTestNG(Method method)
Don't do any set up in testNg.
[Expand]
Inherited Methods
From class com.atlassian.confluence.AbstractAtlassianWebTestCase
From class com.atlassian.confluence.ThreadLocalWebTestCase
From class junit.framework.TestCase
From class junit.framework.Assert
From class java.lang.Object
From interface junit.framework.Test

Public Constructors

public SetupAcceptanceTest ()

Public Methods

public void assertElevatedSecurityCheckDoesntBreakSetup (String baseUrl)

Make sure that the elevated security check doesn't break fresh installs.

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

  • You have a RememberMe cookie (luckily for us, not necessarily valid! Otherwise, the issues triggered by CONFDEV-24 would apply)
  • You don't have a http session
  • Confluence setup is not complete
Then the Elevated Security check would throw an exception trying to perform the esc.
Parameters
baseUrl The base URL
Throws
Exception If there are any I/O errors

public void install ()

TestNG test that is responsible for testing and performing the Confluence setup wizard on all the instances used for the parallel build.

Throws
IOException if it fails.
Exception

public void testInstall ()

Throws
Exception

Protected Methods

protected void setUp ()

Throws
Exception

protected void setUpTestNG (Method method)

Don't do any set up in testNg. It is done by {link #install()}.

Throws
Exception