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;
}
Aggregations