use of io.syndesis.server.dao.manager.EncryptionComponent in project syndesis by syndesisio.
the class IntegrationHandlerTest method setUp.
@Before
public void setUp() {
DataManager manager = mock(DataManager.class);
Validator validator = mock(Validator.class);
openShiftService = mock(OpenShiftService.class);
inspectors = mock(Inspectors.class);
handler = new IntegrationHandler(manager, openShiftService, validator, inspectors, new EncryptionComponent(null));
}
use of io.syndesis.server.dao.manager.EncryptionComponent in project syndesis by syndesisio.
the class DataManagerTest method setup.
@Before
public void setup() {
cacheManager = new LRUCacheManager(100);
EncryptionComponent encryptionComponent = new EncryptionComponent(null);
ResourceLoader resourceLoader = new DefaultResourceLoader();
// Create Data Manager
dataManager = new DataManager(cacheManager, Collections.emptyList(), null, encryptionComponent, resourceLoader);
dataManager.init();
dataManager.resetDeploymentData();
}
use of io.syndesis.server.dao.manager.EncryptionComponent in project syndesis by syndesisio.
the class MetricsCollectorTest method before.
@Before
public void before() throws IOException, ParseException {
JdbcDataSource ds = new JdbcDataSource();
ds.setURL("jdbc:h2:mem:test;DB_CLOSE_DELAY=-1;MODE=PostgreSQL");
DBI dbi = new DBI(ds);
this.jsondb = new SqlJsonDB(dbi, null, Arrays.asList(new Index("/pair", "key")));
try {
this.jsondb.dropTables();
} catch (Exception e) {
}
this.jsondb.createTables();
jsondbRM = new JsonDBRawMetrics(jsondb);
load();
CacheManager cacheManager = new LRUCacheManager(100);
EncryptionComponent encryptionComponent = new EncryptionComponent(null);
ResourceLoader resourceLoader = new DefaultResourceLoader();
// Create Data Manager
dataManager = new DataManager(cacheManager, Collections.emptyList(), null, encryptionComponent, resourceLoader);
intMH = new IntegrationMetricsHandler(dataManager);
}
Aggregations