use of com.torodb.core.transaction.metainf.WrapperMutableMetaDatabase in project torodb by torodb.
the class D2RTranslationBatchFunctionTest method setUp.
@Before
public void setUp() {
metaDb = new WrapperMutableMetaDatabase(new ImmutableMetaDatabase("dbName", "dbId", Collections.emptyList()), (o) -> {
});
metaCol = metaDb.addMetaCollection("colName", "colId");
translatorFactory = mock(D2RTranslatorFactory.class);
fun = new D2RTranslationBatchFunction(translatorFactory, metaDb, metaCol) {
@Override
protected BatchMetaCollection createMetaDocCollection(MutableMetaCollection metaCol) {
batchMetaCol = spy(super.createMetaDocCollection(metaCol));
return batchMetaCol;
}
};
}
Aggregations