org.alfresco.repo.web.scripts.discussion
Class DiscussionRestApiTest

java.lang.Object
  extended by junit.framework.Assert
      extended by junit.framework.TestCase
          extended by org.alfresco.repo.web.scripts.BaseWebScriptTest
              extended by org.alfresco.repo.web.scripts.discussion.DiscussionRestApiTest
All Implemented Interfaces:
junit.framework.Test

public class DiscussionRestApiTest
extends BaseWebScriptTest

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()
           
 void testViewReplyByDeletedUser()
          ALF-1973 - If the user who added a reply has been deleted, don't break
 
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

DiscussionRestApiTest

public DiscussionRestApiTest()
Method Detail

setUp

protected void setUp()
              throws java.lang.Exception
Overrides:
setUp in class BaseWebScriptTest
Throws:
java.lang.Exception

tearDown

protected void tearDown()
                 throws java.lang.Exception
Overrides:
tearDown in class junit.framework.TestCase
Throws:
java.lang.Exception

testCreateForumPost

public void testCreateForumPost()
                         throws java.lang.Exception
Throws:
java.lang.Exception

testUpdateForumPost

public void testUpdateForumPost()
                         throws java.lang.Exception
Throws:
java.lang.Exception

testPermissions

public void testPermissions()
                     throws java.lang.Exception
Tests that the permissions details included with topics and posts are correct

Throws:
java.lang.Exception

testViewReplyByDeletedUser

public void testViewReplyByDeletedUser()
                                throws java.lang.Exception
ALF-1973 - If the user who added a reply has been deleted, don't break

Throws:
java.lang.Exception

testAddReply

public void testAddReply()
                  throws java.lang.Exception
Throws:
java.lang.Exception

testUpdateReply

public void testUpdateReply()
                     throws java.lang.Exception
Throws:
java.lang.Exception

testDeleteToplevelPost

public void testDeleteToplevelPost()
                            throws java.lang.Exception
Throws:
java.lang.Exception

testDeleteReplyPost

public void testDeleteReplyPost()
                         throws java.lang.Exception
Throws:
java.lang.Exception

testListings

public void testListings()
                  throws java.lang.Exception
Test for the various listings: All, New, Hot (Most Active), Mine

Throws:
java.lang.Exception


Copyright © 2005 - 2010 Alfresco Software, Inc. All Rights Reserved.