@Test public void assertToItemsString() { assertThat(ShardingItems.toItemsString(Arrays.asList(0, 1, 2)), is("0,1,2")); }
@Test public void assertToItemsStringWhenEmpty() { assertThat(ShardingItems.toItemsString(Collections.<Integer>emptyList()), is("")); }
@Test public void assertToItemListWhenEmpty() { assertThat(ShardingItems.toItemList(""), is(Collections.EMPTY_LIST)); }
@Test public void assertToItemListForDuplicated() { assertThat(ShardingItems.toItemList("0,1,2,2"), is(Arrays.asList(0, 1, 2))); }
@Test public void assertTtoItemListWhenNull() { assertThat(ShardingItems.toItemList(null), is(Collections.EMPTY_LIST)); }