class: ExpressionsTest

public class: ExpressionsTest
Author: Hugo Niedermaier Revised by NiH: 20.09.2007
Project: Phase: 1.0; Status: Proposed; Version: 1.0; Complexity: 1
Dates: Created: 16.07.2009 15:31:39; Modified: 16.07.2009 15:31:39;
Flags: Active: false; IsRoot: false; IsLeaf: false;
Extension Points:
UUID: {6FB20346-B0A5-49e3-84A3-55958A9F32B9}
JUnit test class for several search querys with several eypressions.
 

Goto: Custom Properties, Methods

Appears in: searching

Custom Properties
 
ExpressionsTest Methods
Operation Details
public
booleanWithBrackets1():void
Sequential
Tags: annotations=@Test
throws=ParseException
Notes: test search query with brackets an logic operators. e. g. "(hello AND world) OR other"
public
booleanWithBrackets2():void
Sequential
Tags: annotations=@Test
throws=ParseException
Notes: test search query with brackets an logic operators. e. g. "hello AND (world OR other)"
public
booleanWithIllegalBrackets():void
Sequential
Tags: annotations=@Test
Notes: test search query with illegal brackets. e. g. "hello AND world(OR other)"
public
emptyQuery():void
Sequential
Tags: annotations=@Test
Notes: test search query with an empty eypression. e. g. ""
public
manyBrackets():void
Sequential
Tags: annotations=@Test
throws=ParseException
Notes: test search query with several brackets. e. g. "(((The) (quick) (brown)) ((fox) (jumps)) ((over) (the)) ((lazy) (dog)(.)))"
public
manyBracketsAndOperators():void
Sequential
Tags: annotations=@Test
throws=ParseException
Notes: test search query with several brackets and logic operators. e. g. "(((The)NOT(quick)AND(brown))((fox)DOES(jump))NOT((over)NOT(the))NOT((lazy)AND(dog).))"
public
manyBracketsAndOperatorsNOTallowed():void
Sequential
Tags: annotations=@Test
Notes: test search query with brackets an illegal logic operators. e. g. "(((The)NOT(quick)AND NOT(brown))((fox)DOES(jump))NOT((over)NOT(the))NOT((lazy)AND(dog).))"
public
manyBracketsAndOperatorsWithMissingBracket():void
Sequential
Tags: annotations=@Test
Notes: test search query with several brackets and logic operators with missing brackets. e. g. "(((The)\"NOT(quick)AND(brown))\"((fox)DOES(jump))NOT((over)NOT(the))NOT((lazy)AND(dog).))"
public
muchEscaping():void
Sequential
Tags: annotations=@Test
throws=ParseException
Notes: test search query with several escape characters. e. g. "Mr \"OR\" Mrs NOT Teacher but \"Exactly \\\"this stuff\""
@throws ParseException
public
muchWrongEscaping():void
Sequential
Tags: annotations=@Test
Notes: test search query with several illegal escape characters. e. g. "NOT Teacher but \"Exactly \"this stuff\""