HCOLL-164 Create a ChronicleSet

This commit is contained in:
Rob Austin
2014-10-10 12:07:52 +01:00
parent bddc37a44a
commit 5b7ad0f931
2 changed files with 372 additions and 0 deletions
@@ -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());
}
}