change test to digits for calver

This commit is contained in:
spencergibb
2021-02-08 13:56:07 -05:00
parent 9a77f255bb
commit 42a6a36f7f

View File

@@ -9,8 +9,7 @@ public class SpringCloudBomAstTransformationTests {
@Test
public void defaultVersionReadFromFile() {
String version = new SpringCloudBomAstTransformation().getBomVersion();
// starts with one or more word chars then a .
// TODO: change to \\d (digits) when merged to master
assertThat(version).isNotBlank().doesNotContainAnyWhitespaces().containsPattern("^\\w+\\..*");
// starts with one or more digits then a .
assertThat(version).isNotBlank().doesNotContainAnyWhitespaces().containsPattern("^\\d+\\..*");
}
}