import org.junit.Assert; import org.junit.BeforeClass; import org.junit.Test; public class SimpleTest { private static Binomial binomial; @BeforeClass public static void init() { binomial = new DynamicBinomial(); } @Test public void test1() { Assert.assertEquals(2, binomial.binomialCoefficient(2, 1)); } @Test public void test2() { Assert.assertEquals(1, binomial.binomialCoefficient(3, 3)); } @Test public void test3() { Assert.assertEquals(21, binomial.binomialCoefficient(7, 5)); } }