|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object junit.framework.Assert junit.framework.TestCase au.csiro.netcdf.TestNcDefineAttributes
public class TestNcDefineAttributes
This class is a unit test suite to verify that the NcDefineAttributes command operates correctly.
Copyright 2010, CSIRO Australia
Constructor Summary | |
---|---|
TestNcDefineAttributes()
|
Method Summary | |
---|---|
protected void |
setUp()
|
protected void |
tearDown()
|
void |
testCreateOptions()
Test that the commands options are used. |
void |
testDeleteGlobalAttribute()
Test delete a global attribute |
void |
testDeleteVariableAttribute()
Test delete a variable attribute |
void |
testExecuteExistingFile()
Test a valid command creates a netCDF file with the specified Dimension name and size |
void |
testExecuteInvalidType()
Test a valid command creates a netCDF file with an integer attribute |
void |
testExecuteNoAttr()
Test a valid command creates a netCDF file with the specified Dimension name and size |
void |
testExecuteValidFloatAttr()
Test a valid command creates a netCDF file with a float attribute |
void |
testExecuteValidIntAttr()
Test a valid command creates a netCDF file with an integer attribute |
void |
testExecuteValidMultiAttr()
Test a valid command creates a netCDF file with the specified Dimension name and size |
void |
testExecuteValidShortAttr()
Test a valid command creates a netCDF file with a short attribute |
void |
testGetUsage()
Test the command's usage string |
void |
testInvalidAttr()
Test that an invalid attribute is rejected |
void |
testMissingAttr()
Test that a missing optional attribute is accepted |
void |
testMissingRequiredOption()
Test that required options are reported if missing |
void |
testStandardInputAttribute()
Test setting global attribute via standard input |
void |
testStandardInputComplexAttribute()
Test setting a complex global attribute via standard input |
void |
testVariableAttribute()
Test adding attributes to an existing variable |
void |
testVariableAttributeNoVar()
Test adding attributes to a non-existing variable |
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 |
---|
public TestNcDefineAttributes()
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 testExecuteNoAttr()
public final void testExecuteExistingFile()
public final void testExecuteValidMultiAttr()
public final void testExecuteValidFloatAttr() throws Exception
Exception
- If there is an error running the testpublic final void testExecuteValidShortAttr() throws Exception
Exception
- If there is an error running the testpublic final void testExecuteValidIntAttr() throws Exception
Exception
- If there is an error running the testpublic final void testExecuteInvalidType() throws Exception
Exception
- If there is an error running the testpublic final void testMissingRequiredOption()
public final void testInvalidAttr()
public final void testMissingAttr()
public final void testGetUsage()
public final void testStandardInputAttribute() throws IOException
IOException
public final void testStandardInputComplexAttribute() throws IOException
IOException
public final void testDeleteGlobalAttribute() throws Exception
Exception
public final void testDeleteVariableAttribute() throws IOException
IOException
public final void testVariableAttribute() throws IOException
IOException
public final void testVariableAttributeNoVar() throws Exception
Exception
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |