use of org.sagebionetworks.bridge.config.BridgeConfig in project BridgeServer2 by Sage-Bionetworks.
the class ParticipantVersionServiceTest method before.
@BeforeMethod
public void before() {
MockitoAnnotations.initMocks(this);
// Mock config. This is done separately because we need to set mock config params.
BridgeConfig mockConfig = mock(BridgeConfig.class);
when(mockConfig.getProperty(BridgeConstants.CONFIG_KEY_WORKER_SQS_URL)).thenReturn(WORKER_QUEUE_URL);
participantVersionService.setConfig(mockConfig);
// Mock app service.
app = TestUtils.getValidApp(ParticipantVersionServiceTest.class);
app.setExporter3Enabled(true);
when(mockAppService.getApp(TestConstants.TEST_APP_ID)).thenReturn(app);
}
use of org.sagebionetworks.bridge.config.BridgeConfig in project BridgeServer2 by Sage-Bionetworks.
the class UploadServiceUploadCompleteTest method setup.
@BeforeMethod
public void setup() {
MockitoAnnotations.initMocks(this);
// Mock config. This is done separately because we need to set mock config params.
BridgeConfig mockConfig = mock(BridgeConfig.class);
when(mockConfig.getProperty(UploadService.CONFIG_KEY_UPLOAD_BUCKET)).thenReturn(TEST_BUCKET);
svc.setConfig(mockConfig);
// Mock app service. Exporter 3 is disabled for most of the tests.
app = TestUtils.getValidApp(Exporter3ServiceTest.class);
app.setExporter3Enabled(false);
when(mockAppService.getApp(TestConstants.TEST_APP_ID)).thenReturn(app);
}
Aggregations