au.csiro.netcdf
Class TestCommandLineRunner

java.lang.Object
  extended by junit.framework.Assert
      extended by junit.framework.TestCase
          extended by au.csiro.netcdf.TestCommandLineRunner
All Implemented Interfaces:
junit.framework.Test

public class TestCommandLineRunner
extends junit.framework.TestCase

This class is a unit test suite to verify that the NetCDFTool operates correctly.

Copyright 2010, CSIRO Australia All rights reserved.

Version:
$Revision: 78 $ $Date: 2010-07-24 16:23:13 +1000 (Sat, 24 Jul 2010) $
Author:
Robert Bridle on 17/03/2010

Nested Class Summary
protected static class TestCommandLineRunner.ExitException
          Exit exception used for catching system exits.
 
Constructor Summary
TestCommandLineRunner()
           
 
Method Summary
protected  void setUp()
           
protected  void tearDown()
           
 void testMainMethodInvalidCommand()
          Test execution of the main method with an invalid command.
 void testMainMethodValidCommandInvalidArgs()
          Test execution of the main method with a valid command but with invalid arguments.
 void testMainMethodValidCommandValidArgsInvalidContents()
          Test execution of the main method with a valid command and valid arguments but invalid contents.
 
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
 

Constructor Detail

TestCommandLineRunner

public TestCommandLineRunner()
Method Detail

setUp

protected void setUp()
              throws Exception
Overrides:
setUp in class junit.framework.TestCase
Throws:
Exception

tearDown

protected void tearDown()
                 throws Exception
Overrides:
tearDown in class junit.framework.TestCase
Throws:
Exception

testMainMethodInvalidCommand

public final void testMainMethodInvalidCommand()
Test execution of the main method with an invalid command.


testMainMethodValidCommandInvalidArgs

public final void testMainMethodValidCommandInvalidArgs()
Test execution of the main method with a valid command but with invalid arguments.


testMainMethodValidCommandValidArgsInvalidContents

public final void testMainMethodValidCommandValidArgsInvalidContents()
                                                              throws IOException
Test execution of the main method with a valid command and valid arguments but invalid contents.

Throws:
IOException


Copyright © 2010. All Rights Reserved.