org.kuali.rice.krad.service.impl
Class LegacyDataAdapterImplTest

java.lang.Object
  extended by org.kuali.rice.krad.service.impl.LegacyDataAdapterImplTest

public class LegacyDataAdapterImplTest
extends Object

Unit test for the LegacyDataAdapterImpl. Tests that the various methods delegate to KNS or KRAD under the appropriate circumstances. Also tests some of the internal code in this class is functioning properly.

Author:
Kuali Rice Team (rice.collab@kuali.org)

Nested Class Summary
static class LegacyDataAdapterImplTest.Legacy
           
static class LegacyDataAdapterImplTest.LegacyDocument
           
static class LegacyDataAdapterImplTest.NonLegacy
           
static class LegacyDataAdapterImplTest.NonLegacyDocument
           
static class LegacyDataAdapterImplTest.NonLegacyPersistableBusinessObject
           
 
Constructor Summary
LegacyDataAdapterImplTest()
           
 
Method Summary
protected  void enableLegacy()
           
protected  LegacyDataAdapterImplTest.LegacyDocument newLegacyDocument()
           
protected  LegacyDataAdapterImplTest.Legacy newLegacyObject()
           
protected  LegacyDataAdapterImplTest.NonLegacyDocument newNonLegacyDocument()
           
protected  LegacyDataAdapterImplTest.NonLegacy newNonLegacyObject()
           
protected  LegacyDataAdapterImplTest.NonLegacyPersistableBusinessObject newNonLegacyPersistableBusinessObject()
           
 void setup()
           
 void testAllForeignKeyValuesPopulatedForReference_Legacy()
           
 void testAllForeignKeyValuesPopulatedForReference()
           
 void testAllPrimaryKeyValuesPresentAndNotWildcard_Legacy()
           
 void testAllPrimaryKeyValuesPresentAndNotWildcard()
           
 void testAreNotesSupported_Legacy()
           
 void testAreNotesSupported()
           
 void testCreateNewObjectFromClass_Legacy()
           
 void testCreateNewObjectFromClass()
           
 void testCreateQuickFinder_Legacy()
           
 void testCreateQuickFinder()
           
 void testDelete_Legacy()
           
 void testDelete()
           
 void testDeleteMatching_Legacy()
           
 void testDeleteMatching()
           
 void testDetermineCollectionObjectType_Legacy()
           
 void testDetermineCollectionObjectType()
           
 void testEqualsByPrimaryKeys_Legacy()
           
 void testEqualsByPrimaryKeys()
           
 void testFindAll_Legacy()
           
 void testFindAll()
           
 void testFindByDocumentHeaderId_Legacy()
           
 void testFindByDocumentHeaderId()
           
 void testFindByDocumentHeaderIds_Legacy()
           
 void testFindByDocumentHeaderIds()
           
 void testFindByPrimaryKey_Legacy()
           
 void testFindByPrimaryKey()
           
 void testFindBySinglePrimaryKey_Legacy()
           
 void testFindBySinglePrimaryKey()
           
 void testFindCollectionBySearchHelper_Legacy()
           
 void testFindCollectionBySearchHelper()
           
 void testFindMatching_Legacy()
           
 void testFindMatching()
           
 void testFindMatchingOrderBy_Legacy()
           
 void testFindMatchingOrderBy()
           
 void testFindObjectBySearch_Legacy()
           
 void testFindObjectBySearch()
           
 void testGetDataObjectIdentifierString_Legacy()
           
 void testGetDataObjectIdentifierString()
           
 void testGetDataObjectRelationship_Legacy()
           
 void testGetDataObjectRelationship()
           
 void testGetDictionaryRelationship_Legacy()
           
 void testGetDictionaryRelationship()
           
 void testGetExtension_Legacy()
           
 void testGetExtension()
           
 void testGetExtensionAttributeClass_Legacy()
           
 void testGetExtensionAttributeClass()
           
 void testGetForeignKeyFieldsPopulationState_Legacy()
           
 void testGetForeignKeyFieldsPopulationState()
           
 void testGetForeignKeysForReference_Legacy()
           
 void testGetForeignKeysForReference()
           
 void testGetInquiryObjectClassIfNotTitle_Legacy()
           
 void testGetInquiryObjectClassIfNotTitle()
           
 void testGetInquiryParameters_Legacy()
           
 void testGetInquiryParameters()
           
 void testGetKnsLegacyDataAdapter()
           
 void testGetKradLegacyDataAdapter()
           
 void testGetNestedValue_Legacy()
           
 void testGetNestedValue()
           
 void testGetPrimaryKeyFieldValues_Legacy()
           
 void testGetPrimaryKeyFieldValues()
           
 void testGetPrimaryKeyFieldValuesDOMDS_Legacy()
           
 void testGetPrimaryKeyFieldValuesDOMDS()
           
 void testGetPropertyType_Legacy()
           
 void testGetPropertyType()
           
 void testGetReferenceIfExists_Legacy()
           
 void testGetReferenceIfExists()
           
 void testGetTitleAttribute_Legacy()
           
 void testGetTitleAttribute()
           
 void testHasCollection_Legacy()
           
 void testHasCollection()
           
 void testHasLocalInquiry_Legacy()
           
 void testHasLocalInquiry()
           
 void testHasLocalLookup_Legacy()
           
 void testHasLocalLookup()
           
 void testHasPrimaryKeyFieldValues_Legacy()
           
 void testHasPrimaryKeyFieldValues()
           
 void testHasReference_Legacy()
           
 void testHasReference()
           
 void testIsCollectionUpdatable_Legacy()
           
 void testIsCollectionUpdatable()
           
 void testIsExtensionAttribute_Legacy()
           
 void testIsExtensionAttribute()
           
 void testIsLockable_Legacy()
           
 void testIsLockable()
           
 void testIsNull_Legacy()
           
 void testIsNull()
           
 void testIsPersistable_Legacy()
           
 void testIsPersistable()
           
 void testIsProxied_Legacy()
           
 void testIsProxied()
           
 void testIsReferenceUpdatable_Legacy()
           
 void testIsReferenceUpdatable()
           
 void testLinkAndSave_Legacy()
           
 void testLinkAndSave()
           
 void testListCollectionObjectTypes_Legacy()
           
 void testListCollectionObjectTypes()
           
 void testListPrimaryKeyFieldNames_Legacy()
           
 void testListPrimaryKeyFieldNames()
           
 void testListReferenceObjectFields_Legacy()
           
 void testListReferenceObjectFields()
           
 void testMaterializeAllSubObjects_Legacy()
           
 void testMaterializeAllSubObjects()
           
 void testMaterializeClassForProxiedObject_Legacy()
           
 void testMaterializeClassForProxiedObject()
           
 void testRefreshAllNonUpdatingReferences_Legacy()
           
 void testRefreshAllNonUpdatingReferences()
           
 void testRefreshReferenceObject_Legacy()
           
 void testRefreshReferenceObject()
           
 void testResolveProxy_Legacy()
           
 void testResolveProxy()
           
 void testRetrieve_Legacy()
           
 void testRetrieve()
           
 void testRetrieveNonKeyFields_Legacy()
           
 void testRetrieveNonKeyFields()
           
 void testRetrieveReferenceObject_Legacy()
           
 void testRetrieveReferenceObject()
           
 void testSave_Legacy()
           
 void testSave()
           
 void testSaveDocument_Legacy()
           
 void testSaveDocument()
           
 void testSelectAdapter()
           
 void testSetKnsLegacyDataAdapter()
           
 void testSetKradLegacyDataAdapter()
           
 void testSetObjectProperty_Legacy()
           
 void testSetObjectProperty()
           
 void testSetObjectPropertyDeep_Legacy()
           
 void testSetObjectPropertyDeep()
           
 void testToPersistableBusinessObject_Legacy()
           
 void testToPersistableBusinessObject()
           
 void testVerifyVersionNumber_Legacy()
           
 void testVerifyVersionNumber()
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

LegacyDataAdapterImplTest

public LegacyDataAdapterImplTest()
Method Detail

setup

public void setup()
           throws Exception
Throws:
Exception

enableLegacy

protected void enableLegacy()

newNonLegacyObject

protected LegacyDataAdapterImplTest.NonLegacy newNonLegacyObject()

newNonLegacyPersistableBusinessObject

protected LegacyDataAdapterImplTest.NonLegacyPersistableBusinessObject newNonLegacyPersistableBusinessObject()

newLegacyObject

protected LegacyDataAdapterImplTest.Legacy newLegacyObject()

newNonLegacyDocument

protected LegacyDataAdapterImplTest.NonLegacyDocument newNonLegacyDocument()

newLegacyDocument

protected LegacyDataAdapterImplTest.LegacyDocument newLegacyDocument()

testSave

public void testSave()
              throws Exception
Throws:
Exception

testSave_Legacy

public void testSave_Legacy()
                     throws Exception
Throws:
Exception

testLinkAndSave

public void testLinkAndSave()
                     throws Exception
Throws:
Exception

testLinkAndSave_Legacy

public void testLinkAndSave_Legacy()
                            throws Exception
Throws:
Exception

testSaveDocument

public void testSaveDocument()
                      throws Exception
Throws:
Exception

testSaveDocument_Legacy

public void testSaveDocument_Legacy()
                             throws Exception
Throws:
Exception

testFindByPrimaryKey

public void testFindByPrimaryKey()
                          throws Exception
Throws:
Exception

testFindByPrimaryKey_Legacy

public void testFindByPrimaryKey_Legacy()
                                 throws Exception
Throws:
Exception

testFindBySinglePrimaryKey

public void testFindBySinglePrimaryKey()
                                throws Exception
Throws:
Exception

testFindBySinglePrimaryKey_Legacy

public void testFindBySinglePrimaryKey_Legacy()
                                       throws Exception
Throws:
Exception

testDelete

public void testDelete()
                throws Exception
Throws:
Exception

testDelete_Legacy

public void testDelete_Legacy()
                       throws Exception
Throws:
Exception

testDeleteMatching

public void testDeleteMatching()
                        throws Exception
Throws:
Exception

testDeleteMatching_Legacy

public void testDeleteMatching_Legacy()
                               throws Exception
Throws:
Exception

testRetrieve

public void testRetrieve()
                  throws Exception
Throws:
Exception

testRetrieve_Legacy

public void testRetrieve_Legacy()
                         throws Exception
Throws:
Exception

testFindAll

public void testFindAll()
                 throws Exception
Throws:
Exception

testFindAll_Legacy

public void testFindAll_Legacy()
                        throws Exception
Throws:
Exception

testFindMatching

public void testFindMatching()
                      throws Exception
Throws:
Exception

testFindMatching_Legacy

public void testFindMatching_Legacy()
                             throws Exception
Throws:
Exception

testFindMatchingOrderBy

public void testFindMatchingOrderBy()
                             throws Exception
Throws:
Exception

testFindMatchingOrderBy_Legacy

public void testFindMatchingOrderBy_Legacy()
                                    throws Exception
Throws:
Exception

testGetPrimaryKeyFieldValues

public void testGetPrimaryKeyFieldValues()
                                  throws Exception
Throws:
Exception

testGetPrimaryKeyFieldValues_Legacy

public void testGetPrimaryKeyFieldValues_Legacy()
                                         throws Exception
Throws:
Exception

testRetrieveNonKeyFields

public void testRetrieveNonKeyFields()
                              throws Exception
Throws:
Exception

testRetrieveNonKeyFields_Legacy

public void testRetrieveNonKeyFields_Legacy()
                                     throws Exception
Throws:
Exception

testRetrieveReferenceObject

public void testRetrieveReferenceObject()
                                 throws Exception
Throws:
Exception

testRetrieveReferenceObject_Legacy

public void testRetrieveReferenceObject_Legacy()
                                        throws Exception
Throws:
Exception

testRefreshAllNonUpdatingReferences

public void testRefreshAllNonUpdatingReferences()
                                         throws Exception
Throws:
Exception

testRefreshAllNonUpdatingReferences_Legacy

public void testRefreshAllNonUpdatingReferences_Legacy()
                                                throws Exception
Throws:
Exception

testIsProxied

public void testIsProxied()
                   throws Exception
Throws:
Exception

testIsProxied_Legacy

public void testIsProxied_Legacy()
                          throws Exception
Throws:
Exception

testResolveProxy

public void testResolveProxy()
                      throws Exception
Throws:
Exception

testResolveProxy_Legacy

public void testResolveProxy_Legacy()
                             throws Exception
Throws:
Exception

testFindCollectionBySearchHelper

public void testFindCollectionBySearchHelper()
                                      throws Exception
Throws:
Exception

testFindCollectionBySearchHelper_Legacy

public void testFindCollectionBySearchHelper_Legacy()
                                             throws Exception
Throws:
Exception

testFindObjectBySearch

public void testFindObjectBySearch()
                            throws Exception
Throws:
Exception

testFindObjectBySearch_Legacy

public void testFindObjectBySearch_Legacy()
                                   throws Exception
Throws:
Exception

testAllPrimaryKeyValuesPresentAndNotWildcard

public void testAllPrimaryKeyValuesPresentAndNotWildcard()
                                                  throws Exception
Throws:
Exception

testAllPrimaryKeyValuesPresentAndNotWildcard_Legacy

public void testAllPrimaryKeyValuesPresentAndNotWildcard_Legacy()
                                                         throws Exception
Throws:
Exception

testListPrimaryKeyFieldNames

public void testListPrimaryKeyFieldNames()
                                  throws Exception
Throws:
Exception

testListPrimaryKeyFieldNames_Legacy

public void testListPrimaryKeyFieldNames_Legacy()
                                         throws Exception
Throws:
Exception

testDetermineCollectionObjectType

public void testDetermineCollectionObjectType()
                                       throws Exception
Throws:
Exception

testDetermineCollectionObjectType_Legacy

public void testDetermineCollectionObjectType_Legacy()
                                              throws Exception
Throws:
Exception

testHasReference

public void testHasReference()
                      throws Exception
Throws:
Exception

testHasReference_Legacy

public void testHasReference_Legacy()
                             throws Exception
Throws:
Exception

testHasCollection

public void testHasCollection()
                       throws Exception
Throws:
Exception

testHasCollection_Legacy

public void testHasCollection_Legacy()
                              throws Exception
Throws:
Exception

testIsExtensionAttribute

public void testIsExtensionAttribute()
                              throws Exception
Throws:
Exception

testIsExtensionAttribute_Legacy

public void testIsExtensionAttribute_Legacy()
                                     throws Exception
Throws:
Exception

testGetExtensionAttributeClass

public void testGetExtensionAttributeClass()
                                    throws Exception
Throws:
Exception

testGetExtensionAttributeClass_Legacy

public void testGetExtensionAttributeClass_Legacy()
                                           throws Exception
Throws:
Exception

testGetPrimaryKeyFieldValuesDOMDS

public void testGetPrimaryKeyFieldValuesDOMDS()
                                       throws Exception
Throws:
Exception

testGetPrimaryKeyFieldValuesDOMDS_Legacy

public void testGetPrimaryKeyFieldValuesDOMDS_Legacy()
                                              throws Exception
Throws:
Exception

testEqualsByPrimaryKeys

public void testEqualsByPrimaryKeys()
                             throws Exception
Throws:
Exception

testEqualsByPrimaryKeys_Legacy

public void testEqualsByPrimaryKeys_Legacy()
                                    throws Exception
Throws:
Exception

testToPersistableBusinessObject

public void testToPersistableBusinessObject()
                                     throws Exception
Throws:
Exception

testToPersistableBusinessObject_Legacy

public void testToPersistableBusinessObject_Legacy()
                                            throws Exception
Throws:
Exception

testMaterializeAllSubObjects

public void testMaterializeAllSubObjects()
                                  throws Exception
Throws:
Exception

testMaterializeAllSubObjects_Legacy

public void testMaterializeAllSubObjects_Legacy()
                                         throws Exception
Throws:
Exception

testGetPropertyType

public void testGetPropertyType()
                         throws Exception
Throws:
Exception

testGetPropertyType_Legacy

public void testGetPropertyType_Legacy()
                                throws Exception
Throws:
Exception

testGetExtension

public void testGetExtension()
                      throws Exception
Throws:
Exception

testGetExtension_Legacy

public void testGetExtension_Legacy()
                             throws Exception
Throws:
Exception

testRefreshReferenceObject

public void testRefreshReferenceObject()
                                throws Exception
Throws:
Exception

testRefreshReferenceObject_Legacy

public void testRefreshReferenceObject_Legacy()
                                       throws Exception
Throws:
Exception

testIsLockable

public void testIsLockable()
                    throws Exception
Throws:
Exception

testIsLockable_Legacy

public void testIsLockable_Legacy()
                           throws Exception
Throws:
Exception

testVerifyVersionNumber

public void testVerifyVersionNumber()
                             throws Exception
Throws:
Exception

testVerifyVersionNumber_Legacy

public void testVerifyVersionNumber_Legacy()
                                    throws Exception
Throws:
Exception

testCreateQuickFinder

public void testCreateQuickFinder()
                           throws Exception
Throws:
Exception

testCreateQuickFinder_Legacy

public void testCreateQuickFinder_Legacy()
                                  throws Exception
Throws:
Exception

testIsReferenceUpdatable

public void testIsReferenceUpdatable()
                              throws Exception
Throws:
Exception

testIsReferenceUpdatable_Legacy

public void testIsReferenceUpdatable_Legacy()
                                     throws Exception
Throws:
Exception

testListReferenceObjectFields

public void testListReferenceObjectFields()
                                   throws Exception
Throws:
Exception

testListReferenceObjectFields_Legacy

public void testListReferenceObjectFields_Legacy()
                                          throws Exception
Throws:
Exception

testIsCollectionUpdatable

public void testIsCollectionUpdatable()
                               throws Exception
Throws:
Exception

testIsCollectionUpdatable_Legacy

public void testIsCollectionUpdatable_Legacy()
                                      throws Exception
Throws:
Exception

testListCollectionObjectTypes

public void testListCollectionObjectTypes()
                                   throws Exception
Throws:
Exception

testListCollectionObjectTypes_Legacy

public void testListCollectionObjectTypes_Legacy()
                                          throws Exception
Throws:
Exception

testGetReferenceIfExists

public void testGetReferenceIfExists()
                              throws Exception
Throws:
Exception

testGetReferenceIfExists_Legacy

public void testGetReferenceIfExists_Legacy()
                                     throws Exception
Throws:
Exception

testAllForeignKeyValuesPopulatedForReference

public void testAllForeignKeyValuesPopulatedForReference()
                                                  throws Exception
Throws:
Exception

testAllForeignKeyValuesPopulatedForReference_Legacy

public void testAllForeignKeyValuesPopulatedForReference_Legacy()
                                                         throws Exception
Throws:
Exception

testGetDictionaryRelationship

public void testGetDictionaryRelationship()
                                   throws Exception
Throws:
Exception

testGetDictionaryRelationship_Legacy

public void testGetDictionaryRelationship_Legacy()
                                          throws Exception
Throws:
Exception

testGetTitleAttribute

public void testGetTitleAttribute()
                           throws Exception
Throws:
Exception

testGetTitleAttribute_Legacy

public void testGetTitleAttribute_Legacy()
                                  throws Exception
Throws:
Exception

testAreNotesSupported

public void testAreNotesSupported()
                           throws Exception
Throws:
Exception

testAreNotesSupported_Legacy

public void testAreNotesSupported_Legacy()
                                  throws Exception
Throws:
Exception

testGetDataObjectIdentifierString

public void testGetDataObjectIdentifierString()
                                       throws Exception
Throws:
Exception

testGetDataObjectIdentifierString_Legacy

public void testGetDataObjectIdentifierString_Legacy()
                                              throws Exception
Throws:
Exception

testGetInquiryObjectClassIfNotTitle

public void testGetInquiryObjectClassIfNotTitle()
                                         throws Exception
Throws:
Exception

testGetInquiryObjectClassIfNotTitle_Legacy

public void testGetInquiryObjectClassIfNotTitle_Legacy()
                                                throws Exception
Throws:
Exception

testGetInquiryParameters

public void testGetInquiryParameters()
                              throws Exception
Throws:
Exception

testGetInquiryParameters_Legacy

public void testGetInquiryParameters_Legacy()
                                     throws Exception
Throws:
Exception

testHasLocalLookup

public void testHasLocalLookup()
                        throws Exception
Throws:
Exception

testHasLocalLookup_Legacy

public void testHasLocalLookup_Legacy()
                               throws Exception
Throws:
Exception

testHasLocalInquiry

public void testHasLocalInquiry()
                         throws Exception
Throws:
Exception

testHasLocalInquiry_Legacy

public void testHasLocalInquiry_Legacy()
                                throws Exception
Throws:
Exception

testGetDataObjectRelationship

public void testGetDataObjectRelationship()
                                   throws Exception
Throws:
Exception

testGetDataObjectRelationship_Legacy

public void testGetDataObjectRelationship_Legacy()
                                          throws Exception
Throws:
Exception

testIsPersistable

public void testIsPersistable()
                       throws Exception
Throws:
Exception

testIsPersistable_Legacy

public void testIsPersistable_Legacy()
                              throws Exception
Throws:
Exception

testGetForeignKeyFieldsPopulationState

public void testGetForeignKeyFieldsPopulationState()
                                            throws Exception
Throws:
Exception

testGetForeignKeyFieldsPopulationState_Legacy

public void testGetForeignKeyFieldsPopulationState_Legacy()
                                                   throws Exception
Throws:
Exception

testGetForeignKeysForReference

public void testGetForeignKeysForReference()
                                    throws Exception
Throws:
Exception

testGetForeignKeysForReference_Legacy

public void testGetForeignKeysForReference_Legacy()
                                           throws Exception
Throws:
Exception

testHasPrimaryKeyFieldValues

public void testHasPrimaryKeyFieldValues()
                                  throws Exception
Throws:
Exception

testHasPrimaryKeyFieldValues_Legacy

public void testHasPrimaryKeyFieldValues_Legacy()
                                         throws Exception
Throws:
Exception

testSetObjectPropertyDeep

public void testSetObjectPropertyDeep()
                               throws Exception
Throws:
Exception

testSetObjectPropertyDeep_Legacy

public void testSetObjectPropertyDeep_Legacy()
                                      throws Exception
Throws:
Exception

testMaterializeClassForProxiedObject

public void testMaterializeClassForProxiedObject()
                                          throws Exception
Throws:
Exception

testMaterializeClassForProxiedObject_Legacy

public void testMaterializeClassForProxiedObject_Legacy()
                                                 throws Exception
Throws:
Exception

testGetNestedValue

public void testGetNestedValue()
                        throws Exception
Throws:
Exception

testGetNestedValue_Legacy

public void testGetNestedValue_Legacy()
                               throws Exception
Throws:
Exception

testCreateNewObjectFromClass

public void testCreateNewObjectFromClass()
                                  throws Exception
Throws:
Exception

testCreateNewObjectFromClass_Legacy

public void testCreateNewObjectFromClass_Legacy()
                                         throws Exception
Throws:
Exception

testIsNull

public void testIsNull()
                throws Exception
Throws:
Exception

testIsNull_Legacy

public void testIsNull_Legacy()
                       throws Exception
Throws:
Exception

testSetObjectProperty

public void testSetObjectProperty()
                           throws Exception
Throws:
Exception

testSetObjectProperty_Legacy

public void testSetObjectProperty_Legacy()
                                  throws Exception
Throws:
Exception

testFindByDocumentHeaderId

public void testFindByDocumentHeaderId()
                                throws Exception
Throws:
Exception

testFindByDocumentHeaderId_Legacy

public void testFindByDocumentHeaderId_Legacy()
                                       throws Exception
Throws:
Exception

testFindByDocumentHeaderIds

public void testFindByDocumentHeaderIds()
                                 throws Exception
Throws:
Exception

testFindByDocumentHeaderIds_Legacy

public void testFindByDocumentHeaderIds_Legacy()
                                        throws Exception
Throws:
Exception

testGetKnsLegacyDataAdapter

public void testGetKnsLegacyDataAdapter()
                                 throws Exception
Throws:
Exception

testSetKnsLegacyDataAdapter

public void testSetKnsLegacyDataAdapter()
                                 throws Exception
Throws:
Exception

testGetKradLegacyDataAdapter

public void testGetKradLegacyDataAdapter()
                                  throws Exception
Throws:
Exception

testSetKradLegacyDataAdapter

public void testSetKradLegacyDataAdapter()
                                  throws Exception
Throws:
Exception

testSelectAdapter

public void testSelectAdapter()
                       throws Exception
Throws:
Exception


Copyright © 2005–2014 The Kuali Foundation. All rights reserved.