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

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

public class PlaceholderScriptScannerTest
extends Object

Test cases for the PlaceholderScanner class.

Author:
Philipp Förmer

Constructor Summary
PlaceholderScriptScannerTest()
           
 
Method Summary
 void doRunSimpleScanTest(String input, int[] expectedTokens)
          Creates a new scanner for the given input and checks if the token type output of the scanner equals the expected scanner token type output.
 void testScannerWithoutLocationInformations()
          Test cases if the tokens gets detected correctly by the scanner.
 void testScanWithLocationInformations()
          Test cases for the left and right location informations of a symbol.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

PlaceholderScriptScannerTest

public PlaceholderScriptScannerTest()
Method Detail

testScannerWithoutLocationInformations

public void testScannerWithoutLocationInformations()
                                            throws Exception
Test cases if the tokens gets detected correctly by the scanner.

Throws:
Exception

testScanWithLocationInformations

public void testScanWithLocationInformations()
                                      throws Exception
Test cases for the left and right location informations of a symbol.

Throws:
Exception

doRunSimpleScanTest

public void doRunSimpleScanTest(String input,
                                int[] expectedTokens)
                         throws Exception
Creates a new scanner for the given input and checks if the token type output of the scanner equals the expected scanner token type output.

Parameters:
input - non null input sequence.
expectedTokens - expected token output.
Throws:
Exception


Copyright © 2010. All Rights Reserved.