1+ package com .fishercoder ;
2+
3+ import com .fishercoder .solutions ._1861 ;
4+ import org .junit .BeforeClass ;
5+ import org .junit .Test ;
6+
7+ import static org .junit .Assert .assertEquals ;
8+
9+ public class _1861Test {
10+ private static _1861 .Solution1 solution1 ;
11+
12+ @ BeforeClass
13+ public static void setup () {
14+ solution1 =new _1861 .Solution1 ();
15+ }
16+
17+ @ Test
18+ public void test1 () {
19+ assertEquals (new char [][]{{'.' }, {'#' }, {'#' }},solution1 .rotateTheBox (new char [][]{
20+ {'#' ,'.' ,'#' }
21+ }));
22+ }
23+
24+ @ Test
25+ public void test2 () {
26+ assertEquals (new char [][]{
27+ {'#' ,'.' },
28+ {'#' ,'#' },
29+ {'*' ,'*' },
30+ {'.' ,'.' }},
31+ solution1 .rotateTheBox (new char [][]{
32+ {'#' ,'.' ,'*' ,'.' },
33+ {'#' ,'#' ,'*' ,'.' }
34+ }));
35+ }
36+
37+ @ Test
38+ public void test3 () {
39+ assertEquals (new char [][]{
40+ {'.' ,'#' ,'#' },
41+ {'.' ,'#' ,'#' },
42+ {'#' ,'#' ,'*' },
43+ {'#' ,'*' ,'.' },
44+ {'#' ,'.' ,'*' },
45+ {'#' ,'.' ,'.' }
46+ },
47+ solution1 .rotateTheBox (new char [][]{
48+ {'#' ,'#' ,'*' ,'.' ,'*' ,'.' },
49+ {'#' ,'#' ,'#' ,'*' ,'.' ,'.' },
50+ {'#' ,'#' ,'#' ,'.' ,'#' ,'.' }
51+ }));
52+ }
53+
54+ }