|
||||||||||
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.TestNcWriteVariable
public class TestNcWriteVariable
This class is a unit test suite to verify that the NcDefineDimension command operates correctly.
Copyright 2010, CSIRO Australia All rights reserved.
Constructor Summary | |
---|---|
TestNcWriteVariable()
|
Method Summary | |
---|---|
protected void |
setUp()
|
protected void |
tearDown()
|
void |
testConvertStringsToRanges()
Check that the convertStringsToRanges copes with ranges and single values. |
void |
testConvertStringsWithSpacesToRanges()
Check that the convertStringsToRanges copes with strings with spaces. |
void |
testCreateOptions()
Test that the commands options are used. |
void |
testCreateOriginListSingle()
Test the creation of an origin list for a single range |
void |
testCreateOriginListThreeRange()
Test the creation of an origin list for a three dimension range |
void |
testCreateOriginListTwoRange()
Test the creation of an origin list for a two dimension range |
void |
testExecute()
|
void |
testExecuteValidCommand()
Test execute a valid NcWriteVariable command |
void |
testExecuteValidCommandwithDoubleVar()
Test execute a valid NcWriteVariable command using Double datatype |
void |
testExecuteValidCommandwithIntVar()
Test execute a valid NcWriteVariable command using Long datatype |
void |
testExecuteWithValidIuputFile()
Test command execution with a valid input file |
void |
testFillInvalidRange()
Test execute command by providing incorrect fillRange |
void |
testFillValidRange()
Test validate command with a valid fillRange |
void |
testInvalidOptionType()
Test invalid fillRange option |
void |
testLookupRangeChar()
Test execute a valid character range lookup |
void |
testLookupRangeIntegral()
Test execute a valid integral range lookup |
void |
testLookupRangeNumeric()
Test execute a valid numeric range lookup |
void |
testMismatchedFillRange()
Test execute with a number of entries in fillrange that does not match the variables dimensions |
void |
testMissingRequiredOption()
Test required option |
void |
testSplitRange()
Test the splitRange function can cope with negative lookups |
void |
testThreeDimNCVariable()
Test create a Variable with three Dimensions |
void |
testValidIuputFileName()
Test validate command with valid and invalid file names |
void |
testWriteDataBinary()
Test execute a valid integral range lookup |
void |
testWriteToInvalidVariable()
Test running command given an invalid Variable name. |
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 TestNcWriteVariable()
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 void testConvertStringsToRanges() throws Exception
Exception
- If there is an unexpected issuepublic void testConvertStringsWithSpacesToRanges() throws Exception
Exception
- If there is an unexpected issuepublic void testSplitRange()
public void testCreateOriginListSingle() throws Exception
Exception
- if the range is invalidpublic void testCreateOriginListTwoRange() throws Exception
Exception
- if the range is invalidpublic void testCreateOriginListThreeRange() throws Exception
Exception
- if the range is invalidpublic void testExecute()
public final void testCreateOptions()
public final void testMissingRequiredOption()
public final void testValidIuputFileName()
public final void testExecuteWithValidIuputFile() throws Exception
Exception
public final void testInvalidOptionType()
public final void testWriteToInvalidVariable() throws Exception
Exception
public final void testFillValidRange()
public final void testFillInvalidRange() throws Exception
Exception
public final void testMismatchedFillRange() throws Exception
Exception
public final void testExecuteValidCommand() throws Exception
Exception
public final void testExecuteValidCommandwithDoubleVar() throws Exception
Exception
public final void testExecuteValidCommandwithIntVar() throws Exception
Exception
public final void testThreeDimNCVariable() throws Exception
Exception
public final void testLookupRangeIntegral()
public final void testLookupRangeNumeric()
public final void testLookupRangeChar()
public final void testWriteDataBinary()
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |