|
||||||||||
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 net.sourceforge.jwebunit.junit.WebTestCase com.atlassian.confluence.AbstractAtlassianWebTestCase com.atlassian.confluence.AbstractConfluenceAcceptanceTest com.atlassian.confluence.TrashCanAcceptanceTest
public class TrashCanAcceptanceTest
0. Setup will log in (as non-admin user), create a test space then perform the following test:
1a. Create page 1b. Create blog 2a. Remove page 2b. remove blog 3a. repeat 1a 3b. repeat 1b 4. Then navigate to space summary and attempt to view the trash can. This action should be forbidden 5. Then log in as the admin 6. View trash can successfully, confirm that page and blog (2a and 2b) are there. 7. empty trash can, confirm that a confirmation page appears 8. repeat steps 2 and 3. 9. View trash can successfully. 10. Restore and overwrite page 11. Restore and overwrite blog 12. repeat steps 2 and 3 13. Restore and rename page 14. Restore and rename blog 15. Put 2 Mails in Trash, view trash successfully, restore one, purge one.
Field Summary | |
---|---|
protected org.apache.commons.logging.Log |
log
|
Fields inherited from class com.atlassian.confluence.AbstractAtlassianWebTestCase |
---|
SITE_TITLE_SUFFIX, TITLE_SEPARATOR |
Fields inherited from class net.sourceforge.jwebunit.junit.WebTestCase |
---|
tester |
Constructor Summary | |
---|---|
TrashCanAcceptanceTest()
|
Method Summary | |
---|---|
void |
setUp()
|
protected void |
tearDown()
Default tearDown method. |
void |
testCannotPurgeNonTrashItem()
|
void |
testCannotPurgePageAsNonSpaceAdministrator()
|
void |
testMailTrash()
|
void |
testPurgeAll()
|
void |
testRestoreByOverwriting()
|
void |
testRestoreByRenaming()
|
void |
testRestoreOfAttachmentsAndCommentsToSearchResults()
|
void |
testTrash()
|
void |
testTrashCansAreSpaceScoped()
A page deleted in Space A should not turn up in the trash for Space B |
Methods inherited from class net.sourceforge.jwebunit.junit.WebTestCase |
---|
assertButtonNotPresent, assertButtonNotPresentWithText, assertButtonPresent, assertButtonPresentWithText, assertCheckboxNotPresent, assertCheckboxNotPresent, assertCheckboxNotSelected, assertCheckboxNotSelected, assertCheckboxPresent, assertCheckboxPresent, assertCheckboxSelected, assertCheckboxSelected, assertCookiePresent, assertCookieValueEquals, assertCookieValueMatch, assertDownloadedFileEquals, assertElementNotPresent, assertElementPresent, assertFormElementEmpty, assertFormElementEquals, assertFormElementMatch, assertFormElementNotPresent, assertFormElementPresent, assertFormNotPresent, assertFormNotPresent, assertFormPresent, assertFormPresent, assertFramePresent, assertHiddenFieldPresent, assertImagePresent, assertImageValidAndStore, assertKeyInTable, assertKeyInTable, assertKeyNotInTable, assertKeyNotPresent, assertKeyNotPresent, assertKeyPresent, assertKeyPresent, assertKeysInTable, assertKeysInTable, assertLinkNotPresent, assertLinkNotPresentWithExactText, assertLinkNotPresentWithExactText, assertLinkNotPresentWithImage, assertLinkNotPresentWithText, assertLinkNotPresentWithText, assertLinkPresentWithExactText, assertLinkPresentWithExactText, assertLinkPresentWithText, assertMatch, assertMatchInElement, assertMatchInTable, assertMatchInTable, assertNoMatch, assertNoMatchInElement, assertNoMatchInTable, assertNoMatchInTable, assertRadioOptionNotPresent, assertRadioOptionNotSelected, assertRadioOptionPresent, assertRadioOptionSelected, assertResetButtonNotPresent, assertResetButtonNotPresent, assertResetButtonPresent, assertResetButtonPresent, assertSelectedOptionEquals, assertSelectedOptionMatches, assertSelectedOptionsEqual, assertSelectedOptionsMatch, assertSelectedOptionValueEquals, assertSelectedOptionValuesEqual, assertSelectOptionNotPresent, assertSelectOptionPresent, assertSelectOptionsEqual, assertSelectOptionsNotEqual, assertSelectOptionsPresent, assertSelectOptionValueNotPresent, assertSelectOptionValuePresent, assertSelectOptionValuesEqual, assertSelectOptionValuesNotEqual, assertSelectOptionValuesPresent, assertSubmitButtonNotPresent, assertSubmitButtonNotPresent, assertSubmitButtonPresent, assertSubmitButtonPresent, assertSubmitButtonPresent, assertTableEquals, assertTableEquals, assertTableMatch, assertTableMatch, assertTableNotPresent, assertTablePresent, assertTableRowCountEquals, assertTableRowsEqual, assertTableRowsEqual, assertTableRowsMatch, assertTableRowsMatch, assertTextFieldEquals, assertTextInElement, assertTextInTable, assertTextInTable, assertTextNotInElement, assertTextNotInTable, assertTextNotInTable, assertTextPresent, assertTitleEqualsKey, assertTitleEqualsKey, assertTitleMatch, assertWindowCountEquals, assertWindowPresent, assertWindowPresent, assertWindowPresentWithTitle, beginAt, checkCheckbox, checkCheckbox, clickButton, clickButtonWithText, clickElementByXPath, clickLink, clickLinkWithExactText, clickLinkWithExactText, clickLinkWithImage, clickLinkWithText, clickLinkWithText, clickRadioOption, closeBrowser, closeWindow, dumpCookies, dumpHtml, dumpHtml, dumpTable, dumpTable, getDialog, getElementAttributByXPath, getElementTextByXPath, getFormElementValue, getImage, getMessage, getMessage, getPageSource, getServeurResponse, getTable, getTestContext, getTester, getTestingEngineKey, gotoFrame, gotoPage, gotoRootWindow, gotoWindow, gotoWindow, gotoWindowByTitle, reset, runBare, saveAs, selectOption, selectOptionByValue, selectOptions, selectOptionsByValues, setDialog, setExpectedJavaScriptAlert, setExpectedJavaScriptAlert, setExpectedJavaScriptConfirm, setExpectedJavaScriptConfirm, setExpectedJavaScriptPrompt, setExpectedJavaScriptPrompt, setFormElement, setScriptingEnabled, setTestContext, setTestingEngineKey, setTextField, setWorkingForm, setWorkingForm, setWorkingForm, submit, submit, submit, uncheckCheckbox, uncheckCheckbox |
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 |
Field Detail |
---|
protected org.apache.commons.logging.Log log
Constructor Detail |
---|
public TrashCanAcceptanceTest()
Method Detail |
---|
public void setUp() throws java.lang.Exception
setUp
in class AbstractConfluenceAcceptanceTest
java.lang.Exception
protected void tearDown() throws java.lang.Exception
AbstractConfluenceAcceptanceTest
AbstractConfluenceAcceptanceTest.filesToDelete
list.
tearDown
in class AbstractConfluenceAcceptanceTest
java.lang.Exception
public void testTrash()
public void testPurgeAll()
public void testRestoreByOverwriting() throws java.io.IOException, org.apache.xmlrpc.XmlRpcException
java.io.IOException
org.apache.xmlrpc.XmlRpcException
public void testRestoreByRenaming() throws java.io.IOException, org.apache.xmlrpc.XmlRpcException
java.io.IOException
org.apache.xmlrpc.XmlRpcException
public void testTrashCansAreSpaceScoped() throws java.io.IOException, org.apache.xmlrpc.XmlRpcException
java.io.IOException
org.apache.xmlrpc.XmlRpcException
public void testMailTrash() throws java.io.IOException, org.xml.sax.SAXException
java.io.IOException
org.xml.sax.SAXException
public void testRestoreOfAttachmentsAndCommentsToSearchResults() throws java.lang.Exception
java.lang.Exception
public void testCannotPurgePageAsNonSpaceAdministrator()
public void testCannotPurgeNonTrashItem()
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |