change test to digits for calver
This commit is contained in:
@@ -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+\\..*");
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user