@@ -0,0 +1,1633 @@
+package tests;%0A%0Aimport java.util.ArrayList;%0Aimport java.util.List;%0Aimport java.util.Properties;%0A%0Aimport org.junit.Assert;%0Aimport org.junit.Before;%0Aimport org.junit.Test;%0A%0Aimport app_test_files.DbAttendant;%0Aimport app_test_files.Server;%0A%0Apublic class TestCase %7B%0A%0A%09DbAttendant db_util;%0A%09Properties props;%0A%09Server servers;%0A%0A%09@Before%0A%09public void setUp() throws Exception %7B%0A%09%09servers = new Server();%0A%09%09props = new Properties();%0A%09%09 props.setProperty(%22user%22, %22tj1955be%22);%0A%09%09 props.setProperty(%22password%22, %22becca333%22);%0A%09%09 props.setProperty(%22url%22, %2210.1.0.12:12000/Equinox%22);%0A%09%09// props.setProperty(%22user%22, %22dba%22);%0A%09%09// props.setProperty(%22password%22, %22secret%22);%0A%09%09// props.setProperty(%22url%22, %22192.168.1.251:5000/Equinox%22);%0A%09%09db_util = new DbAttendant();%0A%09%09Assert.assertTrue(db_util.getConnection(props));%0A%09%09accs.add(%2201-01-01-1350901011;CR%22);%0A%09%09accs.add(%221110000064;DR%22);%0A%09%09accs.add(%221110000055;DR%22);%0A%09%09accs.add(%221110000054;DR%22);%0A%09%7D%0A%0A%09String balance;%0A%0A%09@Test%0A%09public void test_Get_balance() %7B%0A%09%09balance = db_util.getBalance(%22GL%22, %2201-00-37-01-2351017%22, %22%22);%0A%09%09Assert.assertNotNull(balance);%0A%09%09System.out.println(%22Balance: %22 + balance.split(%22;%22)%5B0%5D + %22%22%0A%09%09%09%09+ balance.split(%22;%22)%5B1%5D);%0A%09%7D%0A%0A%09@Test%0A%09public void testSetup() %7B%0A%09%09Assert.assertTrue(db_util.is_validGL(%22Account%22, %221010000007%22));%0A%09%7D%0A%0A%09List%3CString%3E accs = new ArrayList%3C%3E();%0A%0A%09int i = 0;%0A%0A%09@Test%0A%09public void testInsertCustom_data() %7B%0A%09%09db_util.log_user(%22douglas%22);%0A%09%09for (String ac : accs) %7B%0A%09%09%09db_util.postBatch(ac.split(%22;%22)%5B0%5D, %22UGX%22, 6000000, i, %22Douglas%22,%0A%09%09%09%09%09ac.split(%22;%22)%5B1%5D);%0A%09%09%09i++;%0A%09%09%7D%0A%09%7D%0A%0A%09@Test%0A%09public void testCommit() %7B%0A%09%09Assert.assertTrue(db_util.commit_post());%0A%09%7D%0A%7D%0A

Create TestCase.java