@@ -0,0 +1,728 @@
+package org.nlpub.watset.util;%0A%0Aimport org.junit.Test;%0A%0Aimport java.util.Collections;%0Aimport java.util.List;%0Aimport java.util.Random;%0A%0Aimport static org.junit.Assert.assertEquals;%0A%0Apublic class SamplingTest %7B%0A    static final Integer%5B%5D EMPTY_ARRAY = %7B%7D;%0A    static final List%3CInteger%3E EMPTY_LIST = Collections.emptyList();%0A%0A    static final Integer%5B%5D ONE_ARRAY = %7B1%7D;%0A    static final List%3CInteger%3E ONE_LIST = Collections.singletonList(1);%0A%0A    static final Random random = new Random();%0A%0A    @Test%0A    public void testSample0() %7B%0A        assertEquals(EMPTY_LIST, Sampling.sample(EMPTY_ARRAY, random));%0A    %7D%0A%0A    @Test%0A    public void testSample1() %7B%0A        assertEquals(ONE_LIST, Sampling.sample(ONE_ARRAY, random));%0A    %7D%0A%7D%0A

Add SamplingTest