org.kuali.student.lum.course.service.impl
Class TestCourseServiceImpl
java.lang.Object
org.kuali.student.lum.course.service.impl.TestCourseServiceImpl
- Direct Known Subclasses:
- DevAssemblyTesting
@ContextConfiguration(locations="classpath:course-test-context.xml")
public class TestCourseServiceImpl
- extends Object
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
courseService
CourseService courseService
statementService
StatementService statementService
subjectAreaSet
Set<String> subjectAreaSet
TestCourseServiceImpl
public TestCourseServiceImpl()
testCreateCourse
public void testCreateCourse()
throws Exception
- Throws:
Exception
dumpValidationErrors
private void dumpValidationErrors(CourseInfo cInfo)
throws Exception
- Throws:
Exception
testGetCourse
public void testGetCourse()
testUpdateCourse
public void testUpdateCourse()
throws Exception
- Throws:
Exception
verifyUpdate
private void verifyUpdate(CourseInfo updatedCourse)
testDeleteCourse
public void testDeleteCourse()
testCourseCrossListing
public void testCourseCrossListing()
- This method tests setting code, attributes in course cross listing
testCreditOptions
public void testCreditOptions()
testDynamicAttributes
public void testDynamicAttributes()
testCluIsUpdated
public void testCluIsUpdated()
testGetMetadata
public void testGetMetadata()
testCourseVersioning
public void testCourseVersioning()
throws IllegalArgumentException,
SecurityException,
IntrospectionException,
InstantiationException,
IllegalAccessException,
InvocationTargetException,
NoSuchFieldException,
AlreadyExistsException,
DataValidationErrorException,
InvalidParameterException,
MissingParameterException,
OperationFailedException,
PermissionDeniedException,
VersionMismatchException,
DoesNotExistException,
CircularRelationshipException,
DependentObjectsExistException,
UnsupportedActionException,
IllegalVersionSequencingException
- Throws:
IllegalArgumentException
SecurityException
IntrospectionException
InstantiationException
IllegalAccessException
InvocationTargetException
NoSuchFieldException
AlreadyExistsException
DataValidationErrorException
InvalidParameterException
MissingParameterException
OperationFailedException
PermissionDeniedException
VersionMismatchException
DoesNotExistException
CircularRelationshipException
DependentObjectsExistException
UnsupportedActionException
IllegalVersionSequencingException
testGetCourseStatement
public void testGetCourseStatement()
throws DoesNotExistException,
InvalidParameterException,
MissingParameterException,
OperationFailedException,
PermissionDeniedException
- Throws:
DoesNotExistException
InvalidParameterException
MissingParameterException
OperationFailedException
PermissionDeniedException
testGetCourseStatement_nl
public void testGetCourseStatement_nl()
throws DoesNotExistException,
InvalidParameterException,
MissingParameterException,
OperationFailedException,
PermissionDeniedException
- Throws:
DoesNotExistException
InvalidParameterException
MissingParameterException
OperationFailedException
PermissionDeniedException
testCreateCourseStatement
public void testCreateCourseStatement()
throws DoesNotExistException,
InvalidParameterException,
MissingParameterException,
OperationFailedException,
PermissionDeniedException,
DataValidationErrorException
- Throws:
DoesNotExistException
InvalidParameterException
MissingParameterException
OperationFailedException
PermissionDeniedException
DataValidationErrorException
testCreateCourseStatement_duplicateTree
public void testCreateCourseStatement_duplicateTree()
throws Exception
- Throws:
Exception
testCreateCourseStatement_nullCourseId
public void testCreateCourseStatement_nullCourseId()
throws Exception
- Throws:
Exception
testCreateCourseStatement_nullTree
public void testCreateCourseStatement_nullTree()
throws Exception
- Throws:
Exception
testDeleteCourseStatement
public void testDeleteCourseStatement()
throws DoesNotExistException,
InvalidParameterException,
MissingParameterException,
OperationFailedException,
PermissionDeniedException,
DataValidationErrorException,
CircularReferenceException,
VersionMismatchException
- Throws:
DoesNotExistException
InvalidParameterException
MissingParameterException
OperationFailedException
PermissionDeniedException
DataValidationErrorException
CircularReferenceException
VersionMismatchException
testDeleteCourseStatement_badTree
public void testDeleteCourseStatement_badTree()
throws DoesNotExistException,
InvalidParameterException,
MissingParameterException,
OperationFailedException,
PermissionDeniedException
- Throws:
DoesNotExistException
InvalidParameterException
MissingParameterException
OperationFailedException
PermissionDeniedException
testDeleteCourseStatement_badCourse
public void testDeleteCourseStatement_badCourse()
throws DoesNotExistException,
InvalidParameterException,
MissingParameterException,
OperationFailedException,
PermissionDeniedException
- Throws:
DoesNotExistException
InvalidParameterException
MissingParameterException
OperationFailedException
PermissionDeniedException
testDeleteCourseStatement_nullCourseId
public void testDeleteCourseStatement_nullCourseId()
throws Exception
- Throws:
Exception
testDeleteCourseStatement_nullTreeId
public void testDeleteCourseStatement_nullTreeId()
throws Exception
- Throws:
Exception
testUpdateCourseStatement
public void testUpdateCourseStatement()
throws DoesNotExistException,
InvalidParameterException,
MissingParameterException,
OperationFailedException,
PermissionDeniedException,
DataValidationErrorException,
CircularReferenceException,
VersionMismatchException
- Throws:
DoesNotExistException
InvalidParameterException
MissingParameterException
OperationFailedException
PermissionDeniedException
DataValidationErrorException
CircularReferenceException
VersionMismatchException
testValidataCourseStatement
public void testValidataCourseStatement()
throws Exception
- Throws:
Exception
testValidataCourseStatement_invalidStatement
public void testValidataCourseStatement_invalidStatement()
throws InvalidParameterException,
MissingParameterException,
OperationFailedException
- Throws:
InvalidParameterException
MissingParameterException
OperationFailedException
createBadReqComponent
private static ReqComponentInfo createBadReqComponent()
createStatementTree
private static StatementTreeViewInfo createStatementTree()
toRichText
private static RichTextInfo toRichText(String text)
checkTreeView
private static void checkTreeView(StatementTreeViewInfo rootTree,
boolean checkNaturalLanguage)
testExpectedUnsupported
public void testExpectedUnsupported()
throws Exception
- This method checks for an UnsupportedOperationException to be thrown from the methods in the created list.
- Throws:
Exception
invokeForExpectedException
private void invokeForExpectedException(Collection<TestCourseServiceImpl.ServiceMethodInvocationData> methods,
Class<? extends Exception> expectedExceptionClass)
throws Exception
- Throws:
Exception
testGetVersionMethodsForInvalidParameters
public void testGetVersionMethodsForInvalidParameters()
throws Exception
- Throws:
Exception
testGetCurrentVersion
public void testGetCurrentVersion()
throws Exception
- Throws:
Exception
testGetCurrentVersionOnDate
public void testGetCurrentVersionOnDate()
throws Exception
- Throws:
Exception
testGetVersions
public void testGetVersions()
throws Exception
- Throws:
Exception
testGetFirstVersion
public void testGetFirstVersion()
throws Exception
- Throws:
Exception
testGetVersionBySequenceNumber
public void testGetVersionBySequenceNumber()
throws Exception
- Throws:
Exception
testGetVersionsInDateRange
public void testGetVersionsInDateRange()
throws Exception
- Throws:
Exception
Copyright © 2004-2011 The Kuali Foundation. All Rights Reserved.