edu.cmu.hcii.calo.test.AnimationTest Class Reference

Inherits edu.cmu.hcii.calo.view.animation.AnimationListener.

Inheritance diagram for edu.cmu.hcii.calo.test.AnimationTest:

Inheritance graph
[legend]
Collaboration diagram for edu.cmu.hcii.calo.test.AnimationTest:

Collaboration graph
[legend]
List of all members.

Detailed Description

Tests the animation component.

These tests use wait() and notify() with a timeout to ensure that the animation update events fire when they ought to. The wait() call is necessary because once the test ends, the animations will stop due to their listener no longer being there.

Author:
Brian Ellis


Public Member Functions

void animationDidUpdate (Animation a)
 Called when the animation updates its progress.
void setUp () throws Exception
 Setup method.
void testEaseInAnimation () throws Exception
 Tests the ease-in animation curve.
void testEaseInOutAnimation () throws Exception
 Tests the ease-in-out animation curve.
void testEaseOutAnimation () throws Exception
 Tests the ease-out animation curve.
void testLinearAnimation () throws Exception
 Tests the linear animation curve.

Private Attributes

Animation testAnimation
 The animation we're testing.
double lastProgressPoint = -1.0
 The last progress point we observed.


Member Function Documentation

void edu.cmu.hcii.calo.test.AnimationTest.animationDidUpdate ( Animation  a  ) 

Called when the animation updates its progress.

Parameters:
a the animation that's updating
See also:
edu.cmu.hcii.calo.view.animation.AnimationListener.animationDidUpdate(edu.cmu.hcii.calo.view.animation.Animation)

Implements edu.cmu.hcii.calo.view.animation.AnimationListener.

void edu.cmu.hcii.calo.test.AnimationTest.setUp (  )  throws Exception

Setup method.

Exceptions:
java.lang.Exception 

void edu.cmu.hcii.calo.test.AnimationTest.testEaseInAnimation (  )  throws Exception

Tests the ease-in animation curve.

Exceptions:
Exception 

void edu.cmu.hcii.calo.test.AnimationTest.testEaseInOutAnimation (  )  throws Exception

Tests the ease-in-out animation curve.

Exceptions:
Exception 

void edu.cmu.hcii.calo.test.AnimationTest.testEaseOutAnimation (  )  throws Exception

Tests the ease-out animation curve.

Exceptions:
Exception 

void edu.cmu.hcii.calo.test.AnimationTest.testLinearAnimation (  )  throws Exception

Tests the linear animation curve.

Exceptions:
Exception 


Member Data Documentation

Animation edu.cmu.hcii.calo.test.AnimationTest.testAnimation [private]

The animation we're testing.

double edu.cmu.hcii.calo.test.AnimationTest.lastProgressPoint = -1.0 [private]

The last progress point we observed.


The documentation for this class was generated from the following file:
Generated on Mon Aug 13 15:06:18 2007 for CALO by  doxygen 1.5.2