Skip to content

Commit

Permalink
fixed PackageVersionTest
Browse files Browse the repository at this point in the history
  • Loading branch information
rashtao committed Dec 22, 2022
1 parent bc1de3d commit 6b29cb7
Showing 1 changed file with 5 additions and 2 deletions.
7 changes: 5 additions & 2 deletions driver/src/test/java/com/arangodb/PackageVersionTest.java
Original file line number Diff line number Diff line change
Expand Up @@ -5,6 +5,9 @@
import org.junit.jupiter.api.Test;
import org.junit.jupiter.params.ParameterizedTest;
import org.junit.jupiter.params.provider.EnumSource;

import static ru.lanwen.verbalregex.VerbalExpression.regex;

import ru.lanwen.verbalregex.VerbalExpression;

import static org.assertj.core.api.Assertions.assertThat;
Expand All @@ -14,7 +17,7 @@ class PackageVersionTest extends BaseJunit5 {

@Test
void packageVersion() {
VerbalExpression testRegex = VerbalExpression.regex()
VerbalExpression testRegex = regex()
.startOfLine()
// major
.digit().atLeast(1)
Expand All @@ -24,7 +27,7 @@ void packageVersion() {
.then(".")
// patch
.digit().atLeast(1)
.maybe("-SNAPSHOT")
.maybe(regex().anything())
.endOfLine()
.build();
assertThat(PackageVersion.VERSION).matches(testRegex.toString());
Expand Down

0 comments on commit 6b29cb7

Please sign in to comment.