Search in sources :

Example 26 with StoreParams

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());
}
Also used : StoreParams(org.apache.jena.tdb.setup.StoreParams) BaseTest(org.apache.jena.atlas.junit.BaseTest) Test(org.junit.Test) ConfigTest(org.apache.jena.tdb.ConfigTest)

Example 27 with StoreParams

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));
}
Also used : StoreParams(org.apache.jena.tdb.setup.StoreParams) BaseTest(org.apache.jena.atlas.junit.BaseTest) Test(org.junit.Test) ConfigTest(org.apache.jena.tdb.ConfigTest)

Aggregations

StoreParams (org.apache.jena.tdb.setup.StoreParams)27 BaseTest (org.apache.jena.atlas.junit.BaseTest)26 Test (org.junit.Test)26 ConfigTest (org.apache.jena.tdb.ConfigTest)15 JsonObject (org.apache.jena.atlas.json.JsonObject)5 Location (org.apache.jena.tdb.base.file.Location)3