com.atlassian.crowd.integration.service.cache
Class CachingGroupManagerTest

java.lang.Object
  extended by junit.framework.Assert
      extended by junit.framework.TestCase
          extended by org.jmock.core.VerifyingTestCase
              extended by org.jmock.core.MockObjectSupportTestCase
                  extended by org.jmock.MockObjectTestCase
                      extended by com.atlassian.crowd.integration.service.cache.CachingGroupManagerTest
All Implemented Interfaces:
junit.framework.Test

public class CachingGroupManagerTest
extends org.jmock.MockObjectTestCase


Field Summary
 
Fields inherited from class org.jmock.core.MockObjectSupportTestCase
ANYTHING, NOT_NULL, NULL
 
Constructor Summary
CachingGroupManagerTest()
           
 
Method Summary
protected  void setUp()
           
 void tearDown()
           
 void testAddGroup_Existing()
           
 void testAddGroup_Null()
           
 void testAddGroup_UpdatesAllGroups()
           
 void testAddGroup()
           
 void testGetAllGroupNames_InCache()
           
 void testGetAllGroupNames_NotInCache()
           
 void testGetGroup_NotInCache()
           
 void testGetGroup_NotInCrowd()
           
 void testGetGroup_Null()
           
 void testRemoveGroup_NoGroup()
           
 void testRemoveGroup_NoPermissions()
           
 void testRemoveGroup_UpdatesAllGroups()
           
 void testRemoveGroup()
           
 void testSearchGroups_PassToServer()
           
 void testUpdateGroup_FailedUpdate()
           
 void testUpdateGroup_SuccessfulUpdate()
           
 
Methods inherited from class org.jmock.MockObjectTestCase
atLeastOnce, atMostOnce, defaultMockNameForType, doAll, doAll, doAll, doAll, exactly, mock, mock, never, never, newCoreMock, once, onConsecutiveCalls, onConsecutiveCalls, onConsecutiveCalls, onConsecutiveCalls, returnIterator, returnIterator, returnValue, returnValue, returnValue, returnValue, returnValue, returnValue, returnValue, returnValue, returnValue, throwException
 
Methods inherited from class org.jmock.core.MockObjectSupportTestCase
and, arrayContaining, arrayContaining, arrayContaining, arrayContaining, arrayContaining, arrayContaining, arrayContaining, arrayContaining, arrayContaining, arrayContaining, assertThat, assertThat, assertThat, assertThat, assertThat, assertThat, assertThat, assertThat, assertThat, collectionContaining, collectionContaining, compatibleType, contains, endsWith, eq, eq, eq, eq, eq, eq, eq, eq, eq, eq, hasProperty, hasProperty, isA, isIn, isIn, mapContaining, mapContaining, mapWithKey, mapWithKey, mapWithValue, mapWithValue, newDummy, newDummy, newDummy, not, or, same, startsWith, stringContains, toString
 
Methods inherited from class org.jmock.core.VerifyingTestCase
registerToVerify, runBare, unregisterToVerify, verify
 
Methods inherited from class junit.framework.TestCase
countTestCases, createResult, getName, run, run, 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

CachingGroupManagerTest

public CachingGroupManagerTest()
Method Detail

tearDown

public void tearDown()
Overrides:
tearDown in class junit.framework.TestCase

setUp

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

testGetGroup_Null

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

testGetGroup_NotInCache

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

testGetGroup_NotInCrowd

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

testSearchGroups_PassToServer

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

testAddGroup_Null

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

testAddGroup_Existing

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

testAddGroup

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

testAddGroup_UpdatesAllGroups

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

testUpdateGroup_FailedUpdate

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

testUpdateGroup_SuccessfulUpdate

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

testRemoveGroup_NoPermissions

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

testRemoveGroup_NoGroup

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

testRemoveGroup

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

testRemoveGroup_UpdatesAllGroups

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

testGetAllGroupNames_NotInCache

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

testGetAllGroupNames_InCache

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


Copyright © 2009 Atlassian Pty Ltd. All Rights Reserved.