The im4java Library, Version 1.4.0

org.im4java.test
Class TestCase16b

java.lang.Object
  extended by org.im4java.test.AbstractTestCase
      extended by 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 $

Field Summary
 
Fields inherited from class org.im4java.test.AbstractTestCase
iArgs, iImageDir, iTmpImage
 
Constructor Summary
TestCase16b()
           
 
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 org.im4java.test.AbstractTestCase
runTest
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

TestCase16b

public TestCase16b()
Method Detail

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

The im4java Library, Version 1.4.0

Released under the LGPL, (c) Bernhard Bablok 2008-2010
Homepage: http://im4java.sourceforge.net/