org.kuali.student.lum.course.service.impl
Class TestCourseServiceImpl

java.lang.Object
  extended by org.kuali.student.lum.course.service.impl.TestCourseServiceImpl
Direct Known Subclasses:
DevAssemblyTesting

@ContextConfiguration(locations="classpath:course-test-context.xml")
public class TestCourseServiceImpl
extends Object


Nested Class Summary
private  class TestCourseServiceImpl.ServiceMethodInvocationData
           
 
Field Summary
(package private)  CourseService courseService
           
(package private)  StatementService statementService
           
(package private)  Set<String> subjectAreaSet
           
 
Constructor Summary
TestCourseServiceImpl()
           
 
Method Summary
private static void checkTreeView(StatementTreeViewInfo rootTree, boolean checkNaturalLanguage)
           
private static ReqComponentInfo createBadReqComponent()
           
private static StatementTreeViewInfo createStatementTree()
           
private  void dumpValidationErrors(CourseInfo cInfo)
           
private  void invokeForExpectedException(Collection<TestCourseServiceImpl.ServiceMethodInvocationData> methods, Class<? extends Exception> expectedExceptionClass)
           
 void testCluIsUpdated()
           
 void testCourseCrossListing()
          This method tests setting code, attributes in course cross listing
 void testCourseVersioning()
           
 void testCreateCourse()
           
 void testCreateCourseStatement_duplicateTree()
           
 void testCreateCourseStatement_nullCourseId()
           
 void testCreateCourseStatement_nullTree()
           
 void testCreateCourseStatement()
           
 void testCreditOptions()
           
 void testDeleteCourse()
           
 void testDeleteCourseStatement_badCourse()
           
 void testDeleteCourseStatement_badTree()
           
 void testDeleteCourseStatement_nullCourseId()
           
 void testDeleteCourseStatement_nullTreeId()
           
 void testDeleteCourseStatement()
           
 void testDynamicAttributes()
           
 void testExpectedUnsupported()
          This method checks for an UnsupportedOperationException to be thrown from the methods in the created list.
 void testGetCourse()
           
 void testGetCourseStatement_nl()
           
 void testGetCourseStatement()
           
 void testGetCurrentVersion()
           
 void testGetCurrentVersionOnDate()
           
 void testGetFirstVersion()
           
 void testGetMetadata()
           
 void testGetVersionBySequenceNumber()
           
 void testGetVersionMethodsForInvalidParameters()
           
 void testGetVersions()
           
 void testGetVersionsInDateRange()
           
 void testUpdateCourse()
           
 void testUpdateCourseStatement()
           
 void testValidataCourseStatement_invalidStatement()
           
 void testValidataCourseStatement()
           
private static RichTextInfo toRichText(String text)
           
private  void verifyUpdate(CourseInfo updatedCourse)
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

courseService

CourseService courseService

statementService

StatementService statementService

subjectAreaSet

Set<String> subjectAreaSet
Constructor Detail

TestCourseServiceImpl

public TestCourseServiceImpl()
Method Detail

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.