org.kuali.rice.student.permission
Class BasicPermissionsTest

java.lang.Object
  extended by org.junit.Assert
      extended by org.kuali.rice.test.BaseRiceTestCase
          extended by org.kuali.rice.test.RiceTestCase
              extended by org.kuali.rice.test.RiceInternalSuiteDataTestCase
                  extended by org.kuali.rice.test.BaseModuleTestCase
                      extended by org.kuali.rice.test.BaselineTestCase
                          extended by org.kuali.rice.student.StudentStandaloneTestBase
                              extended by org.kuali.rice.student.permission.BasicPermissionsTest
All Implemented Interfaces:
MethodAware

public class BasicPermissionsTest
extends StudentStandaloneTestBase

Test case to verify permissions work properly

Author:
delyea

Nested Class Summary
 
Nested classes/interfaces inherited from class org.kuali.rice.student.StudentStandaloneTestBase
StudentStandaloneTestBase.ClearCacheLifecycle
 
Nested classes/interfaces inherited from class org.kuali.rice.test.BaselineTestCase
BaselineTestCase.BaselineMode, BaselineTestCase.Mode
 
Field Summary
protected static String PERMISSIONS_NAME_COMMENT_ON_DOCUMENT
           
protected static String PERMISSIONS_NAME_EDIT_DOCUMENT
           
protected static String PERMISSIONS_NAME_OPEN_DOCUMENT
           
 
Fields inherited from class org.kuali.rice.test.BaselineTestCase
dirty
 
Fields inherited from class org.kuali.rice.test.BaseModuleTestCase
LOG, moduleName
 
Fields inherited from class org.kuali.rice.test.RiceTestCase
DEFAULT_TEST_HARNESS_SPRING_BEANS, failedSuiteTestName, perTestLifeCycles, SUITE_LIFE_CYCLES_FAILED, SUITE_LIFE_CYCLES_RAN, suiteLifeCycles
 
Fields inherited from class org.kuali.rice.test.BaseRiceTestCase
log, method
 
Constructor Summary
BasicPermissionsTest()
           
 
Method Summary
 void setUp()
           
 void testOpenPermission()
           
protected  void verifyPermissions(String principalId, String documentId, Map<String,Boolean> existingPermissions)
           
 
Methods inherited from class org.kuali.rice.student.StudentStandaloneTestBase
getKIMDataLoadOrderFile, getKIMSqlFileBaseLocation, getKNSDefaultSuiteTestData, getLoadApplicationLifecycle, getPerTestLifecycles, loadSuiteTestData, loadXmlFile, loadXmlFileFromFileSystem
 
Methods inherited from class org.kuali.rice.test.BaselineTestCase
getClearDbPerTestLifecycles, getMode, getPerTestTablesNotToClear, getPerTestTablesToClear, getRollbackPerTestLifecycles
 
Methods inherited from class org.kuali.rice.test.BaseModuleTestCase
getModuleName
 
Methods inherited from class org.kuali.rice.test.RiceTestCase
configureLogging, dumpMemory, getBaseDir, getConfigLocations, getFullTestName, getModuleTestConfigLocation, getRiceMasterDefaultConfigFile, getSuiteLifecycles, getTestHarnessConfig, getTestHarnessSpringBeansLocation, getTestHarnessSpringResourceLoader, loadPerTestData, logAfterRun, logBeforeRun, report, setBaseDirSystemProperty, setModuleName, setUpInternal, startLifecycles, startSuiteDataLoaderLifecycles, stopLifecycles, tearDown
 
Methods inherited from class org.kuali.rice.test.BaseRiceTestCase
getName, getPerTestDataLoaderLifecycle, resetLogLevels, setLogLevel, setName, setTestMethod
 
Methods inherited from class org.junit.Assert
assertArrayEquals, assertArrayEquals, assertArrayEquals, assertArrayEquals, assertArrayEquals, assertArrayEquals, assertArrayEquals, assertArrayEquals, assertArrayEquals, assertArrayEquals, assertArrayEquals, assertArrayEquals, assertEquals, assertEquals, assertEquals, assertEquals, assertEquals, assertEquals, assertEquals, assertEquals, assertEquals, assertEquals, assertFalse, assertFalse, assertNotNull, assertNotNull, assertNotSame, assertNotSame, assertNull, assertNull, assertSame, assertSame, assertThat, assertThat, assertTrue, assertTrue, fail, fail
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

PERMISSIONS_NAME_OPEN_DOCUMENT

protected static final String PERMISSIONS_NAME_OPEN_DOCUMENT
See Also:
Constant Field Values

PERMISSIONS_NAME_COMMENT_ON_DOCUMENT

protected static final String PERMISSIONS_NAME_COMMENT_ON_DOCUMENT
See Also:
Constant Field Values

PERMISSIONS_NAME_EDIT_DOCUMENT

protected static final String PERMISSIONS_NAME_EDIT_DOCUMENT
See Also:
Constant Field Values
Constructor Detail

BasicPermissionsTest

public BasicPermissionsTest()
Method Detail

setUp

public void setUp()
           throws Exception
Overrides:
setUp in class BaselineTestCase
Throws:
Exception

verifyPermissions

protected void verifyPermissions(String principalId,
                                 String documentId,
                                 Map<String,Boolean> existingPermissions)

testOpenPermission

public void testOpenPermission()
                        throws Exception
Throws:
Exception


Copyright © 2004-2013 The Kuali Foundation. All Rights Reserved.