Adds tests for new calver versioning.

See gh-193 for failing 2020.0.0 (which is a GA release).
This commit is contained in:
Spencer Gibb
2020-04-16 12:24:46 -04:00
parent 6063671ed0
commit bc9b7ac981

View File

@@ -107,11 +107,14 @@ public class ProjectVersionTests {
@Test
public void should_return_true_for_a_valid_version() {
then(projectVersion("2020-1.M1").isValid()).isTrue();
then(projectVersion("2020.0.0-M1").isValid()).isTrue();
then(projectVersion("2020.0.0-RC2").isValid()).isTrue();
// then(projectVersion("2020.0.0").isValid()).isTrue();
then(projectVersion("1.0.1.BUILD-SNAPSHOT").isValid()).isTrue();
then(projectVersion("1.0.3.RC1").isValid()).isTrue();
then(projectVersion("1.0.4.M1").isValid()).isTrue();
then(projectVersion("Finchley.BUILD-SNAPSHOT").isValid()).isTrue();
then(projectVersion("Finchley.RELEASE").isValid()).isTrue();
then(projectVersion("Finchley.SR1").isValid()).isTrue();
}