package com.fishercoder;

import com.fishercoder.common.classes.TreeNode;
import com.fishercoder.common.utils.CommonUtils;
import com.fishercoder.common.utils.TreeUtils;
import com.fishercoder.solutions._102;
import org.junit.BeforeClass;
import org.junit.Test;

import java.util.Arrays;

public class _102Test {
    private static _102.Solution1 solution1;
    private static TreeNode treeRoot;

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

    @Test
    public void test1() {
        treeRoot = TreeUtils.constructBinaryTree(Arrays.asList(1, 2, 3));
        TreeUtils.printBinaryTree(treeRoot);
        CommonUtils.printListList(solution1.levelOrder(treeRoot));
    }

}
@@ -718,9 +718,258 @@
 %0A    %7D%0A%0A
+    @Test%0A    public void test2() %7B%0A        treeRoot = TreeUtils.constructBinaryTree(Arrays.asList(3, 9, 20, null, null, 15, 7));%0A        TreeUtils.printBinaryTree(treeRoot);%0A        CommonUtils.printListList(solution1.levelOrder(treeRoot));%0A    %7D%0A%0A
 %7D

refactor 102