Class ElementValidatorTest
- java.lang.Object
-
- junit.framework.Assert
-
- junit.framework.TestCase
-
- gov.nasa.pds.tools.BaseTestCase
-
- gov.nasa.pds.tools.label.validate.ElementValidatorTest
-
- All Implemented Interfaces:
junit.framework.Test
public class ElementValidatorTest extends BaseTestCase
-
-
Field Summary
-
Fields inherited from class gov.nasa.pds.tools.BaseTestCase
LABEL_DIR, PARSER, RESOLVER, TEST_DIR
-
-
Constructor Summary
Constructors Constructor Description ElementValidatorTest()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description void
testCastError()
void
testInvalidValue()
void
testLongValue()
void
testManipulatedValue()
void
testMissingEquals()
void
testMissingKey()
void
testMissingValue()
void
testNoProbsPastEnd()
void
testNumericExceedsMax()
void
testNumericLessThanMin()
void
testSequence()
void
testSet()
void
testShortValue()
void
testSkipValue()
void
testTypeMismatch()
void
testUnitAllowed()
void
testUnknownDefinition()
void
testUnknownValue()
void
testUnknownValueWInclude()
-
Methods inherited from class gov.nasa.pds.tools.BaseTestCase
assertDoesntHaveProblem, assertHasProblem, assertHasProblem, assertNegative, assertPositive, assertProblemEquals, assertZero, getDictionary, validate
-
Methods inherited from class junit.framework.TestCase
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, countTestCases, createResult, fail, fail, failNotEquals, failNotSame, failSame, format, getName, run, run, runBare, runTest, setName, setUp, tearDown, toString
-
-
-
-
Method Detail
-
testSet
public void testSet() throws gov.nasa.pds.tools.LabelParserException, IOException
- Throws:
gov.nasa.pds.tools.LabelParserException
IOException
-
testUnknownValue
public void testUnknownValue() throws gov.nasa.pds.tools.LabelParserException, IOException
- Throws:
gov.nasa.pds.tools.LabelParserException
IOException
-
testUnknownValueWInclude
public void testUnknownValueWInclude() throws gov.nasa.pds.tools.LabelParserException, IOException
- Throws:
gov.nasa.pds.tools.LabelParserException
IOException
-
testInvalidValue
public void testInvalidValue() throws gov.nasa.pds.tools.LabelParserException, IOException
- Throws:
gov.nasa.pds.tools.LabelParserException
IOException
-
testMissingValue
public void testMissingValue() throws gov.nasa.pds.tools.LabelParserException, IOException
- Throws:
gov.nasa.pds.tools.LabelParserException
IOException
-
testSequence
public void testSequence() throws gov.nasa.pds.tools.LabelParserException, IOException
- Throws:
gov.nasa.pds.tools.LabelParserException
IOException
-
testSkipValue
public void testSkipValue() throws gov.nasa.pds.tools.LabelParserException, IOException
- Throws:
gov.nasa.pds.tools.LabelParserException
IOException
-
testUnitAllowed
public void testUnitAllowed() throws gov.nasa.pds.tools.LabelParserException, IOException
- Throws:
gov.nasa.pds.tools.LabelParserException
IOException
-
testUnknownDefinition
public void testUnknownDefinition() throws gov.nasa.pds.tools.LabelParserException, IOException
- Throws:
gov.nasa.pds.tools.LabelParserException
IOException
-
testMissingKey
public void testMissingKey() throws gov.nasa.pds.tools.LabelParserException, IOException
- Throws:
gov.nasa.pds.tools.LabelParserException
IOException
-
testNumericExceedsMax
public void testNumericExceedsMax() throws gov.nasa.pds.tools.LabelParserException, IOException
- Throws:
gov.nasa.pds.tools.LabelParserException
IOException
-
testNumericLessThanMin
public void testNumericLessThanMin() throws gov.nasa.pds.tools.LabelParserException, IOException
- Throws:
gov.nasa.pds.tools.LabelParserException
IOException
-
testShortValue
public void testShortValue() throws gov.nasa.pds.tools.LabelParserException, IOException
- Throws:
gov.nasa.pds.tools.LabelParserException
IOException
-
testLongValue
public void testLongValue() throws gov.nasa.pds.tools.LabelParserException, IOException
- Throws:
gov.nasa.pds.tools.LabelParserException
IOException
-
testCastError
public void testCastError() throws gov.nasa.pds.tools.LabelParserException, IOException
- Throws:
gov.nasa.pds.tools.LabelParserException
IOException
-
testManipulatedValue
public void testManipulatedValue() throws gov.nasa.pds.tools.LabelParserException, IOException
- Throws:
gov.nasa.pds.tools.LabelParserException
IOException
-
testTypeMismatch
public void testTypeMismatch() throws gov.nasa.pds.tools.LabelParserException, IOException
- Throws:
gov.nasa.pds.tools.LabelParserException
IOException
-
testNoProbsPastEnd
public void testNoProbsPastEnd() throws gov.nasa.pds.tools.LabelParserException, IOException
- Throws:
gov.nasa.pds.tools.LabelParserException
IOException
-
testMissingEquals
public void testMissingEquals() throws gov.nasa.pds.tools.LabelParserException, IOException
- Throws:
gov.nasa.pds.tools.LabelParserException
IOException
-
-