org.alfresco.repo.domain.subscriptions
Class SubscriptionDAOTest

java.lang.Object
  extended by junit.framework.Assert
      extended by junit.framework.TestCase
          extended by org.alfresco.repo.domain.subscriptions.SubscriptionDAOTest
All Implemented Interfaces:
junit.framework.Test

public class SubscriptionDAOTest
extends junit.framework.TestCase


Constructor Summary
SubscriptionDAOTest()
           
 
Method Summary
protected  int count(java.lang.String userId)
           
protected  int countFollowers(java.lang.String userId)
           
protected  void delete(java.lang.String userId, org.alfresco.service.cmr.repository.NodeRef node)
           
protected  org.alfresco.service.cmr.repository.NodeRef getUserNodeRef(java.lang.String userId)
           
protected  boolean hasSubscribed(java.lang.String userId, org.alfresco.service.cmr.repository.NodeRef node)
           
protected  void insert(java.lang.String userId, org.alfresco.service.cmr.repository.NodeRef node)
           
protected  PagingSubscriptionResults select(java.lang.String userId)
           
protected  PagingFollowingResults selectFollowers(java.lang.String userId)
           
protected  PagingFollowingResults selectFollowing(java.lang.String userId)
           
 void setUp()
           
 void testInsertAndDelete()
           
 
Methods inherited from class junit.framework.TestCase
countTestCases, createResult, getName, run, run, runBare, runTest, setName, tearDown, 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

SubscriptionDAOTest

public SubscriptionDAOTest()
Method Detail

getUserNodeRef

protected org.alfresco.service.cmr.repository.NodeRef getUserNodeRef(java.lang.String userId)

insert

protected void insert(java.lang.String userId,
                      org.alfresco.service.cmr.repository.NodeRef node)
               throws java.lang.Exception
Throws:
java.lang.Exception

delete

protected void delete(java.lang.String userId,
                      org.alfresco.service.cmr.repository.NodeRef node)
               throws java.lang.Exception
Throws:
java.lang.Exception

count

protected int count(java.lang.String userId)
             throws java.lang.Exception
Throws:
java.lang.Exception

hasSubscribed

protected boolean hasSubscribed(java.lang.String userId,
                                org.alfresco.service.cmr.repository.NodeRef node)
                         throws java.lang.Exception
Throws:
java.lang.Exception

select

protected PagingSubscriptionResults select(java.lang.String userId)
                                    throws java.lang.Exception
Throws:
java.lang.Exception

countFollowers

protected int countFollowers(java.lang.String userId)
                      throws java.lang.Exception
Throws:
java.lang.Exception

selectFollowing

protected PagingFollowingResults selectFollowing(java.lang.String userId)
                                          throws java.lang.Exception
Throws:
java.lang.Exception

selectFollowers

protected PagingFollowingResults selectFollowers(java.lang.String userId)
                                          throws java.lang.Exception
Throws:
java.lang.Exception

setUp

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

testInsertAndDelete

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


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