org.sakaiproject.tool.gradebook.test
Class GradableObjectManagerTest

java.lang.Object
  extended byjunit.framework.Assert
      extended byjunit.framework.TestCase
          extended byorg.springframework.test.AbstractSpringContextTests
              extended byorg.springframework.test.AbstractDependencyInjectionSpringContextTests
                  extended byorg.springframework.test.AbstractTransactionalSpringContextTests
                      extended byorg.sakaiproject.tool.gradebook.test.GradebookTestBase
                          extended byorg.sakaiproject.tool.gradebook.test.GradableObjectManagerTest
All Implemented Interfaces:
junit.framework.Test

public class GradableObjectManagerTest
extends GradebookTestBase


Field Summary
protected static String ASN1_NAME
           
protected static String ASN2_NAME
           
protected static String ASN3_NAME
           
protected  Gradebook gradebook
           
 
Fields inherited from class org.sakaiproject.tool.gradebook.test.GradebookTestBase
authn, authz, gradebookManager, gradebookService, gradeManager, integrationSupport, sectionAwareness, userDirectoryService, userManager
 
Fields inherited from class org.springframework.test.AbstractTransactionalSpringContextTests
transactionManager, transactionStatus
 
Fields inherited from class org.springframework.test.AbstractDependencyInjectionSpringContextTests
applicationContext, AUTOWIRE_BY_NAME, AUTOWIRE_BY_TYPE, AUTOWIRE_NO, managedVariableNames
 
Fields inherited from class org.springframework.test.AbstractSpringContextTests
logger
 
Constructor Summary
GradableObjectManagerTest()
           
 
Method Summary
protected  void onSetUpInTransaction()
           
 void testCreateAndUpdateAssignment()
           
 void testDeletedAssignments()
           
 void testGradableObjectSorting()
           
 void testTotalPointsInGradebook()
          Create, remove, and re-add some assignments to ensure that the total points calculation remains accurate.
 
Methods inherited from class org.sakaiproject.tool.gradebook.test.GradebookTestBase
addUsersEnrollments, getConfigLocations, getIntegrationSupport, getUserManager, setAuthnId, setIntegrationSupport, setUserManager
 
Methods inherited from class org.springframework.test.AbstractTransactionalSpringContextTests
endTransaction, onSetUp, onSetUpBeforeTransaction, onTearDown, onTearDownAfterTransaction, onTearDownInTransaction, setComplete, setDefaultRollback, setTransactionManager
 
Methods inherited from class org.springframework.test.AbstractDependencyInjectionSpringContextTests
contextKey, getAutowireMode, getLoadCount, initManagedVariableNames, isDependencyCheck, isPopulateProtectedVariables, loadContextLocations, populateProtectedVariables, setAutowireMode, setDependencyCheck, setDirty, setPopulateProtectedVariables, setUp, tearDown
 
Methods inherited from class org.springframework.test.AbstractSpringContextTests
contextKeyString, getContext, hasCachedContext, loadContext, setDirty
 
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
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
 

Field Detail

ASN1_NAME

protected static final String ASN1_NAME
See Also:
Constant Field Values

ASN2_NAME

protected static final String ASN2_NAME
See Also:
Constant Field Values

ASN3_NAME

protected static final String ASN3_NAME
See Also:
Constant Field Values

gradebook

protected Gradebook gradebook
Constructor Detail

GradableObjectManagerTest

public GradableObjectManagerTest()
Method Detail

onSetUpInTransaction

protected void onSetUpInTransaction()
                             throws Exception
Overrides:
onSetUpInTransaction in class GradebookTestBase
Throws:
Exception

testCreateAndUpdateAssignment

public void testCreateAndUpdateAssignment()
                                   throws Exception
Throws:
Exception

testGradableObjectSorting

public void testGradableObjectSorting()
                               throws Exception
Throws:
Exception

testDeletedAssignments

public void testDeletedAssignments()
                            throws Exception
Throws:
Exception

testTotalPointsInGradebook

public void testTotalPointsInGradebook()
                                throws Exception
Create, remove, and re-add some assignments to ensure that the total points calculation remains accurate.

Throws:
Exception