From 1c8cc0e893a7dd0bd9df9199bc3b8eeda3ba142c Mon Sep 17 00:00:00 2001 From: Rogiel Date: Tue, 7 Feb 2012 16:52:28 -0200 Subject: [PATCH] Fixes a compiler warning at ChannelCopyTest class --- .../httpchannel/wirecopy/ChannelCopyTest.java | 16 +++++++++++----- 1 file changed, 11 insertions(+), 5 deletions(-) diff --git a/httpchannel-channelcopy/src/test/java/com/rogiel/httpchannel/wirecopy/ChannelCopyTest.java b/httpchannel-channelcopy/src/test/java/com/rogiel/httpchannel/wirecopy/ChannelCopyTest.java index 9a0474e..ad38060 100644 --- a/httpchannel-channelcopy/src/test/java/com/rogiel/httpchannel/wirecopy/ChannelCopyTest.java +++ b/httpchannel-channelcopy/src/test/java/com/rogiel/httpchannel/wirecopy/ChannelCopyTest.java @@ -19,20 +19,26 @@ package com.rogiel.httpchannel.wirecopy; import java.io.IOException; +import java.net.URI; import java.nio.file.Paths; +import java.util.List; import org.junit.Test; import com.rogiel.httpchannel.copy.ChannelCopy; -import com.rogiel.httpchannel.service.megaupload.MegaUploadService; -import com.rogiel.httpchannel.service.multiupload.MultiUploadService; +import com.rogiel.httpchannel.service.ServiceID; +import com.rogiel.httpchannel.service.helper.Services; public class ChannelCopyTest { @Test public void testWireCopy() throws IOException { final ChannelCopy copy = new ChannelCopy(Paths.get("pom.xml")); - copy.addOutput(new MegaUploadService()); - copy.addOutput(new MultiUploadService()); - System.out.println(copy.call()); + + copy.addOutput(Services.getUploadService(ServiceID.create("megaupload"))); + copy.addOutput(Services.getUploadService(ServiceID.create("hotfile"))); + copy.addOutput(Services.getUploadService(ServiceID.create("depositfiles"))); + + final List downloadUris = copy.call(); + System.out.println(downloadUris); } }