Search in sources :

Example 6 with EngineConfig

use of com.google.refine.browsing.EngineConfig in project OpenRefine by OpenRefine.

the class EngineConfigTests method reconstructNullEngineConfig.

@Test
public void reconstructNullEngineConfig() {
    EngineConfig ec = EngineConfig.reconstruct(null);
    Assert.assertEquals(ec.getMode(), Mode.RowBased);
    Assert.assertTrue(ec.getFacetConfigs().isEmpty());
}
Also used : EngineConfig(com.google.refine.browsing.EngineConfig) Test(org.testng.annotations.Test)

Example 7 with EngineConfig

use of com.google.refine.browsing.EngineConfig in project OpenRefine by OpenRefine.

the class EngineConfigTests method serializeEngineConfigRecordMode.

@Test
public void serializeEngineConfigRecordMode() {
    EngineConfig ec = EngineConfig.reconstruct(engineConfigRecordModeJson);
    TestUtils.isSerializedTo(ec, engineConfigRecordModeJson);
}
Also used : EngineConfig(com.google.refine.browsing.EngineConfig) Test(org.testng.annotations.Test)

Aggregations

EngineConfig (com.google.refine.browsing.EngineConfig)7 Test (org.testng.annotations.Test)6 Engine (com.google.refine.browsing.Engine)2 RefineTest (com.google.refine.RefineTest)1 ArrayList (java.util.ArrayList)1 ServletException (javax.servlet.ServletException)1 WikidataRefineTest (org.openrefine.wikidata.testing.WikidataRefineTest)1 TermedStatementEntityEdit (org.openrefine.wikidata.updates.TermedStatementEntityEdit)1 TermedStatementEntityEditBuilder (org.openrefine.wikidata.updates.TermedStatementEntityEditBuilder)1 BeforeTest (org.testng.annotations.BeforeTest)1