Skip to main content
summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorspingel2008-11-03 04:50:18 +0000
committerspingel2008-11-03 04:50:18 +0000
commit7aa4dc5daa141a2e5615f1442c4a9aa520fd39e1 (patch)
tree374f6febe07901c7d799debdfa14fa8a9ab6321c /org.eclipse.mylyn.bugzilla.tests
parentc0aa736fce6ba6572d9271ed586a4aef62ed3cad (diff)
downloadorg.eclipse.mylyn.tasks-7aa4dc5daa141a2e5615f1442c4a9aa520fd39e1.tar.gz
org.eclipse.mylyn.tasks-7aa4dc5daa141a2e5615f1442c4a9aa520fd39e1.tar.xz
org.eclipse.mylyn.tasks-7aa4dc5daa141a2e5615f1442c4a9aa520fd39e1.zip
NEW - bug 253043: [api] generalize common connector functionality
https://bugs.eclipse.org/bugs/show_bug.cgi?id=253043
Diffstat (limited to 'org.eclipse.mylyn.bugzilla.tests')
-rw-r--r--org.eclipse.mylyn.bugzilla.tests/src/org/eclipse/mylyn/bugzilla/tests/BugzillaRepositoryConnectorTest2.java6
1 files changed, 3 insertions, 3 deletions
diff --git a/org.eclipse.mylyn.bugzilla.tests/src/org/eclipse/mylyn/bugzilla/tests/BugzillaRepositoryConnectorTest2.java b/org.eclipse.mylyn.bugzilla.tests/src/org/eclipse/mylyn/bugzilla/tests/BugzillaRepositoryConnectorTest2.java
index c072f396a..ee0689a66 100644
--- a/org.eclipse.mylyn.bugzilla.tests/src/org/eclipse/mylyn/bugzilla/tests/BugzillaRepositoryConnectorTest2.java
+++ b/org.eclipse.mylyn.bugzilla.tests/src/org/eclipse/mylyn/bugzilla/tests/BugzillaRepositoryConnectorTest2.java
@@ -26,7 +26,6 @@ import org.eclipse.mylyn.commons.net.AuthenticationType;
import org.eclipse.mylyn.internal.bugzilla.core.BugzillaAttribute;
import org.eclipse.mylyn.internal.bugzilla.core.BugzillaClient;
import org.eclipse.mylyn.internal.bugzilla.core.BugzillaCorePlugin;
-import org.eclipse.mylyn.internal.bugzilla.core.BugzillaTaskAttachmentHandler;
import org.eclipse.mylyn.internal.bugzilla.core.IBugzillaConstants;
import org.eclipse.mylyn.internal.context.core.ContextCorePlugin;
import org.eclipse.mylyn.internal.tasks.core.RepositoryQuery;
@@ -39,6 +38,7 @@ import org.eclipse.mylyn.tasks.core.ITask.PriorityLevel;
import org.eclipse.mylyn.tasks.core.ITask.SynchronizationState;
import org.eclipse.mylyn.tasks.core.data.ITaskDataWorkingCopy;
import org.eclipse.mylyn.tasks.core.data.TaskAttachmentMapper;
+import org.eclipse.mylyn.tasks.core.data.TaskAttachmentPartSource;
import org.eclipse.mylyn.tasks.core.data.TaskAttribute;
import org.eclipse.mylyn.tasks.core.data.TaskAttributeMapper;
import org.eclipse.mylyn.tasks.core.data.TaskCommentMapper;
@@ -78,8 +78,8 @@ public class BugzillaRepositoryConnectorTest2 extends AbstractBugzillaTest {
/* Test attempt to upload a non-existent file */
String filePath = "/this/is/not/a/real-file";
- BugzillaTaskAttachmentHandler.AttachmentPartSource source = new BugzillaTaskAttachmentHandler.AttachmentPartSource(
- new FileTaskAttachmentSource(new File(filePath)));
+ TaskAttachmentPartSource source = new TaskAttachmentPartSource(
+ new FileTaskAttachmentSource(new File(filePath)), "real-file");
BugzillaClient client = connector.getClientManager().getClient(repository, new NullProgressMonitor());
try {
client.postAttachment(taskNumber, attachmentMapper.getComment(), attachmentMapper.getDescription(),

Back to the top