org.kuali.student.enrollment.test.util
Class CrudInfoTester

java.lang.Object
  extended by org.kuali.student.enrollment.test.util.CrudInfoTester

public class CrudInfoTester
extends Object

This class is a helper class for simplifying how CRUD tests can be written.

Author:
Kuali Student Team

Constructor Summary
CrudInfoTester()
           
CrudInfoTester(String principalId, String principalId2, ContextInfo contextInfo)
           
 
Method Summary
 AttributeTester getAttributeTester()
           
 ContextInfo getContextInfo()
           
 EntityInfoTester getEntityInfoTester()
           
 IdEntityTester getIdEntityTester()
           
 ListOfStringTester getListOfStringTester()
           
 MetaTester getMetaTester()
           
 String getPrincipalId()
           
 String getPrincipalId2()
           
 RichTextTester getRichTextTester()
           
 void initializeInfoForTestCreate(EntityInfo expected, String typeKey, String stateKey)
           
 void initializeInfoForTestRead(EntityInfo expected)
           
 void initializeInfoForTestUpdate(EntityInfo expected, String newStateKey)
           
 void setAttributeTester(AttributeTester attributeTester)
           
 void setContextInfo(ContextInfo contextInfo)
           
 void setEntityInfoTester(EntityInfoTester entityInfoTester)
           
 void setIdEntityTester(IdEntityTester idEntityTester)
           
 void setListOfStringTester(ListOfStringTester listOfStringTester)
           
 void setMetaTester(MetaTester metaTester)
           
 void setPrincipalId(String principalId)
           
 void setPrincipalId2(String principalId2)
           
 void setRichTextTester(RichTextTester richTextTester)
           
 void testCreate(EntityInfo expected, EntityInfo actual)
           
 void testDelete(EntityInfo expected, EntityInfo actual, StatusInfo deleteStatus)
           
 void testRead(EntityInfo expected, EntityInfo actual)
           
 void testUpdate(EntityInfo expected, EntityInfo actual)
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

CrudInfoTester

public CrudInfoTester(String principalId,
                      String principalId2,
                      ContextInfo contextInfo)

CrudInfoTester

public CrudInfoTester()
Method Detail

getContextInfo

public ContextInfo getContextInfo()

setContextInfo

public void setContextInfo(ContextInfo contextInfo)

getPrincipalId

public String getPrincipalId()

setPrincipalId

public void setPrincipalId(String principalId)

getPrincipalId2

public String getPrincipalId2()

setPrincipalId2

public void setPrincipalId2(String principalId2)

getAttributeTester

public AttributeTester getAttributeTester()

setAttributeTester

public void setAttributeTester(AttributeTester attributeTester)

getMetaTester

public MetaTester getMetaTester()

setMetaTester

public void setMetaTester(MetaTester metaTester)

getListOfStringTester

public ListOfStringTester getListOfStringTester()

setListOfStringTester

public void setListOfStringTester(ListOfStringTester listOfStringTester)

getEntityInfoTester

public EntityInfoTester getEntityInfoTester()

setEntityInfoTester

public void setEntityInfoTester(EntityInfoTester entityInfoTester)

getIdEntityTester

public IdEntityTester getIdEntityTester()

setIdEntityTester

public void setIdEntityTester(IdEntityTester idEntityTester)

getRichTextTester

public RichTextTester getRichTextTester()

setRichTextTester

public void setRichTextTester(RichTextTester richTextTester)

initializeInfoForTestCreate

public void initializeInfoForTestCreate(EntityInfo expected,
                                        String typeKey,
                                        String stateKey)
                                 throws Exception
Throws:
Exception

testCreate

public void testCreate(EntityInfo expected,
                       EntityInfo actual)
                throws Exception
Throws:
Exception

initializeInfoForTestRead

public void initializeInfoForTestRead(EntityInfo expected)
                               throws Exception
Throws:
Exception

testRead

public void testRead(EntityInfo expected,
                     EntityInfo actual)
              throws Exception
Throws:
Exception

initializeInfoForTestUpdate

public void initializeInfoForTestUpdate(EntityInfo expected,
                                        String newStateKey)
                                 throws Exception
Throws:
Exception

testUpdate

public void testUpdate(EntityInfo expected,
                       EntityInfo actual)
                throws Exception
Throws:
Exception

testDelete

public void testDelete(EntityInfo expected,
                       EntityInfo actual,
                       StatusInfo deleteStatus)


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