Skip to main content
summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorFrank Becker2013-01-30 18:09:14 +0000
committerGerrit Code Review @ Eclipse.org2013-04-24 19:01:49 +0000
commitd4790d2b871b85fc4bc19c2bffab7ff5b7598c3b (patch)
treed4f9f2ef529333b3ead7a9f6aba2b7c85ef06912 /org.eclipse.mylyn.tasks.tests
parent7627c6238dbfbc112cfd78c02c41979d3a70c699 (diff)
downloadorg.eclipse.mylyn.tasks-d4790d2b871b85fc4bc19c2bffab7ff5b7598c3b.tar.gz
org.eclipse.mylyn.tasks-d4790d2b871b85fc4bc19c2bffab7ff5b7598c3b.tar.xz
org.eclipse.mylyn.tasks-d4790d2b871b85fc4bc19c2bffab7ff5b7598c3b.zip
399302: reduce the number of warnings for all Tasks plugins
Change-Id: I1d847f36aa28feae51a8b71b048d6111fa155df5 Task-Url: https://bugs.eclipse.org/bugs/show_bug.cgi?id=399302
Diffstat (limited to 'org.eclipse.mylyn.tasks.tests')
-rw-r--r--org.eclipse.mylyn.tasks.tests/src/org/eclipse/mylyn/tasks/tests/bugs/SupportHandlerManagerTest.java16
1 files changed, 4 insertions, 12 deletions
diff --git a/org.eclipse.mylyn.tasks.tests/src/org/eclipse/mylyn/tasks/tests/bugs/SupportHandlerManagerTest.java b/org.eclipse.mylyn.tasks.tests/src/org/eclipse/mylyn/tasks/tests/bugs/SupportHandlerManagerTest.java
index 9e04ec38e..36a05a3dc 100644
--- a/org.eclipse.mylyn.tasks.tests/src/org/eclipse/mylyn/tasks/tests/bugs/SupportHandlerManagerTest.java
+++ b/org.eclipse.mylyn.tasks.tests/src/org/eclipse/mylyn/tasks/tests/bugs/SupportHandlerManagerTest.java
@@ -60,7 +60,7 @@ public class SupportHandlerManagerTest extends TestCase {
public void tearDown() throws Exception {
}
- public void testSupportHandlerManager() {
+ public void testSupportHandlerManager() throws CoreException {
SupportHandlerManager handlerManager = new SupportHandlerManager();
SupportProviderManager providerManager = new SupportProviderManager();
SupportProduct product = providerManager.getProduct("org.eclipse.mylyn.tasks.tests.productnormal");
@@ -74,11 +74,7 @@ public class SupportHandlerManagerTest extends TestCase {
AttributeTaskMapper mapper = ((AttributeTaskMapper) request.getDefaultContribution());
assertTrue(!mapper.isHandled());
TaskData taskData = null;
- try {
- taskData = mapper.createTaskData(monitor);
- } catch (CoreException e) {
- fail("unexpected CoreException " + e.getMessage());
- }
+ taskData = mapper.createTaskData(monitor);
assertNotNull(taskData);
mapper.setTaskData(taskData);
handlerManager.postProcess(mapper, monitor);
@@ -86,7 +82,7 @@ public class SupportHandlerManagerTest extends TestCase {
assertEquals("enhancement", serv.getValue());
}
- public void testSeverityDefinedInExtensionPoint() {
+ public void testSeverityDefinedInExtensionPoint() throws CoreException {
SupportHandlerManager handlerManager = new SupportHandlerManager();
SupportProviderManager providerManager = new SupportProviderManager();
SupportProduct product = providerManager.getProduct("org.eclipse.mylyn.tasks.tests.productseverity");
@@ -100,11 +96,7 @@ public class SupportHandlerManagerTest extends TestCase {
AttributeTaskMapper mapper = ((AttributeTaskMapper) request.getDefaultContribution());
assertTrue(!mapper.isHandled());
TaskData taskData = null;
- try {
- taskData = mapper.createTaskData(monitor);
- } catch (CoreException e) {
- fail("unexpected CoreException " + e.getMessage());
- }
+ taskData = mapper.createTaskData(monitor);
assertNotNull(taskData);
mapper.setTaskData(taskData);
handlerManager.postProcess(mapper, monitor);

Back to the top