summaryrefslogtreecommitdiffstats
path: root/src/junit/com/jogamp
diff options
context:
space:
mode:
authorSven Gothel <[email protected]>2010-11-25 03:02:26 +0100
committerSven Gothel <[email protected]>2010-11-25 03:02:26 +0100
commit20dd60820257af9aef8ff3eeab1c03736252e284 (patch)
treead0cdd1e234ceb3dc7a8800d315326de5b9fcdb7 /src/junit/com/jogamp
parentc62a07ceeafec94c4327b8db2d2dc359043b2f2b (diff)
Relax GLAnimatorControl, ie remove fail fast for start()/stop(), return (boolean)success instead.
Diffstat (limited to 'src/junit/com/jogamp')
-rw-r--r--src/junit/com/jogamp/test/junit/newt/TestGLWindows02NEWTAnimated.java16
1 files changed, 8 insertions, 8 deletions
diff --git a/src/junit/com/jogamp/test/junit/newt/TestGLWindows02NEWTAnimated.java b/src/junit/com/jogamp/test/junit/newt/TestGLWindows02NEWTAnimated.java
index 34e4f6430..e73181604 100644
--- a/src/junit/com/jogamp/test/junit/newt/TestGLWindows02NEWTAnimated.java
+++ b/src/junit/com/jogamp/test/junit/newt/TestGLWindows02NEWTAnimated.java
@@ -118,13 +118,13 @@ public class TestGLWindows02NEWTAnimated extends UITestCase {
Assert.assertNotNull(caps);
GLWindow window = createWindow(null, caps, width, height, true /* onscreen */, false /* undecorated */);
Animator animator = new Animator(window);
- animator.start();
+ Assert.assertTrue(animator.start());
while(animator.isAnimating() && animator.getDuration()<durationPerTest) {
Thread.sleep(100);
}
destroyWindow(window);
Assert.assertEquals(true, animator.isAnimating());
- animator.stop();
+ Assert.assertTrue(animator.stop());
}
@Test
@@ -133,14 +133,14 @@ public class TestGLWindows02NEWTAnimated extends UITestCase {
Assert.assertNotNull(caps);
GLWindow window = createWindow(null, caps, width, height, true /* onscreen */, false /* undecorated */);
Animator animator = new Animator(window);
- animator.start();
+ Assert.assertTrue(animator.start());
while(animator.isAnimating() && animator.getDuration()<durationPerTest) {
Thread.sleep(100);
}
destroyWindow(window);
destroyWindow(window);
Assert.assertEquals(true, animator.isAnimating());
- animator.stop();
+ Assert.assertTrue(animator.stop());
}
@Test
@@ -166,7 +166,7 @@ public class TestGLWindows02NEWTAnimated extends UITestCase {
Assert.assertEquals(false, animator.isAnimating());
Assert.assertEquals(false, animator.isPaused());
- animator.start();
+ Assert.assertTrue(animator.start());
Assert.assertEquals(true, animator.isStarted());
Assert.assertEquals(false, animator.isAnimating());
Assert.assertEquals(false, animator.isPaused());
@@ -196,7 +196,7 @@ public class TestGLWindows02NEWTAnimated extends UITestCase {
Assert.assertEquals(true, animator.isStarted());
Assert.assertEquals(false, animator.isAnimating());
Assert.assertEquals(false, animator.isPaused());
- animator.stop();
+ Assert.assertTrue(animator.stop());
}
@Test
@@ -227,7 +227,7 @@ public class TestGLWindows02NEWTAnimated extends UITestCase {
Assert.assertEquals(false, animator.isAnimating());
Assert.assertEquals(false, animator.isPaused());
- animator.start();
+ Assert.assertTrue(animator.start());
Assert.assertEquals(true, animator.isStarted());
Assert.assertEquals(false, animator.isAnimating());
Assert.assertEquals(false, animator.isPaused());
@@ -268,7 +268,7 @@ public class TestGLWindows02NEWTAnimated extends UITestCase {
Assert.assertEquals(true, animator.isAnimating());
Assert.assertEquals(false, animator.isPaused());
- animator.stop();
+ Assert.assertTrue(animator.stop());
Assert.assertEquals(false, animator.isStarted());
Assert.assertEquals(false, animator.isAnimating());
Assert.assertEquals(false, animator.isPaused());