package com.fishercoder;

import com.fishercoder.solutions._394;
import org.junit.Test;

import static org.junit.Assert.assertEquals;

/**
 * Created by varunu28 on 1/08/19.
 */

public class _394Test {
    private static _394.Solution1 test;

    public static void setUp() {
        test = new _394.Solution1();
    }

    @Test
    public void test1() {
        assertEquals("aaabcbc", test.decodeString("3[a]2[bc]"));
    }

    @Test
    public void test2() {
        assertEquals("accaccacc", test.decodeString("3[a2[c]]"));
    }

    @Test
    public void test3() {
        assertEquals("abcabccdcdcdef", test.decodeString("2[abc]3[cd]ef"));
    }
}

package com.fishercoder;

import com.fishercoder.solutions._394;
import org.junit.BeforeClass;
import org.junit.Test;

import static org.junit.Assert.assertEquals;

/**
 * Created by varunu28 on 1/08/19.
 */

public class _394Test {
  private static _394.Solution1 test;

  @BeforeClass
  public static void setUp() {
    test = new _394.Solution1();
  }

  @Test
  public void test1() {
    assertEquals("aaabcbc", test.decodeString("3[a]2[bc]"));
  }

  @Test
  public void test2() {
    assertEquals("accaccacc", test.decodeString("3[a2[c]]"));
  }

  @Test
  public void test3() {
    assertEquals("abcabccdcdcdef", test.decodeString("2[abc]3[cd]ef"));
  }
}

fix build