@@ -47,12 +47,6 @@ public void shouldThrowOnIncorrectInputPath() {
4747 builder .addInputPath ("aaaaa" );
4848 }
4949
50- private String getTestFilePath () {
51- final ClassLoader classLoader = getClass ().getClassLoader ();
52- final URL resource = classLoader .getResource ("test" );
53- return resource .getPath ();
54- }
55-
5650 @ Test
5751 public void shouldCreateCorrectBuilder () {
5852 //given
@@ -62,20 +56,6 @@ public void shouldCreateCorrectBuilder() {
6256 builder .build ();
6357 }
6458
65- private boolean areStringArraysEqual (String [] actual , String [] expected ) {
66- if (actual .length != expected .length ) {
67- return false ;
68- }
69-
70- for (int i = 0 ; i < actual .length ; i ++) {
71- if (!actual [i ].equals (expected [i ])) {
72- return false ;
73- }
74- }
75-
76- return true ;
77- }
78-
7959 @ Test
8060 public void shouldAppendOverwriteFlag () {
8161 // given
@@ -220,4 +200,24 @@ private CommandBuilder getCorrectCommandBuilder() {
220200 .addInputPath (testPath )
221201 .addOutputPath (testPath );
222202 }
203+
204+ private String getTestFilePath () {
205+ final ClassLoader classLoader = getClass ().getClassLoader ();
206+ final URL resource = classLoader .getResource ("test" );
207+ return resource .getPath ();
208+ }
209+
210+ private boolean areStringArraysEqual (String [] actual , String [] expected ) {
211+ if (actual .length != expected .length ) {
212+ return false ;
213+ }
214+
215+ for (int i = 0 ; i < actual .length ; i ++) {
216+ if (!actual [i ].equals (expected [i ])) {
217+ return false ;
218+ }
219+ }
220+
221+ return true ;
222+ }
223223}
0 commit comments