org.alfresco.repo.activities
Class SiteActivityTest
java.lang.Object
junit.framework.Assert
junit.framework.TestCase
org.alfresco.repo.activities.SiteActivityTest
- All Implemented Interfaces:
- junit.framework.Test
public class SiteActivityTest
- extends junit.framework.TestCase
Simple Activity Service unit test using site (membership) activities
Method Summary |
protected void |
addAndUpdateMemberships(java.lang.String siteId,
boolean includeUser4)
|
protected void |
createSite(java.lang.String siteId,
boolean isPublic)
|
protected void |
createUser(java.lang.String userName,
java.lang.String password)
|
protected void |
deleteSite(java.lang.String siteId)
|
protected void |
deleteUser(java.lang.String userName)
|
protected void |
getSiteFeed(java.lang.String siteId,
int expectedCount)
|
protected void |
getUserFeed(java.lang.String userId,
boolean isAdmin,
int expectedCount)
|
protected void |
getUserFeed(java.lang.String userId,
java.lang.String siteId,
boolean isAdmin,
boolean excludeThisUser,
boolean excludeOtherUsers,
int expectedCount)
|
protected void |
removeMemberships(java.lang.String siteId,
boolean includeUser4)
|
protected void |
setUp()
|
protected void |
tearDown()
|
void |
testAddAndUpdateMemberships()
|
void |
testGetSiteFeedsAfterAddAndUpdateMemberships()
|
void |
testGetSiteFeedsAfterRemoveMemberships()
|
void |
testGetSiteFeedsBefore()
|
void |
testGetUserFeedsAfter()
|
void |
testGetUserFeedsBefore()
|
void |
testRemoveMemberships()
|
void |
testUserFeedControls()
|
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 |
SiteActivityTest
public SiteActivityTest()
setUp
protected void setUp()
throws java.lang.Exception
- Overrides:
setUp
in class junit.framework.TestCase
- Throws:
java.lang.Exception
tearDown
protected void tearDown()
throws java.lang.Exception
- Overrides:
tearDown
in class junit.framework.TestCase
- Throws:
java.lang.Exception
createSite
protected void createSite(java.lang.String siteId,
boolean isPublic)
throws java.lang.Exception
- Throws:
java.lang.Exception
deleteSite
protected void deleteSite(java.lang.String siteId)
throws java.lang.Exception
- Throws:
java.lang.Exception
testGetSiteFeedsBefore
public void testGetSiteFeedsBefore()
throws java.lang.Exception
- Throws:
java.lang.Exception
getSiteFeed
protected void getSiteFeed(java.lang.String siteId,
int expectedCount)
throws java.lang.Exception
- Throws:
java.lang.Exception
testGetUserFeedsBefore
public void testGetUserFeedsBefore()
throws java.lang.Exception
- Throws:
java.lang.Exception
getUserFeed
protected void getUserFeed(java.lang.String userId,
boolean isAdmin,
int expectedCount)
throws java.lang.Exception
- Throws:
java.lang.Exception
getUserFeed
protected void getUserFeed(java.lang.String userId,
java.lang.String siteId,
boolean isAdmin,
boolean excludeThisUser,
boolean excludeOtherUsers,
int expectedCount)
throws java.lang.Exception
- Throws:
java.lang.Exception
testUserFeedControls
public void testUserFeedControls()
throws java.lang.Exception
- Throws:
java.lang.Exception
testAddAndUpdateMemberships
public void testAddAndUpdateMemberships()
throws java.lang.Exception
- Throws:
java.lang.Exception
testGetSiteFeedsAfterAddAndUpdateMemberships
public void testGetSiteFeedsAfterAddAndUpdateMemberships()
throws java.lang.Exception
- Throws:
java.lang.Exception
testRemoveMemberships
public void testRemoveMemberships()
throws java.lang.Exception
- Throws:
java.lang.Exception
addAndUpdateMemberships
protected void addAndUpdateMemberships(java.lang.String siteId,
boolean includeUser4)
throws java.lang.Exception
- Throws:
java.lang.Exception
removeMemberships
protected void removeMemberships(java.lang.String siteId,
boolean includeUser4)
throws java.lang.Exception
- Throws:
java.lang.Exception
testGetSiteFeedsAfterRemoveMemberships
public void testGetSiteFeedsAfterRemoveMemberships()
throws java.lang.Exception
- Throws:
java.lang.Exception
testGetUserFeedsAfter
public void testGetUserFeedsAfter()
throws java.lang.Exception
- Throws:
java.lang.Exception
createUser
protected void createUser(java.lang.String userName,
java.lang.String password)
deleteUser
protected void deleteUser(java.lang.String userName)
Copyright © 2005 - 2010 Alfresco Software, Inc. All Rights Reserved.