package com.fishercoder;

import com.fishercoder.solutions._525;
import org.junit.Before;
import org.junit.BeforeClass;
import org.junit.Test;

import static junit.framework.Assert.assertEquals;

public class _525Test {
    private static _525.Solution1 solution1;
    private static int expected;
    private static int actual;
    private static int[] nums;

    @BeforeClass
    public static void setup() {
        solution1 = new _525.Solution1();
    }

    @Before
    public void setupForEachTest() {
    }

    @Test
    public void test1() {
        nums = new int[]{0, 1};
        expected = 2;
        actual = solution1.findMaxLength(nums);
        assertEquals(expected, actual);
    }

    @Test
    public void test2() {
        nums = new int[]{0, 1, 0};
        expected = 2;
        actual = solution1.findMaxLength(nums);
        assertEquals(expected, actual);
    }

    @Test
    public void test3() {
        nums = new int[]{0, 0, 1, 0, 0, 0, 1, 1};
        expected = 6;
        actual = solution1.findMaxLength(nums);
        assertEquals(expected, actual);
    }

}

@@ -62,33 +62,8 @@
 25;%0A
-import org.junit.Before;%0A
 impo
@@ -432,64 +432,8 @@
  %7D%0A%0A
-    @Before%0A    public void setupForEachTest() %7B%0A    %7D%0A%0A
     

refactor 525