Search in sources :

Example 6 with Maintainable

use of org.kuali.kfs.kns.maintenance.Maintainable in project cu-kfs by CU-CommunityApps.

the class CuFinancialMaintenanceDocumentActionTest method createMockMaintainable.

protected Maintainable createMockMaintainable(Class<? extends PersistableBusinessObject> dataObjectClass, String objectId) {
    PersistableBusinessObject mockDataObject = createMockDataObject(dataObjectClass, objectId);
    Maintainable maintainable = mock(FinancialSystemMaintainable.class);
    when(maintainable.getDataObjectClass()).thenReturn(dataObjectClass);
    when(maintainable.getDataObject()).thenReturn(mockDataObject);
    when(maintainable.getBusinessObject()).thenReturn(mockDataObject);
    return maintainable;
}
Also used : PersistableBusinessObject(org.kuali.kfs.krad.bo.PersistableBusinessObject) Maintainable(org.kuali.kfs.kns.maintenance.Maintainable) FinancialSystemMaintainable(org.kuali.kfs.sys.document.FinancialSystemMaintainable)

Aggregations

Maintainable (org.kuali.kfs.kns.maintenance.Maintainable)6 ArrayList (java.util.ArrayList)3 MaintenanceLock (org.kuali.kfs.krad.maintenance.MaintenanceLock)3 AccountReversion (edu.cornell.kfs.coa.businessobject.AccountReversion)2 HashMap (java.util.HashMap)2 PersistableBusinessObject (org.kuali.kfs.krad.bo.PersistableBusinessObject)2 FinancialSystemMaintainable (org.kuali.kfs.sys.document.FinancialSystemMaintainable)2 SubAccount (org.kuali.kfs.coa.businessobject.SubAccount)1 MaintenanceDocument (org.kuali.kfs.kns.document.MaintenanceDocument)1 UserSession (org.kuali.kfs.krad.UserSession)1 DocumentHeader (org.kuali.kfs.krad.bo.DocumentHeader)1 FinancialSystemDocumentHeader (org.kuali.kfs.sys.businessobject.FinancialSystemDocumentHeader)1 FinancialSystemMaintenanceDocument (org.kuali.kfs.sys.document.FinancialSystemMaintenanceDocument)1 WorkflowException (org.kuali.rice.kew.api.exception.WorkflowException)1