blog
Class ParticleFilterTest

java.lang.Object
  extended by junit.framework.Assert
      extended by junit.framework.TestCase
          extended by blog.ParticleFilterTest
All Implemented Interfaces:
junit.framework.Test

public class ParticleFilterTest
extends junit.framework.TestCase

Unit testing for the ParticleFilter. Because sampling can potentially fail no matter the error margin, tests sometimes fail. This should be rare, however. If so, the user can check the indicated error to see if things look ok, or run the test again.


Constructor Summary
ParticleFilterTest()
           
 
Method Summary
static void main(java.lang.String[] args)
           
 void setUp()
          Sets particle filter properties to default values before every test.
 void test1()
           
 void test2()
           
 void testLongerInterval()
           
 
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, failNotEquals, failNotSame, failSame, format
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
 

Constructor Detail

ParticleFilterTest

public ParticleFilterTest()
Method Detail

main

public static void main(java.lang.String[] args)
                 throws java.lang.Exception
Throws:
java.lang.Exception

setUp

public void setUp()
Sets particle filter properties to default values before every test.

Overrides:
setUp in class junit.framework.TestCase

test1

public void test1()
           throws java.lang.Exception
Throws:
java.lang.Exception

test2

public void test2()
           throws java.lang.Exception
Throws:
java.lang.Exception

testLongerInterval

public void testLongerInterval()
                        throws java.lang.Exception
Throws:
java.lang.Exception