gov.nasa.pds.tools.label.validate
Class ElementValidatorTest

java.lang.Object
  extended by junit.framework.Assert
      extended by junit.framework.TestCase
          extended by gov.nasa.pds.tools.BaseTestCase
              extended by 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
ElementValidatorTest()
           
 
Method Summary
 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
countTestCases, createResult, getName, run, run, runBare, runTest, setName, setUp, tearDown, 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, failNotEquals, failNotSame, failSame, format
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
 

Constructor Detail

ElementValidatorTest

public ElementValidatorTest()
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


Copyright © 2005-2011 Planetary Data System. All Rights Reserved.