public class KnownHostsProviderTestCase extends 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
countTestCases, createResult, getName, run, run, runBare, runTest, setName, toString
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
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 errorprotected void setUp() throws Exception
setUp
in class PlexusTestCase
Exception
Copyright © 2003–2013 The Apache Software Foundation. All rights reserved.