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
|
createContainerInstance, customizeContext, customizeContext, getBasedir, getClassLoader, getConfiguration, getConfiguration, getContainer, getCustomConfiguration, getResourceAsStream, getTestFile, getTestFile, getTestPath, getTestPath, lookup, lookup, release, tearDownassertEquals, 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, toStringprotected KnownHostsProvider okHostsProvider
protected KnownHostsProvider failHostsProvider
protected KnownHostsProvider changedHostsProvider
public void testIncorrectKey()
throws java.lang.Exception
java.lang.Exception - on errorpublic void testChangedKey()
throws java.lang.Exception
java.lang.Exception - on errorpublic void testCorrectKey()
throws java.lang.Exception
java.lang.Exception - on errorprotected void setUp()
throws java.lang.Exception
setUp in class org.codehaus.plexus.PlexusTestCasejava.lang.ExceptionCopyright © 2003-2013. All Rights Reserved.