edu.sdsc.inca.consumer
Class DepotQueryTest

java.lang.Object
  extended by junit.framework.Assert
      extended by junit.framework.TestCase
          extended by edu.sdsc.inca.consumer.DepotQueryTest
All Implemented Interfaces:
junit.framework.Test

public class DepotQueryTest
extends junit.framework.TestCase

Tests the DepotQuery class.

Author:
Shava Smallen <ssmallen@sdsc.edu>

Constructor Summary
DepotQueryTest()
           
 
Method Summary
static long getAndVerifyResult(java.lang.String result)
          Verify the result is not null and contains a timestamp and return it.
 void setUp()
           
 void testCache()
          Test caching abilities.
 void testFile()
          Test filename translation
 void testQueryCast()
          Test query casting function
 
Methods inherited from class junit.framework.TestCase
countTestCases, createResult, getName, run, run, runBare, runTest, setName, 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
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
 

Constructor Detail

DepotQueryTest

public DepotQueryTest()
Method Detail

getAndVerifyResult

public static long getAndVerifyResult(java.lang.String result)
Verify the result is not null and contains a timestamp and return it.

Parameters:
result - A string containing the result of a query.
Returns:
The timestamp retrieved from the result.

setUp

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

testCache

public void testCache()
               throws java.lang.Exception
Test caching abilities.

Throws:
java.lang.Exception - if problem running test

testFile

public void testFile()
              throws java.lang.Exception
Test filename translation

Throws:
java.lang.Exception - if problem running test

testQueryCast

public void testQueryCast()
                   throws java.lang.Exception
Test query casting function

Throws:
java.lang.Exception - if problem running test