use of edu.harvard.iq.dataverse.datacapturemodule.DataCaptureModuleServiceBean in project dataverse by IQSS.
the class RequestRsyncScriptCommandTest method setUp.
@Before
public void setUp() {
testEngine = new TestDataverseEngine(new TestCommandContext() {
@Override
public DataCaptureModuleServiceBean dataCaptureModule() {
return new DataCaptureModuleServiceBean() {
@Override
public UploadRequestResponse requestRsyncScriptCreation(String jsonString, String dcmBaseUrl) {
return new UploadRequestResponse(200, "myResponse");
}
@Override
public ScriptRequestResponse retreiveRequestedRsyncScript(String datasetIdentifier, String dcmBaseUrl) {
int httpStatusCode = 200;
long userId = 123l;
String script = "theScript";
ScriptRequestResponse scriptRequestResponse = new ScriptRequestResponse(httpStatusCode, datasetIdentifier, userId, script);
return scriptRequestResponse;
}
};
}
@Override
public SettingsServiceBean settings() {
return new MockSettingsSvc();
}
});
}
Aggregations