jpl.pds.server
Class LabelQueryHandlerTest

java.lang.Object
  extended by junit.framework.Assert
      extended by junit.framework.TestCase
          extended by jpl.pds.server.LabelQueryHandlerTest
All Implemented Interfaces:
junit.framework.Test

public class LabelQueryHandlerTest
extends junit.framework.TestCase

Unit tests for LabelQueryHandler.

Author:
Kelly.

Field Summary
protected static String LABEL_FILE_NAME
          Name of label file.
protected  File labelFile
          Temporary label file for testing.
protected  File tempDir
          Temporary product dir for testing.
protected static String[] TEST_FILES
          Name of test files.
protected  File[] testFiles
          Temporary test data files for testing.
 
Constructor Summary
LabelQueryHandlerTest(String name)
          Creates a new LabelQueryHandlerTest instance.
 
Method Summary
protected  jpl.eda.xmlquery.XMLQuery createQuery(String filename)
          Create an XML query for a named file.
 void setUp()
           
 void tearDown()
           
 void testHandler()
          Test the label query handler.
 
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, failNotEquals, failNotSame, failSame, format
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
 

Field Detail

tempDir

protected File tempDir
Temporary product dir for testing.


labelFile

protected File labelFile
Temporary label file for testing.


testFiles

protected File[] testFiles
Temporary test data files for testing.


LABEL_FILE_NAME

protected static final String LABEL_FILE_NAME
Name of label file.

See Also:
Constant Field Values

TEST_FILES

protected static final String[] TEST_FILES
Name of test files.

Constructor Detail

LabelQueryHandlerTest

public LabelQueryHandlerTest(String name)
Creates a new LabelQueryHandlerTest instance.

Parameters:
name - a String value.
Method Detail

testHandler

public void testHandler()
                 throws jpl.eda.product.ProductException
Test the label query handler.

Throws:
jpl.eda.product.ProductException - if an error occurs.

setUp

public void setUp()
           throws Exception
Overrides:
setUp in class junit.framework.TestCase
Throws:
Exception

tearDown

public void tearDown()
              throws Exception
Overrides:
tearDown in class junit.framework.TestCase
Throws:
Exception

createQuery

protected jpl.eda.xmlquery.XMLQuery createQuery(String filename)
Create an XML query for a named file.

Parameters:
filename - Name of file.
Returns:
a XMLQuery value.


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