File tree 1 file changed +5
-2
lines changed
driver/src/test/java/com/arangodb
1 file changed +5
-2
lines changed Original file line number Diff line number Diff line change 5
5
import org .junit .jupiter .api .Test ;
6
6
import org .junit .jupiter .params .ParameterizedTest ;
7
7
import org .junit .jupiter .params .provider .EnumSource ;
8
+
9
+ import static ru .lanwen .verbalregex .VerbalExpression .regex ;
10
+
8
11
import ru .lanwen .verbalregex .VerbalExpression ;
9
12
10
13
import static org .assertj .core .api .Assertions .assertThat ;
@@ -14,7 +17,7 @@ class PackageVersionTest extends BaseJunit5 {
14
17
15
18
@ Test
16
19
void packageVersion () {
17
- VerbalExpression testRegex = VerbalExpression . regex ()
20
+ VerbalExpression testRegex = regex ()
18
21
.startOfLine ()
19
22
// major
20
23
.digit ().atLeast (1 )
@@ -24,7 +27,7 @@ void packageVersion() {
24
27
.then ("." )
25
28
// patch
26
29
.digit ().atLeast (1 )
27
- .maybe ("-SNAPSHOT" )
30
+ .maybe (regex (). anything () )
28
31
.endOfLine ()
29
32
.build ();
30
33
assertThat (PackageVersion .VERSION ).matches (testRegex .toString ());
You can’t perform that action at this time.
0 commit comments