use of com.questdb.std.FilesFacadeImpl in project questdb by bluestreak01.
the class TableReadFailTest method testMetaFileMissingConstructor.
@Test
public void testMetaFileMissingConstructor() throws Exception {
FilesFacade ff = new FilesFacadeImpl() {
@Override
public boolean exists(LPSZ path) {
return !Chars.endsWith(path, TableUtils.META_FILE_NAME) && super.exists(path);
}
};
assertConstructorFail(ff);
}
use of com.questdb.std.FilesFacadeImpl in project questdb by bluestreak01.
the class TableReadFailTest method testMetaFileCannotOpenConstructor.
@Test
public void testMetaFileCannotOpenConstructor() throws Exception {
FilesFacade ff = new FilesFacadeImpl() {
@Override
public long openRO(LPSZ name) {
if (Chars.endsWith(name, TableUtils.META_FILE_NAME)) {
return -1;
}
return super.openRO(name);
}
};
assertConstructorFail(ff);
}
Aggregations