From 707f249c26d095691bb087170b44da38dc67d7d5 Mon Sep 17 00:00:00 2001 From: Fabio Sinibaldi Date: Wed, 17 May 2017 14:59:28 +0000 Subject: [PATCH] git-svn-id: http://svn.research-infrastructures.eu/public/d4science/gcube/trunk/data-transfer/data-transfer-library@148794 82a268e6-3cf1-43bd-a215-b396298e98cf --- .../java/org/gcube/data/transfer/library/TestClientCalls.java | 2 +- .../java/org/gcube/data/transfer/library/TransfererTest.java | 4 ++-- 2 files changed, 3 insertions(+), 3 deletions(-) diff --git a/src/test/java/org/gcube/data/transfer/library/TestClientCalls.java b/src/test/java/org/gcube/data/transfer/library/TestClientCalls.java index c8faf97..e937df5 100644 --- a/src/test/java/org/gcube/data/transfer/library/TestClientCalls.java +++ b/src/test/java/org/gcube/data/transfer/library/TestClientCalls.java @@ -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); diff --git a/src/test/java/org/gcube/data/transfer/library/TransfererTest.java b/src/test/java/org/gcube/data/transfer/library/TransfererTest.java index ed289f3..f9f8e4f 100644 --- a/src/test/java/org/gcube/data/transfer/library/TransfererTest.java +++ b/src/test/java/org/gcube/data/transfer/library/TransfererTest.java @@ -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 invocationParams=new HashMap(); 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))); } }