Skip to content

Commit

Permalink
Adds tests for new calver versioning.
Browse files Browse the repository at this point in the history
See gh-193 for failing 2020.0.0 (which is a GA release).
  • Loading branch information
spencergibb committed Apr 16, 2020
1 parent 6063671 commit bc9b7ac
Showing 1 changed file with 4 additions and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -107,11 +107,14 @@ public void should_return_the_previous_version_for_release_train_version() {

@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();
}

Expand Down

0 comments on commit bc9b7ac

Please sign in to comment.