* @throws WorkflowException
*/
public void testMatterTransactionDocSearch(Class<? extends MatterTransactionDoc> txDocClass, String docType) throws InstantiationException, IllegalAccessException, WorkflowException {
// route some test documents then search
GlobalVariables.setUserSession(new UserSession("lawyer1"));
MatterTransactionDoc txDoc1 = populateTransactionDocForRouting(txDocClass);
testTransactionalRoutingInitToFinal(txDoc1);
MatterTransactionDoc txDoc2 = populateTransactionDocForRouting(txDocClass);
txDoc2.setAmount(new BigDecimal(50001));
final String clientPrincipalName = "kyaloda";
txDoc2.setClientPrincipalName(clientPrincipalName);
testTransactionalRoutingInitToFinal(txDoc2);
MatterTransactionDoc txDoc3 = populateTransactionDocForRouting(txDocClass);
txDoc3.setAmount(new BigDecimal(45000));
txDoc3.setClientPrincipalName("sirarthur");
final int transactionTypeId = 10028;
txDoc3.setTransactionTypeId(transactionTypeId);
SimpleDateFormat sdf = new SimpleDateFormat("dd-MMM-yyyy");
try {
txDoc3.setDate(new Date(sdf.parse("21-Apr-2013").getTime()));
} catch (ParseException e) {
log.error(e);
fail("unable to set date");
}
testTransactionalRoutingInitToFinal(txDoc3);