mirror of
https://github.com/Rogiel/httpchannel
synced 2025-12-05 23:22:51 +00:00
Fixes a compiler warning at ChannelCopyTest class
This commit is contained in:
@@ -19,20 +19,26 @@
|
|||||||
package com.rogiel.httpchannel.wirecopy;
|
package com.rogiel.httpchannel.wirecopy;
|
||||||
|
|
||||||
import java.io.IOException;
|
import java.io.IOException;
|
||||||
|
import java.net.URI;
|
||||||
import java.nio.file.Paths;
|
import java.nio.file.Paths;
|
||||||
|
import java.util.List;
|
||||||
|
|
||||||
import org.junit.Test;
|
import org.junit.Test;
|
||||||
|
|
||||||
import com.rogiel.httpchannel.copy.ChannelCopy;
|
import com.rogiel.httpchannel.copy.ChannelCopy;
|
||||||
import com.rogiel.httpchannel.service.megaupload.MegaUploadService;
|
import com.rogiel.httpchannel.service.ServiceID;
|
||||||
import com.rogiel.httpchannel.service.multiupload.MultiUploadService;
|
import com.rogiel.httpchannel.service.helper.Services;
|
||||||
|
|
||||||
public class ChannelCopyTest {
|
public class ChannelCopyTest {
|
||||||
@Test
|
@Test
|
||||||
public void testWireCopy() throws IOException {
|
public void testWireCopy() throws IOException {
|
||||||
final ChannelCopy copy = new ChannelCopy(Paths.get("pom.xml"));
|
final ChannelCopy copy = new ChannelCopy(Paths.get("pom.xml"));
|
||||||
copy.addOutput(new MegaUploadService());
|
|
||||||
copy.addOutput(new MultiUploadService());
|
copy.addOutput(Services.getUploadService(ServiceID.create("megaupload")));
|
||||||
System.out.println(copy.call());
|
copy.addOutput(Services.getUploadService(ServiceID.create("hotfile")));
|
||||||
|
copy.addOutput(Services.getUploadService(ServiceID.create("depositfiles")));
|
||||||
|
|
||||||
|
final List<URI> downloadUris = copy.call();
|
||||||
|
System.out.println(downloadUris);
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|||||||
Reference in New Issue
Block a user