Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- @Test
- public void testReport() throws Exception {
- final PropertiesConfiguration c = new PropertiesConfiguration();
- c.setProperty("report.url", "jdbc:mysql://dbserver/report");
- c.setProperty("report.driver", "com.mysql.jdbc.Driver");
- c.setProperty("report.user", "report_dba");
- c.setProperty("report.password", "report_dba");
- ((CompositeConfiguration)ConfigurationManager.getConfiguration()).addConfiguration(c);
- {
- DB db = ActiveJDBCConnectionUtil.getDB(DBConstants.REPORT);
- {
- ActionLogToday alt = new ActionLogToday();
- alt.setAction(11);
- alt.setAppName("it sucks badly");
- alt.setUseAdTruth(true);
- alt.saveIt();
- }
- {
- ActionLogToday alt1 = new ActionLogToday();
- alt1.setAction(12);
- alt1.setAppName("it sucks again");
- alt1.setUseAdTruth(false);
- alt1.saveIt();
- }
- {
- LazyList<Model> alts = ActionLogToday.findAll();
- alts.dump();
- }
- db.close();
- }
- }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement