|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectjunit.framework.Assert
junit.framework.TestCase
au.csiro.netcdf.TestNcDefineVariable
public class TestNcDefineVariable
This class is a unit test suite to verify that the NcDefineVariable command operates correctly.
Copyright 2010, CSIRO Australia All rights reserved.
Field Summary | |
---|---|
static String |
VARIABLE_ATTRIBUTES
The name of the command line option used for specifying the attributes of the variable. |
Constructor Summary | |
---|---|
TestNcDefineVariable()
|
Method Summary | |
---|---|
protected void |
setUp()
|
protected void |
tearDown()
|
void |
testCommandName()
Make sure that the correct command name comes back. |
void |
testCreateOptions()
Test that the commands options are used. |
void |
testFillVar()
Test that fillVar being set to true pads the variable with the fillVar value. |
void |
testGetUsage()
Test the command's usage string |
void |
testIllegalCreateOptions()
Test that the commands options are used only when valid. |
void |
testInvalidVariableAttributesInExecuteCommand()
Test invalid variableAttributes argument. |
void |
testMissingOutputFileNameInExecuteCommand()
Test missing outputFileName argument. |
void |
testMissingRequiredOption()
Test required arguments option |
void |
testNonExistentOutputFileNameInExecuteCommand()
Test a non-existent outputFileName argument. |
void |
testStandardInputComplexAttribute()
Test setting a complex global attribute via standard input |
void |
testValidCommand()
Test a valid command creates a netCDF file with the specified Variable name |
void |
testValidVariableAttributesInExecuteCommand()
Test valid variableAttributes argument. |
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 |
---|
public static final String VARIABLE_ATTRIBUTES
Constructor Detail |
---|
public TestNcDefineVariable()
Method Detail |
---|
protected void setUp() throws Exception
setUp
in class junit.framework.TestCase
Exception
protected void tearDown() throws Exception
tearDown
in class junit.framework.TestCase
Exception
public final void testCreateOptions()
public final void testIllegalCreateOptions()
public final void testValidCommand() throws Exception
Exception
public void testNonExistentOutputFileNameInExecuteCommand() throws Exception
Exception
public void testMissingOutputFileNameInExecuteCommand() throws Exception
Exception
public void testValidVariableAttributesInExecuteCommand() throws Exception
Exception
public void testInvalidVariableAttributesInExecuteCommand() throws Exception
Exception
public final void testFillVar() throws Exception
Exception
public final void testMissingRequiredOption()
public void testCommandName()
public final void testGetUsage()
public final void testStandardInputComplexAttribute() throws IOException
IOException
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |