11package io .cloudquery .glob ;
22
3- import org .junit .Test ;
3+ import org .junit .jupiter . api . Test ;
44
55import java .util .List ;
66
77import static io .cloudquery .glob .Glob .GLOB ;
8- import static org .junit .Assert .assertFalse ;
9- import static org .junit .Assert .assertTrue ;
8+ import static org .junit .jupiter . api . Assertions .assertFalse ;
9+ import static org .junit .jupiter . api . Assertions .assertTrue ;
1010
1111public class GlobTest {
1212 @ Test
@@ -75,7 +75,7 @@ public void testGlobs() {
7575 assertGlobMatch (pattern , "this is a ϗѾ test" );
7676 }
7777
78- for (String pattern : List .of (
78+ for (String pattern : List .of (
7979 "test*" , // Implicit substring match
8080 "*is" , // Partial match
8181 "*no*" , // Globs without a match between them
@@ -90,11 +90,11 @@ public void testGlobs() {
9090 }
9191
9292 public void assertGlobMatch (String pattern , String subject ) {
93- assertTrue (String .format ("\" %s\" should match \" %s\" " , pattern , subject ), Glob . match ( pattern , subject ));
93+ assertTrue (Glob . match ( pattern , subject ), String .format ("\" %s\" should match \" %s\" " , pattern , subject ));
9494 }
9595
9696 public void assertNotGlobMatch (String pattern , String subject ) {
97- assertFalse (String .format ("\" %s\" should not match \" %s\" " , pattern , subject ), Glob . match ( pattern , subject ));
97+ assertFalse (Glob . match ( pattern , subject ), String .format ("\" %s\" should not match \" %s\" " , pattern , subject ));
9898 }
9999
100100}
0 commit comments