Version: 1.1.1

ca.ucalgary.seahawk.services.test
Class RegexParserTestCase

java.lang.Object
  extended by junit.framework.Assert
      extended by junit.framework.TestCase
          extended by ca.ucalgary.seahawk.services.test.RegexParserTestCase
All Implemented Interfaces:
junit.framework.Test

public class RegexParserTestCase
extends junit.framework.TestCase


Field Summary
static String TEST_CAPGRP1
           
static String TEST_CAPGRP2
           
static String TEST_CAPGRP2_1
           
static String TEST_CAPGRP2_2
           
static String TEST_CAPGRP2_3
           
static int TEST_CAPGRP3_RANGE_END
           
static int TEST_CAPGRP3_RANGE_START
           
static int TEST_CAPGRP4_RANGE_END
           
static int TEST_CAPGRP4_RANGE_START
           
static int TEST_CAPGRP5_RANGE_END
           
static int TEST_CAPGRP5_RANGE_START
           
static String TEST_DATA1
           
static String TEST_DATA2
           
static String TEST_REGEX1
           
static String TEST_REGEX2
           
static String TEST_REGEX3
           
static String TEST_REGEX4
           
static String TEST_REGEX5
           
 
Constructor Summary
RegexParserTestCase(String name)
           
 
Method Summary
static void main(String[] args)
           
static junit.framework.Test suite()
           
 void testCaptureGroupExtraction()
           
 void testCaptureGroupQuantifier()
          Ensure that extraction of capture groups, including their quantifier, works.
 void testRegexAssumptions()
           
 
Methods inherited from class junit.framework.TestCase
countTestCases, getName, run, run, runBare, setName, toString
 
Methods inherited from class junit.framework.Assert
assertEquals, assertEquals, assertEquals, assertEquals, assertEquals, assertEquals, assertEquals, assertEquals, assertEquals, assertEquals, assertEquals, assertEquals, assertEquals, assertEquals, assertEquals, assertEquals, assertEquals, assertEquals, assertEquals, assertEquals, assertFalse, assertFalse, assertNotNull, assertNotNull, assertNotSame, assertNotSame, assertNull, assertNull, assertSame, assertSame, assertTrue, assertTrue, fail, fail, failNotEquals, failNotSame, failSame, format
 
Methods inherited from class java.lang.Object
equals, getClass, hashCode, notify, notifyAll, wait, wait, wait
 

Field Detail

TEST_REGEX1

public static final String TEST_REGEX1
See Also:
Constant Field Values

TEST_CAPGRP1

public static final String TEST_CAPGRP1
See Also:
Constant Field Values

TEST_CAPGRP2

public static final String TEST_CAPGRP2
See Also:
Constant Field Values

TEST_DATA1

public static final String TEST_DATA1
See Also:
Constant Field Values

TEST_REGEX2

public static final String TEST_REGEX2
See Also:
Constant Field Values

TEST_CAPGRP2_1

public static final String TEST_CAPGRP2_1
See Also:
Constant Field Values

TEST_CAPGRP2_2

public static final String TEST_CAPGRP2_2
See Also:
Constant Field Values

TEST_CAPGRP2_3

public static final String TEST_CAPGRP2_3
See Also:
Constant Field Values

TEST_DATA2

public static final String TEST_DATA2
See Also:
Constant Field Values

TEST_REGEX3

public static final String TEST_REGEX3
See Also:
Constant Field Values

TEST_REGEX4

public static final String TEST_REGEX4
See Also:
Constant Field Values

TEST_REGEX5

public static final String TEST_REGEX5
See Also:
Constant Field Values

TEST_CAPGRP3_RANGE_START

public static final int TEST_CAPGRP3_RANGE_START
See Also:
Constant Field Values

TEST_CAPGRP3_RANGE_END

public static final int TEST_CAPGRP3_RANGE_END
See Also:
Constant Field Values

TEST_CAPGRP4_RANGE_START

public static final int TEST_CAPGRP4_RANGE_START
See Also:
Constant Field Values

TEST_CAPGRP4_RANGE_END

public static final int TEST_CAPGRP4_RANGE_END
See Also:
Constant Field Values

TEST_CAPGRP5_RANGE_START

public static final int TEST_CAPGRP5_RANGE_START
See Also:
Constant Field Values

TEST_CAPGRP5_RANGE_END

public static final int TEST_CAPGRP5_RANGE_END
See Also:
Constant Field Values
Constructor Detail

RegexParserTestCase

public RegexParserTestCase(String name)
Method Detail

testRegexAssumptions

public void testRegexAssumptions()

testCaptureGroupExtraction

public void testCaptureGroupExtraction()

testCaptureGroupQuantifier

public void testCaptureGroupQuantifier()
Ensure that extraction of capture groups, including their quantifier, works.


suite

public static junit.framework.Test suite()
Returns:
a test suite for all the test methods of this test case.

main

public static void main(String[] args)

Version: 1.1.1

Submit a bug or feature
Generated: Sat May 29 04:26:35 EDT 2010