1213141516171819202122
public static void main (String[] args) { new Start(); } public Start () { try { prop.load(Start.class.getResourceAsStream("/settings.properties")); db = new MySQL_Handler(prop); db.connect(); } catch (IOException e) { e.printStackTrace(); }
2829303132333435
} @Test public void testConnection () throws Exception { System.out.println("-- Testing Database Connection"); db = new MySQL_Handler(prop); assertEquals("Testing Connection to Database: ", true, db.connect()); }