File tree Expand file tree Collapse file tree 1 file changed +5
-2
lines changed
driver/src/test/java/com/arangodb Expand file tree Collapse file tree 1 file changed +5
-2
lines changed Original file line number Diff line number Diff line change 55import org .junit .jupiter .api .Test ;
66import org .junit .jupiter .params .ParameterizedTest ;
77import org .junit .jupiter .params .provider .EnumSource ;
8+
9+ import static ru .lanwen .verbalregex .VerbalExpression .regex ;
10+
811import ru .lanwen .verbalregex .VerbalExpression ;
912
1013import static org .assertj .core .api .Assertions .assertThat ;
@@ -14,7 +17,7 @@ class PackageVersionTest extends BaseJunit5 {
1417
1518 @ Test
1619 void packageVersion () {
17- VerbalExpression testRegex = VerbalExpression . regex ()
20+ VerbalExpression testRegex = regex ()
1821 .startOfLine ()
1922 // major
2023 .digit ().atLeast (1 )
@@ -24,7 +27,7 @@ void packageVersion() {
2427 .then ("." )
2528 // patch
2629 .digit ().atLeast (1 )
27- .maybe ("-SNAPSHOT" )
30+ .maybe (regex (). anything () )
2831 .endOfLine ()
2932 .build ();
3033 assertThat (PackageVersion .VERSION ).matches (testRegex .toString ());
You can’t perform that action at this time.
0 commit comments