import org.junit.jupiter.api.Assertions; import org.junit.jupiter.api.BeforeAll; import org.junit.jupiter.api.Test; import java.util.Arrays; import java.util.Collection; public class SimpleTest { private static BoxStacker solution; @BeforeAll public static void init() { solution = new DynamicBoxStacker(); } @Test public void test1() { Collection boxes = Arrays.asList( new Box(1, 4, 7), new Box(1, 8, 5), new Box(1, 7, 7) ); Assertions.assertEquals(2, solution.stack(boxes)); } @Test public void test2() { Collection boxes = Arrays.asList( new Box(1, 5, 5), new Box(2, 4, 6), new Box(1, 1, 1), new Box(2, 4, 4), new Box(2, 3, 5) ); Assertions.assertEquals(5, solution.stack(boxes)); } }