Skip to main content
summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorrelves2006-08-29 01:34:20 +0000
committerrelves2006-08-29 01:34:20 +0000
commit0441108e314a0231057134a60c5e9078b5ff5d1a (patch)
treeef6acdd49c6c8803d159afd8989423a0eb9ff1ae /org.eclipse.mylyn.bugzilla.tests
parent4862f3ab63bb7319c9193754c80655ea6d285619 (diff)
downloadorg.eclipse.mylyn.tasks-0441108e314a0231057134a60c5e9078b5ff5d1a.tar.gz
org.eclipse.mylyn.tasks-0441108e314a0231057134a60c5e9078b5ff5d1a.tar.xz
org.eclipse.mylyn.tasks-0441108e314a0231057134a60c5e9078b5ff5d1a.zip
Progress on: 154277: Eliminate need to set Bugzilla server version on configuration page
https://bugs.eclipse.org/bugs/show_bug.cgi?id=154277
Diffstat (limited to 'org.eclipse.mylyn.bugzilla.tests')
-rw-r--r--org.eclipse.mylyn.bugzilla.tests/src/org/eclipse/mylyn/bugzilla/tests/RepositoryEditorWizardTest.java12
1 files changed, 12 insertions, 0 deletions
diff --git a/org.eclipse.mylyn.bugzilla.tests/src/org/eclipse/mylyn/bugzilla/tests/RepositoryEditorWizardTest.java b/org.eclipse.mylyn.bugzilla.tests/src/org/eclipse/mylyn/bugzilla/tests/RepositoryEditorWizardTest.java
index 753df97d8..ee2ab0f6c 100644
--- a/org.eclipse.mylyn.bugzilla.tests/src/org/eclipse/mylyn/bugzilla/tests/RepositoryEditorWizardTest.java
+++ b/org.eclipse.mylyn.bugzilla.tests/src/org/eclipse/mylyn/bugzilla/tests/RepositoryEditorWizardTest.java
@@ -141,4 +141,16 @@ public class RepositoryEditorWizardTest extends TestCase {
fail("LoginException didn't occur!");
}
+ public void testAutoVersion() throws Exception {
+ repository.setVersion(BugzillaRepositorySettingsPage.LABEL_AUTOMATIC_VERSION);
+ EditRepositoryWizard wizard = new EditRepositoryWizard(repository);
+ WizardDialog dialog = new WizardDialog(PlatformUI.getWorkbench().getDisplay().getActiveShell(), wizard);
+ dialog.create();
+ BugzillaRepositorySettingsPage page = (BugzillaRepositorySettingsPage) wizard.getSettingsPage();
+ page.setTesting(true);
+ assertEquals(BugzillaRepositorySettingsPage.LABEL_AUTOMATIC_VERSION, page.getVersion());
+ page.validateSettings();
+ assertEquals("2.22", page.getVersion());
+ }
+
}

Back to the top