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:
junit.framework.Test

public class KnownHostsProviderTestCase
extends org.codehaus.plexus.PlexusTestCase


Field Summary
protected  org.apache.maven.wagon.providers.ssh.knownhost.KnownHostsProvider changedHostsProvider
           
protected  org.apache.maven.wagon.providers.ssh.knownhost.KnownHostsProvider failHostsProvider
           
protected  org.apache.maven.wagon.providers.ssh.knownhost.KnownHostsProvider okHostsProvider
           
 
Fields inherited from class org.codehaus.plexus.PlexusTestCase
basedir, container
 
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
createContainerInstance, customizeContext, customizeContext, getBasedir, getClassLoader, getConfiguration, getConfiguration, getContainer, getCustomConfiguration, getResourceAsStream, getTestFile, getTestFile, getTestPath, getTestPath, lookup, lookup, release, 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
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
 

Field Detail

okHostsProvider

protected org.apache.maven.wagon.providers.ssh.knownhost.KnownHostsProvider okHostsProvider

failHostsProvider

protected org.apache.maven.wagon.providers.ssh.knownhost.KnownHostsProvider failHostsProvider

changedHostsProvider

protected org.apache.maven.wagon.providers.ssh.knownhost.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.