use of org.eclipse.sw360.fossology.config.FossologySettings in project sw360portal by sw360.
the class RealSshConnectionUtils method getTrustingJSchSessionFactory.
static JSchSessionProvider getTrustingJSchSessionFactory() {
FossologyFingerPrintRepository keyConnector = mock(FossologyFingerPrintRepository.class);
FossologyHostKeyRepository hostKeyRepository = spy(new FossologyHostKeyRepository(keyConnector));
doReturn(HostKeyRepository.OK).when(hostKeyRepository).check(anyString(), any(byte[].class));
return new JSchSessionProvider(new FossologySettings(), hostKeyRepository);
}
Aggregations