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, setTraceReqRes
countTestCases, createResult, getName, run, run, runBare, runTest, setName, toString
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
protected void setUp() throws java.lang.Exception
setUp
in class BaseWebScriptTest
java.lang.Exception
protected void tearDown() throws java.lang.Exception
tearDown
in class junit.framework.TestCase
java.lang.Exception
public void testCreateForumPost() throws java.lang.Exception
java.lang.Exception
public void testUpdateForumPost() throws java.lang.Exception
java.lang.Exception
public void testPermissions() throws java.lang.Exception
java.lang.Exception
public void testViewReplyByDeletedUser() throws java.lang.Exception
java.lang.Exception
public void testAddReply() throws java.lang.Exception
java.lang.Exception
public void testUpdateReply() throws java.lang.Exception
java.lang.Exception
public void testDeleteToplevelPost() throws java.lang.Exception
java.lang.Exception
public void testDeleteReplyPost() throws java.lang.Exception
java.lang.Exception
public void testListings() throws java.lang.Exception
java.lang.Exception
Copyright © 2005 - 2010 Alfresco Software, Inc. All Rights Reserved.