org.kuali.student.lum.program.service.impl
Class TestProgramServiceImpl

java.lang.Object
  extended by org.kuali.student.lum.program.service.impl.TestProgramServiceImpl

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


Field Summary
 ProgramService programService
           
 StatementService statementService
           
 
Constructor Summary
TestProgramServiceImpl()
           
 
Method Summary
 void setUp()
           
 void testCallDummyMethods()
          This method is a catch-all test for code coverage.
 void testCoreProgramVersioning()
           
 void testCreateBaccCredentialProgram()
           
 void testCreateCoreProgram()
           
 void testCreateMajorDiscipline()
           
 void testCreateMajorDisciplineDeleteRule()
           
 void testCreateProgramRequirement_null()
           
 void testCreateProgramRequirement()
           
 void testCreateVariationsByMajorDiscipline()
           
 void testCreditsProgramRequirement()
           
 void testDeleteBaccCredentialProgram()
           
 void testDeleteCoreProgram()
           
 void testDeleteMajorDiscipline()
           
 void testDeleteProgramRequirement()
           
 void testDeleteVariationsByMajorDiscipline()
           
 void testGetBaccCredentialProgram()
           
 void testGetCoreProgram()
           
 void testGetMajorDiscipline()
           
 void testGetMetaData()
           
 void testGetProgramRequirement_badId()
           
 void testGetProgramRequirement_nullId()
           
 void testGetProgramRequirement()
           
 void testGetProgramRequirementNL()
           
 void testGetVariationsByMajorDisciplineId()
           
 void testGetVersionMethodsForInvalidParameters()
           
 void testMajorDisciplineVersioning()
           
 void testProgramServiceSetup()
           
 void testUpdateBaccCredentialProgram()
           
 void testUpdateCoreProgram()
           
 void testUpdateMajorDiscipline()
           
 void testUpdateMajorDisciplineRemoveRule()
           
 void testUpdateProgramRequirement()
           
 void testUpdateVariationsByMajorDiscipline()
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

programService

@Autowired
public ProgramService programService

statementService

@Autowired
public StatementService statementService
Constructor Detail

TestProgramServiceImpl

public TestProgramServiceImpl()
Method Detail

setUp

public void setUp()

testProgramServiceSetup

public void testProgramServiceSetup()

testGetMetaData

public void testGetMetaData()

testGetProgramRequirement

public void testGetProgramRequirement()
                               throws DoesNotExistException,
                                      InvalidParameterException,
                                      MissingParameterException,
                                      OperationFailedException,
                                      PermissionDeniedException
Throws:
DoesNotExistException
InvalidParameterException
MissingParameterException
OperationFailedException
PermissionDeniedException

testGetProgramRequirementNL

public void testGetProgramRequirementNL()
                                 throws DoesNotExistException,
                                        InvalidParameterException,
                                        MissingParameterException,
                                        OperationFailedException,
                                        PermissionDeniedException
Throws:
DoesNotExistException
InvalidParameterException
MissingParameterException
OperationFailedException
PermissionDeniedException

testGetProgramRequirement_nullId

public void testGetProgramRequirement_nullId()
                                      throws Exception
Throws:
Exception

testGetProgramRequirement_badId

public void testGetProgramRequirement_badId()
                                     throws Exception
Throws:
Exception

testGetCoreProgram

public void testGetCoreProgram()
                        throws InvalidParameterException,
                               MissingParameterException,
                               OperationFailedException,
                               PermissionDeniedException,
                               DoesNotExistException
Throws:
InvalidParameterException
MissingParameterException
OperationFailedException
PermissionDeniedException
DoesNotExistException

testGetMajorDiscipline

public void testGetMajorDiscipline()
                            throws InvalidParameterException,
                                   MissingParameterException,
                                   OperationFailedException,
                                   PermissionDeniedException,
                                   DoesNotExistException
Throws:
InvalidParameterException
MissingParameterException
OperationFailedException
PermissionDeniedException
DoesNotExistException

testGetVariationsByMajorDisciplineId

public void testGetVariationsByMajorDisciplineId()
                                          throws DoesNotExistException,
                                                 InvalidParameterException,
                                                 MissingParameterException,
                                                 OperationFailedException,
                                                 PermissionDeniedException
Throws:
DoesNotExistException
InvalidParameterException
MissingParameterException
OperationFailedException
PermissionDeniedException

testGetBaccCredentialProgram

public void testGetBaccCredentialProgram()
                                  throws DoesNotExistException,
                                         InvalidParameterException,
                                         MissingParameterException,
                                         OperationFailedException,
                                         PermissionDeniedException
Throws:
DoesNotExistException
InvalidParameterException
MissingParameterException
OperationFailedException
PermissionDeniedException

testCreateMajorDiscipline

public void testCreateMajorDiscipline()
                               throws IllegalArgumentException,
                                      SecurityException,
                                      IntrospectionException,
                                      InstantiationException,
                                      IllegalAccessException,
                                      InvocationTargetException,
                                      NoSuchFieldException,
                                      AlreadyExistsException,
                                      DataValidationErrorException,
                                      InvalidParameterException,
                                      MissingParameterException,
                                      OperationFailedException,
                                      PermissionDeniedException
Throws:
IllegalArgumentException
SecurityException
IntrospectionException
InstantiationException
IllegalAccessException
InvocationTargetException
NoSuchFieldException
AlreadyExistsException
DataValidationErrorException
InvalidParameterException
MissingParameterException
OperationFailedException
PermissionDeniedException

testMajorDisciplineVersioning

public void testMajorDisciplineVersioning()
                                   throws IllegalArgumentException,
                                          SecurityException,
                                          IntrospectionException,
                                          InstantiationException,
                                          IllegalAccessException,
                                          InvocationTargetException,
                                          NoSuchFieldException,
                                          AlreadyExistsException,
                                          DataValidationErrorException,
                                          InvalidParameterException,
                                          MissingParameterException,
                                          OperationFailedException,
                                          PermissionDeniedException,
                                          VersionMismatchException,
                                          DoesNotExistException,
                                          CircularRelationshipException,
                                          DependentObjectsExistException,
                                          UnsupportedActionException,
                                          IllegalVersionSequencingException,
                                          ReadOnlyException
Throws:
IllegalArgumentException
SecurityException
IntrospectionException
InstantiationException
IllegalAccessException
InvocationTargetException
NoSuchFieldException
AlreadyExistsException
DataValidationErrorException
InvalidParameterException
MissingParameterException
OperationFailedException
PermissionDeniedException
VersionMismatchException
DoesNotExistException
CircularRelationshipException
DependentObjectsExistException
UnsupportedActionException
IllegalVersionSequencingException
ReadOnlyException

testCreateMajorDisciplineDeleteRule

public void testCreateMajorDisciplineDeleteRule()
                                         throws AlreadyExistsException,
                                                DataValidationErrorException,
                                                InvalidParameterException,
                                                MissingParameterException,
                                                OperationFailedException,
                                                PermissionDeniedException,
                                                IllegalArgumentException,
                                                SecurityException,
                                                IntrospectionException,
                                                InstantiationException,
                                                IllegalAccessException,
                                                InvocationTargetException,
                                                NoSuchFieldException
Throws:
AlreadyExistsException
DataValidationErrorException
InvalidParameterException
MissingParameterException
OperationFailedException
PermissionDeniedException
IllegalArgumentException
SecurityException
IntrospectionException
InstantiationException
IllegalAccessException
InvocationTargetException
NoSuchFieldException

testCreateProgramRequirement_null

public void testCreateProgramRequirement_null()
                                       throws Exception
Throws:
Exception

testCreateProgramRequirement

public void testCreateProgramRequirement()
                                  throws AlreadyExistsException,
                                         DataValidationErrorException,
                                         InvalidParameterException,
                                         MissingParameterException,
                                         OperationFailedException,
                                         PermissionDeniedException,
                                         DoesNotExistException
Throws:
AlreadyExistsException
DataValidationErrorException
InvalidParameterException
MissingParameterException
OperationFailedException
PermissionDeniedException
DoesNotExistException

testUpdateProgramRequirement

public void testUpdateProgramRequirement()
                                  throws Exception
Throws:
Exception

testDeleteMajorDiscipline

public void testDeleteMajorDiscipline()
                               throws IllegalArgumentException,
                                      SecurityException,
                                      IntrospectionException,
                                      InstantiationException,
                                      IllegalAccessException,
                                      InvocationTargetException,
                                      NoSuchFieldException,
                                      DoesNotExistException,
                                      InvalidParameterException,
                                      MissingParameterException,
                                      OperationFailedException,
                                      PermissionDeniedException,
                                      AlreadyExistsException,
                                      DataValidationErrorException
Throws:
IllegalArgumentException
SecurityException
IntrospectionException
InstantiationException
IllegalAccessException
InvocationTargetException
NoSuchFieldException
DoesNotExistException
InvalidParameterException
MissingParameterException
OperationFailedException
PermissionDeniedException
AlreadyExistsException
DataValidationErrorException

testUpdateMajorDiscipline

public void testUpdateMajorDiscipline()
                               throws IllegalArgumentException,
                                      SecurityException,
                                      IntrospectionException,
                                      InstantiationException,
                                      IllegalAccessException,
                                      InvocationTargetException,
                                      NoSuchFieldException,
                                      DataValidationErrorException,
                                      DoesNotExistException,
                                      InvalidParameterException,
                                      MissingParameterException,
                                      VersionMismatchException,
                                      OperationFailedException,
                                      PermissionDeniedException
Throws:
IllegalArgumentException
SecurityException
IntrospectionException
InstantiationException
IllegalAccessException
InvocationTargetException
NoSuchFieldException
DataValidationErrorException
DoesNotExistException
InvalidParameterException
MissingParameterException
VersionMismatchException
OperationFailedException
PermissionDeniedException

testUpdateMajorDisciplineRemoveRule

public void testUpdateMajorDisciplineRemoveRule()
                                         throws IllegalArgumentException,
                                                SecurityException,
                                                IntrospectionException,
                                                InstantiationException,
                                                IllegalAccessException,
                                                InvocationTargetException,
                                                NoSuchFieldException,
                                                AlreadyExistsException,
                                                DataValidationErrorException,
                                                InvalidParameterException,
                                                MissingParameterException,
                                                OperationFailedException,
                                                PermissionDeniedException,
                                                DoesNotExistException,
                                                VersionMismatchException
Throws:
IllegalArgumentException
SecurityException
IntrospectionException
InstantiationException
IllegalAccessException
InvocationTargetException
NoSuchFieldException
AlreadyExistsException
DataValidationErrorException
InvalidParameterException
MissingParameterException
OperationFailedException
PermissionDeniedException
DoesNotExistException
VersionMismatchException

testCreateBaccCredentialProgram

public void testCreateBaccCredentialProgram()
                                     throws IllegalArgumentException,
                                            SecurityException,
                                            IntrospectionException,
                                            InstantiationException,
                                            IllegalAccessException,
                                            InvocationTargetException,
                                            NoSuchFieldException,
                                            AlreadyExistsException,
                                            DataValidationErrorException,
                                            InvalidParameterException,
                                            MissingParameterException,
                                            OperationFailedException,
                                            PermissionDeniedException
Throws:
IllegalArgumentException
SecurityException
IntrospectionException
InstantiationException
IllegalAccessException
InvocationTargetException
NoSuchFieldException
AlreadyExistsException
DataValidationErrorException
InvalidParameterException
MissingParameterException
OperationFailedException
PermissionDeniedException

testDeleteBaccCredentialProgram

public void testDeleteBaccCredentialProgram()
                                     throws DoesNotExistException,
                                            InvalidParameterException,
                                            MissingParameterException,
                                            PermissionDeniedException,
                                            OperationFailedException
Throws:
DoesNotExistException
InvalidParameterException
MissingParameterException
PermissionDeniedException
OperationFailedException

testUpdateBaccCredentialProgram

public void testUpdateBaccCredentialProgram()
                                     throws DataValidationErrorException,
                                            DoesNotExistException,
                                            InvalidParameterException,
                                            MissingParameterException,
                                            VersionMismatchException,
                                            OperationFailedException,
                                            PermissionDeniedException
Throws:
DataValidationErrorException
DoesNotExistException
InvalidParameterException
MissingParameterException
VersionMismatchException
OperationFailedException
PermissionDeniedException

testCreateCoreProgram

public void testCreateCoreProgram()
                           throws IllegalArgumentException,
                                  SecurityException,
                                  IntrospectionException,
                                  InstantiationException,
                                  IllegalAccessException,
                                  InvocationTargetException,
                                  NoSuchFieldException,
                                  AlreadyExistsException,
                                  DataValidationErrorException,
                                  InvalidParameterException,
                                  MissingParameterException,
                                  OperationFailedException,
                                  PermissionDeniedException,
                                  DoesNotExistException
Throws:
IllegalArgumentException
SecurityException
IntrospectionException
InstantiationException
IllegalAccessException
InvocationTargetException
NoSuchFieldException
AlreadyExistsException
DataValidationErrorException
InvalidParameterException
MissingParameterException
OperationFailedException
PermissionDeniedException
DoesNotExistException

testUpdateVariationsByMajorDiscipline

public void testUpdateVariationsByMajorDiscipline()
                                           throws DoesNotExistException,
                                                  InvalidParameterException,
                                                  MissingParameterException,
                                                  OperationFailedException,
                                                  PermissionDeniedException,
                                                  DataValidationErrorException,
                                                  VersionMismatchException
Throws:
DoesNotExistException
InvalidParameterException
MissingParameterException
OperationFailedException
PermissionDeniedException
DataValidationErrorException
VersionMismatchException

testCreateVariationsByMajorDiscipline

public void testCreateVariationsByMajorDiscipline()
                                           throws DoesNotExistException,
                                                  InvalidParameterException,
                                                  MissingParameterException,
                                                  OperationFailedException,
                                                  DataValidationErrorException,
                                                  VersionMismatchException,
                                                  PermissionDeniedException
Throws:
DoesNotExistException
InvalidParameterException
MissingParameterException
OperationFailedException
DataValidationErrorException
VersionMismatchException
PermissionDeniedException

testDeleteVariationsByMajorDiscipline

public void testDeleteVariationsByMajorDiscipline()
                                           throws DoesNotExistException,
                                                  InvalidParameterException,
                                                  MissingParameterException,
                                                  OperationFailedException,
                                                  PermissionDeniedException,
                                                  DataValidationErrorException,
                                                  VersionMismatchException
Throws:
DoesNotExistException
InvalidParameterException
MissingParameterException
OperationFailedException
PermissionDeniedException
DataValidationErrorException
VersionMismatchException

testDeleteProgramRequirement

public void testDeleteProgramRequirement()
                                  throws Exception
Throws:
Exception

testUpdateCoreProgram

public void testUpdateCoreProgram()
                           throws DoesNotExistException,
                                  InvalidParameterException,
                                  MissingParameterException,
                                  OperationFailedException,
                                  PermissionDeniedException,
                                  DataValidationErrorException,
                                  VersionMismatchException
Throws:
DoesNotExistException
InvalidParameterException
MissingParameterException
OperationFailedException
PermissionDeniedException
DataValidationErrorException
VersionMismatchException

testDeleteCoreProgram

public void testDeleteCoreProgram()
                           throws AlreadyExistsException,
                                  DataValidationErrorException,
                                  InvalidParameterException,
                                  MissingParameterException,
                                  OperationFailedException,
                                  PermissionDeniedException,
                                  IllegalArgumentException,
                                  SecurityException,
                                  IntrospectionException,
                                  InstantiationException,
                                  IllegalAccessException,
                                  InvocationTargetException,
                                  NoSuchFieldException,
                                  DoesNotExistException
Throws:
AlreadyExistsException
DataValidationErrorException
InvalidParameterException
MissingParameterException
OperationFailedException
PermissionDeniedException
IllegalArgumentException
SecurityException
IntrospectionException
InstantiationException
IllegalAccessException
InvocationTargetException
NoSuchFieldException
DoesNotExistException

testCreditsProgramRequirement

public void testCreditsProgramRequirement()
                                   throws AlreadyExistsException,
                                          DataValidationErrorException,
                                          InvalidParameterException,
                                          MissingParameterException,
                                          OperationFailedException,
                                          PermissionDeniedException,
                                          DoesNotExistException
Throws:
AlreadyExistsException
DataValidationErrorException
InvalidParameterException
MissingParameterException
OperationFailedException
PermissionDeniedException
DoesNotExistException

testGetVersionMethodsForInvalidParameters

public void testGetVersionMethodsForInvalidParameters()
                                               throws Exception
Throws:
Exception

testCallDummyMethods

public void testCallDummyMethods()
                          throws Exception
This method is a catch-all test for code coverage. It calls methods in ProgramServiceImpl that have contracts in the interface but are not yet implemented All calls are expected to return null. Once a method is implemented, its name should be removed from the DUMMY_SERVICE_METHODS array. NOTE: This method does not work for methods that are overloaded (i.e. have two declarations with the same name, but different parameters)

Throws:
Exception

testCoreProgramVersioning

public void testCoreProgramVersioning()
                               throws Exception
Throws:
Exception


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