Skip to main content
summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authormkersten2007-06-22 19:00:26 -0400
committermkersten2007-06-22 19:00:26 -0400
commit09f0db667d81f101a06d6ad664d47d3271371b17 (patch)
treedfafa789f0aafe5e1913031b863b375ecc009acd /org.eclipse.mylyn.trac.tests
parente1302bdc874028bcb074345cdd4fcef3e15d02a7 (diff)
downloadorg.eclipse.mylyn.tasks-09f0db667d81f101a06d6ad664d47d3271371b17.tar.gz
org.eclipse.mylyn.tasks-09f0db667d81f101a06d6ad664d47d3271371b17.tar.xz
org.eclipse.mylyn.tasks-09f0db667d81f101a06d6ad664d47d3271371b17.zip
NEW - bug 193842: [api] review Mylyn 2.0 APIs
https://bugs.eclipse.org/bugs/show_bug.cgi?id=193842
Diffstat (limited to 'org.eclipse.mylyn.trac.tests')
-rw-r--r--org.eclipse.mylyn.trac.tests/src/org/eclipse/mylyn/trac/tests/TracAttachmentHandlerTest.java4
-rw-r--r--org.eclipse.mylyn.trac.tests/src/org/eclipse/mylyn/trac/tests/TracRepositoryConnectorTest.java6
2 files changed, 5 insertions, 5 deletions
diff --git a/org.eclipse.mylyn.trac.tests/src/org/eclipse/mylyn/trac/tests/TracAttachmentHandlerTest.java b/org.eclipse.mylyn.trac.tests/src/org/eclipse/mylyn/trac/tests/TracAttachmentHandlerTest.java
index 40866b31c..4c98481e5 100644
--- a/org.eclipse.mylyn.trac.tests/src/org/eclipse/mylyn/trac/tests/TracAttachmentHandlerTest.java
+++ b/org.eclipse.mylyn.trac.tests/src/org/eclipse/mylyn/trac/tests/TracAttachmentHandlerTest.java
@@ -29,9 +29,9 @@ import org.eclipse.mylyn.internal.trac.core.TracCorePlugin;
import org.eclipse.mylyn.internal.trac.core.TracRepositoryConnector;
import org.eclipse.mylyn.internal.trac.core.TracTask;
import org.eclipse.mylyn.internal.trac.core.ITracClient.Version;
+import org.eclipse.mylyn.tasks.core.AbstractAttachmentHandler;
import org.eclipse.mylyn.tasks.core.AbstractRepositoryConnector;
import org.eclipse.mylyn.tasks.core.FileAttachment;
-import org.eclipse.mylyn.tasks.core.IAttachmentHandler;
import org.eclipse.mylyn.tasks.core.RepositoryTaskData;
import org.eclipse.mylyn.tasks.core.TaskRepository;
import org.eclipse.mylyn.tasks.core.TaskRepositoryManager;
@@ -50,7 +50,7 @@ public class TracAttachmentHandlerTest extends TestCase {
private TracRepositoryConnector connector;
- private IAttachmentHandler attachmentHandler;
+ private AbstractAttachmentHandler attachmentHandler;
private TestData data;
diff --git a/org.eclipse.mylyn.trac.tests/src/org/eclipse/mylyn/trac/tests/TracRepositoryConnectorTest.java b/org.eclipse.mylyn.trac.tests/src/org/eclipse/mylyn/trac/tests/TracRepositoryConnectorTest.java
index 2327845d9..2375d2364 100644
--- a/org.eclipse.mylyn.trac.tests/src/org/eclipse/mylyn/trac/tests/TracRepositoryConnectorTest.java
+++ b/org.eclipse.mylyn.trac.tests/src/org/eclipse/mylyn/trac/tests/TracRepositoryConnectorTest.java
@@ -97,7 +97,7 @@ public class TracRepositoryConnectorTest extends TestCase {
manager.addRepository(repository, TasksUiPlugin.getDefault().getRepositoriesFilePath());
AbstractRepositoryConnector abstractConnector = manager.getRepositoryConnector(kind);
- assertEquals(abstractConnector.getRepositoryType(), kind);
+ assertEquals(abstractConnector.getConnectorKind(), kind);
connector = (TracRepositoryConnector) abstractConnector;
TasksUiPlugin.getSynchronizationManager().setForceSyncExec(true);
@@ -314,7 +314,7 @@ public class TracRepositoryConnectorTest extends TestCase {
sourceContextFile.createNewFile();
sourceContextFile.deleteOnExit();
- assertTrue(connector.attachContext(repository, task, "", new NullProgressMonitor()));
+ assertTrue(connector.getAttachmentHandler().attachContext(repository, task, "", new NullProgressMonitor()));
TasksUiPlugin.getSynchronizationManager().synchronize(connector, task, true, null);
// TODO attachment may have been overridden therefore size may not have changed
@@ -333,7 +333,7 @@ public class TracRepositoryConnectorTest extends TestCase {
sourceContextFile.deleteOnExit();
try {
- connector.attachContext(repository, task, "", new NullProgressMonitor());
+ connector.getAttachmentHandler().attachContext(repository, task, "", new NullProgressMonitor());
fail("expected CoreException"); // operation should not be supported
} catch (CoreException e) {
}

Back to the top