How to switch between different solutions in Tester.java
masterThe generated Tester.java is designed to test the Solution interface. By default, it tests Solution1. To test a different implementation (like Solution2), you must manually update the instance assigned to the solution field within the @BeforeClass setup method in Tester.java.
@BeforeClass
public static void setUpBeforeClass() throws Exception {
/* uncomment to switch solutions */
// solution = new Solution1();
solution = new Solution2();
}@BeforeClass
public static void setUpBeforeClass() throws Exception {
/* uncomment to switch solutions */
// solution = new Solution1();
solution = new Solution2();
}