File tree 1 file changed +11
-13
lines changed
eo-maven-plugin/src/test/java/org/eolang/maven
1 file changed +11
-13
lines changed Original file line number Diff line number Diff line change @@ -24,22 +24,20 @@ final class WalkTest {
24
24
25
25
@ Test
26
26
void findsFilesMatchingGlobPattern (@ Mktmp final Path temp ) throws Exception {
27
- final String nonMatchingFile = "foo/hello/0.1/EObar/x.bin" ;
28
- final String matchingFile = "EOxxx/bar" ;
29
- final String includePattern = "EO**/*" ;
30
- final int expectedCount = 1 ;
31
-
32
- new HmBase (temp ).save ("" , Paths .get (nonMatchingFile ));
33
- new HmBase (temp ).save ("" , Paths .get (matchingFile ));
34
-
27
+ final String nonmatch = "foo/hello/0.1/EObar/x.bin" ;
28
+ final String match = "EOxxx/bar" ;
29
+ final String pattern = "EO**/*" ;
30
+ final int count = 1 ;
31
+ new HmBase (temp ).save ("" , Paths .get (nonmatch ));
32
+ new HmBase (temp ).save ("" , Paths .get (match ));
35
33
MatcherAssert .assertThat (
36
34
String .format (
37
35
"Expected %d file(s) matching pattern '%s'" ,
38
- expectedCount ,
39
- includePattern
36
+ count ,
37
+ pattern
40
38
),
41
- new Walk (temp ).includes (new ListOf <>(includePattern )),
42
- Matchers .iterableWithSize (expectedCount )
39
+ new Walk (temp ).includes (new ListOf <>(pattern )),
40
+ Matchers .iterableWithSize (count )
43
41
);
44
42
}
45
- }
43
+ }
You can’t perform that action at this time.
0 commit comments