package com.fishercoder;

import com.fishercoder.common.utils.CommonUtils;
import com.fishercoder.solutions._189;
import org.junit.BeforeClass;
import org.junit.Test;

public class _189Test {
    private static _189.Solution1 solution1;
    private static _189.Solution2 solution2;
    private static _189.Solution3 solution3;
    private static int[] nums;

    @BeforeClass
    public static void setup() {
        solution1 = new _189.Solution1();
        solution2 = new _189.Solution2();
        solution3 = new _189.Solution3();
    }

    @Test
    public void test1() {
        nums = new int[]{1, 2, 3};

        solution1.rotate(nums, 1);
        CommonUtils.printArray(nums);
    }

    @Test
    public void test2() {
        nums = new int[]{1, 2, 3};

        solution2.rotate(nums, 1);
        CommonUtils.printArray(nums);
    }

    @Test
    public void test3() {
        nums = new int[]{1, 2, 3};

        solution3.rotate(nums, 1);
        CommonUtils.printArray(nums);
    }
}

@@ -279,53 +279,8 @@
 n2;%0A
-    private static _189.Solution3 solution3;%0A
     
@@ -306,16 +306,16 @@
 %5D nums;%0A
+
 %0A    @Be
@@ -445,50 +445,8 @@
 ();%0A
-        solution3 = new _189.Solution3();%0A
     
@@ -756,157 +756,6 @@
  %7D%0A%0A
-    @Test%0A    public void test3() %7B%0A        nums = new int%5B%5D%7B1, 2, 3%7D;%0A%0A        solution3.rotate(nums, 1);%0A        CommonUtils.printArray(nums);%0A    %7D%0A
 %7D%0A

refactor 189