public class SiteActivitySystemTest
extends junit.framework.TestCase
Constructor and Description |
---|
SiteActivitySystemTest() |
Modifier and Type | Method and Description |
---|---|
protected void |
addAndUpdateMemberships(java.lang.String siteId,
java.lang.String ticket,
boolean includeUser4) |
protected java.lang.String |
callDeleteWebScript(java.lang.String urlString,
java.lang.String ticket) |
protected java.lang.String |
callGetWebScript(java.lang.String urlString,
java.lang.String ticket) |
protected java.lang.String |
callLoginWebScript(java.lang.String serviceUrl,
java.lang.String username,
java.lang.String password) |
protected java.lang.String |
callPostWebScript(java.lang.String urlString,
java.lang.String ticket,
java.lang.String data) |
protected java.lang.String |
callPutWebScript(java.lang.String urlString,
java.lang.String ticket,
java.lang.String data) |
protected void |
createSite(java.lang.String siteId,
boolean isPublic,
java.lang.String ticket) |
protected void |
createUser(java.lang.String ticket,
java.lang.String username,
java.lang.String password) |
protected void |
getSite(java.lang.String siteId,
java.lang.String ticket) |
protected void |
getSiteFeed(java.lang.String siteId,
java.lang.String ticket,
int expectedCount) |
protected void |
getUserFeed(java.lang.String userId,
java.lang.String ticket,
boolean isAdmin,
int expectedCount) |
protected void |
getUserFeed(java.lang.String userId,
java.lang.String siteId,
java.lang.String ticket,
boolean isAdmin,
boolean excludeThisUser,
boolean excludeOtherUsers,
int expectedCount) |
protected void |
removeMemberships(java.lang.String siteId,
java.lang.String ticket,
boolean includeUser4) |
protected void |
setUp() |
protected void |
tearDown() |
void |
test01Login() |
void |
test02CreateSites() |
void |
test03GetSites() |
void |
test04GetSiteFeedsBefore() |
void |
test05GetUserFeedsBefore() |
void |
test06UserFeedControls() |
void |
test07AddAndUpdateMembershipsWithPause() |
void |
test08GetSiteFeedsAfterAddAndUpdateMemberships() |
void |
test09RemoveMembershipsWithPause() |
void |
test10GetSiteFeedsAfterRemoveMemberships() |
void |
test11GetUserFeedsAfter() |
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 junit.framework.TestCase
java.lang.Exception
protected void tearDown() throws java.lang.Exception
tearDown
in class junit.framework.TestCase
java.lang.Exception
public void test01Login() throws java.lang.Exception
java.lang.Exception
public void test02CreateSites() throws java.lang.Exception
java.lang.Exception
protected void createSite(java.lang.String siteId, boolean isPublic, java.lang.String ticket) throws java.lang.Exception
java.lang.Exception
public void test03GetSites() throws java.lang.Exception
java.lang.Exception
protected void getSite(java.lang.String siteId, java.lang.String ticket) throws java.lang.Exception
java.lang.Exception
public void test04GetSiteFeedsBefore() throws java.lang.Exception
java.lang.Exception
protected void getSiteFeed(java.lang.String siteId, java.lang.String ticket, int expectedCount) throws java.lang.Exception
java.lang.Exception
public void test05GetUserFeedsBefore() throws java.lang.Exception
java.lang.Exception
protected void getUserFeed(java.lang.String userId, java.lang.String ticket, boolean isAdmin, int expectedCount) throws java.lang.Exception
java.lang.Exception
protected void getUserFeed(java.lang.String userId, java.lang.String siteId, java.lang.String ticket, boolean isAdmin, boolean excludeThisUser, boolean excludeOtherUsers, int expectedCount) throws java.lang.Exception
java.lang.Exception
public void test06UserFeedControls() throws java.lang.Exception
java.lang.Exception
public void test07AddAndUpdateMembershipsWithPause() throws java.lang.Exception
java.lang.Exception
public void test08GetSiteFeedsAfterAddAndUpdateMemberships() throws java.lang.Exception
java.lang.Exception
public void test09RemoveMembershipsWithPause() throws java.lang.Exception
java.lang.Exception
protected void addAndUpdateMemberships(java.lang.String siteId, java.lang.String ticket, boolean includeUser4) throws java.lang.Exception
java.lang.Exception
protected void removeMemberships(java.lang.String siteId, java.lang.String ticket, boolean includeUser4) throws java.lang.Exception
java.lang.Exception
public void test10GetSiteFeedsAfterRemoveMemberships() throws java.lang.Exception
java.lang.Exception
public void test11GetUserFeedsAfter() throws java.lang.Exception
java.lang.Exception
protected java.lang.String callGetWebScript(java.lang.String urlString, java.lang.String ticket) throws java.net.MalformedURLException, java.net.URISyntaxException, java.io.IOException
java.net.MalformedURLException
java.net.URISyntaxException
java.io.IOException
protected java.lang.String callDeleteWebScript(java.lang.String urlString, java.lang.String ticket) throws java.net.MalformedURLException, java.net.URISyntaxException, java.io.IOException
java.net.MalformedURLException
java.net.URISyntaxException
java.io.IOException
protected java.lang.String callPostWebScript(java.lang.String urlString, java.lang.String ticket, java.lang.String data) throws java.net.MalformedURLException, java.net.URISyntaxException, java.io.IOException
java.net.MalformedURLException
java.net.URISyntaxException
java.io.IOException
protected java.lang.String callPutWebScript(java.lang.String urlString, java.lang.String ticket, java.lang.String data) throws java.net.MalformedURLException, java.net.URISyntaxException, java.io.IOException
java.net.MalformedURLException
java.net.URISyntaxException
java.io.IOException
protected java.lang.String callLoginWebScript(java.lang.String serviceUrl, java.lang.String username, java.lang.String password) throws java.net.MalformedURLException, java.net.URISyntaxException, java.io.IOException
java.net.MalformedURLException
java.net.URISyntaxException
java.io.IOException
protected void createUser(java.lang.String ticket, java.lang.String username, java.lang.String password) throws org.json.JSONException, java.io.IOException, java.net.URISyntaxException
org.json.JSONException
java.io.IOException
java.net.URISyntaxException
Copyright © 2005 - 2010 Alfresco Software, Inc. All Rights Reserved.