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

java.lang.Object
  extended by junit.framework.Assert
      extended by junit.framework.TestCase
          extended by org.codehaus.plexus.PlexusTestCase
              extended by org.apache.maven.wagon.providers.ssh.knownhost.KnownHostsProviderTestCase
All Implemented Interfaces:
Test

public class KnownHostsProviderTestCase
extends org.codehaus.plexus.PlexusTestCase


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

okHostsProvider

protected KnownHostsProvider okHostsProvider

failHostsProvider

protected KnownHostsProvider failHostsProvider

changedHostsProvider

protected KnownHostsProvider changedHostsProvider
Constructor Detail

KnownHostsProviderTestCase

public KnownHostsProviderTestCase()
Method Detail

testIncorrectKey

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

Throws:
Exception - on error

testChangedKey

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

Throws:
Exception - on error

testCorrectKey

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

Throws:
Exception - on error

setUp

protected void setUp()
              throws Exception
Overrides:
setUp in class org.codehaus.plexus.PlexusTestCase
Throws:
Exception


Copyright © 2003-2011 The Apache Software Foundation. All Rights Reserved.