Skip to main content
summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorSam Davis2016-08-17 16:41:01 -0400
committerSam Davis2016-08-17 18:18:46 -0400
commite78fe8eb59066c70f100188e416bb96dd329f761 (patch)
tree3f3848f7760b5903d745d94cdc0a83b8b7c043b5
parent9a4095c743725aa47d7a2ec6cc5ec50437a11291 (diff)
downloadorg.eclipse.mylyn.tasks-e78fe8eb59066c70f100188e416bb96dd329f761.tar.gz
org.eclipse.mylyn.tasks-e78fe8eb59066c70f100188e416bb96dd329f761.tar.xz
org.eclipse.mylyn.tasks-e78fe8eb59066c70f100188e416bb96dd329f761.zip
fix release build to not require Mockito 1.9.5
-rw-r--r--org.eclipse.mylyn.tasks.ui.tests/src/org/eclipse/mylyn/internal/tasks/ui/migrator/ConnectorMigratorTest.java6
1 files changed, 3 insertions, 3 deletions
diff --git a/org.eclipse.mylyn.tasks.ui.tests/src/org/eclipse/mylyn/internal/tasks/ui/migrator/ConnectorMigratorTest.java b/org.eclipse.mylyn.tasks.ui.tests/src/org/eclipse/mylyn/internal/tasks/ui/migrator/ConnectorMigratorTest.java
index 01851b881..a49c07034 100644
--- a/org.eclipse.mylyn.tasks.ui.tests/src/org/eclipse/mylyn/internal/tasks/ui/migrator/ConnectorMigratorTest.java
+++ b/org.eclipse.mylyn.tasks.ui.tests/src/org/eclipse/mylyn/internal/tasks/ui/migrator/ConnectorMigratorTest.java
@@ -42,6 +42,7 @@ import org.eclipse.core.runtime.CoreException;
import org.eclipse.core.runtime.IProgressMonitor;
import org.eclipse.core.runtime.NullProgressMonitor;
import org.eclipse.core.runtime.OperationCanceledException;
+import org.eclipse.core.runtime.Status;
import org.eclipse.mylyn.commons.net.AuthenticationCredentials;
import org.eclipse.mylyn.commons.net.AuthenticationType;
import org.eclipse.mylyn.internal.tasks.core.AbstractTask;
@@ -196,11 +197,10 @@ public class ConnectorMigratorTest {
verify(migrationUi, never()).warnOfValidationFailure((List<TaskRepository>) any());
}
- @SuppressWarnings("unchecked")
@Test
public void migrateConnectorsValidationFailure() throws Exception {
- when(newConnector.validateRepository(any(TaskRepository.class), any(IProgressMonitor.class)))
- .thenThrow(CoreException.class);
+ when(newConnector.validateRepository(any(TaskRepository.class), any(IProgressMonitor.class))).thenThrow(
+ new CoreException(new Status(0, "org.eclipse.mylyn.tasks.ui.tests", 0, "Error", new Exception())));
assertMigrateConnectors();
verify(migrationUi).warnOfValidationFailure(ImmutableList.of(migratedRepository));
}

Back to the top