org.apache.commons.jexl2.examples
Class Output

java.lang.Object
  extended by org.apache.commons.jexl2.examples.Output

public abstract class Output
extends Object

Abstracts using a test within Junit or through a main method.


Field Summary
static Output JUNIT
          The output instance for Junit TestCase calling assertEquals.
static Output SYSTEM
          The output instance for the general outputing to System.out.
 
Method Summary
abstract  void print(String expr, Object actual, Object expected)
          Outputs the actual and value or checks the actual equals the expected value.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

JUNIT

public static final Output JUNIT
The output instance for Junit TestCase calling assertEquals.


SYSTEM

public static final Output SYSTEM
The output instance for the general outputing to System.out.

Method Detail

print

public abstract void print(String expr,
                           Object actual,
                           Object expected)
Outputs the actual and value or checks the actual equals the expected value.

Parameters:
expr - the message to output
actual - the actual value to output
expected - the expected value


Copyright © 2001-2011 The Apache Software Foundation. All Rights Reserved.