public class KnownHostsProviderTestCase extends org.codehaus.plexus.PlexusTestCase
Modifier and Type | Field and Description |
---|---|
protected KnownHostsProvider |
changedHostsProvider |
protected KnownHostsProvider |
failHostsProvider |
protected KnownHostsProvider |
okHostsProvider |
Constructor and Description |
---|
KnownHostsProviderTestCase() |
Modifier and Type | Method and Description |
---|---|
protected void |
setUp() |
void |
testChangedKey()
tests what happens if the remote host has changed since being recorded.
|
void |
testCorrectKey()
tests what happens if the remote host has the expected key
|
void |
testIncorrectKey()
tests what happens if the remote host has a different key than the one
we expect
|
customizeComponentConfiguration, customizeContainerConfiguration, customizeContext, getBasedir, getClassLoader, getConfiguration, getConfiguration, getConfigurationName, getContainer, getCustomConfigurationName, getResourceAsStream, getTestConfiguration, getTestConfiguration, getTestFile, getTestFile, getTestPath, getTestPath, lookup, lookup, lookup, lookup, release, setupContainer, tearDown
assertEquals, assertEquals, assertEquals, assertEquals, assertEquals, assertEquals, assertEquals, assertEquals, assertEquals, assertEquals, assertEquals, assertEquals, assertEquals, assertEquals, assertEquals, assertEquals, assertEquals, assertEquals, assertEquals, assertEquals, assertFalse, assertFalse, assertNotNull, assertNotNull, assertNotSame, assertNotSame, assertNull, assertNull, assertSame, assertSame, assertTrue, assertTrue, countTestCases, createResult, fail, fail, failNotEquals, failNotSame, failSame, format, getName, run, run, runBare, runTest, setName, toString
protected KnownHostsProvider okHostsProvider
protected KnownHostsProvider failHostsProvider
protected KnownHostsProvider changedHostsProvider
public KnownHostsProviderTestCase()
public void testIncorrectKey() throws Exception
Exception
- on errorpublic void testChangedKey() throws Exception
Exception
- on errorpublic void testCorrectKey() throws Exception
Exception
- on errorCopyright © 2003–2014 The Apache Software Foundation. All rights reserved.