net.sf.sasl.language.placeholder.syntax
Class PlaceholderScriptParserTest

java.lang.Object
  extended by net.sf.sasl.language.placeholder.syntax.PlaceholderScriptParserTest

public class PlaceholderScriptParserTest
extends Object

Test case for the PlaceholderScriptParser class.

Author:
Philipp Förmer

Constructor Summary
PlaceholderScriptParserTest()
           
 
Method Summary
 void testGetPlaceholderSymbols()
          Test cases for the getPlaceholderSymbols() method.
 void testParseComplexScript()
          Tests if a "complex" script could be parsed successfully.
 void testParseException()
          Tests if a parse exception is handled correctly.
 void testParsePlaceholderNoArguments()
          Tests if a placeholder with no arguments could be parsed successfully.
 void testParsePlaceholderNoArguments2()
          Tests if a placeholder with the optional no argument braces could be parsed successfully.
 void testParsePlaceholderWithArguments()
          Tests if a placeholder with different argument types could be parsed successfully.
 void testParsePlaceholderWithNestedPlaceholder()
          Test if a placeholder could have nested placeholders as arguments.
 void testParseSimpleText()
          Tests if a simple string could be parsed successfully.
 void testScanException()
          Tests if a exception from the scanner is handled correctly.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

PlaceholderScriptParserTest

public PlaceholderScriptParserTest()
Method Detail

testParseSimpleText

public void testParseSimpleText()
                         throws Exception
Tests if a simple string could be parsed successfully.

Throws:
Exception

testParsePlaceholderNoArguments

public void testParsePlaceholderNoArguments()
                                     throws Exception
Tests if a placeholder with no arguments could be parsed successfully.

Throws:
Exception

testParsePlaceholderNoArguments2

public void testParsePlaceholderNoArguments2()
                                      throws Exception
Tests if a placeholder with the optional no argument braces could be parsed successfully.

Throws:
Exception

testParsePlaceholderWithArguments

public void testParsePlaceholderWithArguments()
                                       throws Exception
Tests if a placeholder with different argument types could be parsed successfully.

Throws:
Exception

testParsePlaceholderWithNestedPlaceholder

public void testParsePlaceholderWithNestedPlaceholder()
                                               throws Exception
Test if a placeholder could have nested placeholders as arguments.

Throws:
Exception

testParseComplexScript

public void testParseComplexScript()
                            throws Exception
Tests if a "complex" script could be parsed successfully.

Throws:
ParseException
Exception

testParseException

public void testParseException()
                        throws Exception
Tests if a parse exception is handled correctly.

Throws:
Exception

testScanException

public void testScanException()
                       throws Exception
Tests if a exception from the scanner is handled correctly.

Throws:
Exception

testGetPlaceholderSymbols

public void testGetPlaceholderSymbols()
                               throws Exception
Test cases for the getPlaceholderSymbols() method.

Throws:
Exception


Copyright © 2010. All Rights Reserved.