Search in sources :

Example 1 with GoraInfinispanTestDriver

use of org.apache.gora.infinispan.GoraInfinispanTestDriver in project gora by apache.

the class InfinispanStoreTest method setUpClass.

@BeforeClass
public static void setUpClass() throws Exception {
    List<String> cacheNames = new ArrayList<>();
    cacheNames.add(Employee.class.getSimpleName());
    cacheNames.add(WebPage.class.getSimpleName());
    setTestDriver(new GoraInfinispanTestDriver(1, cacheNames));
    DataStoreTestBase.setUpClass();
}
Also used : WebPage(org.apache.gora.examples.generated.WebPage) Employee(org.apache.gora.examples.generated.Employee) ArrayList(java.util.ArrayList) GoraInfinispanTestDriver(org.apache.gora.infinispan.GoraInfinispanTestDriver) BeforeClass(org.junit.BeforeClass)

Example 2 with GoraInfinispanTestDriver

use of org.apache.gora.infinispan.GoraInfinispanTestDriver in project gora by apache.

the class InfinispanStoreTest method setUp.

@Before
public void setUp() throws Exception {
    GoraInfinispanTestDriver driver = getTestDriver();
    conf = driver.getConfiguration();
    conf.set(ISPN_CONNECTION_STRING_KEY, getTestDriver().connectionString());
    super.setUp();
    employeeDataStore = (InfinispanStore<String, Employee>) employeeStore;
    webPageDataStore = (InfinispanStore<String, WebPage>) webPageStore;
}
Also used : WebPage(org.apache.gora.examples.generated.WebPage) Employee(org.apache.gora.examples.generated.Employee) GoraInfinispanTestDriver(org.apache.gora.infinispan.GoraInfinispanTestDriver) Before(org.junit.Before)

Aggregations

Employee (org.apache.gora.examples.generated.Employee)2 WebPage (org.apache.gora.examples.generated.WebPage)2 GoraInfinispanTestDriver (org.apache.gora.infinispan.GoraInfinispanTestDriver)2 ArrayList (java.util.ArrayList)1 Before (org.junit.Before)1 BeforeClass (org.junit.BeforeClass)1