|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||
java.lang.Objectjunit.framework.Assert
junit.framework.TestCase
org.alfresco.repo.web.scripts.BaseWebScriptTest
org.alfresco.repo.web.scripts.discussion.DiscussionRestApiTest
public class DiscussionRestApiTest
Unit Test to test Discussions Web Script API
| Nested Class Summary |
|---|
| Nested classes/interfaces inherited from class org.alfresco.repo.web.scripts.BaseWebScriptTest |
|---|
BaseWebScriptTest.BaseWebScriptTestListener, BaseWebScriptTest.HttpMethodResponse, BaseWebScriptTest.PatchMethod, BaseWebScriptTest.RemoteServer, BaseWebScriptTest.WebScriptTestListener |
| Constructor Summary | |
|---|---|
DiscussionRestApiTest()
|
|
| Method Summary | |
|---|---|
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()
|
| Methods inherited from class org.alfresco.repo.web.scripts.BaseWebScriptTest |
|---|
getDefaultRunAs, getRemoteServer, getServer, isLogEnabled, log, sendLocalRequest, sendRemoteRequest, sendRequest, sendRequest, setCustomContext, setDefaultRunAs, setListener, setRemoteServer, setTraceReqRes |
| Methods inherited from class junit.framework.TestCase |
|---|
countTestCases, createResult, getName, run, run, runBare, 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, failNotEquals, failNotSame, failSame, format |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait |
| Constructor Detail |
|---|
public DiscussionRestApiTest()
| Method Detail |
|---|
protected void setUp()
throws java.lang.Exception
setUp in class BaseWebScriptTestjava.lang.Exception
protected void tearDown()
throws java.lang.Exception
tearDown in class junit.framework.TestCasejava.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 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
|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||