Inheritance diagram for edu.cmu.hcii.calo.test.AnimationTest:
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.
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. |
void edu.cmu.hcii.calo.test.AnimationTest.animationDidUpdate | ( | Animation | a | ) |
Called when the animation updates its progress.
a | the animation that's updating |
Implements edu.cmu.hcii.calo.view.animation.AnimationListener.
void edu.cmu.hcii.calo.test.AnimationTest.setUp | ( | ) | throws Exception |
Setup method.
java.lang.Exception |
void edu.cmu.hcii.calo.test.AnimationTest.testEaseInAnimation | ( | ) | throws Exception |
Tests the ease-in animation curve.
Exception |
void edu.cmu.hcii.calo.test.AnimationTest.testEaseInOutAnimation | ( | ) | throws Exception |
Tests the ease-in-out animation curve.
Exception |
void edu.cmu.hcii.calo.test.AnimationTest.testEaseOutAnimation | ( | ) | throws Exception |
Tests the ease-out animation curve.
Exception |
void edu.cmu.hcii.calo.test.AnimationTest.testLinearAnimation | ( | ) | throws Exception |
Tests the linear animation curve.
Exception |
The animation we're testing.
double edu.cmu.hcii.calo.test.AnimationTest.lastProgressPoint = -1.0 [private] |
The last progress point we observed.