mirror of
https://github.com/jenkinsci/jenkins.git
synced 2026-11-16 13:32:24 +00:00
Trim snapshot version strings in plugin="…" attributes.
This commit is contained in:
1 parent
f1d4e2d303
commit
3e5b403f65
2 files changed
+13
-1
No files matched your search
@@ -311,4 +311,11 @@ public class XStream2Test extends TestCase {
|
||||
assertEquals(1,map.m.size());
|
||||
assertEquals("def",map.m.get("abc"));
|
||||
}
|
||||
|
||||
public void testTrimVersion() throws Exception {
|
||||
assertEquals("3.2", XStream2.trimVersion("3.2"));
|
||||
assertEquals("3.2.1", XStream2.trimVersion("3.2.1"));
|
||||
assertEquals("3.2-SNAPSHOT", XStream2.trimVersion("3.2-SNAPSHOT (private-09/23/2012 12:26-jhacker)"));
|
||||
}
|
||||
|
||||
}
|
||||
Reference in new issue
Block a user