org.im4java.test
Class TestCase16b
java.lang.Object
org.im4java.test.AbstractTestCase
org.im4java.test.TestCase16b
- All Implemented Interfaces:
- TestCase
public class TestCase16b
- extends AbstractTestCase
This class implements a test of asynchronous execution. It will create
three images, display them and cancel all running processes after
at most 10 seconds. It tests the ThreadPoolExecutor.awaitTermination(long, java.util.concurrent.TimeUnit)
and ProcessExecutor.shutdownNow()
methods.
- Since:
- 1.0.0
- Version:
- $Revision: 1.2 $
- Author:
- $Author: bablokb $
Method Summary |
java.lang.String |
getDescription()
Return the description of the test. |
static void |
main(java.lang.String[] args)
Main method. |
void |
run()
Run the test. |
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
TestCase16b
public TestCase16b()
getDescription
public java.lang.String getDescription()
- Return the description of the test.
main
public static void main(java.lang.String[] args)
- Main method. Just calls AbstractTestCase.runTest(), which catches and
prints exceptions.
run
public void run()
throws java.lang.Exception
- Run the test.
- Throws:
java.lang.Exception
Released under the LGPL, (c) Bernhard Bablok 2008-2010
Homepage: http://im4java.sourceforge.net/