Unnamed - jakarta-regexp:jakarta-regexp:jar:1.5-redhat-1 1.5-redhat-1

org.apache.regexp
Class RETest

java.lang.Object
  extended by org.apache.regexp.RETest

public class RETest
extends Object

Data driven (and optionally interactive) testing harness to exercise regular expression compiler and matching engine.

Version:
$Id: RETest.java 518156 2007-03-14 14:31:26Z vgritsenko $
Author:
Jonathan Locke, Jon S. Stevens, Michael McCallum

Constructor Summary
RETest()
          Constructor
 
Method Summary
 void assertEquals(String message, int expected, int actual)
           
 void assertEquals(String message, String expected, String actual)
           
static void main(String[] args)
          Main program entrypoint.
static boolean test(String[] args)
          Testing entrypoint.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

RETest

public RETest()
Constructor

Method Detail

main

public static void main(String[] args)
Main program entrypoint. If an argument is given, it will be compiled and interactive matching will ensue. If no argument is given, the file RETest.txt will be used as automated testing input.

Parameters:
args - Command line arguments (optional regular expression)

test

public static boolean test(String[] args)
                    throws Exception
Testing entrypoint.

Parameters:
args - Command line arguments
Throws:
Exception - thrown in case of error

assertEquals

public void assertEquals(String message,
                         String expected,
                         String actual)

assertEquals

public void assertEquals(String message,
                         int expected,
                         int actual)

Unnamed - jakarta-regexp:jakarta-regexp:jar:1.5-redhat-1 1.5-redhat-1

Copyright © 2013 JBoss by Red Hat. All Rights Reserved.