diff options
author | Julien Eluard <[email protected]> | 2011-09-13 00:10:21 -0700 |
---|---|---|
committer | Julien Eluard <[email protected]> | 2011-09-13 00:10:21 -0700 |
commit | 37a8a5cbc5d9d941b5e96665ef0409b0999c5ee0 (patch) | |
tree | 74d7629461cebfd69ba4772ceff066956cdd1566 /api/src/test/java | |
parent | e4e8186f31410d9147d80d30c0bcdc1314a85382 (diff) |
Added support for Maven/OSGI version scheme.
Diffstat (limited to 'api/src/test/java')
-rwxr-xr-x | api/src/test/java/org/semver/VersionTest.java | 11 |
1 files changed, 5 insertions, 6 deletions
diff --git a/api/src/test/java/org/semver/VersionTest.java b/api/src/test/java/org/semver/VersionTest.java index 0923c5f..4450b58 100755 --- a/api/src/test/java/org/semver/VersionTest.java +++ b/api/src/test/java/org/semver/VersionTest.java @@ -46,6 +46,10 @@ public class VersionTest { public void shouldValidVersionBeParsed() { Version.parse("1.2.3"); Version.parse("1.2.3beta"); + Version.parse("1.2.3.DEV"); + Version.parse("1.2.3.DEV-SNAPSHOT"); + Version.parse("1.2.3-SNAPSHOT"); + Version.parse("1.2.3-RC-SNAPSHOT"); } @Test(expected=IllegalArgumentException.class) @@ -60,16 +64,11 @@ public class VersionTest { @Test(expected=IllegalArgumentException.class) public void shouldInvalidVersion3NotBeParsed() { - Version.parse("1.2.3.beta"); - } - - @Test(expected=IllegalArgumentException.class) - public void shouldInvalidVersion4NotBeParsed() { Version.parse("1.2"); } @Test(expected=IllegalArgumentException.class) - public void shouldInvalidVersion5NotBeParsed() { + public void shouldInvalidVersion4NotBeParsed() { Version.parse("a.2.3"); } |