public static void main(String[] args) throws Exception { try { DBSession dbs = new DBSession("PURIDIOM"); VendorInsuranceDeleteById test = new VendorInsuranceDeleteById(); Map incomingRequest = new HashMap(); dbs.startTransaction(); incomingRequest.put("dbsession", dbs); incomingRequest.put("organizationId", "PURIDIOM"); incomingRequest.put("userId", "SYSADM"); incomingRequest.put("VendorInsurance_contNumber", "1"); test.executeTask(incomingRequest); if (dbs.getStatus() == Status.SUCCEEDED) { System.out.println("VendorInsuranceDeleteByIdTest SUCCESS"); dbs.commit(); } System.out.println(incomingRequest); System.out.println("VendorInsuranceDeleteByIdTest COMPLETE"); } catch (Exception e) { e.printStackTrace(); } }
public static void main(String[] args) throws Exception { try { DBSession dbs = new DBSession("PURIDIOM"); InvoiceLineAdd test = new InvoiceLineAdd(); Map incomingRequest = new HashMap(); InvoiceLine invoiceLine = new InvoiceLine(); dbs.startTransaction(); incomingRequest.put("dbsession", dbs); incomingRequest.put("organizationId", "PURIDIOM"); incomingRequest.put("userId", "SYSADM"); incomingRequest.put("invoiceLine", invoiceLine); invoiceLine = (InvoiceLine) test.executeTask(incomingRequest); if (dbs.getStatus() == Status.SUCCEEDED) { System.out.println("InvoiceLineAddTest SUCCESS"); dbs.commit(); } System.out.println(incomingRequest); System.out.println("InvoiceLineAddTest COMPLETE"); } catch (Exception e) { e.printStackTrace(); } }