Logo Search packages:      
Sourcecode: uimaj version File versions  Download package

Classes | Public Member Functions | Protected Member Functions | Private Member Functions | Static Private Attributes

org::apache::uima::collection::impl::cpm::CpmCasConsumer_ErrorTest Class Reference

Inheritance diagram for org::apache::uima::collection::impl::cpm::CpmCasConsumer_ErrorTest:
Inheritance graph
[legend]
Collaboration diagram for org::apache::uima::collection::impl::cpm::CpmCasConsumer_ErrorTest:
Collaboration graph
[legend]

List of all members.

Classes

class  CollectionReaderStatusCallbackListener

Public Member Functions

void testInitializeWithNullPointerException () throws Exception
void testInitializeWithOutOfMemoryError () throws Exception
void testInitializeWithResourceInitializationException () throws Exception
void testProcessCasWithIOException () throws Exception
void testProcessCasWithNullPointerException () throws Exception
void testProcessCasWithOutOfMemoryError () throws Exception
void testProcessCasWithResourceProcessException () throws Exception

Protected Member Functions

void tearDown () throws Exception

Private Member Functions

int countExceptions (int totalCount, int errorSequence)
void cpeProcessNoMsg (CollectionProcessingEngine cpe, TestStatusCallbackListener listener) throws Exception
CollectionProcessingEngine setupCpm (int documentCount, String exceptionName, int exceptionSequence, String functionName)

Static Private Attributes

static final String FS = System.getProperties().getProperty("file.separator")

Detailed Description

Test CasConsumer Error Handling

The TestCase aims to test the important methods normally used within the CasConsumer (initialize and processCas). In each function different Exceptions are thrown to test the behaviour of the system in such a situation. Therefore special helper classes located in the org.apache.uima.collection.impl.cpm.utils package are used. For instance DecriptorMakeUtil generates the customized descriptors which throws the predefined Exceptions. FunctionErrorStore is the class where all data about methodcalls and counts are kept. That's just to point out some important classes.

To offer a short introduction into the generell mode of operation have a look at the following list:

Also have a look at

See also:
org.apache.uima.collection.impl.cpm.CpmAE_ErrorTest
org.apache.uima.collection.impl.cpm.CpmCollectionReader_ErrorTest

Definition at line 69 of file CpmCasConsumer_ErrorTest.java.


The documentation for this class was generated from the following file:

Generated by  Doxygen 1.6.0   Back to index