Search in sources :

Example 1 with RefineBrokerImpl

use of com.google.refine.broker.RefineBrokerImpl in project OpenRefine by OpenRefine.

the class RefineBrokerTests method test_init.

@BeforeTest
public void test_init() throws Exception {
    logger = LoggerFactory.getLogger(this.getClass());
    config = mock(ServletConfig.class);
    when(config.getInitParameter("refine.data")).thenReturn(data.getAbsolutePath());
    when(config.getInitParameter("refine.development")).thenReturn("true");
    broker = new RefineBrokerImpl();
    broker.init(config);
}
Also used : ServletConfig(javax.servlet.ServletConfig) RefineBrokerImpl(com.google.refine.broker.RefineBrokerImpl) BeforeTest(org.testng.annotations.BeforeTest)

Aggregations

RefineBrokerImpl (com.google.refine.broker.RefineBrokerImpl)1 ServletConfig (javax.servlet.ServletConfig)1 BeforeTest (org.testng.annotations.BeforeTest)1