use of com.ctrip.platform.dal.dao.helper.DefaultResultCallback in project dal by ctripcorp.
the class BaseDalTableDaoShardByDbTableTest method assertFail.
private void assertFail(Object model, DalHints hints) {
assertNull(model);
DefaultResultCallback callback = (DefaultResultCallback) hints.get(DalHintEnum.resultCallback);
try {
callback.waitForDone();
} catch (InterruptedException e) {
fail(e.toString());
}
assertTrue(!callback.isSuccess());
}
use of com.ctrip.platform.dal.dao.helper.DefaultResultCallback in project dal by ctripcorp.
the class BaseDalTableDaoShardByDbTableTest method assertFail.
private void assertFail(int res, DalHints hints) {
assertEquals(0, res);
DefaultResultCallback callback = (DefaultResultCallback) hints.get(DalHintEnum.resultCallback);
try {
callback.waitForDone();
} catch (InterruptedException e) {
fail(e.toString());
}
assertTrue(!callback.isSuccess());
}
Aggregations