Search in sources :

Example 6 with Type2

use of org.apache.geode.cache.lucene.internal.repository.serializer.Type2 in project geode by apache.

the class IndexRepositoryImplJUnitTest method createShouldUpdateStats.

@Test
public void createShouldUpdateStats() throws IOException {
    repo.create("key1", new Type2("bar", 1, 2L, 3.0, 4.0f, "Grape Ape doughnut"));
    verify(stats, times(1)).startUpdate();
    verify(stats, times(1)).endUpdate(anyLong());
}
Also used : Type2(org.apache.geode.cache.lucene.internal.repository.serializer.Type2) Test(org.junit.Test) IntegrationTest(org.apache.geode.test.junit.categories.IntegrationTest)

Aggregations

Type2 (org.apache.geode.cache.lucene.internal.repository.serializer.Type2)6 IntegrationTest (org.apache.geode.test.junit.categories.IntegrationTest)5 Test (org.junit.Test)5 IntSupplier (java.util.function.IntSupplier)1