suvi.testapp
Class CommandsTest

java.lang.Object
  |
  +--junit.framework.Assert
        |
        +--junit.framework.TestCase
              |
              +--suvi.testapp.CommandsTest
All Implemented Interfaces:
junit.framework.Test

public class CommandsTest
extends junit.framework.TestCase

A [JUnit] test for Commands.


Constructor Summary
CommandsTest()
           
 
Method Summary
 void testAllLegalArgs()
          Tests, that given essentially all legal arguments, the Commands-class produces expected results.
 void testFilesOnly()
          Tests that given only "files" as arguments, the result produced by the Commands-class is the expected result.
 void testIllegalArgs()
          Tests that given illegal arguments, the Commands-class throws an exception, as expected.
 void testNoArgs()
          Tests that given no arguments, the Commands-class produces the expected results.
 void testSomeLegalArgs()
          Tests that given some legal arguments the Commands-class produces the expected results.
 
Methods inherited from class junit.framework.TestCase
countTestCases, createResult, getName, run, run, runBare, runTest, setName, setUp, tearDown, 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
 

Constructor Detail

CommandsTest

public CommandsTest()
Method Detail

testAllLegalArgs

public void testAllLegalArgs()

Tests, that given essentially all legal arguments, the Commands-class produces expected results.


testSomeLegalArgs

public void testSomeLegalArgs()

Tests that given some legal arguments the Commands-class produces the expected results.


testFilesOnly

public void testFilesOnly()

Tests that given only "files" as arguments, the result produced by the Commands-class is the expected result.


testNoArgs

public void testNoArgs()

Tests that given no arguments, the Commands-class produces the expected results.


testIllegalArgs

public void testIllegalArgs()

Tests that given illegal arguments, the Commands-class throws an exception, as expected.