Skip to main content
summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorrelves2006-11-30 18:54:31 +0000
committerrelves2006-11-30 18:54:31 +0000
commit81b64d9c45af68b8fc521c261505cbb06606d27e (patch)
tree37e399eeabe1c778425481f064f9fbc02e465270 /org.eclipse.mylyn.bugzilla.tests
parent128180dea446b1693b74338214fad888e3ed0fb5 (diff)
downloadorg.eclipse.mylyn.tasks-81b64d9c45af68b8fc521c261505cbb06606d27e.tar.gz
org.eclipse.mylyn.tasks-81b64d9c45af68b8fc521c261505cbb06606d27e.tar.xz
org.eclipse.mylyn.tasks-81b64d9c45af68b8fc521c261505cbb06606d27e.zip
NEW - bug 142661: Reducing the dependancy of Bugzilla search on Eclipse
https://bugs.eclipse.org/bugs/show_bug.cgi?id=142661
Diffstat (limited to 'org.eclipse.mylyn.bugzilla.tests')
-rw-r--r--org.eclipse.mylyn.bugzilla.tests/src/org/eclipse/mylyn/bugzilla/tests/BugzillaConfigurationTest.java4
-rw-r--r--org.eclipse.mylyn.bugzilla.tests/src/org/eclipse/mylyn/bugzilla/tests/BugzillaProductParserTest.java8
-rw-r--r--org.eclipse.mylyn.bugzilla.tests/src/org/eclipse/mylyn/bugzilla/tests/BugzillaRepositoryConnectorTest.java2
3 files changed, 7 insertions, 7 deletions
diff --git a/org.eclipse.mylyn.bugzilla.tests/src/org/eclipse/mylyn/bugzilla/tests/BugzillaConfigurationTest.java b/org.eclipse.mylyn.bugzilla.tests/src/org/eclipse/mylyn/bugzilla/tests/BugzillaConfigurationTest.java
index 3ade8b7bd..9dfe200d6 100644
--- a/org.eclipse.mylyn.bugzilla.tests/src/org/eclipse/mylyn/bugzilla/tests/BugzillaConfigurationTest.java
+++ b/org.eclipse.mylyn.bugzilla.tests/src/org/eclipse/mylyn/bugzilla/tests/BugzillaConfigurationTest.java
@@ -150,8 +150,8 @@ public class BugzillaConfigurationTest extends TestCase {
BugzillaCorePlugin.addRepositoryConfiguration(configuration1);
BugzillaCorePlugin.addRepositoryConfiguration(configuration2);
BugzillaCorePlugin.writeRepositoryConfigFile();
- BugzillaCorePlugin.getDefault().removeConfiguration(configuration1);
- BugzillaCorePlugin.getDefault().removeConfiguration(configuration2);
+ BugzillaCorePlugin.removeConfiguration(configuration1);
+ BugzillaCorePlugin.removeConfiguration(configuration2);
assertNull(BugzillaCorePlugin.getRepositoryConfiguration(configuration1.getRepositoryUrl()));
assertNull(BugzillaCorePlugin.getRepositoryConfiguration(configuration2.getRepositoryUrl()));
BugzillaCorePlugin.readRepositoryConfigurationFile();
diff --git a/org.eclipse.mylyn.bugzilla.tests/src/org/eclipse/mylyn/bugzilla/tests/BugzillaProductParserTest.java b/org.eclipse.mylyn.bugzilla.tests/src/org/eclipse/mylyn/bugzilla/tests/BugzillaProductParserTest.java
index 1a136d6b5..20f6b9d31 100644
--- a/org.eclipse.mylyn.bugzilla.tests/src/org/eclipse/mylyn/bugzilla/tests/BugzillaProductParserTest.java
+++ b/org.eclipse.mylyn.bugzilla.tests/src/org/eclipse/mylyn/bugzilla/tests/BugzillaProductParserTest.java
@@ -58,7 +58,7 @@ public class BugzillaProductParserTest extends TestCase {
public void test222Products() throws Exception {
setRepository(IBugzillaConstants.TEST_BUGZILLA_222_URL);
- List<String> productList = BugzillaCorePlugin.getDefault().getRepositoryConfiguration(repository, false).getProducts();
+ List<String> productList = BugzillaCorePlugin.getRepositoryConfiguration(repository, false).getProducts();
Iterator<String> itr = productList.iterator();
assertTrue(itr.hasNext());
assertEquals("Read Only Test Cases", itr.next());
@@ -66,7 +66,7 @@ public class BugzillaProductParserTest extends TestCase {
public void test2201Products() throws Exception {
setRepository(IBugzillaConstants.TEST_BUGZILLA_2201_URL);
- List<String> productList = BugzillaCorePlugin.getDefault().getRepositoryConfiguration(repository, false).getProducts();
+ List<String> productList = BugzillaCorePlugin.getRepositoryConfiguration(repository, false).getProducts();
Iterator<String> itr = productList.iterator();
assertTrue(itr.hasNext());
assertEquals("TestProduct", "TestProduct", itr.next());
@@ -75,7 +75,7 @@ public class BugzillaProductParserTest extends TestCase {
public void test220Products() throws Exception {
setRepository(IBugzillaConstants.TEST_BUGZILLA_220_URL);
- List<String> productList = BugzillaCorePlugin.getDefault().getRepositoryConfiguration(repository, false).getProducts();
+ List<String> productList = BugzillaCorePlugin.getRepositoryConfiguration(repository, false).getProducts();
assertEquals(2, productList.size());
assertTrue(productList.contains("TestProduct"));
assertTrue(productList.contains("Widget"));
@@ -84,7 +84,7 @@ public class BugzillaProductParserTest extends TestCase {
public void test218Products() throws Exception {
setRepository(IBugzillaConstants.TEST_BUGZILLA_218_URL);
- List<String> productList = BugzillaCorePlugin.getDefault().getRepositoryConfiguration(repository, false).getProducts();
+ List<String> productList = BugzillaCorePlugin.getRepositoryConfiguration(repository, false).getProducts();
assertEquals(1, productList.size());
assertTrue(productList.contains("TestProduct"));
}
diff --git a/org.eclipse.mylyn.bugzilla.tests/src/org/eclipse/mylyn/bugzilla/tests/BugzillaRepositoryConnectorTest.java b/org.eclipse.mylyn.bugzilla.tests/src/org/eclipse/mylyn/bugzilla/tests/BugzillaRepositoryConnectorTest.java
index 1b53b39e1..64940d760 100644
--- a/org.eclipse.mylyn.bugzilla.tests/src/org/eclipse/mylyn/bugzilla/tests/BugzillaRepositoryConnectorTest.java
+++ b/org.eclipse.mylyn.bugzilla.tests/src/org/eclipse/mylyn/bugzilla/tests/BugzillaRepositoryConnectorTest.java
@@ -112,7 +112,7 @@ public class BugzillaRepositoryConnectorTest extends AbstractBugzillaTest {
}
// test anonymous update of configuration
- RepositoryConfiguration config = BugzillaCorePlugin.getDefault().getRepositoryConfiguration(repository, false);
+ RepositoryConfiguration config = BugzillaCorePlugin.getRepositoryConfiguration(repository, false);
assertNotNull(config);
assertTrue(config.getComponents().size() > 0);
}

Back to the top