Search in sources :

Example 1 with DefaultDivider

use of com.navercorp.pinpoint.batch.common.DefaultDivider in project pinpoint by naver.

the class DefaultDividerTest method devide.

@Test
public void devide() {
    DefaultDivider defaultDivider = new DefaultDivider();
    Map<String, ExecutionContext> map = defaultDivider.divide("test_partition", "test");
    assertEquals(1, map.size());
}
Also used : ExecutionContext(org.springframework.batch.item.ExecutionContext) DefaultDivider(com.navercorp.pinpoint.batch.common.DefaultDivider) Test(org.junit.Test)

Aggregations

DefaultDivider (com.navercorp.pinpoint.batch.common.DefaultDivider)1 Test (org.junit.Test)1 ExecutionContext (org.springframework.batch.item.ExecutionContext)1