git-svn-id: http://svn.research-infrastructures.eu/public/d4science/gcube/trunk/data-transfer/data-transfer-library@148794 82a268e6-3cf1-43bd-a215-b396298e98cf
This commit is contained in:
parent
700e759ef7
commit
707f249c26
|
@ -54,7 +54,7 @@ public class TestClientCalls {
|
|||
dest.setSubFolder("bla/bla/bllaaa");
|
||||
dest.setOnExistingFileName(DestinationClashPolicy.ADD_SUFFIX);
|
||||
dest.setOnExistingSubFolder(DestinationClashPolicy.APPEND);
|
||||
TransferRequest request= new TransferRequest("", new HttpDownloadSettings(new URL("http://goo.gl/H4lDjo"), HttpDownloadOptions.DEFAULT),dest);
|
||||
TransferRequest request= new TransferRequest("", new HttpDownloadSettings(new URL("http://no.com"), HttpDownloadOptions.DEFAULT),dest);
|
||||
System.out.println("Submitting "+request);
|
||||
TransferTicket ticket=client.submit(request);
|
||||
System.out.println("Ticket is "+ticket);
|
||||
|
|
|
@ -56,7 +56,7 @@ public class TransfererTest {
|
|||
|
||||
@Test
|
||||
public void httpUrl() throws MalformedURLException, InvalidSourceException, SourceNotSetException, FailedTransferException, InitializationException, InvalidDestinationException, DestinationNotSetException{
|
||||
String link="http://goo.gl/oLP7zG";
|
||||
String link="http://maven.research-infrastructures.eu/nexus/service/local/artifact/maven/redirect?r=central&g=org.apache.commons&a=commons-io&v=1.3.2&e=jar&c=javadoc";
|
||||
System.out.println(client.httpSource(link,new Destination("Some import")));
|
||||
}
|
||||
|
||||
|
@ -95,6 +95,6 @@ public class TransfererTest {
|
|||
public void decompressPlugin() throws InvalidSourceException, SourceNotSetException, FailedTransferException, InitializationException, InvalidDestinationException, DestinationNotSetException{
|
||||
HashMap<String,String> invocationParams=new HashMap<String,String>();
|
||||
invocationParams.put("SOURCE_ARCHIVE", PluginInvocation.DESTINATION_FILE_PATH);
|
||||
client.localFile(new File("/home/fabio/workspaces/home-library-jcr-PRE-PROD.jar"), new Destination("MyJar"),Collections.singleton(new PluginInvocation("DECOMPRESS", invocationParams)));
|
||||
client.localFile(new File("/home/fabio/eclipse/Eclipse-mars/lombok.jar"), new Destination("MyJar"),Collections.singleton(new PluginInvocation("DECOMPRESS", invocationParams)));
|
||||
}
|
||||
}
|
||||
|
|
Loading…
Reference in New Issue