@Override protected void setUp() throws Exception { super.setUp(); Property[] columns = daoAccess.getProperties(); for (Property column : columns) { if (column.primaryKey) { if (pkColumn != null) { throw new RuntimeException("Test does not work with multiple PK columns"); } pkColumn = column; } } if (pkColumn == null) { throw new RuntimeException("Test does not work without a PK column"); } }
protected void logTableDump() { logTableDump(dao.getTablename()); } }
@SuppressWarnings("unchecked") @Override protected void setUp() throws Exception { super.setUp(); try { setUpTableForDao(); daoAccess = new InternalUnitTestDaoAccess<T, K>(db, (Class<AbstractDao<T, K>>) daoClass, identityScopeForDao); dao = (D) daoAccess.getDao(); } catch (Exception e) { throw new RuntimeException("Could not prepare DAO Test", e); } }
@Override protected void setUp() throws Exception { super.setUp(); QueryBuilder.LOG_SQL = true; QueryBuilder.LOG_VALUES = true; }
@SuppressWarnings("unchecked") @Override protected void setUp() throws Exception { super.setUp(); try { setUpTableForDao(); daoAccess = new InternalUnitTestDaoAccess<T, K>(db, (Class<AbstractDao<T, K>>) daoClass, identityScopeForDao); dao = (D) daoAccess.getDao(); } catch (Exception e) { throw new RuntimeException("Could not prepare DAO Test", e); } }
protected void logTableDump() { logTableDump(dao.getTablename()); } }
@Override protected void setUp() throws Exception { super.setUp(); rxDao = dao.rx(); }
@Override protected void setUp() throws Exception { super.setUp(); DaoLog.d("####################"); DaoLog.d(getClass().getSimpleName() + ": " + BATCH_SIZE + " entities on " + new Date()); DaoLog.d("####################"); clearIdentityScopeIfAny(); entities = new ArrayList(BATCH_SIZE); for (int i = 0; i < BATCH_SIZE; i++) { entities.add(createEntity()); } dao.deleteAll(); }
@Override protected void setUp() throws Exception { super.setUp(); Property[] columns = daoAccess.getProperties(); for (Property column : columns) { if (column.primaryKey) { if (pkColumn != null) { throw new RuntimeException("Test does not work with multiple PK columns"); } pkColumn = column; } } if (pkColumn == null) { throw new RuntimeException("Test does not work without a PK column"); } }