| org.kuali.kfs.context.KualiTestBase org.kuali.module.financial.rules.AccountingDocumentRuleTestUtils
AccountingDocumentRuleTestUtils | abstract public class AccountingDocumentRuleTestUtils extends KualiTestBase (Code) | | |
Method Summary | |
public static T | getBusinessRule(Class<? extends AccountingDocument> documentClass, Class<T> businessRuleClass) | public static void | testAddAccountingLineRule_IsObjectCodeAllowed(Class<? extends AccountingDocument> documentClass, AccountingLine line, boolean expected) | public static void | testAddAccountingLineRule_IsObjectTypeAllowed(Class<? extends AccountingDocument> documentClass, AccountingLine line, boolean expected) | public static void | testAddAccountingLineRule_ProcessAddAccountingLineBusinessRules(T document, boolean expected) | public static void | testAddAccountingLine_IsObjectSubTypeAllowed(Class<? extends AccountingDocument> documentClass, AccountingLine line, boolean expected) | public static boolean | testGenerateGeneralLedgerPendingEntriesRule_ProcessGenerateGeneralLedgerPendingEntries(AccountingDocument document, AccountingLine line, GeneralLedgerPendingEntryFixture expectedExplicitFixture, GeneralLedgerPendingEntryFixture expectedOffsetFixture) | public static void | testRouteDocumentRule_processRouteDocument(T document, boolean expected) | public static void | testSaveDocumentRule_ProcessSaveDocument(T document, boolean expected) |
getBusinessRule | public static T getBusinessRule(Class<? extends AccountingDocument> documentClass, Class<T> businessRuleClass) throws Exception(Code) | | retrieves a rule instance for a given document
< Parameters: T - > Parameters: documentClass - the type of document to retrieve the rule for Parameters: businessRuleClass - the type of rule to create an instance of a BusinessRule of the same type as the businessRuleClass parameter throws: Exception - |
testAddAccountingLineRule_ProcessAddAccountingLineBusinessRules | public static void testAddAccountingLineRule_ProcessAddAccountingLineBusinessRules(T document, boolean expected) throws Exception(Code) | | |
testRouteDocumentRule_processRouteDocument | public static void testRouteDocumentRule_processRouteDocument(T document, boolean expected) throws Exception(Code) | | |
testSaveDocumentRule_ProcessSaveDocument | public static void testSaveDocumentRule_ProcessSaveDocument(T document, boolean expected) throws Exception(Code) | | |
|
|