Skip to main content
summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
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