org.apache.maven.wagon.providers.ssh.knownhost

Class KnownHostsProviderTestCase

public class KnownHostsProviderTestCase extends PlexusTestCase

Field Summary
protected KnownHostsProviderchangedHostsProvider
static StringCHANGED_KEY
static StringCORRECT_KEY
protected KnownHostsProviderfailHostsProvider
protected KnownHostsProviderokHostsProvider
Repositorysource
SshWagonwagon
Method Summary
protected voidsetUp()
voidtestChangedKey()
tests what happens if the remote host has changed since being recorded.
voidtestCorrectKey()
tests what happens if the remote host has the expected key
voidtestIncorrectKey()
tests what happens if the remote host has a different key than the one we expect

Field Detail

changedHostsProvider

protected KnownHostsProvider changedHostsProvider

CHANGED_KEY

private static final String CHANGED_KEY

CORRECT_KEY

private static final String CORRECT_KEY

failHostsProvider

protected KnownHostsProvider failHostsProvider

okHostsProvider

protected KnownHostsProvider okHostsProvider

source

private Repository source

wagon

private SshWagon wagon

Method Detail

setUp

protected void setUp()

testChangedKey

public void testChangedKey()
tests what happens if the remote host has changed since being recorded.

Throws: Exception on error

testCorrectKey

public void testCorrectKey()
tests what happens if the remote host has the expected key

Throws: Exception on error

testIncorrectKey

public void testIncorrectKey()
tests what happens if the remote host has a different key than the one we expect

Throws: Exception on error