|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object junit.framework.Assert junit.framework.TestCase org.codehaus.plexus.PlexusTestCase org.apache.maven.wagon.providers.ssh.knownhost.KnownHostsProviderTestCase
public class KnownHostsProviderTestCase
Field Summary | |
---|---|
protected KnownHostsProvider |
changedHostsProvider
|
protected KnownHostsProvider |
failHostsProvider
|
protected KnownHostsProvider |
okHostsProvider
|
Constructor Summary | |
---|---|
KnownHostsProviderTestCase()
|
Method Summary | |
---|---|
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 |
Methods inherited from class org.codehaus.plexus.PlexusTestCase |
---|
customizeComponentConfiguration, customizeContainerConfiguration, customizeContext, getBasedir, getClassLoader, getConfiguration, getConfiguration, getConfigurationName, getContainer, getCustomConfigurationName, getResourceAsStream, getTestConfiguration, getTestConfiguration, getTestFile, getTestFile, getTestPath, getTestPath, lookup, lookup, lookup, lookup, release, setupContainer, tearDown |
Methods inherited from class junit.framework.TestCase |
---|
countTestCases, createResult, getName, run, run, runBare, runTest, setName, toString |
Methods inherited from class junit.framework.Assert |
---|
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, fail, fail, failNotEquals, failNotSame, failSame, format |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait |
Field Detail |
---|
protected KnownHostsProvider okHostsProvider
protected KnownHostsProvider failHostsProvider
protected KnownHostsProvider changedHostsProvider
Constructor Detail |
---|
public KnownHostsProviderTestCase()
Method Detail |
---|
public void testIncorrectKey() throws Exception
Exception
- on errorpublic void testChangedKey() throws Exception
Exception
- on errorpublic void testCorrectKey() throws Exception
Exception
- on errorprotected void setUp() throws Exception
setUp
in class org.codehaus.plexus.PlexusTestCase
Exception
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |