File tree 1 file changed +3
-2
lines changed
test-harness/src/test/java/io/jenkins/plugins/casc 1 file changed +3
-2
lines changed Original file line number Diff line number Diff line change 17
17
import java .nio .file .Path ;
18
18
import java .nio .file .Paths ;
19
19
import java .nio .file .StandardCopyOption ;
20
+ import java .util .Arrays ;
20
21
import java .util .List ;
21
22
import org .junit .Assume ;
22
23
import org .junit .Rule ;
@@ -86,7 +87,7 @@ public void init_test_from_accepted_sources() throws Exception {
86
87
87
88
assertThat (casc .configs (exactFile .getAbsolutePath ()), hasSize (1 ));
88
89
final List <Path > foo = casc .configs (tempFolder .getRoot ().getAbsolutePath ());
89
- assertThat (foo , hasSize (6 ));
90
+ assertThat ("failed to find 6 configs in " + Arrays . toString ( tempFolder . getRoot (). list ()), foo , hasSize (6 ));
90
91
}
91
92
92
93
@ Test
@@ -99,7 +100,7 @@ public void test_ordered_config_loading() throws Exception {
99
100
tempFolder .newFile ("z.yaml" );
100
101
101
102
final List <Path > foo = casc .configs (tempFolder .getRoot ().getAbsolutePath ());
102
- assertThat (foo , hasSize (4 ));
103
+ assertThat ("failed to find 4 configs in " + Arrays . toString ( tempFolder . getRoot (). list ()), foo , hasSize (4 ));
103
104
assertTrue (foo .get (0 ).endsWith ("0.yaml" ));
104
105
assertTrue (foo .get (1 ).endsWith ("1.yaml" ));
105
106
assertTrue (foo .get (2 ).endsWith ("a.yaml" ));
You can’t perform that action at this time.
0 commit comments