public class DiscussionRestApiTest extends BaseWebScriptTest
BaseWebScriptTest.BaseWebScriptTestListener, BaseWebScriptTest.HttpMethodResponse, BaseWebScriptTest.PatchMethod, BaseWebScriptTest.RemoteServer, BaseWebScriptTest.WebScriptTestListener| Constructor and Description |
|---|
DiscussionRestApiTest() |
| Modifier and Type | Method and Description |
|---|---|
protected void |
setUp() |
protected void |
tearDown() |
void |
testAddReply() |
void |
testCreateForumPost() |
void |
testDeleteReplyPost() |
void |
testDeleteToplevelPost() |
void |
testListings()
Test for the various listings:
All, New, Hot (Most Active), Mine
|
void |
testPermissions()
Tests that the permissions details included with topics and
posts are correct
|
void |
testUpdateForumPost() |
void |
testUpdateReply() |
void |
testViewReplyByDeletedUser()
ALF-1973 - If the user who added a reply has been deleted, don't break
|
getCustomAuthenticatorFactory, getDefaultRunAs, getRemoteServer, getServer, isLogEnabled, log, sendLocalRequest, sendRemoteRequest, sendRequest, sendRequest, setCustomAuthenticatorFactory, setCustomContext, setDefaultRunAs, setListener, setRemoteServer, setTraceReqRescountTestCases, createResult, getName, run, run, runBare, runTest, setName, toStringassertEquals, 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, formatprotected void setUp()
throws java.lang.Exception
setUp in class BaseWebScriptTestjava.lang.Exceptionprotected void tearDown()
throws java.lang.Exception
tearDown in class junit.framework.TestCasejava.lang.Exceptionpublic void testCreateForumPost()
throws java.lang.Exception
java.lang.Exceptionpublic void testUpdateForumPost()
throws java.lang.Exception
java.lang.Exceptionpublic void testPermissions()
throws java.lang.Exception
java.lang.Exceptionpublic void testViewReplyByDeletedUser()
throws java.lang.Exception
java.lang.Exceptionpublic void testAddReply()
throws java.lang.Exception
java.lang.Exceptionpublic void testUpdateReply()
throws java.lang.Exception
java.lang.Exceptionpublic void testDeleteToplevelPost()
throws java.lang.Exception
java.lang.Exceptionpublic void testDeleteReplyPost()
throws java.lang.Exception
java.lang.Exceptionpublic void testListings()
throws java.lang.Exception
java.lang.ExceptionCopyright © 2005 - 2010 Alfresco Software, Inc. All Rights Reserved.