mirror of
https://github.com/OpenHFT/Chronicle-Map.git
synced 2021-09-13 01:26:12 +00:00
HCOLL-164 Create a ChronicleSet
This commit is contained in:
@@ -0,0 +1,24 @@
|
||||
package net.openhft.chronicle.map;
|
||||
|
||||
import org.junit.Assert;
|
||||
import org.junit.Test;
|
||||
|
||||
import java.util.Set;
|
||||
|
||||
public class ChronicleSetBuilderTest {
|
||||
|
||||
@Test
|
||||
public void test() throws Exception {
|
||||
|
||||
Set<Integer> integers = ChronicleSetBuilder.of(Integer.class).create();
|
||||
|
||||
for (int i = 0; i < 10; i++) {
|
||||
integers.add(i);
|
||||
}
|
||||
|
||||
Assert.assertTrue(integers.contains(5));
|
||||
Assert.assertEquals(10, integers.size());
|
||||
}
|
||||
|
||||
|
||||
}
|
||||
Reference in New Issue
Block a user