frysk.expunit
Class TestExpect

java.lang.Object
  extended by junit.framework.Assert
      extended by junit.framework.TestCase
          extended by frysk.junit.TestCase
              extended by frysk.expunit.TestExpect
All Implemented Interfaces:
Test

public class TestExpect
extends TestCase

Test ExpectUnit framework.


Field Summary
private  Expect e
           
 
Constructor Summary
TestExpect()
           
 
Method Summary
 void setUp()
          Sets up the fixture, for example, open a network connection.
 void tearDown()
          Tears down the fixture, for example, close a network connection.
 void testAssertEOF()
          Check that short hand EOF works.
 void testBash()
          Try interacting with bash, check here that the pseudo-terminal is correctly configured - that no double echo is occuring for instance.
 void testExit()
          Check the exit status.
 void testKill()
          Check the signal status.
 void testShell()
           
 void testTimeout()
          Try a timeout, that passes.
 void testUnderBash()
          Try a command that is invoked via bash, bash will cause globbing et.al.
 
Methods inherited from class frysk.junit.TestCase
assertEquals, assertEquals, assertEquals, assertEquals, assertEquals, getTimeoutMilliseconds, getTimeoutSeconds, missing32or64, unresolved, unresolvedOffUtrace, unresolvedOn32On64, unresolvedOnIA32, unresolvedOnPPC, unresolvedOnUtrace, unresolvedOnx8664, unsupported
 
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, 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

e

private Expect e
Constructor Detail

TestExpect

public TestExpect()
Method Detail

setUp

public void setUp()
Description copied from class: TestCase
Sets up the fixture, for example, open a network connection. This method is called before a test is executed.

Overrides:
setUp in class TestCase

tearDown

public void tearDown()
Description copied from class: TestCase
Tears down the fixture, for example, close a network connection. This method is called after a test is executed.

Overrides:
tearDown in class TestCase

testAssertEOF

public void testAssertEOF()
Check that short hand EOF works.


testTimeout

public void testTimeout()
Try a timeout, that passes.


testExit

public void testExit()
Check the exit status.


testKill

public void testKill()
Check the signal status.


testUnderBash

public void testUnderBash()
Try a command that is invoked via bash, bash will cause globbing et.al. to occure. Expands the shell PID.


testBash

public void testBash()
Try interacting with bash, check here that the pseudo-terminal is correctly configured - that no double echo is occuring for instance.


testShell

public void testShell()