Skip to main content
summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorrelves2009-01-29 21:33:55 +0000
committerrelves2009-01-29 21:33:55 +0000
commit65cf823d004de5c950d5f2c93a3ff1efce4964a6 (patch)
tree4e52cbb762136e8c9e97a7ef1f441e45c1642cff /org.eclipse.mylyn.bugzilla.tests
parentd4405657bf24018f0fe9f65d66152ae9e8fcdae2 (diff)
downloadorg.eclipse.mylyn.tasks-65cf823d004de5c950d5f2c93a3ff1efce4964a6.tar.gz
org.eclipse.mylyn.tasks-65cf823d004de5c950d5f2c93a3ff1efce4964a6.tar.xz
org.eclipse.mylyn.tasks-65cf823d004de5c950d5f2c93a3ff1efce4964a6.zip
RESOLVED - bug 260963: string compare for Bugzilla versions is not robust
https://bugs.eclipse.org/bugs/show_bug.cgi?id=260963
Diffstat (limited to 'org.eclipse.mylyn.bugzilla.tests')
-rw-r--r--org.eclipse.mylyn.bugzilla.tests/src/org/eclipse/mylyn/bugzilla/tests/BugzillaVersionTest.java9
1 files changed, 2 insertions, 7 deletions
diff --git a/org.eclipse.mylyn.bugzilla.tests/src/org/eclipse/mylyn/bugzilla/tests/BugzillaVersionTest.java b/org.eclipse.mylyn.bugzilla.tests/src/org/eclipse/mylyn/bugzilla/tests/BugzillaVersionTest.java
index 5778fa130..5404a230f 100644
--- a/org.eclipse.mylyn.bugzilla.tests/src/org/eclipse/mylyn/bugzilla/tests/BugzillaVersionTest.java
+++ b/org.eclipse.mylyn.bugzilla.tests/src/org/eclipse/mylyn/bugzilla/tests/BugzillaVersionTest.java
@@ -29,13 +29,8 @@ public class BugzillaVersionTest extends TestCase {
public final static BugzillaVersion BUGZILLA_3_0_4 = new BugzillaVersion("3.0.4");
public void testwrongVersion() throws Exception {
- try {
- new BugzillaVersion("3.2.X");
- fail("NumberFormatException expected!");
- } catch (Exception e) {
- assertTrue(e instanceof NumberFormatException);
- assertEquals("For input string: \"X\"", e.getMessage());
- }
+ BugzillaVersion version = new BugzillaVersion("3.2.X");
+ assertEquals("3.2", version.toString());
}
public void testCompareAll() throws Exception {

Back to the top