|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectjunit.framework.Assert
junit.framework.TestCase
gate.jape.functest.BaseJapeTests
gate.jape.functest.TestConstraints
public class TestConstraints
Tests for Constraint predicate logic
| Nested Class Summary |
|---|
| Nested classes/interfaces inherited from class gate.jape.functest.BaseJapeTests |
|---|
BaseJapeTests.AnnotationCreator, BaseJapeTests.BaseAnnotationCreator |
| Field Summary | |
|---|---|
private BaseJapeTests.AnnotationCreator |
annoCreator813Operators
|
private BaseJapeTests.AnnotationCreator |
annoCreator814MetaProps
|
private BaseJapeTests.AnnotationCreator |
annoCreator815MultipleActions
|
private BaseJapeTests.AnnotationCreator |
annoCreator817Contexts
|
private BaseJapeTests.AnnotationCreator |
annoCreator81LocOrgDateJob
|
private BaseJapeTests.AnnotationCreator |
annoCreatorEmpty
|
protected BaseJapeTests.AnnotationCreator |
basicAnnotCreator
Visually, this creates an annot set like this: 0-------------1--------------2 12345678901234567890 _AA (f1,"atext"), (f2,"2"), (f3,3) _B (f1,"btext), (f2,"2"), (f4,"btext4") ___BB (f1,"btext), (f2,"2"), (f4,"btext4") ______B (f1,"cctext"), (f2,"2"), (f3,3l), (f4,"ctext4") ______CC (f1,"cctext"), (f2,"2"), (f3,3l), (f4,"ctext4") ________CC (f1,"cctext"), (f2,"1"), (f4,"ctext4") _____________DD (f1,"dtext"), (f3,3l) _______________DD (f2,2l) _________________DD (ontology, "http://gate.ac.uk/tests/demo.owl"), (class, "Businessman") ____________________D (ontology, "http://gate.ac.uk/tests/demo.owl"), (class, "Country") 0-------------1--------------2 12345678901234567890 |
private static org.apache.log4j.Logger |
logger
|
| Fields inherited from class gate.jape.functest.BaseJapeTests |
|---|
DEFAULT_DATA_FILE, transducerType |
| Constructor Summary | |
|---|---|
TestConstraints(String name)
|
|
| Method Summary | |
|---|---|
void |
doCommonTest(String japeFilePath,
String docFilePath,
String[] expectedResults,
int[] expectedStartOffsets,
int[] expectedEndOffsets,
BaseJapeTests.AnnotationCreator annocreator)
|
static void |
main(String[] args)
|
protected static void |
parseJapeString(String japeRules)
Fast routine for parsing a small string of JAPE rules. |
static junit.framework.Test |
suite()
|
void |
test000TransduceEmptyDoc()
Try to transduce on empty document |
void |
test811MatchStringInEmptyAnnotSet()
GATE Tao:8.1.1 Trying to match string features on document with no annotations |
void |
test811MatchText()
GATE Tao:8.1.1 |
void |
test812MatchAnnot()
GATE Tao: 8.1.2 |
void |
test812MatchNegativeAnnotations()
GATE Tao: 8.1.2 Matching negation on annotation (e.g {! |
void |
test812MatchNegativeAnnotationsInEmptyAnnotSet()
GATE Tao: 8.1.2 Trying to match annotations on document with no annotations |
void |
test813OpContains()
GATE Tao: 8.1.3 LHS Operators: contains |
void |
test813OpContainWithinNoMatch()
GATE Tao: 8.1.3 LHS Operators: contains & within in document with no annotations |
void |
test813OpEqualsDoubleNegative()
GATE Tao: 8.1.3 Operator: == Case: Negative real number |
void |
test813OpEqualsDoublePositive()
GATE Tao: 8.1.3 Operator: == Case: Positive real number |
void |
test813OpEqualsIntegerNatural()
GATE Tao: 8.1.3 Operator: == Case: Natural number |
void |
test813OpEqualsIntegerNegative()
GATE Tao: 8.1.3 Operator: == Case: Negative integer |
void |
test813OpEqualsStringEmptyFeature()
Gate Tao: 8.1.3 Operator: == Case: Emty String feature |
void |
test813OpEqualsStringSpecialChars()
Gate Tao: 8.1.3 Operator: == Case: Special characters in the rule and text (quote here) |
void |
test813OpGreaterEqualsNegativeDouble()
GATE Tao: 8.1.3 Operator: >= Case: Negative Real Number |
void |
test813OpGreaterEqualsNegativeInteger()
GATE Tao: 8.1.3 Operator: >= Case: Negative Integer |
void |
test813OpGreaterEqualsPositiveDouble()
GATE Tao: 8.1.3 Operator: >= Case: Positive Real Number |
void |
test813OpGreaterEqualsString()
GATE Tao: 8.1.3 Operator: >= Case: String |
void |
test813OpGreaterThanNaturalNumber()
GATE Tao: 8.1.3 Operator: > Case: Natural Number |
void |
test813OpGreaterThanNegativeDouble()
GATE Tao: 8.1.3 Operator: > Case: Negative Real Number |
void |
test813OpGreaterThanNegativeInteger()
GATE Tao: 8.1.3 Operator: > Case: Negative Integer |
void |
test813OpGreaterThanPositiveDouble()
GATE Tao: 8.1.3 Operator: > Case: Positive Real Number |
void |
test813OpGreaterThanString()
GATE Tao: 8.1.3 Operator: > Case: String |
void |
test813OpGreaterЕqualsPositiveInteger()
GATE Tao: 8.1.3 Operator: >= Case: Positive Integer |
void |
test813OpWithin()
GATE Tao: 8.1.3 LHS Operators: within |
void |
test814MetaLeftCleanString()
GATE Tao: 8.1.4 Meta-Property: LHS cleanString |
void |
test814MetaLeftLength()
GATE Tao: 8.1.4 Meta-Property: LHS length |
void |
test814MetaLeftString()
GATE Tao: 8.1.4 Meta-Property: LHS string |
void |
test814MetaRightString()
GATE Tao: 8.1.4 Meta-Property: RHS string |
void |
test815MultiPatternActionsNested()
GATE Tao: 8.1.5 Multiple Patterns/Actions - Nested |
void |
test815MultiPatternActionsSequential()
GATE Tao: 8.1.5 Multiple Patterns/Actions - Sequential |
void |
test816Macro()
GATE Tao: 8.1.6 LHS Macros |
void |
test817ContextForeAndAft()
GATE Tao: 8.1.7 Contexts |
void |
test818ContextBeginsAt()
GATE Tao: 8.1.8 Contexts |
void |
testBadCompare()
|
void |
testBadPattern()
|
void |
testCustomPredicates()
|
void |
testCustomPredicatesWithConstraints()
|
void |
testGoodOperators()
|
void |
testKleeneOperators()
|
void |
testMetaPropertyAccessors()
|
void |
testRanges()
|
| Methods inherited from class gate.jape.functest.BaseJapeTests |
|---|
compareEndOffsets, compareResults, compareStartOffsets, doTest, doTest, doTest, setUpGate |
| Methods inherited from class junit.framework.TestCase |
|---|
countTestCases, createResult, getName, run, run, runBare, runTest, setName, setUp, tearDown, 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 |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait |
| Field Detail |
|---|
private static final org.apache.log4j.Logger logger
private final BaseJapeTests.AnnotationCreator annoCreatorEmpty
private final BaseJapeTests.AnnotationCreator annoCreator81LocOrgDateJob
private final BaseJapeTests.AnnotationCreator annoCreator813Operators
private final BaseJapeTests.AnnotationCreator annoCreator814MetaProps
private final BaseJapeTests.AnnotationCreator annoCreator815MultipleActions
private final BaseJapeTests.AnnotationCreator annoCreator817Contexts
protected BaseJapeTests.AnnotationCreator basicAnnotCreator
| Constructor Detail |
|---|
public TestConstraints(String name)
| Method Detail |
|---|
public void test000TransduceEmptyDoc()
throws Exception
Exception
public void test811MatchText()
throws Exception
Exception
public void test811MatchStringInEmptyAnnotSet()
throws Exception
Exception
public void test812MatchAnnot()
throws Exception
Exception
public void test812MatchNegativeAnnotationsInEmptyAnnotSet()
throws Exception
Exception
public void test812MatchNegativeAnnotations()
throws Exception
Exception
public void test813OpContains()
throws Exception
Exception
public void test813OpWithin()
throws Exception
Exception
public void test813OpContainWithinNoMatch()
throws Exception
Exception
public void test813OpEqualsStringSpecialChars()
throws Exception
Exception
public void test813OpEqualsStringEmptyFeature()
throws Exception
Exception
public void test813OpEqualsIntegerNatural()
throws Exception
Exception
public void test813OpEqualsIntegerNegative()
throws Exception
Exception
public void test813OpEqualsDoublePositive()
throws Exception
Exception
public void test813OpEqualsDoubleNegative()
throws Exception
Exception
public void test813OpGreaterThanString()
throws Exception
Exception
public void test813OpGreaterThanNaturalNumber()
throws Exception
Exception
public void test813OpGreaterThanNegativeInteger()
throws Exception
Exception
public void test813OpGreaterThanPositiveDouble()
throws Exception
Exception
public void test813OpGreaterThanNegativeDouble()
throws Exception
Exception
public void test813OpGreaterEqualsString()
throws Exception
Exception
public void test813OpGreaterЕqualsPositiveInteger()
throws Exception
Exception
public void test813OpGreaterEqualsNegativeInteger()
throws Exception
Exception
public void test813OpGreaterEqualsPositiveDouble()
throws Exception
Exception
public void test813OpGreaterEqualsNegativeDouble()
throws Exception
Exception
public void test814MetaLeftLength()
throws Exception
Exception
public void test814MetaLeftString()
throws Exception
Exception
public void test814MetaLeftCleanString()
throws Exception
Exception
public void test814MetaRightString()
throws Exception
Exception
public void test815MultiPatternActionsSequential()
throws Exception
Exception
public void test815MultiPatternActionsNested()
throws Exception
Exception
public void test816Macro()
throws Exception
Exception
public void test817ContextForeAndAft()
throws Exception
Exception
public void test818ContextBeginsAt()
throws Exception
Exception
public void testGoodOperators()
throws Exception
Exception
public void testBadCompare()
throws Exception
Exception
public void testBadPattern()
throws Exception
Exception
public void testMetaPropertyAccessors()
throws Exception
Exception
public void testCustomPredicates()
throws Exception
Exception
public void testCustomPredicatesWithConstraints()
throws Exception
Exception
public void testRanges()
throws Exception
Exception
public void testKleeneOperators()
throws Exception
Exception
public void doCommonTest(String japeFilePath,
String docFilePath,
String[] expectedResults,
int[] expectedStartOffsets,
int[] expectedEndOffsets,
BaseJapeTests.AnnotationCreator annocreator)
throws Exception
Exception
protected static void parseJapeString(String japeRules)
throws ParseException
japeRules -
ParseExceptionpublic static junit.framework.Test suite()
public static void main(String[] args)
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||