import static org.junit.Assert.assertEquals; import org.junit.Test; public class Esercizio3 { @Test public void test() { assertEquals(0, Esercizio1.maxRunLength(new int[0])); assertEquals(4, Esercizio1.maxRunLength(new int[] { 1, 2, 5, 5, 3, 1, 2, 4, 3, 2, 2, 2, 2, 3, 6, 5, 5, 6, 3, 1})) ; assertEquals(1, Esercizio1.maxRunLength(new int[] { 2, 3, 4 })); } }