refactoring code JUnitTest
This commit is contained in:
parent
56754bfb50
commit
6cc15a5f55
|
@ -31,13 +31,13 @@ public class HLcheckTest {
|
|||
private String absoluteLocalPath;
|
||||
private String newFilePath="src/test/resources";
|
||||
private IClient client;
|
||||
private String scope="/gcube";//"/d4science.research-infrastructures.eu";//"/d4science.research-infrastructures.eu";//Costants.DEFAULT_SCOPE_STRING;//"/gcube/devsec";//"/d4science.research-infrastructures.eu";//"/d4science.research-infrastructures.eu";//"/d4science.research-infrastructures.eu";//"/d4science.research-infrastructures.eu";// //"/CNR.it";// ///gcube/devsec/devVRE"; //"/CNR.it/ISTI";//"/gcube/devsec/devVRE"; // /d4science.research-infrastructures.eu"; //"/d4science.research-infrastructures.eu"; //"/CNR.it/ISTI";//
|
||||
private String scope="/d4science.research-infrastructures.eu";//"/gcube";//"/d4science.research-infrastructures.eu";//Costants.DEFAULT_SCOPE_STRING;//"/gcube/devsec";//"/d4science.research-infrastructures.eu";//"/d4science.research-infrastructures.eu";//"/d4science.research-infrastructures.eu";//"/d4science.research-infrastructures.eu";// //"/CNR.it";// ///gcube/devsec/devVRE"; //"/CNR.it/ISTI";//"/gcube/devsec/devVRE"; // /d4science.research-infrastructures.eu"; //"/d4science.research-infrastructures.eu"; //"/CNR.it/ISTI";//
|
||||
private String serviceClass="org.gcube.portlets.user";//"JUnitTest";
|
||||
private String serviceName="home-library";//"test-home-library";//"StorageManager";
|
||||
private String id;
|
||||
private String id1;
|
||||
|
||||
// @Before
|
||||
@Before
|
||||
public void getClient() throws RemoteBackendException{
|
||||
// ScopeProvider.instance.set(Costants.DEFAULT_SCOPE_STRING);
|
||||
ScopeProvider.instance.set(scope);
|
||||
|
@ -86,11 +86,12 @@ public class HLcheckTest {
|
|||
removeLocalFile();
|
||||
}
|
||||
|
||||
// @Test
|
||||
@Test
|
||||
public void downloadBySpecificIdOnlyForTest() throws RemoteBackendException{
|
||||
// String idReturned=client.get().LFile(newFilePath).RFileById(id);
|
||||
String file="/home/rcirillo-pc/Downloads/ce1159aa-a87f-4074-a3f9-36fe26d62f87-d4science.research-infrastructures.eu-gCubeApps-DESCRAMBLE.zip";
|
||||
String idReturned=client.get().LFile(file).RFile("5f6a1f405b0bde3544cbd3be");
|
||||
// String file="/home/rcirillo-pc/Downloads/ce1159aa-a87f-4074-a3f9-36fe26d62f87-d4science.research-infrastructures.eu-gCubeApps-DESCRAMBLE.zip";
|
||||
String file="/Users/roberto/VivianaOtero/detailed_simulation_4327.csv";
|
||||
String idReturned=client.get().LFile(file).RFile("60830489d56b08199c3407c6");
|
||||
System.out.println("downloadById id: "+idReturned);
|
||||
// File f =new File(newFilePath);
|
||||
File f =new File(file);
|
||||
|
|
Loading…
Reference in New Issue