1
1
package com .fishercoder .secondthousand ;
2
2
3
+ import static org .assertj .core .api .AssertionsForInterfaceTypes .assertThat ;
4
+
3
5
import com .fishercoder .solutions .secondthousand ._1233 ;
6
+ import java .util .ArrayList ;
4
7
import org .junit .jupiter .api .BeforeEach ;
5
8
import org .junit .jupiter .api .Test ;
6
9
7
- import java .util .ArrayList ;
8
-
9
- import static org .assertj .core .api .AssertionsForInterfaceTypes .assertThat ;
10
-
11
10
public class _1233Test {
12
11
private _1233 .Solution1 solution1 ;
13
12
private static String []folder ;
@@ -19,7 +18,7 @@ public void setup() {
19
18
20
19
@ Test
21
20
public void test1 () {
22
- folder =new String []{"/a" ,"/a/b" ,"/c/d" ,"/c/d/e" ,"/c/f" };
21
+ folder =new String [] {"/a" ,"/a/b" ,"/c/d" ,"/c/d/e" ,"/c/f" };
23
22
ArrayList expected =new ArrayList ();
24
23
expected .add ("/a" );
25
24
expected .add ("/c/d" );
@@ -29,7 +28,7 @@ public void test1() {
29
28
30
29
@ Test
31
30
public void test2 () {
32
- folder =new String []{"/a" ,"/a/b/c" ,"/a/b/d" };
31
+ folder =new String [] {"/a" ,"/a/b/c" ,"/a/b/d" };
33
32
ArrayList expected =new ArrayList ();
34
33
expected .add ("/a" );
35
34
assertThat (expected ).hasSameElementsAs (solution1 .removeSubfolders (folder ));