The im4java Library, Version 1.4.0

org.im4java.test
Class TestCase21

java.lang.Object
  extended by org.im4java.test.AbstractTestCase
      extended by org.im4java.test.TestCase21
All Implemented Interfaces:
ProcessEventListener, TestCase
Direct Known Subclasses:
TestCase22

public class TestCase21
extends AbstractTestCase
implements ProcessEventListener

This class tests the parallel processing features of im4java. It uses the class ProcessExecutor to limit resource-usage and implements the interface ProcessEventListener to control success or failure of individual conversions.

Since:
1.0.0
Version:
$Revision: 1.21 $
Author:
$Author: bablokb $

Field Summary
protected  IMOperation iOp
          The operation associated with this test-case.
 
Fields inherited from class org.im4java.test.AbstractTestCase
iArgs, iImageDir, iTmpImage
 
Constructor Summary
TestCase21()
          The default constructor.
 
Method Summary
 java.lang.String getDescription()
          Return the description of the test.
protected  java.util.List<java.lang.String> load()
          Load all files into a list.
static void main(java.lang.String[] args)
          Main method.
 void processInitiated(ProcessEvent pEvent)
          This method is called at process initiation.
 void processStarted(ProcessEvent pEvent)
          This method is called at process startup.
 void processTerminated(ProcessEvent pEvent)
          This method is called at normal or abnormal process termination.
 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
 

Field Detail

iOp

protected IMOperation iOp
The operation associated with this test-case.

Constructor Detail

TestCase21

public TestCase21()
The default constructor.

Method Detail

getDescription

public java.lang.String getDescription()
Return the description of the test.

Specified by:
getDescription in interface TestCase

main

public static void main(java.lang.String[] args)
Main method. Just calls AbstractTestCase.runTest(), which catches and prints exceptions.


load

protected java.util.List<java.lang.String> load()
Load all files into a list.


run

public void run()
         throws java.lang.Exception
Run the test.

Specified by:
run in interface TestCase
Throws:
java.lang.Exception

processInitiated

public void processInitiated(ProcessEvent pEvent)
This method is called at process initiation.

Specified by:
processInitiated in interface ProcessEventListener

processStarted

public void processStarted(ProcessEvent pEvent)
This method is called at process startup.

Specified by:
processStarted in interface ProcessEventListener

processTerminated

public void processTerminated(ProcessEvent pEvent)
This method is called at normal or abnormal process termination.

Specified by:
processTerminated in interface ProcessEventListener

The im4java Library, Version 1.4.0

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