public class

AddPageSecurityAcceptanceTest

extends AbstractConfluenceAcceptanceTest
java.lang.Object
   ↳ junit.framework.Assert
     ↳ junit.framework.TestCase
       ↳ com.atlassian.confluence.ThreadLocalWebTestCase
         ↳ com.atlassian.confluence.AbstractAtlassianWebTestCase
           ↳ com.atlassian.confluence.AbstractConfluenceAcceptanceTest
             ↳ com.atlassian.confluence.AddPageSecurityAcceptanceTest

Class Overview

A test class specifically intended to test Page Creation via HTTP directly, instead of through either SOAP/XMLRPC or the Web GUI. This kind of test is necessary since while you may restrict what is possible via the GUI layer, in a web GUI an 'inquisitive' user may change any parameters posted back from the browser.

Tests here are intended to exercise security at the action layer.

Summary

[Expand]
Inherited Constants
From class com.atlassian.confluence.AbstractConfluenceAcceptanceTest
From class com.atlassian.confluence.AbstractAtlassianWebTestCase
[Expand]
Inherited Fields
From class com.atlassian.confluence.AbstractConfluenceAcceptanceTest
From class com.atlassian.confluence.AbstractAtlassianWebTestCase
Public Constructors
AddPageSecurityAcceptanceTest()
Public Methods
void testRestrictedSpace()
Test the creation of a page in a space the test user should not have access to.
Protected Methods
void setUp()
Set up the test space and create a new test user who should not have create permissions for this space.
[Expand]
Inherited Methods
From class com.atlassian.confluence.AbstractConfluenceAcceptanceTest
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 AddPageSecurityAcceptanceTest ()

Public Methods

public void testRestrictedSpace ()

Test the creation of a page in a space the test user should not have access to. This is done by navigating to a space the user does have access to and then modifying the form elements that are submitted from this space.

Obviously the setup involves creating a new space and granting the test user access to it.
Throws
Exception

Protected Methods

protected void setUp ()

Set up the test space and create a new test user who should not have create permissions for this space.

Throws
Exception