use of org.apache.jena.tdb.setup.StoreParams in project jena by apache.
the class TestStoreParamsChoose method params_choose_existing_4.
@Test
public void params_choose_existing_4() {
StoreParams p = Build.decideStoreParams(Location.mem(), false, pApp, pLoc, pDft);
// p is pLoc modifed by pApp.
assertFalse(StoreParams.sameValues(p, pApp));
assertFalse(StoreParams.sameValues(p, pLoc));
assertFalse(StoreParams.sameValues(p, pDft));
assertEquals(0, p.getBlockSize().intValue());
assertEquals(12, p.getNodeMissCacheSize().intValue());
}
use of org.apache.jena.tdb.setup.StoreParams in project jena by apache.
the class TestStoreParamsChoose method params_choose_new_2.
@Test
public void params_choose_new_2() {
StoreParams p = Build.decideStoreParams(Location.mem(), true, pApp, null, pDft);
// New store, no pLoc, so pApp is the enire settings.
assertEquals(12, p.getBlockSize().intValue());
assertTrue(StoreParams.sameValues(p, pApp));
}
Aggregations