text
stringlengths 30
1.67M
|
|---|
<s> package org . eclipse . jdt . core . tests . compiler . parser ; import java . util . Locale ; import org . eclipse . jdt . core . compiler . CategorizedProblem ; import org . eclipse . jdt . core . compiler . CharOperation ; import org . eclipse . jdt . core . tests . util . AbstractCompilerTest ; import org . eclipse . jdt . internal . compiler . DocumentElementParser ; import org . eclipse . jdt . internal . compiler . IDocumentElementRequestor ; import org . eclipse . jdt . internal . compiler . batch . CompilationUnit ; import org . eclipse . jdt . internal . compiler . env . ICompilationUnit ; import org . eclipse . jdt . internal . compiler . impl . CompilerOptions ; import org . eclipse . jdt . internal . compiler . problem . DefaultProblemFactory ; public class DocumentElementParserTest extends AbstractCompilerTest { public DocumentElementParserTest ( String testName ) { super ( testName ) ; } public void reset ( ) { } public void test01 ( ) { String s = "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT:}>" ; String testName = "<STR_LIT>" ; char [ ] source = s . toCharArray ( ) ; reset ( ) ; DocumentElementParser parser = new DocumentElementParser ( new IDocumentElementRequestor ( ) { public void acceptImport ( int declarationStart , int declarationEnd , int [ ] javaDocPositions , char [ ] name , int nameStartPosition , boolean onDemand , int modifiers ) { } public void acceptInitializer ( int declarationStart , int declarationEnd , int [ ] javaDocPositions , int modifiers , int modifiersStart , int bodyStart , int bodyEnd ) { } public void acceptLineSeparatorPositions ( int [ ] positions ) { } public void acceptPackage ( int declarationStart , int declarationEnd , int [ ] javaDocPositions , char [ ] name , int nameStartPosition ) { } public void acceptProblem ( CategorizedProblem problem ) { } public void enterClass ( int declarationStart , int [ ] javaDocPositions , int modifiers , int modifiersStart , int classStart , char [ ] name , int nameStart , int nameEnd , char [ ] superclass , int superclassStart , int superclassEnd , char [ ] [ ] superinterfaces , int [ ] superinterfaceStarts , int [ ] superinterfaceEnds , int bodyStart ) { } public void enterCompilationUnit ( ) { } public void enterConstructor ( int declarationStart , int [ ] javaDocPositions , int modifiers , int modifiersStart , char [ ] name , int nameStart , int nameEnd , char [ ] [ ] parameterTypes , int [ ] parameterTypeStarts , int [ ] parameterTypeEnds , char [ ] [ ] parameterNames , int [ ] parameterNameStarts , int [ ] parameterNameEnds , int parametersEnd , char [ ] [ ] exceptionTypes , int [ ] exceptionTypeStarts , int [ ] exceptionTypeEnds , int bodyStart ) { } public void enterField ( int declarationStart , int [ ] javaDocPositions , int modifiers , int modifiersStart , char [ ] type , int typeStart , int typeEnd , int typeDimensionCount , char [ ] name , int nameStart , int nameEnd , int extendedTypeDimensionCount , int extendedTypeDimensionEnd ) { } public void enterInterface ( int declarationStart , int [ ] javaDocPositions , int modifiers , int modifiersStart , int interfaceStart , char [ ] name , int nameStart , int nameEnd , char [ ] [ ] superinterfaces , int [ ] superinterfaceStarts , int [ ] superinterfaceEnds , int bodyStart ) { } public void exitClass ( int bodyEnd , int declarationEnd ) { } public void exitCompilationUnit ( int declarationEnd ) { } public void exitConstructor ( int bodyEnd , int declarationEnd ) { } public void exitField ( int bodyEnd , int declarationEnd ) { } public void exitInterface ( int bodyEnd , int declarationEnd ) { } public void exitMethod ( int bodyEnd , int declarationEnd ) { } public void enterMethod ( int declarationStart , int [ ] javaDocPositions , int modifiers , int modifiersStart , char [ ] returnType , int returnTypeStart , int returnTypeEnd , int returnTypeDimensionCount , char [ ] name , int nameStart , int nameEnd , char [ ] [ ] parameterTypes , int [ ] parameterTypeStarts , int [ ] parameterTypeEnds , char [ ] [ ] parameterNames , int [ ] parameterNameStarts , int [ ] parameterNameEnds , int parametersEnd , int extendedReturnTypeDimensionCount , int extendedReturnTypeDimensionEnd , char [ ] [ ] exceptionTypes , int [ ] exceptionTypeStarts , int [ ] exceptionTypeEnds , int bodyStart ) { if ( CharOperation . equals ( name , "<STR_LIT>" . toCharArray ( ) ) ) { assertEquals ( "<STR_LIT>" , "<STR_LIT>" , new String ( returnType ) ) ; } } } , new DefaultProblemFactory ( Locale . getDefault ( ) ) , new CompilerOptions ( getCompilerOptions ( ) ) ) ; ICompilationUnit sourceUnit = new CompilationUnit ( source , testName , null ) ; parser . parseCompilationUnit ( sourceUnit ) ; } public void acceptImport ( int declarationStart , int declarationEnd , int [ ] javaDocPositions , char [ ] name , int nameStartPosition , boolean onDemand , int modifiers ) { } public void acceptInitializer ( int declarationStart , int declarationEnd , int [ ] javaDocPositions , int modifiers , int modifiersStart , int bodyStart , int bodyEnd ) { } public void acceptLineSeparatorPositions ( int [ ] positions ) { } public void acceptPackage ( int declarationStart , int declarationEnd , int [ ] javaDocPositions , char [ ] name , int nameStartPosition ) { } public void acceptProblem ( CategorizedProblem problem ) { } public void enterClass ( int declarationStart , int [ ] javaDocPositions , int modifiers , int modifiersStart , int classStart , char [ ] name , int nameStart , int nameEnd , char [ ] superclass , int superclassStart , int superclassEnd , char [ ] [ ] superinterfaces , int [ ] superinterfaceStarts , int [ ] superinterfaceEnds , int bodyStart ) { } public void enterCompilationUnit ( ) { } public void enterConstructor ( int declarationStart , int [ ] javaDocPositions , int modifiers , int modifiersStart , char [ ] name , int nameStart , int nameEnd , char [ ] [ ] parameterTypes , int [ ] parameterTypeStarts , int [ ] parameterTypeEnds , char [ ] [ ] parameterNames , int [ ] parameterNameStarts , int [ ] parameterNameEnds , int parametersEnd , char [ ] [ ] exceptionTypes , int [ ] exceptionTypeStarts , int [ ] exceptionTypeEnds , int bodyStart ) { } public void enterField ( int declarationStart , int [ ] javaDocPositions , int modifiers , int modifiersStart , char [ ] type , int typeStart , int typeEnd , int typeDimensionCount , char [ ] name , int nameStart , int nameEnd , int extendedTypeDimensionCount , int extendedTypeDimensionEnd ) { } public void enterInterface ( int declarationStart , int [ ] javaDocPositions , int modifiers , int modifiersStart , int interfaceStart , char [ ] name , int nameStart , int nameEnd , char [ ] [ ] superinterfaces , int [ ] superinterfaceStarts , int [ ] superinterfaceEnds , int bodyStart ) { } public void enterMethod ( int declarationStart , int [ ] javaDocPositions , int modifiers , int modifiersStart , char [ ] returnType , int returnTypeStart , int returnTypeEnd , int returnTypeDimensionCount , char [ ] name , int nameStart , int nameEnd , char [ ] [ ] parameterTypes , int [ ] parameterTypeStarts , int [ ] parameterTypeEnds , char [ ] [ ] parameterNames , int [ ] parameterNameStarts , int [ ] parameterNameEnds , int parametersEnd , int extendedReturnTypeDimensionCount , int extendedReturnTypeDimensionEnd , char [ ] [ ] exceptionTypes , int [ ] exceptionTypeStarts , int [ ] exceptionTypeEnds , int bodyStart ) { } public void exitClass ( int bodyEnd , int declarationEnd ) { } public void exitCompilationUnit ( int declarationEnd ) { } public void exitConstructor ( int bodyEnd , int declarationEnd ) { } public void exitField ( int bodyEnd , int declarationEnd ) { } public void exitInterface ( int bodyEnd , int declarationEnd ) { } public void exitMethod ( int bodyEnd , int declarationEnd ) { } } </s>
|
<s> package org . eclipse . jdt . core . tests . compiler . parser ; import java . lang . reflect . InvocationTargetException ; import junit . framework . TestCase ; public class SingleCompletionTest extends AbstractCompletionTest { public SingleCompletionTest ( String testName ) { super ( testName ) ; } private void run ( Class testClass , String methodName ) { try { java . lang . reflect . Constructor constructor = testClass . getDeclaredConstructor ( new Class [ ] { String . class } ) ; TestCase test = ( TestCase ) constructor . newInstance ( new Object [ ] { "<STR_LIT>" } ) ; java . lang . reflect . Method method = testClass . getDeclaredMethod ( methodName , new Class [ ] { } ) ; method . invoke ( test , new Object [ ] { } ) ; } catch ( InstantiationException e ) { e . printStackTrace ( ) ; } catch ( IllegalAccessException e ) { e . printStackTrace ( ) ; } catch ( NoSuchMethodException e ) { e . printStackTrace ( ) ; } catch ( InvocationTargetException e ) { Throwable target = e . getTargetException ( ) ; if ( target instanceof RuntimeException ) { throw ( RuntimeException ) target ; } if ( target instanceof Error ) { throw ( Error ) target ; } throw new Error ( target . getMessage ( ) ) ; } } public void test ( ) { run ( NameReferenceCompletionTest . class , "<STR_LIT>" ) ; } } </s>
|
<s> package org . eclipse . jdt . core . tests . compiler . parser ; import java . util . Locale ; import java . util . Map ; import org . eclipse . jdt . core . tests . util . AbstractCompilerTest ; import org . eclipse . jdt . core . tests . util . Util ; import org . eclipse . jdt . internal . codeassist . complete . CompletionParser ; import org . eclipse . jdt . internal . compiler . CompilationResult ; import org . eclipse . jdt . internal . compiler . DefaultErrorHandlingPolicies ; import org . eclipse . jdt . internal . compiler . SourceElementParser ; import org . eclipse . jdt . internal . compiler . ast . CompilationUnitDeclaration ; import org . eclipse . jdt . internal . compiler . batch . CompilationUnit ; import org . eclipse . jdt . internal . compiler . classfmt . ClassFileConstants ; import org . eclipse . jdt . internal . compiler . env . ICompilationUnit ; import org . eclipse . jdt . internal . compiler . impl . CompilerOptions ; import org . eclipse . jdt . internal . compiler . parser . Parser ; import org . eclipse . jdt . internal . compiler . problem . DefaultProblemFactory ; import org . eclipse . jdt . internal . compiler . problem . ProblemReporter ; public class GenericDietRecoveryTest extends AbstractCompilerTest { public static boolean optimizeStringLiterals = false ; public static long sourceLevel = ClassFileConstants . JDK1_3 ; public GenericDietRecoveryTest ( String testName ) { super ( testName ) ; } protected Map getCompilerOptions ( ) { Map options = super . getCompilerOptions ( ) ; options . put ( CompilerOptions . OPTION_Compliance , CompilerOptions . VERSION_1_5 ) ; options . put ( CompilerOptions . OPTION_Source , CompilerOptions . VERSION_1_5 ) ; options . put ( CompilerOptions . OPTION_TargetPlatform , CompilerOptions . VERSION_1_5 ) ; return options ; } public void checkParse ( char [ ] source , String expectedDietUnitToString , String expectedDietPlusBodyUnitToString , String expectedDietPlusBodyPlusStatementsRecoveryUnitToString , String expectedFullUnitToString , String expectedCompletionDietUnitToString , String testName ) { { Parser parser = new Parser ( new ProblemReporter ( DefaultErrorHandlingPolicies . proceedWithAllProblems ( ) , new CompilerOptions ( getCompilerOptions ( ) ) , new DefaultProblemFactory ( Locale . getDefault ( ) ) ) , optimizeStringLiterals ) ; ICompilationUnit sourceUnit = new CompilationUnit ( source , testName , null ) ; CompilationResult compilationResult = new CompilationResult ( sourceUnit , <NUM_LIT:0> , <NUM_LIT:0> , <NUM_LIT:0> ) ; CompilationUnitDeclaration computedUnit = parser . dietParse ( sourceUnit , compilationResult ) ; String computedUnitToString = computedUnit . toString ( ) ; if ( ! expectedDietUnitToString . equals ( computedUnitToString ) ) { System . out . println ( Util . displayString ( computedUnitToString ) ) ; } assertEquals ( "<STR_LIT>" + testName , expectedDietUnitToString , computedUnitToString ) ; } { Parser parser = new Parser ( new ProblemReporter ( DefaultErrorHandlingPolicies . proceedWithAllProblems ( ) , new CompilerOptions ( getCompilerOptions ( ) ) , new DefaultProblemFactory ( Locale . getDefault ( ) ) ) , optimizeStringLiterals ) ; parser . setMethodsFullRecovery ( false ) ; parser . setStatementsRecovery ( false ) ; ICompilationUnit sourceUnit = new CompilationUnit ( source , testName , null ) ; CompilationResult compilationResult = new CompilationResult ( sourceUnit , <NUM_LIT:0> , <NUM_LIT:0> , <NUM_LIT:0> ) ; CompilationUnitDeclaration computedUnit = parser . dietParse ( sourceUnit , compilationResult ) ; String computedUnitToString = computedUnit . toString ( ) ; if ( ! expectedDietUnitToString . equals ( computedUnitToString ) ) { System . out . println ( Util . displayString ( computedUnitToString ) ) ; } assertEquals ( "<STR_LIT>" + testName , expectedDietUnitToString , computedUnitToString ) ; if ( computedUnit . types != null ) { for ( int i = <NUM_LIT:0> , length = computedUnit . types . length ; i < length ; i ++ ) { computedUnit . types [ i ] . parseMethods ( parser , computedUnit ) ; } } computedUnitToString = computedUnit . toString ( ) ; if ( ! expectedDietPlusBodyUnitToString . equals ( computedUnitToString ) ) { System . out . println ( Util . displayString ( computedUnitToString ) ) ; } assertEquals ( "<STR_LIT>" + testName , expectedDietPlusBodyUnitToString , computedUnitToString ) ; } { Parser parser = new Parser ( new ProblemReporter ( DefaultErrorHandlingPolicies . proceedWithAllProblems ( ) , new CompilerOptions ( getCompilerOptions ( ) ) , new DefaultProblemFactory ( Locale . getDefault ( ) ) ) , optimizeStringLiterals ) ; parser . setMethodsFullRecovery ( true ) ; parser . setStatementsRecovery ( true ) ; ICompilationUnit sourceUnit = new CompilationUnit ( source , testName , null ) ; CompilationResult compilationResult = new CompilationResult ( sourceUnit , <NUM_LIT:0> , <NUM_LIT:0> , <NUM_LIT:0> ) ; CompilationUnitDeclaration computedUnit = parser . dietParse ( sourceUnit , compilationResult ) ; String computedUnitToString = computedUnit . toString ( ) ; if ( ! expectedDietUnitToString . equals ( computedUnitToString ) ) { System . out . println ( Util . displayString ( computedUnitToString ) ) ; } assertEquals ( "<STR_LIT>" + testName , expectedDietUnitToString , computedUnitToString ) ; if ( computedUnit . types != null ) { for ( int i = <NUM_LIT:0> , length = computedUnit . types . length ; i < length ; i ++ ) { computedUnit . types [ i ] . parseMethods ( parser , computedUnit ) ; } } computedUnitToString = computedUnit . toString ( ) ; if ( ! expectedDietPlusBodyPlusStatementsRecoveryUnitToString . equals ( computedUnitToString ) ) { System . out . println ( Util . displayString ( computedUnitToString ) ) ; } assertEquals ( "<STR_LIT>" + testName , expectedDietPlusBodyPlusStatementsRecoveryUnitToString , computedUnitToString ) ; } { Parser parser = new Parser ( new ProblemReporter ( DefaultErrorHandlingPolicies . proceedWithAllProblems ( ) , new CompilerOptions ( getCompilerOptions ( ) ) , new DefaultProblemFactory ( Locale . getDefault ( ) ) ) , optimizeStringLiterals ) ; ICompilationUnit sourceUnit = new CompilationUnit ( source , testName , null ) ; CompilationResult compilationResult = new CompilationResult ( sourceUnit , <NUM_LIT:0> , <NUM_LIT:0> , <NUM_LIT:0> ) ; CompilationUnitDeclaration computedUnit = parser . parse ( sourceUnit , compilationResult ) ; String computedUnitToString = computedUnit . toString ( ) ; if ( ! expectedFullUnitToString . equals ( computedUnitToString ) ) { System . out . println ( Util . displayString ( computedUnitToString ) ) ; } assertEquals ( "<STR_LIT>" + testName , expectedFullUnitToString , computedUnitToString ) ; } { SourceElementParser parser = new SourceElementParser ( new TestSourceElementRequestor ( ) , new DefaultProblemFactory ( Locale . getDefault ( ) ) , new CompilerOptions ( getCompilerOptions ( ) ) , false , true ) ; ICompilationUnit sourceUnit = new CompilationUnit ( source , testName , null ) ; CompilationResult compilationResult = new CompilationResult ( sourceUnit , <NUM_LIT:0> , <NUM_LIT:0> , <NUM_LIT:0> ) ; CompilationUnitDeclaration computedUnit = parser . dietParse ( sourceUnit , compilationResult ) ; String computedUnitToString = computedUnit . toString ( ) ; if ( ! expectedDietUnitToString . equals ( computedUnitToString ) ) { System . out . println ( Util . displayString ( computedUnitToString ) ) ; } assertEquals ( "<STR_LIT>" + testName , expectedDietUnitToString , computedUnitToString ) ; } { SourceElementParser parser = new SourceElementParser ( new TestSourceElementRequestor ( ) , new DefaultProblemFactory ( Locale . getDefault ( ) ) , new CompilerOptions ( getCompilerOptions ( ) ) , false , true ) ; ICompilationUnit sourceUnit = new CompilationUnit ( source , testName , null ) ; CompilationResult compilationResult = new CompilationResult ( sourceUnit , <NUM_LIT:0> , <NUM_LIT:0> , <NUM_LIT:0> ) ; CompilationUnitDeclaration computedUnit = parser . parse ( sourceUnit , compilationResult ) ; String computedUnitToString = computedUnit . toString ( ) ; if ( ! expectedFullUnitToString . equals ( computedUnitToString ) ) { System . out . println ( Util . displayString ( computedUnitToString ) ) ; } assertEquals ( "<STR_LIT>" + testName , expectedFullUnitToString , computedUnitToString ) ; } { CompilerOptions options = new CompilerOptions ( getCompilerOptions ( ) ) ; CompletionParser parser = new CompletionParser ( new ProblemReporter ( DefaultErrorHandlingPolicies . proceedWithAllProblems ( ) , options , new DefaultProblemFactory ( Locale . getDefault ( ) ) ) , false ) ; ICompilationUnit sourceUnit = new CompilationUnit ( source , testName , null ) ; CompilationResult compilationResult = new CompilationResult ( sourceUnit , <NUM_LIT:0> , <NUM_LIT:0> , <NUM_LIT:0> ) ; CompilationUnitDeclaration computedUnit = parser . dietParse ( sourceUnit , compilationResult , Integer . MAX_VALUE ) ; String computedUnitToString = computedUnit . toString ( ) ; if ( ! expectedCompletionDietUnitToString . equals ( computedUnitToString ) ) { System . out . println ( Util . displayString ( computedUnitToString ) ) ; } assertEquals ( "<STR_LIT>" + testName , expectedCompletionDietUnitToString , computedUnitToString ) ; } } public void test0001 ( ) { String s = "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" ; String expectedDietUnitToString = "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" ; String expectedDietPlusBodyUnitToString = "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" ; String expectedFullUnitToString = expectedDietUnitToString ; String expectedCompletionDietUnitToString = expectedDietUnitToString ; String testName = "<STR_LIT>" ; checkParse ( s . toCharArray ( ) , expectedDietUnitToString , expectedDietPlusBodyUnitToString , expectedDietPlusBodyUnitToString , expectedFullUnitToString , expectedCompletionDietUnitToString , testName ) ; } public void test0002 ( ) { String s = "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" ; String expectedDietUnitToString = "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" ; String expectedDietPlusBodyUnitToString = expectedDietUnitToString ; String expectedFullUnitToString = expectedDietUnitToString ; String expectedCompletionDietUnitToString = expectedDietUnitToString ; String testName = "<STR_LIT>" ; checkParse ( s . toCharArray ( ) , expectedDietUnitToString , expectedDietPlusBodyUnitToString , expectedDietPlusBodyUnitToString , expectedFullUnitToString , expectedCompletionDietUnitToString , testName ) ; } public void test0003 ( ) { String s = "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" ; String expectedDietUnitToString = "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" ; String expectedDietPlusBodyUnitToString = "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" ; String expectedFullUnitToString = expectedDietUnitToString ; String expectedCompletionDietUnitToString = expectedDietUnitToString ; String testName = "<STR_LIT>" ; checkParse ( s . toCharArray ( ) , expectedDietUnitToString , expectedDietPlusBodyUnitToString , expectedDietPlusBodyUnitToString , expectedFullUnitToString , expectedCompletionDietUnitToString , testName ) ; } public void test0004 ( ) { String s = "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" ; String expectedDietUnitToString = "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" ; String expectedDietPlusBodyUnitToString = "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" ; String expectedFullUnitToString = expectedDietUnitToString ; String expectedCompletionDietUnitToString = expectedDietUnitToString ; String testName = "<STR_LIT>" ; checkParse ( s . toCharArray ( ) , expectedDietUnitToString , expectedDietPlusBodyUnitToString , expectedDietPlusBodyUnitToString , expectedFullUnitToString , expectedCompletionDietUnitToString , testName ) ; } public void test0005 ( ) { String s = "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" ; String expectedDietUnitToString = "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" ; String expectedDietPlusBodyUnitToString = "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" ; String expectedFullUnitToString = expectedDietUnitToString ; String expectedCompletionDietUnitToString = expectedDietUnitToString ; String testName = "<STR_LIT>" ; checkParse ( s . toCharArray ( ) , expectedDietUnitToString , expectedDietPlusBodyUnitToString , expectedDietPlusBodyUnitToString , expectedFullUnitToString , expectedCompletionDietUnitToString , testName ) ; } public void test0006 ( ) { String s = "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" ; String expectedDietUnitToString = "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" ; String expectedDietPlusBodyUnitToString = "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" ; String expectedFullUnitToString = expectedDietUnitToString ; String expectedCompletionDietUnitToString = expectedDietUnitToString ; String testName = "<STR_LIT>" ; checkParse ( s . toCharArray ( ) , expectedDietUnitToString , expectedDietPlusBodyUnitToString , expectedDietPlusBodyUnitToString , expectedFullUnitToString , expectedCompletionDietUnitToString , testName ) ; } public void test0007 ( ) { String s = "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" ; String expectedDietUnitToString = "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" ; String expectedDietPlusBodyUnitToString = "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" ; String expectedFullUnitToString = expectedDietUnitToString ; String expectedCompletionDietUnitToString = expectedDietUnitToString ; String testName = "<STR_LIT>" ; checkParse ( s . toCharArray ( ) , expectedDietUnitToString , expectedDietPlusBodyUnitToString , expectedDietPlusBodyUnitToString , expectedFullUnitToString , expectedCompletionDietUnitToString , testName ) ; } public void test0008 ( ) { String s = "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" ; String expectedDietUnitToString = "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" ; String expectedDietPlusBodyUnitToString = "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" ; String expectedFullUnitToString = expectedDietUnitToString ; String expectedCompletionDietUnitToString = expectedDietUnitToString ; String testName = "<STR_LIT>" ; checkParse ( s . toCharArray ( ) , expectedDietUnitToString , expectedDietPlusBodyUnitToString , expectedDietPlusBodyUnitToString , expectedFullUnitToString , expectedCompletionDietUnitToString , testName ) ; } public void test0009 ( ) { String s = "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" ; String expectedDietUnitToString = "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" ; String expectedDietPlusBodyUnitToString = "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" ; String expectedFullUnitToString = expectedDietUnitToString ; String expectedCompletionDietUnitToString = expectedDietUnitToString ; String testName = "<STR_LIT>" ; checkParse ( s . toCharArray ( ) , expectedDietUnitToString , expectedDietPlusBodyUnitToString , expectedDietPlusBodyUnitToString , expectedFullUnitToString , expectedCompletionDietUnitToString , testName ) ; } public void test0010 ( ) { String s = "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" ; String expectedDietUnitToString = "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" ; String expectedDietPlusBodyUnitToString = "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" ; String expectedFullUnitToString = expectedDietUnitToString ; String expectedCompletionDietUnitToString = expectedDietUnitToString ; String testName = "<STR_LIT>" ; checkParse ( s . toCharArray ( ) , expectedDietUnitToString , expectedDietPlusBodyUnitToString , expectedDietPlusBodyUnitToString , expectedFullUnitToString , expectedCompletionDietUnitToString , testName ) ; } public void test0011 ( ) { String s = "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" ; String expectedDietUnitToString = "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" ; String expectedDietPlusBodyUnitToString = "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" ; String expectedFullUnitToString = expectedDietUnitToString ; String expectedCompletionDietUnitToString = expectedDietUnitToString ; String testName = "<STR_LIT>" ; checkParse ( s . toCharArray ( ) , expectedDietUnitToString , expectedDietPlusBodyUnitToString , expectedDietPlusBodyUnitToString , expectedFullUnitToString , expectedCompletionDietUnitToString , testName ) ; } public void test0012 ( ) { String s = "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" ; String expectedDietUnitToString = "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" ; String expectedDietPlusBodyUnitToString = "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" ; String expectedFullUnitToString = expectedDietUnitToString ; String expectedCompletionDietUnitToString = expectedDietUnitToString ; String testName = "<STR_LIT>" ; checkParse ( s . toCharArray ( ) , expectedDietUnitToString , expectedDietPlusBodyUnitToString , expectedDietPlusBodyUnitToString , expectedFullUnitToString , expectedCompletionDietUnitToString , testName ) ; } public void test0013 ( ) { String s = "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" ; String expectedDietUnitToString = "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" ; String expectedDietPlusBodyUnitToString = "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" ; String expectedFullUnitToString = expectedDietUnitToString ; String expectedCompletionDietUnitToString = expectedDietUnitToString ; String testName = "<STR_LIT>" ; checkParse ( s . toCharArray ( ) , expectedDietUnitToString , expectedDietPlusBodyUnitToString , expectedDietPlusBodyUnitToString , expectedFullUnitToString , expectedCompletionDietUnitToString , testName ) ; } public void test0014 ( ) { String s = "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" ; String expectedDietUnitToString = "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" ; String expectedDietPlusBodyUnitToString = "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" ; String expectedFullUnitToString = expectedDietUnitToString ; String expectedCompletionDietUnitToString = expectedDietUnitToString ; String testName = "<STR_LIT>" ; checkParse ( s . toCharArray ( ) , expectedDietUnitToString , expectedDietPlusBodyUnitToString , expectedDietPlusBodyUnitToString , expectedFullUnitToString , expectedCompletionDietUnitToString , testName ) ; } public void test0015 ( ) { String s = "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" ; String expectedDietUnitToString = "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" ; String expectedDietPlusBodyUnitToString = "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" ; String expectedFullUnitToString = expectedDietUnitToString ; String expectedCompletionDietUnitToString = expectedDietUnitToString ; String testName = "<STR_LIT>" ; checkParse ( s . toCharArray ( ) , expectedDietUnitToString , expectedDietPlusBodyUnitToString , expectedDietPlusBodyUnitToString , expectedFullUnitToString , expectedCompletionDietUnitToString , testName ) ; } public void test0016 ( ) { String s = "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" ; String expectedDietUnitToString = "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" ; String expectedDietPlusBodyUnitToString = "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" ; String expectedFullUnitToString = expectedDietUnitToString ; String expectedCompletionDietUnitToString = expectedDietUnitToString ; String testName = "<STR_LIT>" ; checkParse ( s . toCharArray ( ) , expectedDietUnitToString , expectedDietPlusBodyUnitToString , expectedDietPlusBodyUnitToString , expectedFullUnitToString , expectedCompletionDietUnitToString , testName ) ; } public void test0017 ( ) { String s = "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" ; String expectedDietUnitToString = "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" ; String expectedDietPlusBodyUnitToString = "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" ; String expectedFullUnitToString = expectedDietUnitToString ; String expectedCompletionDietUnitToString = expectedDietUnitToString ; String testName = "<STR_LIT>" ; checkParse ( s . toCharArray ( ) , expectedDietUnitToString , expectedDietPlusBodyUnitToString , expectedDietPlusBodyUnitToString , expectedFullUnitToString , expectedCompletionDietUnitToString , testName ) ; } public void test0018 ( ) { String s = "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" ; String expectedDietUnitToString = "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" ; String expectedDietPlusBodyUnitToString = "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" ; String expectedFullUnitToString = expectedDietUnitToString ; String expectedCompletionDietUnitToString = expectedDietUnitToString ; String testName = "<STR_LIT>" ; checkParse ( s . toCharArray ( ) , expectedDietUnitToString , expectedDietPlusBodyUnitToString , expectedDietPlusBodyUnitToString , expectedFullUnitToString , expectedCompletionDietUnitToString , testName ) ; } public void test0019 ( ) { String s = "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" ; String expectedDietUnitToString = "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" ; String expectedDietPlusBodyUnitToString = "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" ; String expectedDietPlusBodyPlusStatementsRecoveryUnitToString = "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" ; String expectedFullUnitToString = expectedDietUnitToString ; String expectedCompletionDietUnitToString = expectedDietUnitToString ; String testName = "<STR_LIT>" ; checkParse ( s . toCharArray ( ) , expectedDietUnitToString , expectedDietPlusBodyUnitToString , expectedDietPlusBodyPlusStatementsRecoveryUnitToString , expectedFullUnitToString , expectedCompletionDietUnitToString , testName ) ; } public void test0020 ( ) { String s = "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT:}>" ; String expectedDietUnitToString = "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" ; String expectedDietPlusBodyUnitToString = "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" ; String expectedFullUnitToString = expectedDietPlusBodyUnitToString ; String expectedCompletionDietUnitToString = expectedDietUnitToString ; String testName = "<STR_LIT>" ; checkParse ( s . toCharArray ( ) , expectedDietUnitToString , expectedDietPlusBodyUnitToString , expectedDietPlusBodyUnitToString , expectedFullUnitToString , expectedCompletionDietUnitToString , testName ) ; } public void test0021 ( ) { String s = "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT:}>" ; String expectedDietUnitToString = "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" ; String expectedDietPlusBodyUnitToString = expectedDietUnitToString ; String expectedFullUnitToString = expectedDietPlusBodyUnitToString ; String expectedCompletionDietUnitToString = expectedDietUnitToString ; String testName = "<STR_LIT>" ; checkParse ( s . toCharArray ( ) , expectedDietUnitToString , expectedDietPlusBodyUnitToString , expectedDietPlusBodyUnitToString , expectedFullUnitToString , expectedCompletionDietUnitToString , testName ) ; } public void test0022 ( ) { String s = "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT:}>" ; String expectedDietUnitToString = "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" ; String expectedDietPlusBodyUnitToString = expectedDietUnitToString ; String expectedFullUnitToString = expectedDietPlusBodyUnitToString ; String expectedCompletionDietUnitToString = expectedDietUnitToString ; String testName = "<STR_LIT>" ; checkParse ( s . toCharArray ( ) , expectedDietUnitToString , expectedDietPlusBodyUnitToString , expectedDietPlusBodyUnitToString , expectedFullUnitToString , expectedCompletionDietUnitToString , testName ) ; } public void test0023 ( ) { String s = "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT:}>" ; String expectedDietUnitToString = "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" ; String expectedDietPlusBodyUnitToString = expectedDietUnitToString ; String expectedFullUnitToString = expectedDietPlusBodyUnitToString ; String expectedCompletionDietUnitToString = expectedDietUnitToString ; String testName = "<STR_LIT>" ; checkParse ( s . toCharArray ( ) , expectedDietUnitToString , expectedDietPlusBodyUnitToString , expectedDietPlusBodyUnitToString , expectedFullUnitToString , expectedCompletionDietUnitToString , testName ) ; } public void test0024 ( ) { String s = "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT:}>" ; String expectedDietUnitToString = "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" ; String expectedDietPlusBodyUnitToString = expectedDietUnitToString ; String expectedFullUnitToString = expectedDietPlusBodyUnitToString ; String expectedCompletionDietUnitToString = expectedDietUnitToString ; String testName = "<STR_LIT>" ; checkParse ( s . toCharArray ( ) , expectedDietUnitToString , expectedDietPlusBodyUnitToString , expectedDietPlusBodyUnitToString , expectedFullUnitToString , expectedCompletionDietUnitToString , testName ) ; } public void test0025 ( ) { String s = "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT:}>" ; String expectedDietUnitToString = "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" ; String expectedDietPlusBodyUnitToString = expectedDietUnitToString ; String expectedFullUnitToString = expectedDietPlusBodyUnitToString ; String expectedCompletionDietUnitToString = expectedDietUnitToString ; String testName = "<STR_LIT>" ; checkParse ( s . toCharArray ( ) , expectedDietUnitToString , expectedDietPlusBodyUnitToString , expectedDietPlusBodyUnitToString , expectedFullUnitToString , expectedCompletionDietUnitToString , testName ) ; } public void test0026 ( ) { String s = "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT:}>" ; String expectedDietUnitToString = "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" ; String expectedDietPlusBodyUnitToString = expectedDietUnitToString ; String expectedFullUnitToString = expectedDietPlusBodyUnitToString ; String expectedCompletionDietUnitToString = expectedDietUnitToString ; String testName = "<STR_LIT>" ; checkParse ( s . toCharArray ( ) , expectedDietUnitToString , expectedDietPlusBodyUnitToString , expectedDietPlusBodyUnitToString , expectedFullUnitToString , expectedCompletionDietUnitToString , testName ) ; } } </s>
|
<s> package org . eclipse . jdt . core . tests . compiler . parser ; import java . util . ArrayList ; import java . util . List ; import org . eclipse . jdt . core . tests . junit . extension . TestCase ; import org . eclipse . jdt . core . tests . util . AbstractCompilerTest ; import org . eclipse . jdt . internal . compiler . classfmt . ClassFileConstants ; import junit . framework . Test ; import junit . framework . TestSuite ; public class RunCompletionParserTests extends junit . framework . TestCase { public final static List TEST_CLASSES = new ArrayList ( ) ; public final static List TEST_CLASSES_1_5 = new ArrayList ( ) ; static { TEST_CLASSES . add ( AllocationExpressionCompletionTest . class ) ; TEST_CLASSES . add ( ClassLiteralAccessCompletionTest . class ) ; TEST_CLASSES . add ( CompletionParserTest . class ) ; TEST_CLASSES . add ( CompletionParserTest2 . class ) ; TEST_CLASSES . add ( CompletionParserTestKeyword . class ) ; TEST_CLASSES . add ( CompletionRecoveryTest . class ) ; TEST_CLASSES . add ( DietCompletionTest . class ) ; TEST_CLASSES . add ( ExplicitConstructorInvocationCompletionTest . class ) ; TEST_CLASSES . add ( FieldAccessCompletionTest . class ) ; TEST_CLASSES . add ( InnerTypeCompletionTest . class ) ; TEST_CLASSES . add ( JavadocCompletionParserTest . class ) ; TEST_CLASSES . add ( LabelStatementCompletionTest . class ) ; TEST_CLASSES . add ( MethodInvocationCompletionTest . class ) ; TEST_CLASSES . add ( NameReferenceCompletionTest . class ) ; TEST_CLASSES . add ( ReferenceTypeCompletionTest . class ) ; TEST_CLASSES_1_5 . add ( GenericsCompletionParserTest . class ) ; TEST_CLASSES_1_5 . add ( EnumCompletionParserTest . class ) ; TEST_CLASSES_1_5 . add ( AnnotationCompletionParserTest . class ) ; } public RunCompletionParserTests ( String name ) { super ( name ) ; } public static Test suite ( ) { ArrayList testClasses = new ArrayList ( ) ; testClasses . addAll ( RunCompletionParserTests . TEST_CLASSES ) ; TestSuite all = new TestSuite ( TestAll . class . getName ( ) ) ; int possibleComplianceLevels = AbstractCompilerTest . getPossibleComplianceLevels ( ) ; if ( ( possibleComplianceLevels & AbstractCompilerTest . F_1_3 ) != <NUM_LIT:0> ) { ArrayList tests_1_3 = ( ArrayList ) testClasses . clone ( ) ; TestCase . TESTS_PREFIX = null ; TestCase . TESTS_NAMES = null ; TestCase . TESTS_NUMBERS = null ; TestCase . TESTS_RANGE = null ; TestCase . RUN_ONLY_ID = null ; all . addTest ( AbstractCompilerTest . buildComplianceTestSuite ( ClassFileConstants . JDK1_3 , tests_1_3 ) ) ; } if ( ( possibleComplianceLevels & AbstractCompilerTest . F_1_4 ) != <NUM_LIT:0> ) { ArrayList tests_1_4 = ( ArrayList ) testClasses . clone ( ) ; TestCase . TESTS_PREFIX = null ; TestCase . TESTS_NAMES = null ; TestCase . TESTS_NUMBERS = null ; TestCase . TESTS_RANGE = null ; TestCase . RUN_ONLY_ID = null ; all . addTest ( AbstractCompilerTest . buildComplianceTestSuite ( ClassFileConstants . JDK1_4 , tests_1_4 ) ) ; } if ( ( possibleComplianceLevels & AbstractCompilerTest . F_1_5 ) != <NUM_LIT:0> ) { ArrayList tests_1_5 = ( ArrayList ) testClasses . clone ( ) ; tests_1_5 . addAll ( TEST_CLASSES_1_5 ) ; TestCase . TESTS_PREFIX = null ; TestCase . TESTS_NAMES = null ; TestCase . TESTS_NUMBERS = null ; TestCase . TESTS_RANGE = null ; TestCase . RUN_ONLY_ID = null ; all . addTest ( AbstractCompilerTest . buildComplianceTestSuite ( ClassFileConstants . JDK1_5 , tests_1_5 ) ) ; } if ( ( possibleComplianceLevels & AbstractCompilerTest . F_1_6 ) != <NUM_LIT:0> ) { ArrayList tests_1_6 = ( ArrayList ) testClasses . clone ( ) ; tests_1_6 . addAll ( TEST_CLASSES_1_5 ) ; TestCase . TESTS_PREFIX = null ; TestCase . TESTS_NAMES = null ; TestCase . TESTS_NUMBERS = null ; TestCase . TESTS_RANGE = null ; TestCase . RUN_ONLY_ID = null ; all . addTest ( AbstractCompilerTest . buildComplianceTestSuite ( ClassFileConstants . JDK1_6 , tests_1_6 ) ) ; } if ( ( possibleComplianceLevels & AbstractCompilerTest . F_1_7 ) != <NUM_LIT:0> ) { ArrayList tests_1_7 = ( ArrayList ) testClasses . clone ( ) ; tests_1_7 . addAll ( TEST_CLASSES_1_5 ) ; TestCase . TESTS_PREFIX = null ; TestCase . TESTS_NAMES = null ; TestCase . TESTS_NUMBERS = null ; TestCase . TESTS_RANGE = null ; TestCase . RUN_ONLY_ID = null ; all . addTest ( AbstractCompilerTest . buildComplianceTestSuite ( ClassFileConstants . JDK1_7 , tests_1_7 ) ) ; } return all ; } } </s>
|
<s> package org . eclipse . jdt . core . tests . compiler . parser ; import java . util . Map ; import junit . framework . Test ; import org . eclipse . jdt . internal . compiler . impl . CompilerOptions ; public class AnnotationCompletionParserTest extends AbstractCompletionTest { public AnnotationCompletionParserTest ( String testName ) { super ( testName ) ; } public static Test suite ( ) { return buildAllCompliancesTestSuite ( AnnotationCompletionParserTest . class ) ; } protected Map getCompilerOptions ( ) { Map options = super . getCompilerOptions ( ) ; options . put ( CompilerOptions . OPTION_Compliance , CompilerOptions . VERSION_1_5 ) ; options . put ( CompilerOptions . OPTION_Source , CompilerOptions . VERSION_1_5 ) ; options . put ( CompilerOptions . OPTION_TargetPlatform , CompilerOptions . VERSION_1_5 ) ; return options ; } public void test0001 ( ) { String str = "<STR_LIT>" + "<STR_LIT:}>" ; String completeBehind = "<STR_LIT>" ; int cursorLocation = str . indexOf ( completeBehind ) + completeBehind . length ( ) - <NUM_LIT:1> ; String expectedCompletionNodeToString = "<STR_LIT>" ; String expectedParentNodeToString = "<STR_LIT>" ; String completionIdentifier = "<STR_LIT>" ; String expectedReplacedSource = "<STR_LIT>" ; String expectedUnitDisplayString = "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" ; checkDietParse ( str . toCharArray ( ) , cursorLocation , expectedCompletionNodeToString , expectedParentNodeToString , expectedUnitDisplayString , completionIdentifier , expectedReplacedSource , "<STR_LIT>" ) ; } public void test0002 ( ) { String str = "<STR_LIT>" + "<STR_LIT:}>" ; String completeBehind = "<STR_LIT>" ; int cursorLocation = str . indexOf ( completeBehind ) + completeBehind . length ( ) - <NUM_LIT:1> ; String expectedCompletionNodeToString = "<STR_LIT>" ; String expectedParentNodeToString = "<STR_LIT>" ; String completionIdentifier = "<STR_LIT>" ; String expectedReplacedSource = "<STR_LIT>" ; String expectedUnitDisplayString = "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" ; checkDietParse ( str . toCharArray ( ) , cursorLocation , expectedCompletionNodeToString , expectedParentNodeToString , expectedUnitDisplayString , completionIdentifier , expectedReplacedSource , "<STR_LIT>" ) ; } public void test0003 ( ) { String str = "<STR_LIT>" + "<STR_LIT:}>" ; String completeBehind = "<STR_LIT>" ; int cursorLocation = str . indexOf ( completeBehind ) + completeBehind . length ( ) - <NUM_LIT:1> ; String expectedCompletionNodeToString = "<STR_LIT>" ; String expectedParentNodeToString = "<STR_LIT>" ; String completionIdentifier = "<STR_LIT>" ; String expectedReplacedSource = "<STR_LIT>" ; String expectedUnitDisplayString = "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" ; checkDietParse ( str . toCharArray ( ) , cursorLocation , expectedCompletionNodeToString , expectedParentNodeToString , expectedUnitDisplayString , completionIdentifier , expectedReplacedSource , "<STR_LIT>" ) ; } public void test0004 ( ) { String str = "<STR_LIT>" + "<STR_LIT:}>" ; String completeBehind = "<STR_LIT>" ; int cursorLocation = str . indexOf ( completeBehind ) + completeBehind . length ( ) - <NUM_LIT:1> ; String expectedCompletionNodeToString = "<STR_LIT>" ; String expectedParentNodeToString = "<STR_LIT>" ; String completionIdentifier = "<STR_LIT>" ; String expectedReplacedSource = "<STR_LIT>" ; String expectedUnitDisplayString = "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" ; checkDietParse ( str . toCharArray ( ) , cursorLocation , expectedCompletionNodeToString , expectedParentNodeToString , expectedUnitDisplayString , completionIdentifier , expectedReplacedSource , "<STR_LIT>" ) ; } public void test0005 ( ) { String str = "<STR_LIT>" + "<STR_LIT>" ; String completeBehind = "<STR_LIT>" ; int cursorLocation = str . indexOf ( completeBehind ) + completeBehind . length ( ) - <NUM_LIT:1> ; String expectedCompletionNodeToString = "<STR_LIT>" ; String expectedParentNodeToString = "<STR_LIT>" ; String completionIdentifier = "<STR_LIT>" ; String expectedReplacedSource = "<STR_LIT>" ; String expectedUnitDisplayString = "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" ; checkDietParse ( str . toCharArray ( ) , cursorLocation , expectedCompletionNodeToString , expectedParentNodeToString , expectedUnitDisplayString , completionIdentifier , expectedReplacedSource , "<STR_LIT>" ) ; } public void test0006 ( ) { String str = "<STR_LIT>" + "<STR_LIT>" ; String completeBehind = "<STR_LIT>" ; int cursorLocation = str . indexOf ( completeBehind ) + completeBehind . length ( ) - <NUM_LIT:1> ; String expectedCompletionNodeToString = "<STR_LIT>" ; String expectedParentNodeToString = "<STR_LIT>" ; String completionIdentifier = "<STR_LIT>" ; String expectedReplacedSource = "<STR_LIT>" ; String expectedUnitDisplayString = "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" ; checkDietParse ( str . toCharArray ( ) , cursorLocation , expectedCompletionNodeToString , expectedParentNodeToString , expectedUnitDisplayString , completionIdentifier , expectedReplacedSource , "<STR_LIT>" ) ; } public void test0007 ( ) { String str = "<STR_LIT>" + "<STR_LIT>" ; String completeBehind = "<STR_LIT>" ; int cursorLocation = str . indexOf ( completeBehind ) + completeBehind . length ( ) - <NUM_LIT:1> ; String expectedCompletionNodeToString = "<STR_LIT>" ; String expectedParentNodeToString = "<STR_LIT>" ; String completionIdentifier = "<STR_LIT>" ; String expectedReplacedSource = "<STR_LIT>" ; String expectedUnitDisplayString = "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" ; checkDietParse ( str . toCharArray ( ) , cursorLocation , expectedCompletionNodeToString , expectedParentNodeToString , expectedUnitDisplayString , completionIdentifier , expectedReplacedSource , "<STR_LIT>" ) ; } public void test0008 ( ) { String str = "<STR_LIT>" + "<STR_LIT>" ; String completeBehind = "<STR_LIT>" ; int cursorLocation = str . indexOf ( completeBehind ) + completeBehind . length ( ) - <NUM_LIT:1> ; String expectedCompletionNodeToString = "<STR_LIT>" ; String expectedParentNodeToString = "<STR_LIT>" ; String completionIdentifier = "<STR_LIT>" ; String expectedReplacedSource = "<STR_LIT>" ; String expectedUnitDisplayString = "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" ; checkDietParse ( str . toCharArray ( ) , cursorLocation , expectedCompletionNodeToString , expectedParentNodeToString , expectedUnitDisplayString , completionIdentifier , expectedReplacedSource , "<STR_LIT>" ) ; } public void test0009 ( ) { String str = "<STR_LIT>" + "<STR_LIT>" ; String completeBehind = "<STR_LIT>" ; int cursorLocation = str . indexOf ( completeBehind ) + completeBehind . length ( ) - <NUM_LIT:1> ; String expectedCompletionNodeToString = "<STR_LIT>" ; String expectedParentNodeToString = "<STR_LIT>" ; String completionIdentifier = "<STR_LIT>" ; String expectedReplacedSource = "<STR_LIT>" ; String expectedUnitDisplayString = "<STR_LIT>" ; checkDietParse ( str . toCharArray ( ) , cursorLocation , expectedCompletionNodeToString , expectedParentNodeToString , expectedUnitDisplayString , completionIdentifier , expectedReplacedSource , "<STR_LIT>" ) ; } public void test0010 ( ) { String str = "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT:}>" ; String completeBehind = "<STR_LIT>" ; int cursorLocation = str . indexOf ( completeBehind ) + completeBehind . length ( ) - <NUM_LIT:1> ; String expectedCompletionNodeToString = "<STR_LIT>" ; String expectedParentNodeToString = "<STR_LIT>" ; String completionIdentifier = "<STR_LIT>" ; String expectedReplacedSource = "<STR_LIT>" ; String expectedUnitDisplayString = "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" ; checkDietParse ( str . toCharArray ( ) , cursorLocation , expectedCompletionNodeToString , expectedParentNodeToString , expectedUnitDisplayString , completionIdentifier , expectedReplacedSource , "<STR_LIT>" ) ; } public void test0011 ( ) { String str = "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" ; String completeBehind = "<STR_LIT>" ; int cursorLocation = str . indexOf ( completeBehind ) + completeBehind . length ( ) - <NUM_LIT:1> ; String expectedCompletionNodeToString = "<STR_LIT>" ; String expectedParentNodeToString = "<STR_LIT>" ; String completionIdentifier = "<STR_LIT>" ; String expectedReplacedSource = "<STR_LIT>" ; String expectedUnitDisplayString = "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" ; checkDietParse ( str . toCharArray ( ) , cursorLocation , expectedCompletionNodeToString , expectedParentNodeToString , expectedUnitDisplayString , completionIdentifier , expectedReplacedSource , "<STR_LIT>" ) ; } public void test0012 ( ) { String str = "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT:}>" ; String completeBehind = "<STR_LIT>" ; int cursorLocation = str . indexOf ( completeBehind ) + completeBehind . length ( ) - <NUM_LIT:1> ; String expectedCompletionNodeToString = "<STR_LIT>" ; String expectedParentNodeToString = "<STR_LIT>" ; String completionIdentifier = "<STR_LIT>" ; String expectedReplacedSource = "<STR_LIT>" ; String expectedUnitDisplayString = "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" ; checkDietParse ( str . toCharArray ( ) , cursorLocation , expectedCompletionNodeToString , expectedParentNodeToString , expectedUnitDisplayString , completionIdentifier , expectedReplacedSource , "<STR_LIT>" ) ; } public void test0013_Diet ( ) { String str = "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT:}>" ; String completeBehind = "<STR_LIT>" ; int cursorLocation = str . indexOf ( completeBehind ) + completeBehind . length ( ) - <NUM_LIT:1> ; String expectedCompletionNodeToString = "<STR_LIT>" ; String expectedParentNodeToString = "<STR_LIT>" ; String completionIdentifier = "<STR_LIT>" ; String expectedReplacedSource = "<STR_LIT>" ; String expectedUnitDisplayString = "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" ; checkDietParse ( str . toCharArray ( ) , cursorLocation , expectedCompletionNodeToString , expectedParentNodeToString , expectedUnitDisplayString , completionIdentifier , expectedReplacedSource , "<STR_LIT>" ) ; } public void test0013_Method ( ) { String str = "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT:}>" ; String completeBehind = "<STR_LIT>" ; int cursorLocation = str . indexOf ( completeBehind ) + completeBehind . length ( ) - <NUM_LIT:1> ; String expectedCompletionNodeToString = "<STR_LIT>" ; String expectedParentNodeToString = "<STR_LIT>" ; String completionIdentifier = "<STR_LIT>" ; String expectedReplacedSource = "<STR_LIT>" ; String expectedUnitDisplayString = "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" ; checkMethodParse ( str . toCharArray ( ) , cursorLocation , expectedCompletionNodeToString , expectedParentNodeToString , expectedUnitDisplayString , completionIdentifier , expectedReplacedSource , "<STR_LIT>" ) ; } public void test0014 ( ) { String str = "<STR_LIT>" + "<STR_LIT:}>" ; String completeBehind = "<STR_LIT>" ; int cursorLocation = str . indexOf ( completeBehind ) + completeBehind . length ( ) - <NUM_LIT:1> ; String expectedCompletionNodeToString = "<STR_LIT>" ; String expectedParentNodeToString = "<STR_LIT>" ; String completionIdentifier = "<STR_LIT>" ; String expectedReplacedSource = "<STR_LIT>" ; String expectedUnitDisplayString = "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" ; checkDietParse ( str . toCharArray ( ) , cursorLocation , expectedCompletionNodeToString , expectedParentNodeToString , expectedUnitDisplayString , completionIdentifier , expectedReplacedSource , "<STR_LIT>" ) ; } public void test0015 ( ) { String str = "<STR_LIT>" + "<STR_LIT>" ; String completeBehind = "<STR_LIT>" ; int cursorLocation = str . indexOf ( completeBehind ) + completeBehind . length ( ) - <NUM_LIT:1> ; String expectedCompletionNodeToString = "<STR_LIT>" ; String expectedParentNodeToString = "<STR_LIT>" ; String completionIdentifier = "<STR_LIT>" ; String expectedReplacedSource = "<STR_LIT>" ; String expectedUnitDisplayString = "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" ; checkDietParse ( str . toCharArray ( ) , cursorLocation , expectedCompletionNodeToString , expectedParentNodeToString , expectedUnitDisplayString , completionIdentifier , expectedReplacedSource , "<STR_LIT>" ) ; } public void test0016 ( ) { String str = "<STR_LIT>" + "<STR_LIT>" ; String completeBehind = "<STR_LIT>" ; int cursorLocation = str . indexOf ( completeBehind ) + completeBehind . length ( ) - <NUM_LIT:1> ; String expectedCompletionNodeToString = "<STR_LIT>" ; String expectedParentNodeToString = "<STR_LIT>" ; String completionIdentifier = "<STR_LIT>" ; String expectedReplacedSource = "<STR_LIT>" ; String expectedUnitDisplayString = "<STR_LIT>" ; checkDietParse ( str . toCharArray ( ) , cursorLocation , expectedCompletionNodeToString , expectedParentNodeToString , expectedUnitDisplayString , completionIdentifier , expectedReplacedSource , "<STR_LIT>" ) ; } public void test0017 ( ) { String str = "<STR_LIT>" + "<STR_LIT:}>" ; String completeBehind = "<STR_LIT>" ; int cursorLocation = str . indexOf ( completeBehind ) + completeBehind . length ( ) - <NUM_LIT:1> ; String expectedCompletionNodeToString = "<STR_LIT>" ; String expectedParentNodeToString = "<STR_LIT>" ; String completionIdentifier = "<STR_LIT>" ; String expectedReplacedSource = "<STR_LIT>" ; String expectedUnitDisplayString = "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" ; checkDietParse ( str . toCharArray ( ) , cursorLocation , expectedCompletionNodeToString , expectedParentNodeToString , expectedUnitDisplayString , completionIdentifier , expectedReplacedSource , "<STR_LIT>" ) ; } public void test0018 ( ) { String str = "<STR_LIT>" + "<STR_LIT>" ; String completeBehind = "<STR_LIT>" ; int cursorLocation = str . indexOf ( completeBehind ) + completeBehind . length ( ) - <NUM_LIT:1> ; String expectedCompletionNodeToString = "<STR_LIT>" ; String expectedParentNodeToString = "<STR_LIT>" ; String completionIdentifier = "<STR_LIT>" ; String expectedReplacedSource = "<STR_LIT>" ; String expectedUnitDisplayString = "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" ; checkDietParse ( str . toCharArray ( ) , cursorLocation , expectedCompletionNodeToString , expectedParentNodeToString , expectedUnitDisplayString , completionIdentifier , expectedReplacedSource , "<STR_LIT>" ) ; } public void test0019 ( ) { String str = "<STR_LIT>" + "<STR_LIT>" ; String completeBehind = "<STR_LIT>" ; int cursorLocation = str . indexOf ( completeBehind ) + completeBehind . length ( ) - <NUM_LIT:1> ; String expectedCompletionNodeToString = "<STR_LIT>" ; String expectedParentNodeToString = "<STR_LIT>" ; String completionIdentifier = "<STR_LIT>" ; String expectedReplacedSource = "<STR_LIT>" ; String expectedUnitDisplayString = "<STR_LIT>" ; checkDietParse ( str . toCharArray ( ) , cursorLocation , expectedCompletionNodeToString , expectedParentNodeToString , expectedUnitDisplayString , completionIdentifier , expectedReplacedSource , "<STR_LIT>" ) ; } public void test0020 ( ) { String str = "<STR_LIT>" ; String completeBehind = "<STR_LIT>" ; int cursorLocation = str . indexOf ( completeBehind ) + completeBehind . length ( ) - <NUM_LIT:1> ; String expectedCompletionNodeToString = "<STR_LIT>" ; String expectedParentNodeToString = "<STR_LIT>" ; String completionIdentifier = "<STR_LIT>" ; String expectedReplacedSource = "<STR_LIT>" ; String expectedUnitDisplayString = "<STR_LIT>" ; checkDietParse ( str . toCharArray ( ) , cursorLocation , expectedCompletionNodeToString , expectedParentNodeToString , expectedUnitDisplayString , completionIdentifier , expectedReplacedSource , "<STR_LIT>" ) ; } public void test0021 ( ) { String str = "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT:}>" ; String completeBehind = "<STR_LIT>" ; int cursorLocation = str . indexOf ( completeBehind ) + completeBehind . length ( ) - <NUM_LIT:1> ; String expectedCompletionNodeToString = "<STR_LIT>" ; String expectedParentNodeToString = "<STR_LIT>" ; String completionIdentifier = "<STR_LIT>" ; String expectedReplacedSource = "<STR_LIT>" ; String expectedUnitDisplayString = "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" ; checkDietParse ( str . toCharArray ( ) , cursorLocation , expectedCompletionNodeToString , expectedParentNodeToString , expectedUnitDisplayString , completionIdentifier , expectedReplacedSource , "<STR_LIT>" ) ; } public void test0022 ( ) { String str = "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT:}>" ; String completeBehind = "<STR_LIT>" ; int cursorLocation = str . indexOf ( completeBehind ) + completeBehind . length ( ) - <NUM_LIT:1> ; String expectedCompletionNodeToString = "<STR_LIT>" ; String expectedParentNodeToString = "<STR_LIT>" ; String completionIdentifier = "<STR_LIT>" ; String expectedReplacedSource = "<STR_LIT>" ; String expectedUnitDisplayString = "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" ; checkDietParse ( str . toCharArray ( ) , cursorLocation , expectedCompletionNodeToString , expectedParentNodeToString , expectedUnitDisplayString , completionIdentifier , expectedReplacedSource , "<STR_LIT>" ) ; } public void test0023 ( ) { String str = "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT:}>" ; String completeBehind = "<STR_LIT>" ; int cursorLocation = str . indexOf ( completeBehind ) + completeBehind . length ( ) - <NUM_LIT:1> ; String expectedCompletionNodeToString = "<STR_LIT>" ; String expectedParentNodeToString = "<STR_LIT>" ; String completionIdentifier = "<STR_LIT>" ; String expectedReplacedSource = "<STR_LIT>" ; String expectedUnitDisplayString = "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" ; checkDietParse ( str . toCharArray ( ) , cursorLocation , expectedCompletionNodeToString , expectedParentNodeToString , expectedUnitDisplayString , completionIdentifier , expectedReplacedSource , "<STR_LIT>" ) ; } public void test0024_Diet ( ) { String str = "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT:}>" ; String completeBehind = "<STR_LIT>" ; int cursorLocation = str . indexOf ( completeBehind ) + completeBehind . length ( ) - <NUM_LIT:1> ; String expectedCompletionNodeToString = "<STR_LIT>" ; String expectedParentNodeToString = "<STR_LIT>" ; String completionIdentifier = "<STR_LIT>" ; String expectedReplacedSource = "<STR_LIT>" ; String expectedUnitDisplayString = "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" ; checkDietParse ( str . toCharArray ( ) , cursorLocation , expectedCompletionNodeToString , expectedParentNodeToString , expectedUnitDisplayString , completionIdentifier , expectedReplacedSource , "<STR_LIT>" ) ; } public void test0024_Method ( ) { String str = "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT:}>" ; String completeBehind = "<STR_LIT>" ; int cursorLocation = str . indexOf ( completeBehind ) + completeBehind . length ( ) - <NUM_LIT:1> ; String expectedCompletionNodeToString = "<STR_LIT>" ; String expectedParentNodeToString = "<STR_LIT>" ; String completionIdentifier = "<STR_LIT>" ; String expectedReplacedSource = "<STR_LIT>" ; String expectedUnitDisplayString = "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" ; checkMethodParse ( str . toCharArray ( ) , cursorLocation , expectedCompletionNodeToString , expectedParentNodeToString , expectedUnitDisplayString , completionIdentifier , expectedReplacedSource , "<STR_LIT>" ) ; } public void test0025 ( ) { String str = "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT:}>" ; String completeBehind = "<STR_LIT:foo>" ; int cursorLocation = str . indexOf ( completeBehind ) + completeBehind . length ( ) - <NUM_LIT:1> ; String expectedCompletionNodeToString = "<STR_LIT>" ; String expectedParentNodeToString = "<STR_LIT>" ; String completionIdentifier = "<STR_LIT:foo>" ; String expectedReplacedSource = "<STR_LIT:foo>" ; String expectedUnitDisplayString = "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" ; checkDietParse ( str . toCharArray ( ) , cursorLocation , expectedCompletionNodeToString , expectedParentNodeToString , expectedUnitDisplayString , completionIdentifier , expectedReplacedSource , "<STR_LIT>" ) ; } public void test0026 ( ) { String str = "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT:}>" ; String completeBehind = "<STR_LIT:foo>" ; int cursorLocation = str . indexOf ( completeBehind ) + completeBehind . length ( ) - <NUM_LIT:1> ; String expectedCompletionNodeToString = "<STR_LIT>" ; String expectedParentNodeToString = "<STR_LIT>" ; String completionIdentifier = "<STR_LIT:foo>" ; String expectedReplacedSource = "<STR_LIT:foo>" ; String expectedUnitDisplayString = "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" ; checkDietParse ( str . toCharArray ( ) , cursorLocation , expectedCompletionNodeToString , expectedParentNodeToString , expectedUnitDisplayString , completionIdentifier , expectedReplacedSource , "<STR_LIT>" ) ; } public void test0027 ( ) { String str = "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT:}>" ; String completeBehind = "<STR_LIT:foo>" ; int cursorLocation = str . indexOf ( completeBehind ) + completeBehind . length ( ) - <NUM_LIT:1> ; String expectedCompletionNodeToString = "<STR_LIT>" ; String expectedParentNodeToString = "<STR_LIT>" ; String completionIdentifier = "<STR_LIT:foo>" ; String expectedReplacedSource = "<STR_LIT:foo>" ; String expectedUnitDisplayString = "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" ; checkDietParse ( str . toCharArray ( ) , cursorLocation , expectedCompletionNodeToString , expectedParentNodeToString , expectedUnitDisplayString , completionIdentifier , expectedReplacedSource , "<STR_LIT>" ) ; } public void test0028_Diet ( ) { String str = "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT:}>" ; String completeBehind = "<STR_LIT:foo>" ; int cursorLocation = str . indexOf ( completeBehind ) + completeBehind . length ( ) - <NUM_LIT:1> ; String expectedCompletionNodeToString = "<STR_LIT>" ; String expectedParentNodeToString = "<STR_LIT>" ; String completionIdentifier = "<STR_LIT>" ; String expectedReplacedSource = "<STR_LIT>" ; String expectedUnitDisplayString = "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" ; checkDietParse ( str . toCharArray ( ) , cursorLocation , expectedCompletionNodeToString , expectedParentNodeToString , expectedUnitDisplayString , completionIdentifier , expectedReplacedSource , "<STR_LIT>" ) ; } public void test0028_Method ( ) { String str = "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT:}>" ; String completeBehind = "<STR_LIT:foo>" ; int cursorLocation = str . indexOf ( completeBehind ) + completeBehind . length ( ) - <NUM_LIT:1> ; String expectedCompletionNodeToString = "<STR_LIT>" ; String expectedParentNodeToString = "<STR_LIT>" ; String completionIdentifier = "<STR_LIT:foo>" ; String expectedReplacedSource = "<STR_LIT:foo>" ; String expectedUnitDisplayString = "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" ; checkMethodParse ( str . toCharArray ( ) , cursorLocation , expectedCompletionNodeToString , expectedParentNodeToString , expectedUnitDisplayString , completionIdentifier , expectedReplacedSource , "<STR_LIT>" ) ; } public void test0029_Diet ( ) { String str = "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT:}>" ; String completeBehind = "<STR_LIT:foo>" ; int cursorLocation = str . indexOf ( completeBehind ) + completeBehind . length ( ) - <NUM_LIT:1> ; String expectedCompletionNodeToString = "<STR_LIT>" ; String expectedParentNodeToString = "<STR_LIT>" ; String completionIdentifier = "<STR_LIT:foo>" ; String expectedReplacedSource = "<STR_LIT:foo>" ; String expectedUnitDisplayString = "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" ; checkDietParse ( str . toCharArray ( ) , cursorLocation , expectedCompletionNodeToString , expectedParentNodeToString , expectedUnitDisplayString , completionIdentifier , expectedReplacedSource , "<STR_LIT>" ) ; } public void test0029_Method ( ) { String str = "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT:}>" ; String completeBehind = "<STR_LIT:foo>" ; int cursorLocation = str . indexOf ( completeBehind ) + completeBehind . length ( ) - <NUM_LIT:1> ; String expectedCompletionNodeToString = "<STR_LIT>" ; String expectedParentNodeToString = "<STR_LIT>" ; String completionIdentifier = "<STR_LIT:foo>" ; String expectedReplacedSource = "<STR_LIT:foo>" ; String expectedUnitDisplayString = "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" ; checkMethodParse ( str . toCharArray ( ) , cursorLocation , expectedCompletionNodeToString , expectedParentNodeToString , expectedUnitDisplayString , completionIdentifier , expectedReplacedSource , "<STR_LIT>" ) ; } public void test0030 ( ) { String str = "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT:}>" ; String completeBehind = "<STR_LIT:foo>" ; int cursorLocation = str . indexOf ( completeBehind ) + completeBehind . length ( ) - <NUM_LIT:1> ; String expectedCompletionNodeToString = "<STR_LIT>" ; String expectedParentNodeToString = "<STR_LIT>" ; String completionIdentifier = "<STR_LIT:foo>" ; String expectedReplacedSource = "<STR_LIT:foo>" ; String expectedUnitDisplayString = "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" ; checkDietParse ( str . toCharArray ( ) , cursorLocation , expectedCompletionNodeToString , expectedParentNodeToString , expectedUnitDisplayString , completionIdentifier , expectedReplacedSource , "<STR_LIT>" ) ; } public void test0031 ( ) { String str = "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT:}>" ; String completeBehind = "<STR_LIT:foo>" ; int cursorLocation = str . indexOf ( completeBehind ) + completeBehind . length ( ) - <NUM_LIT:1> ; String expectedCompletionNodeToString = "<STR_LIT>" ; String expectedParentNodeToString = "<STR_LIT>" ; String completionIdentifier = "<STR_LIT:foo>" ; String expectedReplacedSource = "<STR_LIT:foo>" ; String expectedUnitDisplayString = "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" ; checkDietParse ( str . toCharArray ( ) , cursorLocation , expectedCompletionNodeToString , expectedParentNodeToString , expectedUnitDisplayString , completionIdentifier , expectedReplacedSource , "<STR_LIT>" ) ; } public void test0032 ( ) { String str = "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT:}>" ; String completeBehind = "<STR_LIT:foo>" ; int cursorLocation = str . indexOf ( completeBehind ) + completeBehind . length ( ) - <NUM_LIT:1> ; String expectedCompletionNodeToString = "<STR_LIT>" ; String expectedParentNodeToString = "<STR_LIT>" ; String completionIdentifier = "<STR_LIT:foo>" ; String expectedReplacedSource = "<STR_LIT:foo>" ; String expectedUnitDisplayString = "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" ; checkDietParse ( str . toCharArray ( ) , cursorLocation , expectedCompletionNodeToString , expectedParentNodeToString , expectedUnitDisplayString , completionIdentifier , expectedReplacedSource , "<STR_LIT>" ) ; } public void test0033 ( ) { String str = "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT:}>" ; String completeBehind = "<STR_LIT:foo>" ; int cursorLocation = str . indexOf ( completeBehind ) + completeBehind . length ( ) - <NUM_LIT:1> ; String expectedCompletionNodeToString = "<STR_LIT>" ; String expectedParentNodeToString = "<STR_LIT>" ; String completionIdentifier = "<STR_LIT:foo>" ; String expectedReplacedSource = "<STR_LIT:foo>" ; String expectedUnitDisplayString = "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" ; checkDietParse ( str . toCharArray ( ) , cursorLocation , expectedCompletionNodeToString , expectedParentNodeToString , expectedUnitDisplayString , completionIdentifier , expectedReplacedSource , "<STR_LIT>" ) ; } public void test0034_Diet ( ) { String str = "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT:}>" ; String completeBehind = "<STR_LIT:foo>" ; int cursorLocation = str . indexOf ( completeBehind ) + completeBehind . length ( ) - <NUM_LIT:1> ; String expectedCompletionNodeToString = "<STR_LIT>" ; String expectedParentNodeToString = "<STR_LIT>" ; String completionIdentifier = "<STR_LIT>" ; String expectedReplacedSource = "<STR_LIT>" ; String expectedUnitDisplayString = "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" ; checkDietParse ( str . toCharArray ( ) , cursorLocation , expectedCompletionNodeToString , expectedParentNodeToString , expectedUnitDisplayString , completionIdentifier , expectedReplacedSource , "<STR_LIT>" ) ; } public void test0034_Method ( ) { String str = "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT:}>" ; String completeBehind = "<STR_LIT:foo>" ; int cursorLocation = str . indexOf ( completeBehind ) + completeBehind . length ( ) - <NUM_LIT:1> ; String expectedCompletionNodeToString = "<STR_LIT>" ; String expectedParentNodeToString = "<STR_LIT>" ; String completionIdentifier = "<STR_LIT:foo>" ; String expectedReplacedSource = "<STR_LIT:foo>" ; String expectedUnitDisplayString = "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" ; checkMethodParse ( str . toCharArray ( ) , cursorLocation , expectedCompletionNodeToString , expectedParentNodeToString , expectedUnitDisplayString , completionIdentifier , expectedReplacedSource , "<STR_LIT>" ) ; } public void test0035_Diet ( ) { String str = "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT:}>" ; String completeBehind = "<STR_LIT:foo>" ; int cursorLocation = str . indexOf ( completeBehind ) + completeBehind . length ( ) - <NUM_LIT:1> ; String expectedCompletionNodeToString = "<STR_LIT>" ; String expectedParentNodeToString = "<STR_LIT>" ; String completionIdentifier = "<STR_LIT:foo>" ; String expectedReplacedSource = "<STR_LIT:foo>" ; String expectedUnitDisplayString = "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" ; checkDietParse ( str . toCharArray ( ) , cursorLocation , expectedCompletionNodeToString , expectedParentNodeToString , expectedUnitDisplayString , completionIdentifier , expectedReplacedSource , "<STR_LIT>" ) ; } public void test0035_Method ( ) { String str = "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT:}>" ; String completeBehind = "<STR_LIT:foo>" ; int cursorLocation = str . indexOf ( completeBehind ) + completeBehind . length ( ) - <NUM_LIT:1> ; String expectedCompletionNodeToString = "<STR_LIT>" ; String expectedParentNodeToString = "<STR_LIT>" ; String completionIdentifier = "<STR_LIT:foo>" ; String expectedReplacedSource = "<STR_LIT:foo>" ; String expectedUnitDisplayString = "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" ; checkMethodParse ( str . toCharArray ( ) , cursorLocation , expectedCompletionNodeToString , expectedParentNodeToString , expectedUnitDisplayString , completionIdentifier , expectedReplacedSource , "<STR_LIT>" ) ; } public void test0036 ( ) { String str = "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT:}>" ; String completeBehind = "<STR_LIT:foo>" ; int cursorLocation = str . indexOf ( completeBehind ) + completeBehind . length ( ) - <NUM_LIT:1> ; String expectedCompletionNodeToString = "<STR_LIT>" ; String expectedParentNodeToString = "<STR_LIT>" ; String completionIdentifier = "<STR_LIT:foo>" ; String expectedReplacedSource = "<STR_LIT:foo>" ; String expectedUnitDisplayString = "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" ; checkDietParse ( str . toCharArray ( ) , cursorLocation , expectedCompletionNodeToString , expectedParentNodeToString , expectedUnitDisplayString , completionIdentifier , expectedReplacedSource , "<STR_LIT>" ) ; } public void test0037 ( ) { String str = "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT:}>" ; String completeBehind = "<STR_LIT:foo>" ; int cursorLocation = str . indexOf ( completeBehind ) + completeBehind . length ( ) - <NUM_LIT:1> ; String expectedCompletionNodeToString = "<STR_LIT>" ; String expectedParentNodeToString = "<STR_LIT>" ; String completionIdentifier = "<STR_LIT:foo>" ; String expectedReplacedSource = "<STR_LIT:foo>" ; String expectedUnitDisplayString = "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" ; checkDietParse ( str . toCharArray ( ) , cursorLocation , expectedCompletionNodeToString , expectedParentNodeToString , expectedUnitDisplayString , completionIdentifier , expectedReplacedSource , "<STR_LIT>" ) ; } public void test0038 ( ) { String str = "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT:}>" ; String completeBehind = "<STR_LIT:foo>" ; int cursorLocation = str . indexOf ( completeBehind ) + completeBehind . length ( ) - <NUM_LIT:1> ; String expectedCompletionNodeToString = "<STR_LIT>" ; String expectedParentNodeToString = "<STR_LIT>" ; String completionIdentifier = "<STR_LIT:foo>" ; String expectedReplacedSource = "<STR_LIT:foo>" ; String expectedUnitDisplayString = "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" ; checkDietParse ( str . toCharArray ( ) , cursorLocation , expectedCompletionNodeToString , expectedParentNodeToString , expectedUnitDisplayString , completionIdentifier , expectedReplacedSource , "<STR_LIT>" ) ; } public void test0039 ( ) { String str = "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT:}>" ; String completeBehind = "<STR_LIT:foo>" ; int cursorLocation = str . indexOf ( completeBehind ) + completeBehind . length ( ) - <NUM_LIT:1> ; String expectedCompletionNodeToString = "<STR_LIT>" ; String expectedParentNodeToString = "<STR_LIT>" ; String completionIdentifier = "<STR_LIT:foo>" ; String expectedReplacedSource = "<STR_LIT:foo>" ; String expectedUnitDisplayString = "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" ; checkDietParse ( str . toCharArray ( ) , cursorLocation , expectedCompletionNodeToString , expectedParentNodeToString , expectedUnitDisplayString , completionIdentifier , expectedReplacedSource , "<STR_LIT>" ) ; } public void test0040_Diet ( ) { String str = "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT:}>" ; String completeBehind = "<STR_LIT:foo>" ; int cursorLocation = str . indexOf ( completeBehind ) + completeBehind . length ( ) - <NUM_LIT:1> ; String expectedCompletionNodeToString = "<STR_LIT>" ; String expectedParentNodeToString = "<STR_LIT>" ; String completionIdentifier = "<STR_LIT>" ; String expectedReplacedSource = "<STR_LIT>" ; String expectedUnitDisplayString = "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" ; checkDietParse ( str . toCharArray ( ) , cursorLocation , expectedCompletionNodeToString , expectedParentNodeToString , expectedUnitDisplayString , completionIdentifier , expectedReplacedSource , "<STR_LIT>" ) ; } public void test0040_Method ( ) { String str = "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT:}>" ; String completeBehind = "<STR_LIT:foo>" ; int cursorLocation = str . indexOf ( completeBehind ) + completeBehind . length ( ) - <NUM_LIT:1> ; String expectedCompletionNodeToString = "<STR_LIT>" ; String expectedParentNodeToString = "<STR_LIT>" ; String completionIdentifier = "<STR_LIT:foo>" ; String expectedReplacedSource = "<STR_LIT:foo>" ; String expectedUnitDisplayString = "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" ; checkMethodParse ( str . toCharArray ( ) , cursorLocation , expectedCompletionNodeToString , expectedParentNodeToString , expectedUnitDisplayString , completionIdentifier , expectedReplacedSource , "<STR_LIT>" ) ; } public void test0041_Diet ( ) { String str = "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT:}>" ; String completeBehind = "<STR_LIT:foo>" ; int cursorLocation = str . indexOf ( completeBehind ) + completeBehind . length ( ) - <NUM_LIT:1> ; String expectedCompletionNodeToString = "<STR_LIT>" ; String expectedParentNodeToString = "<STR_LIT>" ; String completionIdentifier = "<STR_LIT:foo>" ; String expectedReplacedSource = "<STR_LIT:foo>" ; String expectedUnitDisplayString = "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" ; checkDietParse ( str . toCharArray ( ) , cursorLocation , expectedCompletionNodeToString , expectedParentNodeToString , expectedUnitDisplayString , completionIdentifier , expectedReplacedSource , "<STR_LIT>" ) ; } public void test0041_Method ( ) { String str = "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT:}>" ; String completeBehind = "<STR_LIT:foo>" ; int cursorLocation = str . indexOf ( completeBehind ) + completeBehind . length ( ) - <NUM_LIT:1> ; String expectedCompletionNodeToString = "<STR_LIT>" ; String expectedParentNodeToString = "<STR_LIT>" ; String completionIdentifier = "<STR_LIT:foo>" ; String expectedReplacedSource = "<STR_LIT:foo>" ; String expectedUnitDisplayString = "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" ; checkMethodParse ( str . toCharArray ( ) , cursorLocation , expectedCompletionNodeToString , expectedParentNodeToString , expectedUnitDisplayString , completionIdentifier , expectedReplacedSource , "<STR_LIT>" ) ; } public void test0042 ( ) { String str = "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT:}>" ; String completeBehind = "<STR_LIT:foo>" ; int cursorLocation = str . indexOf ( completeBehind ) + completeBehind . length ( ) - <NUM_LIT:1> ; String expectedCompletionNodeToString = "<STR_LIT>" ; String expectedParentNodeToString = "<STR_LIT>" ; String completionIdentifier = "<STR_LIT:foo>" ; String expectedReplacedSource = "<STR_LIT:foo>" ; String expectedUnitDisplayString = "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" ; checkDietParse ( str . toCharArray ( ) , cursorLocation , expectedCompletionNodeToString , expectedParentNodeToString , expectedUnitDisplayString , completionIdentifier , expectedReplacedSource , "<STR_LIT>" ) ; } public void test0043 ( ) { String str = "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT:}>" ; String completeBehind = "<STR_LIT:foo>" ; int cursorLocation = str . indexOf ( completeBehind ) + completeBehind . length ( ) - <NUM_LIT:1> ; String expectedCompletionNodeToString = "<STR_LIT>" ; String expectedParentNodeToString = "<STR_LIT>" ; String completionIdentifier = "<STR_LIT:foo>" ; String expectedReplacedSource = "<STR_LIT:foo>" ; String expectedUnitDisplayString = "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" ; checkDietParse ( str . toCharArray ( ) , cursorLocation , expectedCompletionNodeToString , expectedParentNodeToString , expectedUnitDisplayString , completionIdentifier , expectedReplacedSource , "<STR_LIT>" ) ; } public void test0044 ( ) { String str = "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT:}>" ; String completeBehind = "<STR_LIT:foo>" ; int cursorLocation = str . indexOf ( completeBehind ) + completeBehind . length ( ) - <NUM_LIT:1> ; String expectedCompletionNodeToString = "<STR_LIT>" ; String expectedParentNodeToString = "<STR_LIT>" ; String completionIdentifier = "<STR_LIT:foo>" ; String expectedReplacedSource = "<STR_LIT:foo>" ; String expectedUnitDisplayString = "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" ; checkDietParse ( str . toCharArray ( ) , cursorLocation , expectedCompletionNodeToString , expectedParentNodeToString , expectedUnitDisplayString , completionIdentifier , expectedReplacedSource , "<STR_LIT>" ) ; } public void test0045 ( ) { String str = "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT:}>" ; String completeBehind = "<STR_LIT:foo>" ; int cursorLocation = str . indexOf ( completeBehind ) + completeBehind . length ( ) - <NUM_LIT:1> ; String expectedCompletionNodeToString = "<STR_LIT>" ; String expectedParentNodeToString = "<STR_LIT>" ; String completionIdentifier = "<STR_LIT:foo>" ; String expectedReplacedSource = "<STR_LIT:foo>" ; String expectedUnitDisplayString = "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" ; checkDietParse ( str . toCharArray ( ) , cursorLocation , expectedCompletionNodeToString , expectedParentNodeToString , expectedUnitDisplayString , completionIdentifier , expectedReplacedSource , "<STR_LIT>" ) ; } public void test0046_Diet ( ) { String str = "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT:}>" ; String completeBehind = "<STR_LIT:foo>" ; int cursorLocation = str . indexOf ( completeBehind ) + completeBehind . length ( ) - <NUM_LIT:1> ; String expectedCompletionNodeToString = "<STR_LIT>" ; String expectedParentNodeToString = "<STR_LIT>" ; String completionIdentifier = "<STR_LIT>" ; String expectedReplacedSource = "<STR_LIT>" ; String expectedUnitDisplayString = "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" ; checkDietParse ( str . toCharArray ( ) , cursorLocation , expectedCompletionNodeToString , expectedParentNodeToString , expectedUnitDisplayString , completionIdentifier , expectedReplacedSource , "<STR_LIT>" ) ; } public void test0046_Method ( ) { String str = "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT:}>" ; String completeBehind = "<STR_LIT:foo>" ; int cursorLocation = str . indexOf ( completeBehind ) + completeBehind . length ( ) - <NUM_LIT:1> ; String expectedCompletionNodeToString = "<STR_LIT>" ; String expectedParentNodeToString = "<STR_LIT>" ; String completionIdentifier = "<STR_LIT:foo>" ; String expectedReplacedSource = "<STR_LIT:foo>" ; String expectedUnitDisplayString = "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" ; checkMethodParse ( str . toCharArray ( ) , cursorLocation , expectedCompletionNodeToString , expectedParentNodeToString , expectedUnitDisplayString , completionIdentifier , expectedReplacedSource , "<STR_LIT>" ) ; } public void test0047_Diet ( ) { String str = "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT:}>" ; String completeBehind = "<STR_LIT:foo>" ; int cursorLocation = str . indexOf ( completeBehind ) + completeBehind . length ( ) - <NUM_LIT:1> ; String expectedCompletionNodeToString = "<STR_LIT>" ; String expectedParentNodeToString = "<STR_LIT>" ; String completionIdentifier = "<STR_LIT:foo>" ; String expectedReplacedSource = "<STR_LIT:foo>" ; String expectedUnitDisplayString = "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" ; checkDietParse ( str . toCharArray ( ) , cursorLocation , expectedCompletionNodeToString , expectedParentNodeToString , expectedUnitDisplayString , completionIdentifier , expectedReplacedSource , "<STR_LIT>" ) ; } public void test0047_Method ( ) { String str = "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT:}>" ; String completeBehind = "<STR_LIT:foo>" ; int cursorLocation = str . indexOf ( completeBehind ) + completeBehind . length ( ) - <NUM_LIT:1> ; String expectedCompletionNodeToString = "<STR_LIT>" ; String expectedParentNodeToString = "<STR_LIT>" ; String completionIdentifier = "<STR_LIT:foo>" ; String expectedReplacedSource = "<STR_LIT:foo>" ; String expectedUnitDisplayString = "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" ; checkMethodParse ( str . toCharArray ( ) , cursorLocation , expectedCompletionNodeToString , expectedParentNodeToString , expectedUnitDisplayString , completionIdentifier , expectedReplacedSource , "<STR_LIT>" ) ; } public void test0048 ( ) { String str = "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT:}>" ; String completeBehind = "<STR_LIT:foo>" ; int cursorLocation = str . indexOf ( completeBehind ) + completeBehind . length ( ) - <NUM_LIT:1> ; String expectedCompletionNodeToString = "<STR_LIT>" ; String expectedParentNodeToString = "<STR_LIT>" ; String completionIdentifier = "<STR_LIT:foo>" ; String expectedReplacedSource = "<STR_LIT:foo>" ; String expectedUnitDisplayString = "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" ; checkDietParse ( str . toCharArray ( ) , cursorLocation , expectedCompletionNodeToString , expectedParentNodeToString , expectedUnitDisplayString , completionIdentifier , expectedReplacedSource , "<STR_LIT>" ) ; } public void test0049 ( ) { String str = "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT:}>" ; String completeBehind = "<STR_LIT:foo>" ; int cursorLocation = str . indexOf ( completeBehind ) + completeBehind . length ( ) - <NUM_LIT:1> ; String expectedCompletionNodeToString = "<STR_LIT>" ; String expectedParentNodeToString = "<STR_LIT>" ; String completionIdentifier = "<STR_LIT:foo>" ; String expectedReplacedSource = "<STR_LIT:foo>" ; String expectedUnitDisplayString = "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" ; checkDietParse ( str . toCharArray ( ) , cursorLocation , expectedCompletionNodeToString , expectedParentNodeToString , expectedUnitDisplayString , completionIdentifier , expectedReplacedSource , "<STR_LIT>" ) ; } public void test0050 ( ) { String str = "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT:}>" ; String completeBehind = "<STR_LIT:foo>" ; int cursorLocation = str . indexOf ( completeBehind ) + completeBehind . length ( ) - <NUM_LIT:1> ; String expectedCompletionNodeToString = "<STR_LIT>" ; String expectedParentNodeToString = "<STR_LIT>" ; String completionIdentifier = "<STR_LIT:foo>" ; String expectedReplacedSource = "<STR_LIT:foo>" ; String expectedUnitDisplayString = "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" ; checkDietParse ( str . toCharArray ( ) , cursorLocation , expectedCompletionNodeToString , expectedParentNodeToString , expectedUnitDisplayString , completionIdentifier , expectedReplacedSource , "<STR_LIT>" ) ; } public void test0051 ( ) { String str = "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT:}>" ; String completeBehind = "<STR_LIT:foo>" ; int cursorLocation = str . indexOf ( completeBehind ) + completeBehind . length ( ) - <NUM_LIT:1> ; String expectedCompletionNodeToString = "<STR_LIT>" ; String expectedParentNodeToString = "<STR_LIT>" ; String completionIdentifier = "<STR_LIT:foo>" ; String expectedReplacedSource = "<STR_LIT:foo>" ; String expectedUnitDisplayString = "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" ; checkDietParse ( str . toCharArray ( ) , cursorLocation , expectedCompletionNodeToString , expectedParentNodeToString , expectedUnitDisplayString , completionIdentifier , expectedReplacedSource , "<STR_LIT>" ) ; } public void test0052_Diet ( ) { String str = "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT:}>" ; String completeBehind = "<STR_LIT:foo>" ; int cursorLocation = str . indexOf ( completeBehind ) + completeBehind . length ( ) - <NUM_LIT:1> ; String expectedCompletionNodeToString = "<STR_LIT>" ; String expectedParentNodeToString = "<STR_LIT>" ; String completionIdentifier = "<STR_LIT>" ; String expectedReplacedSource = "<STR_LIT>" ; String expectedUnitDisplayString = "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" ; checkDietParse ( str . toCharArray ( ) , cursorLocation , expectedCompletionNodeToString , expectedParentNodeToString , expectedUnitDisplayString , completionIdentifier , expectedReplacedSource , "<STR_LIT>" ) ; } public void test0052_Method ( ) { String str = "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT:}>" ; String completeBehind = "<STR_LIT:foo>" ; int cursorLocation = str . indexOf ( completeBehind ) + completeBehind . length ( ) - <NUM_LIT:1> ; String expectedCompletionNodeToString = "<STR_LIT>" ; String expectedParentNodeToString = "<STR_LIT>" ; String completionIdentifier = "<STR_LIT:foo>" ; String expectedReplacedSource = "<STR_LIT:foo>" ; String expectedUnitDisplayString = "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" ; checkMethodParse ( str . toCharArray ( ) , cursorLocation , expectedCompletionNodeToString , expectedParentNodeToString , expectedUnitDisplayString , completionIdentifier , expectedReplacedSource , "<STR_LIT>" ) ; } public void test0053_Diet ( ) { String str = "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT:}>" ; String completeBehind = "<STR_LIT:foo>" ; int cursorLocation = str . indexOf ( completeBehind ) + completeBehind . length ( ) - <NUM_LIT:1> ; String expectedCompletionNodeToString = "<STR_LIT>" ; String expectedParentNodeToString = "<STR_LIT>" ; String completionIdentifier = "<STR_LIT:foo>" ; String expectedReplacedSource = "<STR_LIT:foo>" ; String expectedUnitDisplayString = "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" ; checkDietParse ( str . toCharArray ( ) , cursorLocation , expectedCompletionNodeToString , expectedParentNodeToString , expectedUnitDisplayString , completionIdentifier , expectedReplacedSource , "<STR_LIT>" ) ; } public void test0053_Method ( ) { String str = "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT:}>" ; String completeBehind = "<STR_LIT:foo>" ; int cursorLocation = str . indexOf ( completeBehind ) + completeBehind . length ( ) - <NUM_LIT:1> ; String expectedCompletionNodeToString = "<STR_LIT>" ; String expectedParentNodeToString = "<STR_LIT>" ; String completionIdentifier = "<STR_LIT:foo>" ; String expectedReplacedSource = "<STR_LIT:foo>" ; String expectedUnitDisplayString = "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" ; checkMethodParse ( str . toCharArray ( ) , cursorLocation , expectedCompletionNodeToString , expectedParentNodeToString , expectedUnitDisplayString , completionIdentifier , expectedReplacedSource , "<STR_LIT>" ) ; } public void test0054 ( ) { String str = "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT:}>" ; String completeBehind = "<STR_LIT:foo>" ; int cursorLocation = str . indexOf ( completeBehind ) + completeBehind . length ( ) - <NUM_LIT:1> ; String expectedCompletionNodeToString = "<STR_LIT>" ; String expectedParentNodeToString = "<STR_LIT>" ; String completionIdentifier = "<STR_LIT:foo>" ; String expectedReplacedSource = "<STR_LIT:foo>" ; String expectedUnitDisplayString = "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" ; checkDietParse ( str . toCharArray ( ) , cursorLocation , expectedCompletionNodeToString , expectedParentNodeToString , expectedUnitDisplayString , completionIdentifier , expectedReplacedSource , "<STR_LIT>" ) ; } public void test0055 ( ) { String str = "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT:}>" ; String completeBehind = "<STR_LIT:foo>" ; int cursorLocation = str . indexOf ( completeBehind ) + completeBehind . length ( ) - <NUM_LIT:1> ; String expectedCompletionNodeToString = "<STR_LIT>" ; String expectedParentNodeToString = "<STR_LIT>" ; String completionIdentifier = "<STR_LIT:foo>" ; String expectedReplacedSource = "<STR_LIT:foo>" ; String expectedUnitDisplayString = "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" ; checkDietParse ( str . toCharArray ( ) , cursorLocation , expectedCompletionNodeToString , expectedParentNodeToString , expectedUnitDisplayString , completionIdentifier , expectedReplacedSource , "<STR_LIT>" ) ; } public void test0056 ( ) { String str = "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT:}>" ; String completeBehind = "<STR_LIT:foo>" ; int cursorLocation = str . indexOf ( completeBehind ) + completeBehind . length ( ) - <NUM_LIT:1> ; String expectedCompletionNodeToString = "<STR_LIT>" ; String expectedParentNodeToString = "<STR_LIT>" ; String completionIdentifier = "<STR_LIT:foo>" ; String expectedReplacedSource = "<STR_LIT:foo>" ; String expectedUnitDisplayString = "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" ; checkDietParse ( str . toCharArray ( ) , cursorLocation , expectedCompletionNodeToString , expectedParentNodeToString , expectedUnitDisplayString , completionIdentifier , expectedReplacedSource , "<STR_LIT>" ) ; } public void test0057 ( ) { String str = "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT:}>" ; String completeBehind = "<STR_LIT:foo>" ; int cursorLocation = str . indexOf ( completeBehind ) + completeBehind . length ( ) - <NUM_LIT:1> ; String expectedCompletionNodeToString = "<STR_LIT>" ; String expectedParentNodeToString = "<STR_LIT>" ; String completionIdentifier = "<STR_LIT:foo>" ; String expectedReplacedSource = "<STR_LIT:foo>" ; String expectedUnitDisplayString = "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" ; checkDietParse ( str . toCharArray ( ) , cursorLocation , expectedCompletionNodeToString , expectedParentNodeToString , expectedUnitDisplayString , completionIdentifier , expectedReplacedSource , "<STR_LIT>" ) ; } public void test0058_Diet ( ) { String str = "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT:}>" ; String completeBehind = "<STR_LIT:foo>" ; int cursorLocation = str . indexOf ( completeBehind ) + completeBehind . length ( ) - <NUM_LIT:1> ; String expectedCompletionNodeToString = "<STR_LIT>" ; String expectedParentNodeToString = "<STR_LIT>" ; String completionIdentifier = "<STR_LIT>" ; String expectedReplacedSource = "<STR_LIT>" ; String expectedUnitDisplayString = "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" ; checkDietParse ( str . toCharArray ( ) , cursorLocation , expectedCompletionNodeToString , expectedParentNodeToString , expectedUnitDisplayString , completionIdentifier , expectedReplacedSource , "<STR_LIT>" ) ; } public void test0058_Method ( ) { String str = "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT:}>" ; String completeBehind = "<STR_LIT:foo>" ; int cursorLocation = str . indexOf ( completeBehind ) + completeBehind . length ( ) - <NUM_LIT:1> ; String expectedCompletionNodeToString = "<STR_LIT>" ; String expectedParentNodeToString = "<STR_LIT>" ; String completionIdentifier = "<STR_LIT:foo>" ; String expectedReplacedSource = "<STR_LIT:foo>" ; String expectedUnitDisplayString = "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" ; checkMethodParse ( str . toCharArray ( ) , cursorLocation , expectedCompletionNodeToString , expectedParentNodeToString , expectedUnitDisplayString , completionIdentifier , expectedReplacedSource , "<STR_LIT>" ) ; } public void test0059_Diet ( ) { String str = "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT:}>" ; String completeBehind = "<STR_LIT:foo>" ; int cursorLocation = str . indexOf ( completeBehind ) + completeBehind . length ( ) - <NUM_LIT:1> ; String expectedCompletionNodeToString = "<STR_LIT>" ; String expectedParentNodeToString = "<STR_LIT>" ; String completionIdentifier = "<STR_LIT:foo>" ; String expectedReplacedSource = "<STR_LIT:foo>" ; String expectedUnitDisplayString = "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" ; checkDietParse ( str . toCharArray ( ) , cursorLocation , expectedCompletionNodeToString , expectedParentNodeToString , expectedUnitDisplayString , completionIdentifier , expectedReplacedSource , "<STR_LIT>" ) ; } public void test0059_Method ( ) { String str = "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT:}>" ; String completeBehind = "<STR_LIT:foo>" ; int cursorLocation = str . indexOf ( completeBehind ) + completeBehind . length ( ) - <NUM_LIT:1> ; String expectedCompletionNodeToString = "<STR_LIT>" ; String expectedParentNodeToString = "<STR_LIT>" ; String completionIdentifier = "<STR_LIT:foo>" ; String expectedReplacedSource = "<STR_LIT:foo>" ; String expectedUnitDisplayString = "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" ; checkMethodParse ( str . toCharArray ( ) , cursorLocation , expectedCompletionNodeToString , expectedParentNodeToString , expectedUnitDisplayString , completionIdentifier , expectedReplacedSource , "<STR_LIT>" ) ; } public void test0060 ( ) { String str = "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT:}>" ; String completeBehind = "<STR_LIT:foo>" ; int cursorLocation = str . indexOf ( completeBehind ) + completeBehind . length ( ) - <NUM_LIT:1> ; String expectedCompletionNodeToString = "<STR_LIT>" ; String expectedParentNodeToString = "<STR_LIT>" ; String completionIdentifier = "<STR_LIT:foo>" ; String expectedReplacedSource = "<STR_LIT:foo>" ; String expectedUnitDisplayString = "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" ; checkDietParse ( str . toCharArray ( ) , cursorLocation , expectedCompletionNodeToString , expectedParentNodeToString , expectedUnitDisplayString , completionIdentifier , expectedReplacedSource , "<STR_LIT>" ) ; } public void test0061 ( ) { String str = "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT:}>" ; String completeBehind = "<STR_LIT:foo>" ; int cursorLocation = str . indexOf ( completeBehind ) + completeBehind . length ( ) - <NUM_LIT:1> ; String expectedCompletionNodeToString = "<STR_LIT>" ; String expectedParentNodeToString = "<STR_LIT>" ; String completionIdentifier = "<STR_LIT:foo>" ; String expectedReplacedSource = "<STR_LIT:foo>" ; String expectedUnitDisplayString = "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" ; checkDietParse ( str . toCharArray ( ) , cursorLocation , expectedCompletionNodeToString , expectedParentNodeToString , expectedUnitDisplayString , completionIdentifier , expectedReplacedSource , "<STR_LIT>" ) ; } public void test0062 ( ) { String str = "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT:}>" ; String completeBehind = "<STR_LIT:foo>" ; int cursorLocation = str . indexOf ( completeBehind ) + completeBehind . length ( ) - <NUM_LIT:1> ; String expectedCompletionNodeToString = "<STR_LIT>" ; String expectedParentNodeToString = "<STR_LIT>" ; String completionIdentifier = "<STR_LIT:foo>" ; String expectedReplacedSource = "<STR_LIT:foo>" ; String expectedUnitDisplayString = "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" ; checkDietParse ( str . toCharArray ( ) , cursorLocation , expectedCompletionNodeToString , expectedParentNodeToString , expectedUnitDisplayString , completionIdentifier , expectedReplacedSource , "<STR_LIT>" ) ; } public void test0063 ( ) { String str = "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT:}>" ; String completeBehind = "<STR_LIT:foo>" ; int cursorLocation = str . indexOf ( completeBehind ) + completeBehind . length ( ) - <NUM_LIT:1> ; String expectedCompletionNodeToString = "<STR_LIT>" ; String expectedParentNodeToString = "<STR_LIT>" ; String completionIdentifier = "<STR_LIT:foo>" ; String expectedReplacedSource = "<STR_LIT:foo>" ; String expectedUnitDisplayString = "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" ; checkDietParse ( str . toCharArray ( ) , cursorLocation , expectedCompletionNodeToString , expectedParentNodeToString , expectedUnitDisplayString , completionIdentifier , expectedReplacedSource , "<STR_LIT>" ) ; } public void test0064_Diet ( ) { String str = "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT:}>" ; String completeBehind = "<STR_LIT:foo>" ; int cursorLocation = str . indexOf ( completeBehind ) + completeBehind . length ( ) - <NUM_LIT:1> ; String expectedCompletionNodeToString = "<STR_LIT>" ; String expectedParentNodeToString = "<STR_LIT>" ; String completionIdentifier = "<STR_LIT>" ; String expectedReplacedSource = "<STR_LIT>" ; String expectedUnitDisplayString = "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" ; checkDietParse ( str . toCharArray ( ) , cursorLocation , expectedCompletionNodeToString , expectedParentNodeToString , expectedUnitDisplayString , completionIdentifier , expectedReplacedSource , "<STR_LIT>" ) ; } public void test0064_Method ( ) { String str = "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT:}>" ; String completeBehind = "<STR_LIT:foo>" ; int cursorLocation = str . indexOf ( completeBehind ) + completeBehind . length ( ) - <NUM_LIT:1> ; String expectedCompletionNodeToString = "<STR_LIT>" ; String expectedParentNodeToString = "<STR_LIT>" ; String completionIdentifier = "<STR_LIT:foo>" ; String expectedReplacedSource = "<STR_LIT:foo>" ; String expectedUnitDisplayString = "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" ; checkMethodParse ( str . toCharArray ( ) , cursorLocation , expectedCompletionNodeToString , expectedParentNodeToString , expectedUnitDisplayString , completionIdentifier , expectedReplacedSource , "<STR_LIT>" ) ; } public void test0065_Diet ( ) { String str = "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT:}>" ; String completeBehind = "<STR_LIT:foo>" ; int cursorLocation = str . indexOf ( completeBehind ) + completeBehind . length ( ) - <NUM_LIT:1> ; String expectedCompletionNodeToString = "<STR_LIT>" ; String expectedParentNodeToString = "<STR_LIT>" ; String completionIdentifier = "<STR_LIT:foo>" ; String expectedReplacedSource = "<STR_LIT:foo>" ; String expectedUnitDisplayString = "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" ; checkDietParse ( str . toCharArray ( ) , cursorLocation , expectedCompletionNodeToString , expectedParentNodeToString , expectedUnitDisplayString , completionIdentifier , expectedReplacedSource , "<STR_LIT>" ) ; } public void test0065_Method ( ) { String str = "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT:}>" ; String completeBehind = "<STR_LIT:foo>" ; int cursorLocation = str . indexOf ( completeBehind ) + completeBehind . length ( ) - <NUM_LIT:1> ; String expectedCompletionNodeToString = "<STR_LIT>" ; String expectedParentNodeToString = "<STR_LIT>" ; String completionIdentifier = "<STR_LIT:foo>" ; String expectedReplacedSource = "<STR_LIT:foo>" ; String expectedUnitDisplayString = "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" ; checkMethodParse ( str . toCharArray ( ) , cursorLocation , expectedCompletionNodeToString , expectedParentNodeToString , expectedUnitDisplayString , completionIdentifier , expectedReplacedSource , "<STR_LIT>" ) ; } public void test0066 ( ) { String str = "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT:}>" ; String completeBehind = "<STR_LIT:foo>" ; int cursorLocation = str . indexOf ( completeBehind ) + completeBehind . length ( ) - <NUM_LIT:1> ; String expectedCompletionNodeToString = "<STR_LIT>" ; String expectedParentNodeToString = "<STR_LIT>" ; String completionIdentifier = "<STR_LIT:foo>" ; String expectedReplacedSource = "<STR_LIT:foo>" ; String expectedUnitDisplayString = "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" ; checkDietParse ( str . toCharArray ( ) , cursorLocation , expectedCompletionNodeToString , expectedParentNodeToString , expectedUnitDisplayString , completionIdentifier , expectedReplacedSource , "<STR_LIT>" ) ; } public void test0067 ( ) { String str = "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT:}>" ; String completeBehind = "<STR_LIT:foo>" ; int cursorLocation = str . indexOf ( completeBehind ) + completeBehind . length ( ) - <NUM_LIT:1> ; String expectedCompletionNodeToString = "<STR_LIT>" ; String expectedParentNodeToString = "<STR_LIT>" ; String completionIdentifier = "<STR_LIT:foo>" ; String expectedReplacedSource = "<STR_LIT:foo>" ; String expectedUnitDisplayString = "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" ; checkDietParse ( str . toCharArray ( ) , cursorLocation , expectedCompletionNodeToString , expectedParentNodeToString , expectedUnitDisplayString , completionIdentifier , expectedReplacedSource , "<STR_LIT>" ) ; } public void test0068 ( ) { String str = "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT:}>" ; String completeBehind = "<STR_LIT:foo>" ; int cursorLocation = str . indexOf ( completeBehind ) + completeBehind . length ( ) - <NUM_LIT:1> ; String expectedCompletionNodeToString = "<STR_LIT>" ; String expectedParentNodeToString = "<STR_LIT>" ; String completionIdentifier = "<STR_LIT:foo>" ; String expectedReplacedSource = "<STR_LIT:foo>" ; String expectedUnitDisplayString = "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" ; checkDietParse ( str . toCharArray ( ) , cursorLocation , expectedCompletionNodeToString , expectedParentNodeToString , expectedUnitDisplayString , completionIdentifier , expectedReplacedSource , "<STR_LIT>" ) ; } public void test0069 ( ) { String str = "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT:}>" ; String completeBehind = "<STR_LIT:foo>" ; int cursorLocation = str . indexOf ( completeBehind ) + completeBehind . length ( ) - <NUM_LIT:1> ; String expectedCompletionNodeToString = "<STR_LIT>" ; String expectedParentNodeToString = "<STR_LIT>" ; String completionIdentifier = "<STR_LIT:foo>" ; String expectedReplacedSource = "<STR_LIT:foo>" ; String expectedUnitDisplayString = "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" ; checkDietParse ( str . toCharArray ( ) , cursorLocation , expectedCompletionNodeToString , expectedParentNodeToString , expectedUnitDisplayString , completionIdentifier , expectedReplacedSource , "<STR_LIT>" ) ; } public void test0070_Diet ( ) { String str = "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT:}>" ; String completeBehind = "<STR_LIT:foo>" ; int cursorLocation = str . indexOf ( completeBehind ) + completeBehind . length ( ) - <NUM_LIT:1> ; String expectedCompletionNodeToString = "<STR_LIT>" ; String expectedParentNodeToString = "<STR_LIT>" ; String completionIdentifier = "<STR_LIT>" ; String expectedReplacedSource = "<STR_LIT>" ; String expectedUnitDisplayString = "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" ; checkDietParse ( str . toCharArray ( ) , cursorLocation , expectedCompletionNodeToString , expectedParentNodeToString , expectedUnitDisplayString , completionIdentifier , expectedReplacedSource , "<STR_LIT>" ) ; } public void test0070_Method ( ) { String str = "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT:}>" ; String completeBehind = "<STR_LIT:foo>" ; int cursorLocation = str . indexOf ( completeBehind ) + completeBehind . length ( ) - <NUM_LIT:1> ; String expectedCompletionNodeToString = "<STR_LIT>" ; String expectedParentNodeToString = "<STR_LIT>" ; String completionIdentifier = "<STR_LIT:foo>" ; String expectedReplacedSource = "<STR_LIT:foo>" ; String expectedUnitDisplayString = "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" ; checkMethodParse ( str . toCharArray ( ) , cursorLocation , expectedCompletionNodeToString , expectedParentNodeToString , expectedUnitDisplayString , completionIdentifier , expectedReplacedSource , "<STR_LIT>" ) ; } public void test0071_Diet ( ) { String str = "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT:}>" ; String completeBehind = "<STR_LIT:foo>" ; int cursorLocation = str . indexOf ( completeBehind ) + completeBehind . length ( ) - <NUM_LIT:1> ; String expectedCompletionNodeToString = "<STR_LIT>" ; String expectedParentNodeToString = "<STR_LIT>" ; String completionIdentifier = "<STR_LIT:foo>" ; String expectedReplacedSource = "<STR_LIT:foo>" ; String expectedUnitDisplayString = "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" ; checkDietParse ( str . toCharArray ( ) , cursorLocation , expectedCompletionNodeToString , expectedParentNodeToString , expectedUnitDisplayString , completionIdentifier , expectedReplacedSource , "<STR_LIT>" ) ; } public void test0071_Method ( ) { String str = "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT:}>" ; String completeBehind = "<STR_LIT:foo>" ; int cursorLocation = str . indexOf ( completeBehind ) + completeBehind . length ( ) - <NUM_LIT:1> ; String expectedCompletionNodeToString = "<STR_LIT>" ; String expectedParentNodeToString = "<STR_LIT>" ; String completionIdentifier = "<STR_LIT:foo>" ; String expectedReplacedSource = "<STR_LIT:foo>" ; String expectedUnitDisplayString = "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" ; checkMethodParse ( str . toCharArray ( ) , cursorLocation , expectedCompletionNodeToString , expectedParentNodeToString , expectedUnitDisplayString , completionIdentifier , expectedReplacedSource , "<STR_LIT>" ) ; } public void test0072 ( ) { String str = "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT:}>" ; String completeBehind = "<STR_LIT:foo>" ; int cursorLocation = str . indexOf ( completeBehind ) + completeBehind . length ( ) - <NUM_LIT:1> ; String expectedCompletionNodeToString = "<STR_LIT>" ; String expectedParentNodeToString = "<STR_LIT>" ; String completionIdentifier = "<STR_LIT:foo>" ; String expectedReplacedSource = "<STR_LIT:foo>" ; String expectedUnitDisplayString = "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" ; checkDietParse ( str . toCharArray ( ) , cursorLocation , expectedCompletionNodeToString , expectedParentNodeToString , expectedUnitDisplayString , completionIdentifier , expectedReplacedSource , "<STR_LIT>" ) ; } public void test0073 ( ) { String str = "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT:}>" ; String completeBehind = "<STR_LIT:f>" ; int cursorLocation = str . indexOf ( completeBehind ) + completeBehind . length ( ) - <NUM_LIT:1> ; String expectedCompletionNodeToString = "<STR_LIT>" ; String expectedParentNodeToString = "<STR_LIT>" ; String completionIdentifier = "<STR_LIT:f>" ; String expectedReplacedSource = "<STR_LIT:f>" ; String expectedUnitDisplayString = "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" ; checkDietParse ( str . toCharArray ( ) , cursorLocation , expectedCompletionNodeToString , expectedParentNodeToString , expectedUnitDisplayString , completionIdentifier , expectedReplacedSource , "<STR_LIT>" ) ; } public void test0074 ( ) { String str = "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT:}>" ; String completeBehind = "<STR_LIT:foo>" ; int cursorLocation = str . indexOf ( completeBehind ) + completeBehind . length ( ) - <NUM_LIT:1> ; String expectedCompletionNodeToString = "<STR_LIT>" ; String expectedParentNodeToString = "<STR_LIT>" ; String completionIdentifier = "<STR_LIT:foo>" ; String expectedReplacedSource = "<STR_LIT:foo>" ; String expectedUnitDisplayString = "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" ; checkDietParse ( str . toCharArray ( ) , cursorLocation , expectedCompletionNodeToString , expectedParentNodeToString , expectedUnitDisplayString , completionIdentifier , expectedReplacedSource , "<STR_LIT>" ) ; } public void test0075 ( ) { String str = "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT:}>" ; String completeBehind = "<STR_LIT:foo>" ; int cursorLocation = str . indexOf ( completeBehind ) + completeBehind . length ( ) - <NUM_LIT:1> ; String expectedCompletionNodeToString = "<STR_LIT>" ; String expectedParentNodeToString = "<STR_LIT>" ; String completionIdentifier = "<STR_LIT:foo>" ; String expectedReplacedSource = "<STR_LIT:foo>" ; String expectedUnitDisplayString = "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" ; checkDietParse ( str . toCharArray ( ) , cursorLocation , expectedCompletionNodeToString , expectedParentNodeToString , expectedUnitDisplayString , completionIdentifier , expectedReplacedSource , "<STR_LIT>" ) ; } public void test0076 ( ) { String str = "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT:}>" ; String completeBehind = "<STR_LIT:foo>" ; int cursorLocation = str . indexOf ( completeBehind ) + completeBehind . length ( ) - <NUM_LIT:1> ; String expectedCompletionNodeToString = "<STR_LIT>" ; String expectedParentNodeToString = "<STR_LIT>" ; String completionIdentifier = "<STR_LIT:foo>" ; String expectedReplacedSource = "<STR_LIT:foo>" ; String expectedUnitDisplayString = "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" ; checkDietParse ( str . toCharArray ( ) , cursorLocation , expectedCompletionNodeToString , expectedParentNodeToString , expectedUnitDisplayString , completionIdentifier , expectedReplacedSource , "<STR_LIT>" ) ; } public void test0078 ( ) { String str = "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT:}>" ; String completeBehind = "<STR_LIT:foo>" ; int cursorLocation = str . indexOf ( completeBehind ) + completeBehind . length ( ) - <NUM_LIT:1> ; String expectedCompletionNodeToString = "<STR_LIT>" ; String expectedParentNodeToString = "<STR_LIT>" ; String completionIdentifier = "<STR_LIT:foo>" ; String expectedReplacedSource = "<STR_LIT:foo>" ; String expectedUnitDisplayString = "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" ; checkDietParse ( str . toCharArray ( ) , cursorLocation , expectedCompletionNodeToString , expectedParentNodeToString , expectedUnitDisplayString , completionIdentifier , expectedReplacedSource , "<STR_LIT>" ) ; } public void test0079 ( ) { String str = "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT:}>" ; String completeBehind = "<STR_LIT:foo>" ; int cursorLocation = str . indexOf ( completeBehind ) + completeBehind . length ( ) - <NUM_LIT:1> ; String expectedCompletionNodeToString = "<STR_LIT>" ; String expectedParentNodeToString = "<STR_LIT>" ; String completionIdentifier = "<STR_LIT:foo>" ; String expectedReplacedSource = "<STR_LIT:foo>" ; String expectedUnitDisplayString = "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" ; checkDietParse ( str . toCharArray ( ) , cursorLocation , expectedCompletionNodeToString , expectedParentNodeToString , expectedUnitDisplayString , completionIdentifier , expectedReplacedSource , "<STR_LIT>" ) ; } public void test0080 ( ) { String str = "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT:}>" ; String completeBehind = "<STR_LIT:foo>" ; int cursorLocation = str . indexOf ( completeBehind ) + completeBehind . length ( ) - <NUM_LIT:1> ; String expectedCompletionNodeToString = "<STR_LIT>" ; String expectedParentNodeToString = "<STR_LIT>" ; String completionIdentifier = "<STR_LIT:foo>" ; String expectedReplacedSource = "<STR_LIT:foo>" ; String expectedUnitDisplayString = "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" ; checkDietParse ( str . toCharArray ( ) , cursorLocation , expectedCompletionNodeToString , expectedParentNodeToString , expectedUnitDisplayString , completionIdentifier , expectedReplacedSource , "<STR_LIT>" ) ; } public void test0081 ( ) { String str = "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT:}>" ; String completeBehind = "<STR_LIT:foo>" ; int cursorLocation = str . indexOf ( completeBehind ) + completeBehind . length ( ) - <NUM_LIT:1> ; String expectedCompletionNodeToString = "<STR_LIT>" ; String expectedParentNodeToString = "<STR_LIT>" ; String completionIdentifier = "<STR_LIT:foo>" ; String expectedReplacedSource = "<STR_LIT:foo>" ; String expectedUnitDisplayString = "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" ; checkDietParse ( str . toCharArray ( ) , cursorLocation , expectedCompletionNodeToString , expectedParentNodeToString , expectedUnitDisplayString , completionIdentifier , expectedReplacedSource , "<STR_LIT>" ) ; } public void test0082 ( ) { String str = "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT:}>" ; String completeBehind = "<STR_LIT:foo>" ; int cursorLocation = str . indexOf ( completeBehind ) + completeBehind . length ( ) - <NUM_LIT:1> ; String expectedCompletionNodeToString = "<STR_LIT>" ; String expectedParentNodeToString = "<STR_LIT>" ; String completionIdentifier = "<STR_LIT:foo>" ; String expectedReplacedSource = "<STR_LIT:foo>" ; String expectedUnitDisplayString = "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" ; checkDietParse ( str . toCharArray ( ) , cursorLocation , expectedCompletionNodeToString , expectedParentNodeToString , expectedUnitDisplayString , completionIdentifier , expectedReplacedSource , "<STR_LIT>" ) ; } public void test0083 ( ) { String str = "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT:}>" ; String completeBehind = "<STR_LIT:foo>" ; int cursorLocation = str . indexOf ( completeBehind ) + completeBehind . length ( ) - <NUM_LIT:1> ; String expectedCompletionNodeToString = "<STR_LIT>" ; String expectedParentNodeToString = "<STR_LIT>" ; String completionIdentifier = "<STR_LIT:foo>" ; String expectedReplacedSource = "<STR_LIT:foo>" ; String expectedUnitDisplayString = "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" ; checkDietParse ( str . toCharArray ( ) , cursorLocation , expectedCompletionNodeToString , expectedParentNodeToString , expectedUnitDisplayString , completionIdentifier , expectedReplacedSource , "<STR_LIT>" ) ; } public void test0084 ( ) { String str = "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT:}>" ; String completeBehind = "<STR_LIT:foo>" ; int cursorLocation = str . indexOf ( completeBehind ) + completeBehind . length ( ) - <NUM_LIT:1> ; String expectedCompletionNodeToString = "<STR_LIT>" ; String expectedParentNodeToString = "<STR_LIT>" ; String completionIdentifier = "<STR_LIT:foo>" ; String expectedReplacedSource = "<STR_LIT:foo>" ; String expectedUnitDisplayString = "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" ; checkDietParse ( str . toCharArray ( ) , cursorLocation , expectedCompletionNodeToString , expectedParentNodeToString , expectedUnitDisplayString , completionIdentifier , expectedReplacedSource , "<STR_LIT>" ) ; } public void test0085 ( ) { String str = "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT:}>" ; String completeBehind = "<STR_LIT:foo>" ; int cursorLocation = str . indexOf ( completeBehind ) + completeBehind . length ( ) - <NUM_LIT:1> ; String expectedCompletionNodeToString = "<STR_LIT>" ; String expectedParentNodeToString = "<STR_LIT>" ; String completionIdentifier = "<STR_LIT:foo>" ; String expectedReplacedSource = "<STR_LIT:foo>" ; String expectedUnitDisplayString = "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" ; checkDietParse ( str . toCharArray ( ) , cursorLocation , expectedCompletionNodeToString , expectedParentNodeToString , expectedUnitDisplayString , completionIdentifier , expectedReplacedSource , "<STR_LIT>" ) ; } public void test0086 ( ) { String str = "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT:}>" ; String completeBehind = "<STR_LIT:foo>" ; int cursorLocation = str . indexOf ( completeBehind ) + completeBehind . length ( ) - <NUM_LIT:1> ; String expectedCompletionNodeToString = "<STR_LIT>" ; String expectedParentNodeToString = "<STR_LIT>" ; String completionIdentifier = "<STR_LIT:foo>" ; String expectedReplacedSource = "<STR_LIT:foo>" ; String expectedUnitDisplayString = "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" ; checkDietParse ( str . toCharArray ( ) , cursorLocation , expectedCompletionNodeToString , expectedParentNodeToString , expectedUnitDisplayString , completionIdentifier , expectedReplacedSource , "<STR_LIT>" ) ; } public void test0087 ( ) { String str = "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT:}>" ; String completeBehind = "<STR_LIT:foo>" ; int cursorLocation = str . indexOf ( completeBehind ) + completeBehind . length ( ) - <NUM_LIT:1> ; String expectedCompletionNodeToString = "<STR_LIT>" ; String expectedParentNodeToString = "<STR_LIT>" ; String completionIdentifier = "<STR_LIT:foo>" ; String expectedReplacedSource = "<STR_LIT:foo>" ; String expectedUnitDisplayString = "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" ; checkDietParse ( str . toCharArray ( ) , cursorLocation , expectedCompletionNodeToString , expectedParentNodeToString , expectedUnitDisplayString , completionIdentifier , expectedReplacedSource , "<STR_LIT>" ) ; } public void test0088 ( ) { String str = "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT:}>" ; String completeBehind = "<STR_LIT:foo>" ; int cursorLocation = str . indexOf ( completeBehind ) + completeBehind . length ( ) - <NUM_LIT:1> ; String expectedCompletionNodeToString = "<STR_LIT>" ; String expectedParentNodeToString = "<STR_LIT>" ; String completionIdentifier = "<STR_LIT:foo>" ; String expectedReplacedSource = "<STR_LIT:foo>" ; String expectedUnitDisplayString = "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" ; checkDietParse ( str . toCharArray ( ) , cursorLocation , expectedCompletionNodeToString , expectedParentNodeToString , expectedUnitDisplayString , completionIdentifier , expectedReplacedSource , "<STR_LIT>" ) ; } public void test0089 ( ) { String str = "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT:}>" ; String completeBehind = "<STR_LIT:foo>" ; int cursorLocation = str . indexOf ( completeBehind ) + completeBehind . length ( ) - <NUM_LIT:1> ; String expectedCompletionNodeToString = "<STR_LIT>" ; String expectedParentNodeToString = "<STR_LIT>" ; String completionIdentifier = "<STR_LIT:foo>" ; String expectedReplacedSource = "<STR_LIT:foo>" ; String expectedUnitDisplayString = "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" ; checkDietParse ( str . toCharArray ( ) , cursorLocation , expectedCompletionNodeToString , expectedParentNodeToString , expectedUnitDisplayString , completionIdentifier , expectedReplacedSource , "<STR_LIT>" ) ; } public void test0090 ( ) { String str = "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT:}>" ; String completeBehind = "<STR_LIT:foo>" ; int cursorLocation = str . indexOf ( completeBehind ) + completeBehind . length ( ) - <NUM_LIT:1> ; String expectedCompletionNodeToString = "<STR_LIT>" ; String expectedParentNodeToString = "<STR_LIT>" ; String completionIdentifier = "<STR_LIT:foo>" ; String expectedReplacedSource = "<STR_LIT:foo>" ; String expectedUnitDisplayString = "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" ; checkDietParse ( str . toCharArray ( ) , cursorLocation , expectedCompletionNodeToString , expectedParentNodeToString , expectedUnitDisplayString , completionIdentifier , expectedReplacedSource , "<STR_LIT>" ) ; } public void test0091 ( ) { String str = "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT:}>" ; String completeBehind = "<STR_LIT:foo>" ; int cursorLocation = str . indexOf ( completeBehind ) + completeBehind . length ( ) - <NUM_LIT:1> ; String expectedCompletionNodeToString = "<STR_LIT>" ; String expectedParentNodeToString = "<STR_LIT>" ; String completionIdentifier = "<STR_LIT:foo>" ; String expectedReplacedSource = "<STR_LIT:foo>" ; String expectedUnitDisplayString = "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" ; checkDietParse ( str . toCharArray ( ) , cursorLocation , expectedCompletionNodeToString , expectedParentNodeToString , expectedUnitDisplayString , completionIdentifier , expectedReplacedSource , "<STR_LIT>" ) ; } public void test0092 ( ) { String str = "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT:}>" ; String completeBehind = "<STR_LIT:foo>" ; int cursorLocation = str . indexOf ( completeBehind ) + completeBehind . length ( ) - <NUM_LIT:1> ; String expectedCompletionNodeToString = "<STR_LIT>" ; String expectedParentNodeToString = "<STR_LIT>" ; String completionIdentifier = "<STR_LIT:foo>" ; String expectedReplacedSource = "<STR_LIT:foo>" ; String expectedUnitDisplayString = "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" ; checkDietParse ( str . toCharArray ( ) , cursorLocation , expectedCompletionNodeToString , expectedParentNodeToString , expectedUnitDisplayString , completionIdentifier , expectedReplacedSource , "<STR_LIT>" ) ; } public void test0093 ( ) { String str = "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT:}>" ; String completeBehind = "<STR_LIT:foo>" ; int cursorLocation = str . indexOf ( completeBehind ) + completeBehind . length ( ) - <NUM_LIT:1> ; String expectedCompletionNodeToString = "<STR_LIT>" ; String expectedParentNodeToString = "<STR_LIT>" ; String completionIdentifier = "<STR_LIT:foo>" ; String expectedReplacedSource = "<STR_LIT:foo>" ; String expectedUnitDisplayString = "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" ; checkDietParse ( str . toCharArray ( ) , cursorLocation , expectedCompletionNodeToString , expectedParentNodeToString , expectedUnitDisplayString , completionIdentifier , expectedReplacedSource , "<STR_LIT>" ) ; } public void test0094 ( ) { String str = "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT:}>" ; String completeBehind = "<STR_LIT:foo>" ; int cursorLocation = str . indexOf ( completeBehind ) + completeBehind . length ( ) - <NUM_LIT:1> ; String expectedCompletionNodeToString = "<STR_LIT>" ; String expectedParentNodeToString = "<STR_LIT>" ; String completionIdentifier = "<STR_LIT:foo>" ; String expectedReplacedSource = "<STR_LIT:foo>" ; String expectedUnitDisplayString = "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" ; checkDietParse ( str . toCharArray ( ) , cursorLocation , expectedCompletionNodeToString , expectedParentNodeToString , expectedUnitDisplayString , completionIdentifier , expectedReplacedSource , "<STR_LIT>" ) ; } public void test0095 ( ) { String str = "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT:}>" ; String completeBehind = "<STR_LIT:foo>" ; int cursorLocation = str . indexOf ( completeBehind ) + completeBehind . length ( ) - <NUM_LIT:1> ; String expectedCompletionNodeToString = "<STR_LIT>" ; String expectedParentNodeToString = "<STR_LIT>" ; String completionIdentifier = "<STR_LIT:foo>" ; String expectedReplacedSource = "<STR_LIT:foo>" ; String expectedUnitDisplayString = "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" ; checkDietParse ( str . toCharArray ( ) , cursorLocation , expectedCompletionNodeToString , expectedParentNodeToString , expectedUnitDisplayString , completionIdentifier , expectedReplacedSource , "<STR_LIT>" ) ; } public void test0096 ( ) { String str = "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT:}>" ; String completeBehind = "<STR_LIT:foo>" ; int cursorLocation = str . indexOf ( completeBehind ) + completeBehind . length ( ) - <NUM_LIT:1> ; String expectedCompletionNodeToString = "<STR_LIT>" ; String expectedParentNodeToString = "<STR_LIT>" ; String completionIdentifier = "<STR_LIT:foo>" ; String expectedReplacedSource = "<STR_LIT:foo>" ; String expectedUnitDisplayString = "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" ; checkDietParse ( str . toCharArray ( ) , cursorLocation , expectedCompletionNodeToString , expectedParentNodeToString , expectedUnitDisplayString , completionIdentifier , expectedReplacedSource , "<STR_LIT>" ) ; } public void test0097 ( ) { String str = "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT:}>" ; String completeBehind = "<STR_LIT:foo>" ; int cursorLocation = str . indexOf ( completeBehind ) + completeBehind . length ( ) - <NUM_LIT:1> ; String expectedCompletionNodeToString = "<STR_LIT>" ; String expectedParentNodeToString = "<STR_LIT>" ; String completionIdentifier = "<STR_LIT:foo>" ; String expectedReplacedSource = "<STR_LIT:foo>" ; String expectedUnitDisplayString = "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" ; checkDietParse ( str . toCharArray ( ) , cursorLocation , expectedCompletionNodeToString , expectedParentNodeToString , expectedUnitDisplayString , completionIdentifier , expectedReplacedSource , "<STR_LIT>" ) ; } public void test0098 ( ) { String str = "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT:}>" ; String completeBehind = "<STR_LIT:foo>" ; int cursorLocation = str . indexOf ( completeBehind ) + completeBehind . length ( ) - <NUM_LIT:1> ; String expectedCompletionNodeToString = "<STR_LIT>" ; String expectedParentNodeToString = "<STR_LIT>" ; String completionIdentifier = "<STR_LIT:foo>" ; String expectedReplacedSource = "<STR_LIT:foo>" ; String expectedUnitDisplayString = "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" ; checkDietParse ( str . toCharArray ( ) , cursorLocation , expectedCompletionNodeToString , expectedParentNodeToString , expectedUnitDisplayString , completionIdentifier , expectedReplacedSource , "<STR_LIT>" ) ; } public void test0099 ( ) { String str = "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT:}>" ; String completeBehind = "<STR_LIT:foo>" ; int cursorLocation = str . indexOf ( completeBehind ) + completeBehind . length ( ) - <NUM_LIT:1> ; String expectedCompletionNodeToString = "<STR_LIT>" ; String expectedParentNodeToString = "<STR_LIT>" ; String completionIdentifier = "<STR_LIT:foo>" ; String expectedReplacedSource = "<STR_LIT:foo>" ; String expectedUnitDisplayString = "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" ; checkDietParse ( str . toCharArray ( ) , cursorLocation , expectedCompletionNodeToString , expectedParentNodeToString , expectedUnitDisplayString , completionIdentifier , expectedReplacedSource , "<STR_LIT>" ) ; } public void test0100 ( ) { String str = "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT:}>" ; String completeBehind = "<STR_LIT:foo>" ; int cursorLocation = str . indexOf ( completeBehind ) + completeBehind . length ( ) - <NUM_LIT:1> ; String expectedCompletionNodeToString = "<STR_LIT>" ; String expectedParentNodeToString = "<STR_LIT>" ; String completionIdentifier = "<STR_LIT:foo>" ; String expectedReplacedSource = "<STR_LIT:foo>" ; String expectedUnitDisplayString = "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" ; checkDietParse ( str . toCharArray ( ) , cursorLocation , expectedCompletionNodeToString , expectedParentNodeToString , expectedUnitDisplayString , completionIdentifier , expectedReplacedSource , "<STR_LIT>" ) ; } public void test0101 ( ) { String str = "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT:}>" ; String completeBehind = "<STR_LIT:foo>" ; int cursorLocation = str . indexOf ( completeBehind ) + completeBehind . length ( ) - <NUM_LIT:1> ; String expectedCompletionNodeToString = "<STR_LIT>" ; String expectedParentNodeToString = "<STR_LIT>" ; String completionIdentifier = "<STR_LIT:foo>" ; String expectedReplacedSource = "<STR_LIT:foo>" ; String expectedUnitDisplayString = "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" ; checkDietParse ( str . toCharArray ( ) , cursorLocation , expectedCompletionNodeToString , expectedParentNodeToString , expectedUnitDisplayString , completionIdentifier , expectedReplacedSource , "<STR_LIT>" ) ; } public void test0102 ( ) { String str = "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT:}>" ; String completeBehind = "<STR_LIT:foo>" ; int cursorLocation = str . indexOf ( completeBehind ) + completeBehind . length ( ) - <NUM_LIT:1> ; String expectedCompletionNodeToString = "<STR_LIT>" ; String expectedParentNodeToString = "<STR_LIT>" ; String completionIdentifier = "<STR_LIT:foo>" ; String expectedReplacedSource = "<STR_LIT:foo>" ; String expectedUnitDisplayString = "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" ; checkDietParse ( str . toCharArray ( ) , cursorLocation , expectedCompletionNodeToString , expectedParentNodeToString , expectedUnitDisplayString , completionIdentifier , expectedReplacedSource , "<STR_LIT>" ) ; } public void test0103 ( ) { String str = "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT:}>" ; String completeBehind = "<STR_LIT:foo>" ; int cursorLocation = str . indexOf ( completeBehind ) + completeBehind . length ( ) - <NUM_LIT:1> ; String expectedCompletionNodeToString = "<STR_LIT>" ; String expectedParentNodeToString = "<STR_LIT>" ; String completionIdentifier = "<STR_LIT:foo>" ; String expectedReplacedSource = "<STR_LIT:foo>" ; String expectedUnitDisplayString = "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" ; checkDietParse ( str . toCharArray ( ) , cursorLocation , expectedCompletionNodeToString , expectedParentNodeToString , expectedUnitDisplayString , completionIdentifier , expectedReplacedSource , "<STR_LIT>" ) ; } public void test0104 ( ) { String str = "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT:}>" ; String completeBehind = "<STR_LIT:foo>" ; int cursorLocation = str . indexOf ( completeBehind ) + completeBehind . length ( ) - <NUM_LIT:1> ; String expectedCompletionNodeToString = "<STR_LIT>" ; String expectedParentNodeToString = "<STR_LIT>" ; String completionIdentifier = "<STR_LIT:foo>" ; String expectedReplacedSource = "<STR_LIT:foo>" ; String expectedUnitDisplayString = "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" ; checkDietParse ( str . toCharArray ( ) , cursorLocation , expectedCompletionNodeToString , expectedParentNodeToString , expectedUnitDisplayString , completionIdentifier , expectedReplacedSource , "<STR_LIT>" ) ; } public void test0105_Diet ( ) { String str = "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT:}>" ; String completeBehind = "<STR_LIT:foo>" ; int cursorLocation = str . indexOf ( completeBehind ) + completeBehind . length ( ) - <NUM_LIT:1> ; String expectedCompletionNodeToString = "<STR_LIT>" ; String expectedParentNodeToString = "<STR_LIT>" ; String completionIdentifier = "<STR_LIT>" ; String expectedReplacedSource = "<STR_LIT>" ; String expectedUnitDisplayString = "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" ; checkDietParse ( str . toCharArray ( ) , cursorLocation , expectedCompletionNodeToString , expectedParentNodeToString , expectedUnitDisplayString , completionIdentifier , expectedReplacedSource , "<STR_LIT>" ) ; } public void test0105_Method ( ) { String str = "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT:}>" ; String completeBehind = "<STR_LIT:foo>" ; int cursorLocation = str . indexOf ( completeBehind ) + completeBehind . length ( ) - <NUM_LIT:1> ; String expectedCompletionNodeToString = "<STR_LIT>" ; String expectedParentNodeToString = "<STR_LIT>" ; String completionIdentifier = "<STR_LIT:foo>" ; String expectedReplacedSource = "<STR_LIT:foo>" ; String expectedUnitDisplayString = "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" ; checkMethodParse ( str . toCharArray ( ) , cursorLocation , expectedCompletionNodeToString , expectedParentNodeToString , expectedUnitDisplayString , completionIdentifier , expectedReplacedSource , "<STR_LIT>" ) ; } public void test0106_Diet ( ) { String str = "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT:}>" ; String completeBehind = "<STR_LIT:foo>" ; int cursorLocation = str . indexOf ( completeBehind ) + completeBehind . length ( ) - <NUM_LIT:1> ; String expectedCompletionNodeToString = "<STR_LIT>" ; String expectedParentNodeToString = "<STR_LIT>" ; String completionIdentifier = "<STR_LIT>" ; String expectedReplacedSource = "<STR_LIT>" ; String expectedUnitDisplayString = "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" ; checkDietParse ( str . toCharArray ( ) , cursorLocation , expectedCompletionNodeToString , expectedParentNodeToString , expectedUnitDisplayString , completionIdentifier , expectedReplacedSource , "<STR_LIT>" ) ; } public void test0106_Method ( ) { String str = "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT:}>" ; String completeBehind = "<STR_LIT:foo>" ; int cursorLocation = str . indexOf ( completeBehind ) + completeBehind . length ( ) - <NUM_LIT:1> ; String expectedCompletionNodeToString = "<STR_LIT>" ; String expectedParentNodeToString = "<STR_LIT>" ; String completionIdentifier = "<STR_LIT:foo>" ; String expectedReplacedSource = "<STR_LIT:foo>" ; String expectedUnitDisplayString = "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" ; checkMethodParse ( str . toCharArray ( ) , cursorLocation , expectedCompletionNodeToString , expectedParentNodeToString , expectedUnitDisplayString , completionIdentifier , expectedReplacedSource , "<STR_LIT>" ) ; } public void test0107_Diet ( ) { String str = "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT:}>" ; String completeBehind = "<STR_LIT:foo>" ; int cursorLocation = str . indexOf ( completeBehind ) + completeBehind . length ( ) - <NUM_LIT:1> ; String expectedCompletionNodeToString = "<STR_LIT>" ; String expectedParentNodeToString = "<STR_LIT>" ; String completionIdentifier = "<STR_LIT>" ; String expectedReplacedSource = "<STR_LIT>" ; String expectedUnitDisplayString = "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" ; checkDietParse ( str . toCharArray ( ) , cursorLocation , expectedCompletionNodeToString , expectedParentNodeToString , expectedUnitDisplayString , completionIdentifier , expectedReplacedSource , "<STR_LIT>" ) ; } public void test0107_Method ( ) { String str = "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT:}>" ; String completeBehind = "<STR_LIT:foo>" ; int cursorLocation = str . indexOf ( completeBehind ) + completeBehind . length ( ) - <NUM_LIT:1> ; String expectedCompletionNodeToString = "<STR_LIT>" ; String expectedParentNodeToString = "<STR_LIT>" ; String completionIdentifier = "<STR_LIT:foo>" ; String expectedReplacedSource = "<STR_LIT:foo>" ; String expectedUnitDisplayString = "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" ; checkMethodParse ( str . toCharArray ( ) , cursorLocation , expectedCompletionNodeToString , expectedParentNodeToString , expectedUnitDisplayString , completionIdentifier , expectedReplacedSource , "<STR_LIT>" ) ; } public void test0108_Diet ( ) { String str = "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT:}>" ; String completeBehind = "<STR_LIT:foo>" ; int cursorLocation = str . indexOf ( completeBehind ) + completeBehind . length ( ) - <NUM_LIT:1> ; String expectedCompletionNodeToString = "<STR_LIT>" ; String expectedParentNodeToString = "<STR_LIT>" ; String completionIdentifier = "<STR_LIT>" ; String expectedReplacedSource = "<STR_LIT>" ; String expectedUnitDisplayString = "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" ; checkDietParse ( str . toCharArray ( ) , cursorLocation , expectedCompletionNodeToString , expectedParentNodeToString , expectedUnitDisplayString , completionIdentifier , expectedReplacedSource , "<STR_LIT>" ) ; } public void test0108_Method ( ) { String str = "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT:}>" ; String completeBehind = "<STR_LIT:foo>" ; int cursorLocation = str . indexOf ( completeBehind ) + completeBehind . length ( ) - <NUM_LIT:1> ; String expectedCompletionNodeToString = "<STR_LIT>" ; String expectedParentNodeToString = "<STR_LIT>" ; String completionIdentifier = "<STR_LIT:foo>" ; String expectedReplacedSource = "<STR_LIT:foo>" ; String expectedUnitDisplayString = "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" ; checkMethodParse ( str . toCharArray ( ) , cursorLocation , expectedCompletionNodeToString , expectedParentNodeToString , expectedUnitDisplayString , completionIdentifier , expectedReplacedSource , "<STR_LIT>" ) ; } public void test0109_Diet ( ) { String str = "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT:}>" ; String completeBehind = "<STR_LIT:foo>" ; int cursorLocation = str . indexOf ( completeBehind ) + completeBehind . length ( ) - <NUM_LIT:1> ; String expectedCompletionNodeToString = "<STR_LIT>" ; String expectedParentNodeToString = "<STR_LIT>" ; String completionIdentifier = "<STR_LIT>" ; String expectedReplacedSource = "<STR_LIT>" ; String expectedUnitDisplayString = "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" ; checkDietParse ( str . toCharArray ( ) , cursorLocation , expectedCompletionNodeToString , expectedParentNodeToString , expectedUnitDisplayString , completionIdentifier , expectedReplacedSource , "<STR_LIT>" ) ; } public void test0109_Method ( ) { String str = "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT:}>" ; String completeBehind = "<STR_LIT:foo>" ; int cursorLocation = str . indexOf ( completeBehind ) + completeBehind . length ( ) - <NUM_LIT:1> ; String expectedCompletionNodeToString = "<STR_LIT>" ; String expectedParentNodeToString = "<STR_LIT>" ; String completionIdentifier = "<STR_LIT:foo>" ; String expectedReplacedSource = "<STR_LIT:foo>" ; String expectedUnitDisplayString = "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" ; checkMethodParse ( str . toCharArray ( ) , cursorLocation , expectedCompletionNodeToString , expectedParentNodeToString , expectedUnitDisplayString , completionIdentifier , expectedReplacedSource , "<STR_LIT>" ) ; } public void test0110_Diet ( ) { String str = "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT:}>" ; String completeBehind = "<STR_LIT:foo>" ; int cursorLocation = str . indexOf ( completeBehind ) + completeBehind . length ( ) - <NUM_LIT:1> ; String expectedCompletionNodeToString = "<STR_LIT>" ; String expectedParentNodeToString = "<STR_LIT>" ; String completionIdentifier = "<STR_LIT>" ; String expectedReplacedSource = "<STR_LIT>" ; String expectedUnitDisplayString = "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" ; checkDietParse ( str . toCharArray ( ) , cursorLocation , expectedCompletionNodeToString , expectedParentNodeToString , expectedUnitDisplayString , completionIdentifier , expectedReplacedSource , "<STR_LIT>" ) ; } public void test0110_Method ( ) { String str = "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT:}>" ; String completeBehind = "<STR_LIT:foo>" ; int cursorLocation = str . indexOf ( completeBehind ) + completeBehind . length ( ) - <NUM_LIT:1> ; String expectedCompletionNodeToString = "<STR_LIT>" ; String expectedParentNodeToString = "<STR_LIT>" ; String completionIdentifier = "<STR_LIT:foo>" ; String expectedReplacedSource = "<STR_LIT:foo>" ; String expectedUnitDisplayString = "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" ; checkMethodParse ( str . toCharArray ( ) , cursorLocation , expectedCompletionNodeToString , expectedParentNodeToString , expectedUnitDisplayString , completionIdentifier , expectedReplacedSource , "<STR_LIT>" ) ; } public void test0111_Diet ( ) { String str = "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT:}>" ; String completeBehind = "<STR_LIT:foo>" ; int cursorLocation = str . indexOf ( completeBehind ) + completeBehind . length ( ) - <NUM_LIT:1> ; String expectedCompletionNodeToString = "<STR_LIT>" ; String expectedParentNodeToString = "<STR_LIT>" ; String completionIdentifier = "<STR_LIT>" ; String expectedReplacedSource = "<STR_LIT>" ; String expectedUnitDisplayString = "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" ; checkDietParse ( str . toCharArray ( ) , cursorLocation , expectedCompletionNodeToString , expectedParentNodeToString , expectedUnitDisplayString , completionIdentifier , expectedReplacedSource , "<STR_LIT>" ) ; } public void test0111_Method ( ) { String str = "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT:}>" ; String completeBehind = "<STR_LIT:foo>" ; int cursorLocation = str . indexOf ( completeBehind ) + completeBehind . length ( ) - <NUM_LIT:1> ; String expectedCompletionNodeToString = "<STR_LIT>" ; String expectedParentNodeToString = "<STR_LIT>" ; String completionIdentifier = "<STR_LIT:foo>" ; String expectedReplacedSource = "<STR_LIT:foo>" ; String expectedUnitDisplayString = "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" ; checkMethodParse ( str . toCharArray ( ) , cursorLocation , expectedCompletionNodeToString , expectedParentNodeToString , expectedUnitDisplayString , completionIdentifier , expectedReplacedSource , "<STR_LIT>" ) ; } public void test0112_Diet ( ) { String str = "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT:}>" ; String completeBehind = "<STR_LIT:foo>" ; int cursorLocation = str . indexOf ( completeBehind ) + completeBehind . length ( ) - <NUM_LIT:1> ; String expectedCompletionNodeToString = "<STR_LIT>" ; String expectedParentNodeToString = "<STR_LIT>" ; String completionIdentifier = "<STR_LIT:foo>" ; String expectedReplacedSource = "<STR_LIT:foo>" ; String expectedUnitDisplayString = "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" ; checkDietParse ( str . toCharArray ( ) , cursorLocation , expectedCompletionNodeToString , expectedParentNodeToString , expectedUnitDisplayString , completionIdentifier , expectedReplacedSource , "<STR_LIT>" ) ; } public void test0112_Method ( ) { String str = "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT:}>" ; String completeBehind = "<STR_LIT:foo>" ; int cursorLocation = str . indexOf ( completeBehind ) + completeBehind . length ( ) - <NUM_LIT:1> ; String expectedCompletionNodeToString = "<STR_LIT>" ; String expectedParentNodeToString = "<STR_LIT>" ; String completionIdentifier = "<STR_LIT:foo>" ; String expectedReplacedSource = "<STR_LIT:foo>" ; String expectedUnitDisplayString = "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" ; checkMethodParse ( str . toCharArray ( ) , cursorLocation , expectedCompletionNodeToString , expectedParentNodeToString , expectedUnitDisplayString , completionIdentifier , expectedReplacedSource , "<STR_LIT>" ) ; } public void test0113_Diet ( ) { String str = "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT:}>" ; String completeBehind = "<STR_LIT:foo>" ; int cursorLocation = str . indexOf ( completeBehind ) + completeBehind . length ( ) - <NUM_LIT:1> ; String expectedCompletionNodeToString = "<STR_LIT>" ; String expectedParentNodeToString = "<STR_LIT>" ; String completionIdentifier = "<STR_LIT>" ; String expectedReplacedSource = "<STR_LIT>" ; String expectedUnitDisplayString = "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" ; checkDietParse ( str . toCharArray ( ) , cursorLocation , expectedCompletionNodeToString , expectedParentNodeToString , expectedUnitDisplayString , completionIdentifier , expectedReplacedSource , "<STR_LIT>" ) ; } public void test0113_Method ( ) { String str = "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT:}>" ; String completeBehind = "<STR_LIT:foo>" ; int cursorLocation = str . indexOf ( completeBehind ) + completeBehind . length ( ) - <NUM_LIT:1> ; String expectedCompletionNodeToString = "<STR_LIT>" ; String expectedParentNodeToString = "<STR_LIT>" ; String completionIdentifier = "<STR_LIT:foo>" ; String expectedReplacedSource = "<STR_LIT:foo>" ; String expectedUnitDisplayString = "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" ; checkMethodParse ( str . toCharArray ( ) , cursorLocation , expectedCompletionNodeToString , expectedParentNodeToString , expectedUnitDisplayString , completionIdentifier , expectedReplacedSource , "<STR_LIT>" ) ; } public void test0114_Diet ( ) { String str = "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT:}>" ; String completeBehind = "<STR_LIT:foo>" ; int cursorLocation = str . indexOf ( completeBehind ) + completeBehind . length ( ) - <NUM_LIT:1> ; String expectedCompletionNodeToString = "<STR_LIT>" ; String expectedParentNodeToString = "<STR_LIT>" ; String completionIdentifier = "<STR_LIT>" ; String expectedReplacedSource = "<STR_LIT>" ; String expectedUnitDisplayString = "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" ; checkDietParse ( str . toCharArray ( ) , cursorLocation , expectedCompletionNodeToString , expectedParentNodeToString , expectedUnitDisplayString , completionIdentifier , expectedReplacedSource , "<STR_LIT>" ) ; } public void test0114_Method ( ) { String str = "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT:}>" ; String completeBehind = "<STR_LIT:foo>" ; int cursorLocation = str . indexOf ( completeBehind ) + completeBehind . length ( ) - <NUM_LIT:1> ; String expectedCompletionNodeToString = "<STR_LIT>" ; String expectedParentNodeToString = "<STR_LIT>" ; String completionIdentifier = "<STR_LIT:foo>" ; String expectedReplacedSource = "<STR_LIT:foo>" ; String expectedUnitDisplayString = "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" ; checkMethodParse ( str . toCharArray ( ) , cursorLocation , expectedCompletionNodeToString , expectedParentNodeToString , expectedUnitDisplayString , completionIdentifier , expectedReplacedSource , "<STR_LIT>" ) ; } public void test0115 ( ) { String str = "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT:}>" ; String completeBehind = "<STR_LIT:foo>" ; int cursorLocation = str . indexOf ( completeBehind ) + completeBehind . length ( ) - <NUM_LIT:1> ; String expectedCompletionNodeToString = "<STR_LIT>" ; String expectedParentNodeToString = "<STR_LIT>" ; String completionIdentifier = "<STR_LIT:foo>" ; String expectedReplacedSource = "<STR_LIT:foo>" ; String expectedUnitDisplayString = "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" ; checkDietParse ( str . toCharArray ( ) , cursorLocation , expectedCompletionNodeToString , expectedParentNodeToString , expectedUnitDisplayString , completionIdentifier , expectedReplacedSource , "<STR_LIT>" ) ; } public void test0116 ( ) { String str = "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT:}>" ; String completeBehind = "<STR_LIT:foo>" ; int cursorLocation = str . indexOf ( completeBehind ) + completeBehind . length ( ) - <NUM_LIT:1> ; String expectedCompletionNodeToString = "<STR_LIT>" ; String expectedParentNodeToString = "<STR_LIT>" ; String completionIdentifier = "<STR_LIT:foo>" ; String expectedReplacedSource = "<STR_LIT:foo>" ; String expectedUnitDisplayString = "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" ; checkDietParse ( str . toCharArray ( ) , cursorLocation , expectedCompletionNodeToString , expectedParentNodeToString , expectedUnitDisplayString , completionIdentifier , expectedReplacedSource , "<STR_LIT>" ) ; } public void test0117 ( ) { String str = "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT:}>" ; String completeBehind = "<STR_LIT:foo>" ; int cursorLocation = str . indexOf ( completeBehind ) + completeBehind . length ( ) - <NUM_LIT:1> ; String expectedCompletionNodeToString = "<STR_LIT>" ; String expectedParentNodeToString = "<STR_LIT>" ; String completionIdentifier = "<STR_LIT:foo>" ; String expectedReplacedSource = "<STR_LIT:foo>" ; String expectedUnitDisplayString = "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" ; checkDietParse ( str . toCharArray ( ) , cursorLocation , expectedCompletionNodeToString , expectedParentNodeToString , expectedUnitDisplayString , completionIdentifier , expectedReplacedSource , "<STR_LIT>" ) ; } public void test0118 ( ) { String str = "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT:}>" ; String completeBehind = "<STR_LIT:foo>" ; int cursorLocation = str . indexOf ( completeBehind ) + completeBehind . length ( ) - <NUM_LIT:1> ; String expectedCompletionNodeToString = "<STR_LIT>" ; String expectedParentNodeToString = "<STR_LIT>" ; String completionIdentifier = "<STR_LIT:foo>" ; String expectedReplacedSource = "<STR_LIT:foo>" ; String expectedUnitDisplayString = "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" ; checkDietParse ( str . toCharArray ( ) , cursorLocation , expectedCompletionNodeToString , expectedParentNodeToString , expectedUnitDisplayString , completionIdentifier , expectedReplacedSource , "<STR_LIT>" ) ; } public void test0119_Diet ( ) { String str = "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT:}>" ; String completeBehind = "<STR_LIT:foo>" ; int cursorLocation = str . indexOf ( completeBehind ) + completeBehind . length ( ) - <NUM_LIT:1> ; String expectedCompletionNodeToString = "<STR_LIT>" ; String expectedParentNodeToString = "<STR_LIT>" ; String completionIdentifier = "<STR_LIT:foo>" ; String expectedReplacedSource = "<STR_LIT:foo>" ; String expectedUnitDisplayString = "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" ; checkDietParse ( str . toCharArray ( ) , cursorLocation , expectedCompletionNodeToString , expectedParentNodeToString , expectedUnitDisplayString , completionIdentifier , expectedReplacedSource , "<STR_LIT>" ) ; } public void test0119_Method ( ) { String str = "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT:}>" ; String completeBehind = "<STR_LIT:foo>" ; int cursorLocation = str . indexOf ( completeBehind ) + completeBehind . length ( ) - <NUM_LIT:1> ; String expectedCompletionNodeToString = "<STR_LIT>" ; String expectedParentNodeToString = "<STR_LIT>" ; String completionIdentifier = "<STR_LIT:foo>" ; String expectedReplacedSource = "<STR_LIT:foo>" ; String expectedUnitDisplayString = "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" ; checkMethodParse ( str . toCharArray ( ) , cursorLocation , expectedCompletionNodeToString , expectedParentNodeToString , expectedUnitDisplayString , completionIdentifier , expectedReplacedSource , "<STR_LIT>" ) ; } public void test0120_Diet ( ) { String str = "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT:}>" ; String completeBehind = "<STR_LIT:foo>" ; int cursorLocation = str . indexOf ( completeBehind ) + completeBehind . length ( ) - <NUM_LIT:1> ; String expectedCompletionNodeToString = "<STR_LIT>" ; String expectedParentNodeToString = "<STR_LIT>" ; String completionIdentifier = "<STR_LIT:foo>" ; String expectedReplacedSource = "<STR_LIT:foo>" ; String expectedUnitDisplayString = "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" ; checkDietParse ( str . toCharArray ( ) , cursorLocation , expectedCompletionNodeToString , expectedParentNodeToString , expectedUnitDisplayString , completionIdentifier , expectedReplacedSource , "<STR_LIT>" ) ; } public void test0120_Method ( ) { String str = "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT:}>" ; String completeBehind = "<STR_LIT:foo>" ; int cursorLocation = str . indexOf ( completeBehind ) + completeBehind . length ( ) - <NUM_LIT:1> ; String expectedCompletionNodeToString = "<STR_LIT>" ; String expectedParentNodeToString = "<STR_LIT>" ; String completionIdentifier = "<STR_LIT:foo>" ; String expectedReplacedSource = "<STR_LIT:foo>" ; String expectedUnitDisplayString = "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" ; checkMethodParse ( str . toCharArray ( ) , cursorLocation , expectedCompletionNodeToString , expectedParentNodeToString , expectedUnitDisplayString , completionIdentifier , expectedReplacedSource , "<STR_LIT>" ) ; } public void test0121 ( ) { String str = "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT:}>" ; String completeBehind = "<STR_LIT:foo>" ; int cursorLocation = str . indexOf ( completeBehind ) + completeBehind . length ( ) - <NUM_LIT:1> ; String expectedCompletionNodeToString = "<STR_LIT>" ; String expectedParentNodeToString = "<STR_LIT>" ; String completionIdentifier = "<STR_LIT:foo>" ; String expectedReplacedSource = "<STR_LIT:foo>" ; String expectedUnitDisplayString = "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" ; checkDietParse ( str . toCharArray ( ) , cursorLocation , expectedCompletionNodeToString , expectedParentNodeToString , expectedUnitDisplayString , completionIdentifier , expectedReplacedSource , "<STR_LIT>" ) ; } public void test0122 ( ) { String str = "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT:}>" ; String completeBehind = "<STR_LIT:foo>" ; int cursorLocation = str . indexOf ( completeBehind ) + completeBehind . length ( ) - <NUM_LIT:1> ; String expectedCompletionNodeToString = "<STR_LIT>" ; String expectedParentNodeToString = "<STR_LIT>" ; String completionIdentifier = "<STR_LIT:foo>" ; String expectedReplacedSource = "<STR_LIT:foo>" ; String expectedUnitDisplayString = "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" ; checkDietParse ( str . toCharArray ( ) , cursorLocation , expectedCompletionNodeToString , expectedParentNodeToString , expectedUnitDisplayString , completionIdentifier , expectedReplacedSource , "<STR_LIT>" ) ; } public void test0123 ( ) { String str = "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT:}>" ; String completeBehind = "<STR_LIT:foo>" ; int cursorLocation = str . indexOf ( completeBehind ) + completeBehind . length ( ) - <NUM_LIT:1> ; String expectedCompletionNodeToString = "<STR_LIT>" ; String expectedParentNodeToString = "<STR_LIT>" ; String completionIdentifier = "<STR_LIT:foo>" ; String expectedReplacedSource = "<STR_LIT:foo>" ; String expectedUnitDisplayString = "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" ; checkDietParse ( str . toCharArray ( ) , cursorLocation , expectedCompletionNodeToString , expectedParentNodeToString , expectedUnitDisplayString , completionIdentifier , expectedReplacedSource , "<STR_LIT>" ) ; } public void test0124 ( ) { String str = "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT:}>" ; String completeBehind = "<STR_LIT:foo>" ; int cursorLocation = str . indexOf ( completeBehind ) + completeBehind . length ( ) - <NUM_LIT:1> ; String expectedCompletionNodeToString = "<STR_LIT>" ; String expectedParentNodeToString = "<STR_LIT>" ; String completionIdentifier = "<STR_LIT:foo>" ; String expectedReplacedSource = "<STR_LIT:foo>" ; String expectedUnitDisplayString = "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" ; checkDietParse ( str . toCharArray ( ) , cursorLocation , expectedCompletionNodeToString , expectedParentNodeToString , expectedUnitDisplayString , completionIdentifier , expectedReplacedSource , "<STR_LIT>" ) ; } public void test0125 ( ) { String str = "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT:}>" ; String completeBehind = "<STR_LIT>" ; int cursorLocation = str . indexOf ( completeBehind ) + completeBehind . length ( ) - <NUM_LIT:1> ; String expectedCompletionNodeToString = "<STR_LIT>" ; String expectedParentNodeToString = "<STR_LIT>" ; String completionIdentifier = "<STR_LIT>" ; String expectedReplacedSource = "<STR_LIT>" ; String expectedUnitDisplayString = "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" ; checkDietParse ( str . toCharArray ( ) , cursorLocation , expectedCompletionNodeToString , expectedParentNodeToString , expectedUnitDisplayString , completionIdentifier , expectedReplacedSource , "<STR_LIT>" ) ; } public void test0126 ( ) { String str = "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT:}>" ; String completeBehind = "<STR_LIT>" ; int cursorLocation = str . indexOf ( completeBehind ) + completeBehind . length ( ) - <NUM_LIT:1> ; String expectedCompletionNodeToString = "<STR_LIT>" ; String expectedParentNodeToString = "<STR_LIT>" ; String completionIdentifier = "<STR_LIT>" ; String expectedReplacedSource = "<STR_LIT>" ; String expectedUnitDisplayString = "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" ; checkDietParse ( str . toCharArray ( ) , cursorLocation , expectedCompletionNodeToString , expectedParentNodeToString , expectedUnitDisplayString , completionIdentifier , expectedReplacedSource , "<STR_LIT>" ) ; } public void test0127 ( ) { String str = "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT:}>" ; String completeBehind = "<STR_LIT>" ; int cursorLocation = str . indexOf ( completeBehind ) + completeBehind . length ( ) - <NUM_LIT:1> ; String expectedCompletionNodeToString = "<STR_LIT>" ; String expectedParentNodeToString = "<STR_LIT>" ; String completionIdentifier = "<STR_LIT>" ; String expectedReplacedSource = "<STR_LIT>" ; String expectedUnitDisplayString = "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" ; checkDietParse ( str . toCharArray ( ) , cursorLocation , expectedCompletionNodeToString , expectedParentNodeToString , expectedUnitDisplayString , completionIdentifier , expectedReplacedSource , "<STR_LIT>" ) ; } public void test0128 ( ) { String str = "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT:}>" ; String completeBehind = "<STR_LIT>" ; int cursorLocation = str . indexOf ( completeBehind ) + completeBehind . length ( ) - <NUM_LIT:1> ; String expectedCompletionNodeToString = "<STR_LIT>" ; String expectedParentNodeToString = "<STR_LIT>" ; String completionIdentifier = "<STR_LIT>" ; String expectedReplacedSource = "<STR_LIT>" ; String expectedUnitDisplayString = "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" ; checkDietParse ( str . toCharArray ( ) , cursorLocation , expectedCompletionNodeToString , expectedParentNodeToString , expectedUnitDisplayString , completionIdentifier , expectedReplacedSource , "<STR_LIT>" ) ; } public void test0129 ( ) { String str = "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT:}>" ; String completeBehind = "<STR_LIT>" ; int cursorLocation = str . indexOf ( completeBehind ) + completeBehind . length ( ) - <NUM_LIT:1> ; String expectedCompletionNodeToString = "<STR_LIT>" ; String expectedParentNodeToString = "<STR_LIT>" ; String completionIdentifier = "<STR_LIT>" ; String expectedReplacedSource = "<STR_LIT>" ; String expectedUnitDisplayString = "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" ; checkDietParse ( str . toCharArray ( ) , cursorLocation , expectedCompletionNodeToString , expectedParentNodeToString , expectedUnitDisplayString , completionIdentifier , expectedReplacedSource , "<STR_LIT>" ) ; } } </s>
|
<s> package org . eclipse . jdt . core . tests . compiler . parser ; import junit . framework . Test ; public class InnerTypeCompletionTest extends AbstractCompletionTest { public InnerTypeCompletionTest ( String testName ) { super ( testName ) ; } public static Test suite ( ) { return buildAllCompliancesTestSuite ( InnerTypeCompletionTest . class ) ; } public void testAnonymousFirstMethod ( ) { this . runTestCheckMethodParse ( "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" , "<STR_LIT:x>" , "<STR_LIT>" , "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" , "<STR_LIT:x>" , "<STR_LIT>" , "<STR_LIT>" ) ; } public void testAnonymousNoStatementBefore ( ) { this . runTestCheckMethodParse ( "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" , "<STR_LIT:x>" , "<STR_LIT>" , "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" , "<STR_LIT:x>" , "<STR_LIT>" , "<STR_LIT>" ) ; } public void testAnonymousOneFieldBefore ( ) { this . runTestCheckMethodParse ( "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" , "<STR_LIT:x>" , "<STR_LIT>" , "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" , "<STR_LIT:x>" , "<STR_LIT>" , "<STR_LIT>" ) ; } public void testAnonymousOneStatementBefore ( ) { this . runTestCheckMethodParse ( "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" , "<STR_LIT:x>" , "<STR_LIT>" , "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" , "<STR_LIT:x>" , "<STR_LIT>" , "<STR_LIT>" ) ; } public void testAnonymousSecondMethod ( ) { this . runTestCheckMethodParse ( "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" , "<STR_LIT:x>" , "<STR_LIT>" , "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" , "<STR_LIT:x>" , "<STR_LIT>" , "<STR_LIT>" ) ; } public void testLocalTypeFirstMethod ( ) { this . runTestCheckMethodParse ( "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" , "<STR_LIT:x>" , "<STR_LIT>" , "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" , "<STR_LIT:x>" , "<STR_LIT>" , "<STR_LIT>" ) ; } public void testLocalTypeNoStatementBefore ( ) { this . runTestCheckMethodParse ( "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" , "<STR_LIT:x>" , "<STR_LIT>" , "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" , "<STR_LIT:x>" , "<STR_LIT>" , "<STR_LIT>" ) ; } public void testLocalTypeOneFieldBefore ( ) { this . runTestCheckMethodParse ( "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" , "<STR_LIT:x>" , "<STR_LIT>" , "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" , "<STR_LIT:x>" , "<STR_LIT>" , "<STR_LIT>" ) ; } public void testLocalTypeOneStatementBefore ( ) { this . runTestCheckMethodParse ( "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" , "<STR_LIT:x>" , "<STR_LIT>" , "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" , "<STR_LIT:x>" , "<STR_LIT>" , "<STR_LIT>" ) ; } public void testLocalTypeSecondMethod ( ) { this . runTestCheckMethodParse ( "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" , "<STR_LIT:x>" , "<STR_LIT>" , "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" , "<STR_LIT:x>" , "<STR_LIT>" , "<STR_LIT>" ) ; } } </s>
|
<s> package org . eclipse . jdt . core . tests . compiler . parser ; import junit . framework . Test ; public class CompletionRecoveryTest extends AbstractCompletionTest { public CompletionRecoveryTest ( String testName ) { super ( testName ) ; } static { } public static Test suite ( ) { return buildAllCompliancesTestSuite ( CompletionRecoveryTest . class ) ; } public void test01 ( ) { String str = "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" ; String completeBehind = "<STR_LIT>" ; String expectedCompletionNodeToString = "<STR_LIT>" ; String completionIdentifier = "<STR_LIT>" ; String expectedUnitDisplayString = "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" ; String expectedReplacedSource = "<STR_LIT>" ; String testName = "<STR_LIT>" ; int cursorLocation = str . indexOf ( completeBehind ) + completeBehind . length ( ) - <NUM_LIT:1> ; this . checkMethodParse ( str . toCharArray ( ) , cursorLocation , expectedCompletionNodeToString , expectedUnitDisplayString , completionIdentifier , expectedReplacedSource , testName ) ; } public void test02 ( ) { String str = "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" ; String completeBehind = "<STR_LIT>" ; String expectedCompletionNodeToString = "<STR_LIT>" ; String completionIdentifier = "<STR_LIT>" ; String expectedUnitDisplayString = "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" ; String expectedReplacedSource = "<STR_LIT>" ; String testName = "<STR_LIT>" ; int cursorLocation = str . indexOf ( completeBehind ) + completeBehind . length ( ) - <NUM_LIT:1> ; this . checkMethodParse ( str . toCharArray ( ) , cursorLocation , expectedCompletionNodeToString , expectedUnitDisplayString , completionIdentifier , expectedReplacedSource , testName ) ; } public void test03 ( ) { String str = "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" ; String completeBehind = "<STR_LIT>" ; String expectedCompletionNodeToString = "<STR_LIT>" ; String completionIdentifier = "<STR_LIT>" ; String expectedUnitDisplayString = "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" ; String expectedReplacedSource = "<STR_LIT>" ; String testName = "<STR_LIT>" ; int cursorLocation = str . indexOf ( completeBehind ) + completeBehind . length ( ) - <NUM_LIT:1> ; this . checkMethodParse ( str . toCharArray ( ) , cursorLocation , expectedCompletionNodeToString , expectedUnitDisplayString , completionIdentifier , expectedReplacedSource , testName ) ; } public void test04 ( ) { String str = "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" ; String completeBehind = "<STR_LIT>" ; String expectedCompletionNodeToString = "<STR_LIT>" ; String completionIdentifier = "<STR_LIT>" ; String expectedUnitDisplayString = "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" ; String expectedReplacedSource = "<STR_LIT>" ; String testName = "<STR_LIT>" ; int cursorLocation = str . indexOf ( completeBehind ) + completeBehind . length ( ) - <NUM_LIT:1> ; this . checkMethodParse ( str . toCharArray ( ) , cursorLocation , expectedCompletionNodeToString , expectedUnitDisplayString , completionIdentifier , expectedReplacedSource , testName ) ; } public void test05 ( ) { String str = "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" ; String completeBehind = "<STR_LIT>" ; String expectedCompletionNodeToString = "<STR_LIT>" ; String completionIdentifier = "<STR_LIT>" ; String expectedUnitDisplayString = "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" ; String expectedReplacedSource = "<STR_LIT>" ; String testName = "<STR_LIT>" ; int cursorLocation = str . indexOf ( completeBehind ) + completeBehind . length ( ) - <NUM_LIT:1> ; this . checkMethodParse ( str . toCharArray ( ) , cursorLocation , expectedCompletionNodeToString , expectedUnitDisplayString , completionIdentifier , expectedReplacedSource , testName ) ; } public void test06 ( ) { String str = "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" ; String completeBehind = "<STR_LIT>" ; String expectedCompletionNodeToString = "<STR_LIT>" ; String completionIdentifier = "<STR_LIT>" ; String expectedUnitDisplayString = "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" ; String expectedReplacedSource = "<STR_LIT>" ; String testName = "<STR_LIT>" ; int cursorLocation = str . indexOf ( completeBehind ) + completeBehind . length ( ) - <NUM_LIT:1> ; this . checkMethodParse ( str . toCharArray ( ) , cursorLocation , expectedCompletionNodeToString , expectedUnitDisplayString , completionIdentifier , expectedReplacedSource , testName ) ; } public void test07 ( ) { String str = "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" ; String completeBehind = "<STR_LIT>" ; String expectedCompletionNodeToString = "<STR_LIT>" ; String completionIdentifier = "<STR_LIT:n>" ; String expectedUnitDisplayString = "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" ; String expectedReplacedSource = "<STR_LIT>" ; String testName = "<STR_LIT>" ; int cursorLocation = str . indexOf ( completeBehind ) + completeBehind . length ( ) - <NUM_LIT:1> ; this . checkMethodParse ( str . toCharArray ( ) , cursorLocation , expectedCompletionNodeToString , expectedUnitDisplayString , completionIdentifier , expectedReplacedSource , testName ) ; } public void test08 ( ) { this . runTestCheckDietParse ( "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" , "<STR_LIT>" , "<STR_LIT>" , "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" , "<STR_LIT>" , "<STR_LIT>" , "<STR_LIT>" ) ; } public void test09 ( ) { this . runTestCheckDietParse ( "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" , "<STR_LIT>" , "<STR_LIT>" , "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" , "<STR_LIT>" , "<STR_LIT>" , "<STR_LIT>" ) ; } public void test10 ( ) { this . runTestCheckMethodParse ( "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" , "<STR_LIT>" , "<STR_LIT>" , "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" , "<STR_LIT>" , "<STR_LIT>" , "<STR_LIT>" ) ; } public void test11 ( ) { this . runTestCheckMethodParse ( "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" , "<STR_LIT>" , "<STR_LIT>" , "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" , "<STR_LIT:f>" , "<STR_LIT:f>" , "<STR_LIT>" ) ; } public void test12 ( ) { this . runTestCheckMethodParse ( "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" , "<STR_LIT>" , "<STR_LIT>" , "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" , "<STR_LIT>" , "<STR_LIT>" , "<STR_LIT>" ) ; } public void test13 ( ) { this . runTestCheckMethodParse ( "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" , "<STR_LIT>" , "<STR_LIT>" , "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" , "<STR_LIT>" , "<STR_LIT>" , "<STR_LIT>" ) ; } public void test14 ( ) { this . runTestCheckDietParse ( "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" , "<STR_LIT>" , NONE , "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" , "<STR_LIT>" , NONE , "<STR_LIT>" ) ; } public void test15 ( ) { this . runTestCheckDietParse ( "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" , "<STR_LIT>" , NONE , "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" , "<STR_LIT>" , NONE , "<STR_LIT>" ) ; } public void test16 ( ) { this . runTestCheckDietParse ( "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" , "<STR_LIT>" , "<STR_LIT>" , "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" , "<STR_LIT>" , "<STR_LIT>" , "<STR_LIT>" ) ; } public void test17 ( ) { this . runTestCheckMethodParse ( "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" , "<STR_LIT>" , "<STR_LIT>" , "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" , "<STR_LIT>" , "<STR_LIT>" , "<STR_LIT>" ) ; } public void test18 ( ) { this . runTestCheckMethodParse ( "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" , "<STR_LIT>" , "<STR_LIT>" , "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" , "<STR_LIT>" , "<STR_LIT>" , "<STR_LIT>" ) ; } public void test19 ( ) { this . runTestCheckMethodParse ( "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" , "<STR_LIT>" , "<STR_LIT>" , "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" , "<STR_LIT:e>" , "<STR_LIT:e>" , "<STR_LIT>" ) ; } public void test20 ( ) { this . runTestCheckMethodParse ( "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" , "<STR_LIT>" , "<STR_LIT>" , "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" , "<STR_LIT:e>" , "<STR_LIT:e>" , "<STR_LIT>" ) ; } public void test21 ( ) { this . runTestCheckMethodParse ( "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" , "<STR_LIT>" , "<STR_LIT>" , "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" , "<STR_LIT:e>" , "<STR_LIT:e>" , "<STR_LIT>" ) ; } public void test22 ( ) { this . runTestCheckDietParse ( "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT:n>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" , "<STR_LIT>" , "<STR_LIT>" , "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" , "<STR_LIT>" , "<STR_LIT>" , "<STR_LIT>" ) ; } public void test23 ( ) { this . runTestCheckMethodParse ( "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" , "<STR_LIT>" , "<STR_LIT>" , "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" , "<STR_LIT>" , "<STR_LIT>" , "<STR_LIT>" ) ; } public void test24 ( ) { this . runTestCheckMethodParse ( "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" , "<STR_LIT>" , "<STR_LIT>" , "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" , "<STR_LIT>" , "<STR_LIT>" , "<STR_LIT>" ) ; } public void test25 ( ) { this . runTestCheckMethodParse ( "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" , "<STR_LIT>" , "<STR_LIT>" , "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" , "<STR_LIT>" , "<STR_LIT>" , "<STR_LIT>" ) ; } } </s>
|
<s> package org . eclipse . jdt . core . tests . compiler . parser ; import java . util . Map ; import junit . framework . Test ; import org . eclipse . jdt . internal . compiler . impl . CompilerOptions ; public class GenericsCompletionParserTest extends AbstractCompletionTest { public GenericsCompletionParserTest ( String testName ) { super ( testName ) ; } public static Test suite ( ) { return buildAllCompliancesTestSuite ( GenericsCompletionParserTest . class ) ; } protected Map getCompilerOptions ( ) { Map options = super . getCompilerOptions ( ) ; options . put ( CompilerOptions . OPTION_Compliance , CompilerOptions . VERSION_1_5 ) ; options . put ( CompilerOptions . OPTION_Source , CompilerOptions . VERSION_1_5 ) ; options . put ( CompilerOptions . OPTION_TargetPlatform , CompilerOptions . VERSION_1_5 ) ; return options ; } public void test0001 ( ) { String str = "<STR_LIT>" + "<STR_LIT:}>" ; String completeBehind = "<STR_LIT>" ; int cursorLocation = str . indexOf ( "<STR_LIT>" ) + completeBehind . length ( ) - <NUM_LIT:1> ; String expectedCompletionNodeToString = "<STR_LIT>" ; String expectedParentNodeToString = "<STR_LIT>" ; String completionIdentifier = "<STR_LIT>" ; String expectedReplacedSource = "<STR_LIT>" ; String expectedUnitDisplayString = "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" ; checkDietParse ( str . toCharArray ( ) , cursorLocation , expectedCompletionNodeToString , expectedParentNodeToString , expectedUnitDisplayString , completionIdentifier , expectedReplacedSource , "<STR_LIT>" ) ; } public void test0002 ( ) { String str = "<STR_LIT>" + "<STR_LIT:}>" ; String completeBehind = "<STR_LIT>" ; int cursorLocation = str . indexOf ( "<STR_LIT>" ) + completeBehind . length ( ) - <NUM_LIT:1> ; String expectedCompletionNodeToString = "<STR_LIT>" ; String expectedParentNodeToString = "<STR_LIT>" ; String completionIdentifier = "<STR_LIT>" ; String expectedReplacedSource = "<STR_LIT>" ; String expectedUnitDisplayString = "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" ; checkDietParse ( str . toCharArray ( ) , cursorLocation , expectedCompletionNodeToString , expectedParentNodeToString , expectedUnitDisplayString , completionIdentifier , expectedReplacedSource , "<STR_LIT>" ) ; } public void test0003 ( ) { String str = "<STR_LIT>" + "<STR_LIT:}>" ; String completeBehind = "<STR_LIT>" ; int cursorLocation = str . indexOf ( "<STR_LIT>" ) + completeBehind . length ( ) - <NUM_LIT:1> ; String expectedCompletionNodeToString = "<STR_LIT>" ; String expectedParentNodeToString = "<STR_LIT>" ; String completionIdentifier = "<STR_LIT:Z>" ; String expectedReplacedSource = "<STR_LIT>" ; String expectedUnitDisplayString = "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" ; checkDietParse ( str . toCharArray ( ) , cursorLocation , expectedCompletionNodeToString , expectedParentNodeToString , expectedUnitDisplayString , completionIdentifier , expectedReplacedSource , "<STR_LIT>" ) ; } public void test0004 ( ) { String str = "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT:}>" ; String completeBehind = "<STR_LIT>" ; int cursorLocation = str . indexOf ( "<STR_LIT>" ) + completeBehind . length ( ) - <NUM_LIT:1> ; String expectedCompletionNodeToString = "<STR_LIT>" ; String expectedParentNodeToString = "<STR_LIT>" ; String completionIdentifier = "<STR_LIT>" ; String expectedReplacedSource = "<STR_LIT>" ; String expectedUnitDisplayString = "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" ; checkDietParse ( str . toCharArray ( ) , cursorLocation , expectedCompletionNodeToString , expectedParentNodeToString , expectedUnitDisplayString , completionIdentifier , expectedReplacedSource , "<STR_LIT>" ) ; } public void test0005 ( ) { String str = "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT:}>" ; String completeBehind = "<STR_LIT>" ; int cursorLocation = str . indexOf ( "<STR_LIT>" ) + completeBehind . length ( ) - <NUM_LIT:1> ; String expectedCompletionNodeToString = "<STR_LIT>" ; String expectedParentNodeToString = "<STR_LIT>" ; String completionIdentifier = "<STR_LIT>" ; String expectedReplacedSource = "<STR_LIT>" ; String expectedUnitDisplayString = "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" ; checkDietParse ( str . toCharArray ( ) , cursorLocation , expectedCompletionNodeToString , expectedParentNodeToString , expectedUnitDisplayString , completionIdentifier , expectedReplacedSource , "<STR_LIT>" ) ; } public void test0006 ( ) { String str = "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT:}>" ; String completeBehind = "<STR_LIT>" ; int cursorLocation = str . indexOf ( "<STR_LIT>" ) + completeBehind . length ( ) - <NUM_LIT:1> ; String expectedCompletionNodeToString = "<STR_LIT>" ; String expectedParentNodeToString = "<STR_LIT>" ; String completionIdentifier = "<STR_LIT>" ; String expectedReplacedSource = "<STR_LIT>" ; String expectedUnitDisplayString = "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" ; checkDietParse ( str . toCharArray ( ) , cursorLocation , expectedCompletionNodeToString , expectedParentNodeToString , expectedUnitDisplayString , completionIdentifier , expectedReplacedSource , "<STR_LIT>" ) ; } public void test0007 ( ) { String str = "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT:}>" ; String completeBehind = "<STR_LIT>" ; int cursorLocation = str . indexOf ( "<STR_LIT>" ) + completeBehind . length ( ) - <NUM_LIT:1> ; String expectedCompletionNodeToString = "<STR_LIT>" ; String expectedParentNodeToString = "<STR_LIT>" ; String completionIdentifier = "<STR_LIT>" ; String expectedReplacedSource = "<STR_LIT>" ; String expectedUnitDisplayString = "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" ; checkDietParse ( str . toCharArray ( ) , cursorLocation , expectedCompletionNodeToString , expectedParentNodeToString , expectedUnitDisplayString , completionIdentifier , expectedReplacedSource , "<STR_LIT>" ) ; } public void test0008 ( ) { String str = "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT:}>" ; String completeBehind = "<STR_LIT>" ; int cursorLocation = str . indexOf ( "<STR_LIT>" ) + completeBehind . length ( ) - <NUM_LIT:1> ; String expectedCompletionNodeToString = "<STR_LIT>" ; String expectedParentNodeToString = "<STR_LIT>" ; String completionIdentifier = "<STR_LIT>" ; String expectedReplacedSource = "<STR_LIT>" ; String expectedUnitDisplayString = "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" ; checkDietParse ( str . toCharArray ( ) , cursorLocation , expectedCompletionNodeToString , expectedParentNodeToString , expectedUnitDisplayString , completionIdentifier , expectedReplacedSource , "<STR_LIT>" ) ; } public void test0009 ( ) { String str = "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT:}>" ; String completeBehind = "<STR_LIT>" ; int cursorLocation = str . indexOf ( "<STR_LIT>" ) + completeBehind . length ( ) - <NUM_LIT:1> ; String expectedCompletionNodeToString = "<STR_LIT>" ; String expectedParentNodeToString = "<STR_LIT>" ; String completionIdentifier = "<STR_LIT>" ; String expectedReplacedSource = "<STR_LIT>" ; String expectedUnitDisplayString = "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" ; checkDietParse ( str . toCharArray ( ) , cursorLocation , expectedCompletionNodeToString , expectedParentNodeToString , expectedUnitDisplayString , completionIdentifier , expectedReplacedSource , "<STR_LIT>" ) ; } public void test0010 ( ) { String str = "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT:}>" ; String completeBehind = "<STR_LIT>" ; int cursorLocation = str . indexOf ( "<STR_LIT>" ) + completeBehind . length ( ) - <NUM_LIT:1> ; String expectedCompletionNodeToString = "<STR_LIT>" ; String expectedParentNodeToString = "<STR_LIT>" ; String completionIdentifier = "<STR_LIT>" ; String expectedReplacedSource = "<STR_LIT>" ; String expectedUnitDisplayString = "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" ; checkDietParse ( str . toCharArray ( ) , cursorLocation , expectedCompletionNodeToString , expectedParentNodeToString , expectedUnitDisplayString , completionIdentifier , expectedReplacedSource , "<STR_LIT>" ) ; } public void test0011 ( ) { String str = "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT:}>" ; String completeBehind = "<STR_LIT>" ; int cursorLocation = str . indexOf ( "<STR_LIT>" ) + completeBehind . length ( ) - <NUM_LIT:1> ; String expectedCompletionNodeToString = "<STR_LIT>" ; String expectedParentNodeToString = "<STR_LIT>" ; String completionIdentifier = "<STR_LIT>" ; String expectedReplacedSource = "<STR_LIT>" ; String expectedUnitDisplayString = "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" ; checkDietParse ( str . toCharArray ( ) , cursorLocation , expectedCompletionNodeToString , expectedParentNodeToString , expectedUnitDisplayString , completionIdentifier , expectedReplacedSource , "<STR_LIT>" ) ; } public void test0012 ( ) { String str = "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT:}>" ; String completeBehind = "<STR_LIT>" ; int cursorLocation = str . indexOf ( "<STR_LIT>" ) + completeBehind . length ( ) - <NUM_LIT:1> ; String expectedCompletionNodeToString = "<STR_LIT>" ; String expectedParentNodeToString = "<STR_LIT>" ; String completionIdentifier = "<STR_LIT>" ; String expectedReplacedSource = "<STR_LIT>" ; String expectedUnitDisplayString = "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" ; checkDietParse ( str . toCharArray ( ) , cursorLocation , expectedCompletionNodeToString , expectedParentNodeToString , expectedUnitDisplayString , completionIdentifier , expectedReplacedSource , "<STR_LIT>" ) ; } public void test0013 ( ) { String str = "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT:}>" ; String completeBehind = "<STR_LIT>" ; int cursorLocation = str . indexOf ( "<STR_LIT>" ) + completeBehind . length ( ) - <NUM_LIT:1> ; String expectedCompletionNodeToString = "<STR_LIT>" ; String expectedParentNodeToString = "<STR_LIT>" ; String completionIdentifier = "<STR_LIT>" ; String expectedReplacedSource = "<STR_LIT>" ; String expectedUnitDisplayString = "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" ; checkDietParse ( str . toCharArray ( ) , cursorLocation , expectedCompletionNodeToString , expectedParentNodeToString , expectedUnitDisplayString , completionIdentifier , expectedReplacedSource , "<STR_LIT>" ) ; } public void test0014 ( ) { String str = "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT:}>" ; String completeBehind = "<STR_LIT>" ; int cursorLocation = str . indexOf ( "<STR_LIT>" ) + completeBehind . length ( ) - <NUM_LIT:1> ; String expectedCompletionNodeToString = "<STR_LIT>" ; String expectedParentNodeToString = "<STR_LIT>" ; String completionIdentifier = "<STR_LIT>" ; String expectedReplacedSource = "<STR_LIT>" ; String expectedUnitDisplayString = "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" ; checkDietParse ( str . toCharArray ( ) , cursorLocation , expectedCompletionNodeToString , expectedParentNodeToString , expectedUnitDisplayString , completionIdentifier , expectedReplacedSource , "<STR_LIT>" ) ; } public void test0015 ( ) { String str = "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT:}>" ; String completeBehind = "<STR_LIT>" ; int cursorLocation = str . indexOf ( "<STR_LIT>" ) + completeBehind . length ( ) - <NUM_LIT:1> ; String expectedCompletionNodeToString = "<STR_LIT>" ; String expectedParentNodeToString = "<STR_LIT>" ; String completionIdentifier = "<STR_LIT>" ; String expectedReplacedSource = "<STR_LIT>" ; String expectedUnitDisplayString = "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" ; checkDietParse ( str . toCharArray ( ) , cursorLocation , expectedCompletionNodeToString , expectedParentNodeToString , expectedUnitDisplayString , completionIdentifier , expectedReplacedSource , "<STR_LIT>" ) ; } public void test0016 ( ) { String str = "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT:}>" ; String completeBehind = "<STR_LIT>" ; int cursorLocation = str . indexOf ( "<STR_LIT>" ) + completeBehind . length ( ) - <NUM_LIT:1> ; String expectedCompletionNodeToString = "<STR_LIT>" ; String expectedParentNodeToString = "<STR_LIT>" ; String completionIdentifier = "<STR_LIT>" ; String expectedReplacedSource = "<STR_LIT>" ; String expectedUnitDisplayString = "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" ; checkDietParse ( str . toCharArray ( ) , cursorLocation , expectedCompletionNodeToString , expectedParentNodeToString , expectedUnitDisplayString , completionIdentifier , expectedReplacedSource , "<STR_LIT>" ) ; } public void test0017 ( ) { String str = "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT:}>" ; String completeBehind = "<STR_LIT>" ; int cursorLocation = str . indexOf ( "<STR_LIT>" ) + completeBehind . length ( ) - <NUM_LIT:1> ; String expectedCompletionNodeToString = "<STR_LIT>" ; String expectedParentNodeToString = "<STR_LIT>" ; String completionIdentifier = "<STR_LIT>" ; String expectedReplacedSource = "<STR_LIT>" ; String expectedUnitDisplayString = "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" ; checkDietParse ( str . toCharArray ( ) , cursorLocation , expectedCompletionNodeToString , expectedParentNodeToString , expectedUnitDisplayString , completionIdentifier , expectedReplacedSource , "<STR_LIT>" ) ; } public void test0018 ( ) { String str = "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT:}>" ; String completeBehind = "<STR_LIT>" ; int cursorLocation = str . indexOf ( "<STR_LIT>" ) + completeBehind . length ( ) - <NUM_LIT:1> ; String expectedCompletionNodeToString = "<STR_LIT>" ; String expectedParentNodeToString = "<STR_LIT>" ; String completionIdentifier = "<STR_LIT>" ; String expectedReplacedSource = "<STR_LIT>" ; String expectedUnitDisplayString = "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" ; checkDietParse ( str . toCharArray ( ) , cursorLocation , expectedCompletionNodeToString , expectedParentNodeToString , expectedUnitDisplayString , completionIdentifier , expectedReplacedSource , "<STR_LIT>" ) ; } public void test0019 ( ) { String str = "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT:}>" ; String completeBehind = "<STR_LIT>" ; int cursorLocation = str . indexOf ( "<STR_LIT>" ) + completeBehind . length ( ) - <NUM_LIT:1> ; String expectedCompletionNodeToString = "<STR_LIT>" ; String expectedParentNodeToString = "<STR_LIT>" ; String completionIdentifier = "<STR_LIT>" ; String expectedReplacedSource = "<STR_LIT>" ; String expectedUnitDisplayString = "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" ; checkDietParse ( str . toCharArray ( ) , cursorLocation , expectedCompletionNodeToString , expectedParentNodeToString , expectedUnitDisplayString , completionIdentifier , expectedReplacedSource , "<STR_LIT>" ) ; } public void test0020 ( ) { String str = "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT:}>" ; String completeBehind = "<STR_LIT>" ; int cursorLocation = str . indexOf ( "<STR_LIT>" ) + completeBehind . length ( ) - <NUM_LIT:1> ; String expectedCompletionNodeToString = "<STR_LIT>" ; String expectedParentNodeToString = "<STR_LIT>" ; String completionIdentifier = "<STR_LIT>" ; String expectedReplacedSource = "<STR_LIT>" ; String expectedUnitDisplayString = "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" ; checkDietParse ( str . toCharArray ( ) , cursorLocation , expectedCompletionNodeToString , expectedParentNodeToString , expectedUnitDisplayString , completionIdentifier , expectedReplacedSource , "<STR_LIT>" ) ; } public void test0021 ( ) { String str = "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT:}>" ; String completeBehind = "<STR_LIT>" ; int cursorLocation = str . indexOf ( "<STR_LIT>" ) + completeBehind . length ( ) - <NUM_LIT:1> ; String expectedCompletionNodeToString = "<STR_LIT>" ; String expectedParentNodeToString = "<STR_LIT>" ; String completionIdentifier = "<STR_LIT>" ; String expectedReplacedSource = "<STR_LIT>" ; String expectedUnitDisplayString = "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" ; checkDietParse ( str . toCharArray ( ) , cursorLocation , expectedCompletionNodeToString , expectedParentNodeToString , expectedUnitDisplayString , completionIdentifier , expectedReplacedSource , "<STR_LIT>" ) ; } public void test0022 ( ) { String str = "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT:}>" ; String completeBehind = "<STR_LIT>" ; int cursorLocation = str . indexOf ( "<STR_LIT>" ) + completeBehind . length ( ) - <NUM_LIT:1> ; String expectedCompletionNodeToString = "<STR_LIT>" ; String expectedParentNodeToString = "<STR_LIT>" ; String completionIdentifier = "<STR_LIT>" ; String expectedReplacedSource = "<STR_LIT>" ; String expectedUnitDisplayString = "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" ; checkDietParse ( str . toCharArray ( ) , cursorLocation , expectedCompletionNodeToString , expectedParentNodeToString , expectedUnitDisplayString , completionIdentifier , expectedReplacedSource , "<STR_LIT>" ) ; } public void test0023 ( ) { String str = "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT:}>" ; String completeBehind = "<STR_LIT>" ; int cursorLocation = str . indexOf ( "<STR_LIT>" ) + completeBehind . length ( ) - <NUM_LIT:1> ; String expectedCompletionNodeToString = "<STR_LIT>" ; String expectedParentNodeToString = "<STR_LIT>" ; String completionIdentifier = "<STR_LIT>" ; String expectedReplacedSource = "<STR_LIT>" ; String expectedUnitDisplayString = "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" ; checkDietParse ( str . toCharArray ( ) , cursorLocation , expectedCompletionNodeToString , expectedParentNodeToString , expectedUnitDisplayString , completionIdentifier , expectedReplacedSource , "<STR_LIT>" ) ; } public void test0024 ( ) { String str = "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT:}>" ; String completeBehind = "<STR_LIT>" ; int cursorLocation = str . indexOf ( "<STR_LIT>" ) + completeBehind . length ( ) - <NUM_LIT:1> ; String expectedCompletionNodeToString = "<STR_LIT>" ; String expectedParentNodeToString = "<STR_LIT>" ; String completionIdentifier = "<STR_LIT>" ; String expectedReplacedSource = "<STR_LIT>" ; String expectedUnitDisplayString = "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" ; checkDietParse ( str . toCharArray ( ) , cursorLocation , expectedCompletionNodeToString , expectedParentNodeToString , expectedUnitDisplayString , completionIdentifier , expectedReplacedSource , "<STR_LIT>" ) ; } public void test0025 ( ) { String str = "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT:}>" ; String completeBehind = "<STR_LIT>" ; int cursorLocation = str . indexOf ( "<STR_LIT>" ) + completeBehind . length ( ) - <NUM_LIT:1> ; String expectedCompletionNodeToString = "<STR_LIT>" ; String expectedParentNodeToString = "<STR_LIT>" ; String completionIdentifier = "<STR_LIT>" ; String expectedReplacedSource = "<STR_LIT>" ; String expectedUnitDisplayString = "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" ; checkDietParse ( str . toCharArray ( ) , cursorLocation , expectedCompletionNodeToString , expectedParentNodeToString , expectedUnitDisplayString , completionIdentifier , expectedReplacedSource , "<STR_LIT>" ) ; } public void test0026 ( ) { String str = "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT:}>" ; String completeBehind = "<STR_LIT>" ; int cursorLocation = str . indexOf ( "<STR_LIT>" ) + completeBehind . length ( ) - <NUM_LIT:1> ; String expectedCompletionNodeToString = "<STR_LIT>" ; String expectedParentNodeToString = "<STR_LIT>" ; String completionIdentifier = "<STR_LIT>" ; String expectedReplacedSource = "<STR_LIT>" ; String expectedUnitDisplayString = "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" ; checkDietParse ( str . toCharArray ( ) , cursorLocation , expectedCompletionNodeToString , expectedParentNodeToString , expectedUnitDisplayString , completionIdentifier , expectedReplacedSource , "<STR_LIT>" ) ; } public void test0027 ( ) { String str = "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT:}>" ; String completeBehind = "<STR_LIT>" ; int cursorLocation = str . indexOf ( "<STR_LIT>" ) + completeBehind . length ( ) - <NUM_LIT:1> ; String expectedCompletionNodeToString = "<STR_LIT>" ; String expectedParentNodeToString = "<STR_LIT>" ; String completionIdentifier = "<STR_LIT>" ; String expectedReplacedSource = "<STR_LIT>" ; String expectedUnitDisplayString = "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" ; checkDietParse ( str . toCharArray ( ) , cursorLocation , expectedCompletionNodeToString , expectedParentNodeToString , expectedUnitDisplayString , completionIdentifier , expectedReplacedSource , "<STR_LIT>" ) ; } public void test0028 ( ) { String str = "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT:}>" ; String completeBehind = "<STR_LIT>" ; int cursorLocation = str . indexOf ( "<STR_LIT>" ) + completeBehind . length ( ) - <NUM_LIT:1> ; String expectedCompletionNodeToString = "<STR_LIT>" ; String expectedParentNodeToString = "<STR_LIT>" ; String completionIdentifier = "<STR_LIT>" ; String expectedReplacedSource = "<STR_LIT>" ; String expectedUnitDisplayString = "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" ; checkDietParse ( str . toCharArray ( ) , cursorLocation , expectedCompletionNodeToString , expectedParentNodeToString , expectedUnitDisplayString , completionIdentifier , expectedReplacedSource , "<STR_LIT>" ) ; } public void test0029 ( ) { String str = "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT:}>" ; String completeBehind = "<STR_LIT>" ; int cursorLocation = str . indexOf ( "<STR_LIT>" ) + completeBehind . length ( ) - <NUM_LIT:1> ; String expectedCompletionNodeToString = "<STR_LIT>" ; String expectedParentNodeToString = "<STR_LIT>" ; String completionIdentifier = "<STR_LIT>" ; String expectedReplacedSource = "<STR_LIT>" ; String expectedUnitDisplayString = "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" ; checkDietParse ( str . toCharArray ( ) , cursorLocation , expectedCompletionNodeToString , expectedParentNodeToString , expectedUnitDisplayString , completionIdentifier , expectedReplacedSource , "<STR_LIT>" ) ; } public void test0030_Diet ( ) { String str = "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT:}>" ; String completeBehind = "<STR_LIT>" ; int cursorLocation = str . indexOf ( "<STR_LIT>" ) + completeBehind . length ( ) - <NUM_LIT:1> ; String expectedCompletionNodeToString = "<STR_LIT>" ; String expectedParentNodeToString = "<STR_LIT>" ; String completionIdentifier = "<STR_LIT>" ; String expectedReplacedSource = "<STR_LIT>" ; String expectedUnitDisplayString = "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" ; checkDietParse ( str . toCharArray ( ) , cursorLocation , expectedCompletionNodeToString , expectedParentNodeToString , expectedUnitDisplayString , completionIdentifier , expectedReplacedSource , "<STR_LIT>" ) ; } public void test0030_Method ( ) { String str = "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT:}>" ; String completeBehind = "<STR_LIT>" ; int cursorLocation = str . indexOf ( "<STR_LIT>" ) + completeBehind . length ( ) - <NUM_LIT:1> ; String expectedCompletionNodeToString = "<STR_LIT>" ; String expectedParentNodeToString = "<STR_LIT>" ; String completionIdentifier = "<STR_LIT>" ; String expectedReplacedSource = "<STR_LIT>" ; String expectedUnitDisplayString = "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" ; checkMethodParse ( str . toCharArray ( ) , cursorLocation , expectedCompletionNodeToString , expectedParentNodeToString , expectedUnitDisplayString , completionIdentifier , expectedReplacedSource , "<STR_LIT>" ) ; } public void test0031_Diet ( ) { String str = "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT:}>" ; String completeBehind = "<STR_LIT>" ; int cursorLocation = str . indexOf ( "<STR_LIT>" ) + completeBehind . length ( ) - <NUM_LIT:1> ; String expectedCompletionNodeToString = "<STR_LIT>" ; String expectedParentNodeToString = "<STR_LIT>" ; String completionIdentifier = "<STR_LIT>" ; String expectedReplacedSource = "<STR_LIT>" ; String expectedUnitDisplayString = "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" ; checkDietParse ( str . toCharArray ( ) , cursorLocation , expectedCompletionNodeToString , expectedParentNodeToString , expectedUnitDisplayString , completionIdentifier , expectedReplacedSource , "<STR_LIT>" ) ; } public void test0031_Method ( ) { String str = "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT:}>" ; String completeBehind = "<STR_LIT>" ; int cursorLocation = str . indexOf ( "<STR_LIT>" ) + completeBehind . length ( ) - <NUM_LIT:1> ; String expectedCompletionNodeToString = "<STR_LIT>" ; String expectedParentNodeToString = "<STR_LIT>" ; String completionIdentifier = "<STR_LIT>" ; String expectedReplacedSource = "<STR_LIT>" ; String expectedUnitDisplayString = "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" ; checkMethodParse ( str . toCharArray ( ) , cursorLocation , expectedCompletionNodeToString , expectedParentNodeToString , expectedUnitDisplayString , completionIdentifier , expectedReplacedSource , "<STR_LIT>" ) ; } public void test0032_Diet ( ) { String str = "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT:}>" ; String completeBehind = "<STR_LIT>" ; int cursorLocation = str . indexOf ( "<STR_LIT>" ) + completeBehind . length ( ) - <NUM_LIT:1> ; String expectedCompletionNodeToString = "<STR_LIT>" ; String expectedParentNodeToString = "<STR_LIT>" ; String completionIdentifier = "<STR_LIT>" ; String expectedReplacedSource = "<STR_LIT>" ; String expectedUnitDisplayString = "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" ; checkDietParse ( str . toCharArray ( ) , cursorLocation , expectedCompletionNodeToString , expectedParentNodeToString , expectedUnitDisplayString , completionIdentifier , expectedReplacedSource , "<STR_LIT>" ) ; } public void test0032_Method ( ) { String str = "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT:}>" ; String completeBehind = "<STR_LIT>" ; int cursorLocation = str . indexOf ( "<STR_LIT>" ) + completeBehind . length ( ) - <NUM_LIT:1> ; String expectedCompletionNodeToString = "<STR_LIT>" ; String expectedParentNodeToString = "<STR_LIT>" ; String completionIdentifier = "<STR_LIT>" ; String expectedReplacedSource = "<STR_LIT>" ; String expectedUnitDisplayString = "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" ; checkMethodParse ( str . toCharArray ( ) , cursorLocation , expectedCompletionNodeToString , expectedParentNodeToString , expectedUnitDisplayString , completionIdentifier , expectedReplacedSource , "<STR_LIT>" ) ; } public void test0033_Diet ( ) { String str = "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT:}>" ; String completeBehind = "<STR_LIT>" ; int cursorLocation = str . indexOf ( "<STR_LIT>" ) + completeBehind . length ( ) - <NUM_LIT:1> ; String expectedCompletionNodeToString = "<STR_LIT>" ; String expectedParentNodeToString = "<STR_LIT>" ; String completionIdentifier = "<STR_LIT>" ; String expectedReplacedSource = "<STR_LIT>" ; String expectedUnitDisplayString = "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" ; checkDietParse ( str . toCharArray ( ) , cursorLocation , expectedCompletionNodeToString , expectedParentNodeToString , expectedUnitDisplayString , completionIdentifier , expectedReplacedSource , "<STR_LIT>" ) ; } public void test0033_Method ( ) { String str = "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT:}>" ; String completeBehind = "<STR_LIT>" ; int cursorLocation = str . indexOf ( "<STR_LIT>" ) + completeBehind . length ( ) - <NUM_LIT:1> ; String expectedCompletionNodeToString = "<STR_LIT>" ; String expectedParentNodeToString = "<STR_LIT>" ; String completionIdentifier = "<STR_LIT>" ; String expectedReplacedSource = "<STR_LIT>" ; String expectedUnitDisplayString = "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" ; checkMethodParse ( str . toCharArray ( ) , cursorLocation , expectedCompletionNodeToString , expectedParentNodeToString , expectedUnitDisplayString , completionIdentifier , expectedReplacedSource , "<STR_LIT>" ) ; } public void test0034_Diet ( ) { String str = "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT:}>" ; String completeBehind = "<STR_LIT>" ; int cursorLocation = str . indexOf ( "<STR_LIT>" ) + completeBehind . length ( ) - <NUM_LIT:1> ; String expectedCompletionNodeToString = "<STR_LIT>" ; String expectedParentNodeToString = "<STR_LIT>" ; String completionIdentifier = "<STR_LIT>" ; String expectedReplacedSource = "<STR_LIT>" ; String expectedUnitDisplayString = "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" ; checkDietParse ( str . toCharArray ( ) , cursorLocation , expectedCompletionNodeToString , expectedParentNodeToString , expectedUnitDisplayString , completionIdentifier , expectedReplacedSource , "<STR_LIT>" ) ; } public void test0034_Method ( ) { String str = "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT:}>" ; String completeBehind = "<STR_LIT>" ; int cursorLocation = str . indexOf ( "<STR_LIT>" ) + completeBehind . length ( ) - <NUM_LIT:1> ; String expectedCompletionNodeToString = "<STR_LIT>" ; String expectedParentNodeToString = "<STR_LIT>" ; String completionIdentifier = "<STR_LIT>" ; String expectedReplacedSource = "<STR_LIT>" ; String expectedUnitDisplayString = "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" ; checkMethodParse ( str . toCharArray ( ) , cursorLocation , expectedCompletionNodeToString , expectedParentNodeToString , expectedUnitDisplayString , completionIdentifier , expectedReplacedSource , "<STR_LIT>" ) ; } public void test0035_Diet ( ) { String str = "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT:}>" ; String completeBehind = "<STR_LIT>" ; int cursorLocation = str . indexOf ( "<STR_LIT>" ) + completeBehind . length ( ) - <NUM_LIT:1> ; String expectedCompletionNodeToString = "<STR_LIT>" ; String expectedParentNodeToString = "<STR_LIT>" ; String completionIdentifier = "<STR_LIT>" ; String expectedReplacedSource = "<STR_LIT>" ; String expectedUnitDisplayString = "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" ; checkDietParse ( str . toCharArray ( ) , cursorLocation , expectedCompletionNodeToString , expectedParentNodeToString , expectedUnitDisplayString , completionIdentifier , expectedReplacedSource , "<STR_LIT>" ) ; } public void test0035_Method ( ) { String str = "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT:}>" ; String completeBehind = "<STR_LIT>" ; int cursorLocation = str . indexOf ( "<STR_LIT>" ) + completeBehind . length ( ) - <NUM_LIT:1> ; String expectedCompletionNodeToString = "<STR_LIT>" ; String expectedParentNodeToString = "<STR_LIT>" ; String completionIdentifier = "<STR_LIT>" ; String expectedReplacedSource = "<STR_LIT>" ; String expectedUnitDisplayString = "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" ; checkMethodParse ( str . toCharArray ( ) , cursorLocation , expectedCompletionNodeToString , expectedParentNodeToString , expectedUnitDisplayString , completionIdentifier , expectedReplacedSource , "<STR_LIT>" ) ; } public void test0036_Diet ( ) { String str = "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT:}>" ; String completeBehind = "<STR_LIT>" ; int cursorLocation = str . indexOf ( "<STR_LIT>" ) + completeBehind . length ( ) - <NUM_LIT:1> ; String expectedCompletionNodeToString = "<STR_LIT>" ; String expectedParentNodeToString = "<STR_LIT>" ; String completionIdentifier = "<STR_LIT>" ; String expectedReplacedSource = "<STR_LIT>" ; String expectedUnitDisplayString = "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" ; checkDietParse ( str . toCharArray ( ) , cursorLocation , expectedCompletionNodeToString , expectedParentNodeToString , expectedUnitDisplayString , completionIdentifier , expectedReplacedSource , "<STR_LIT>" ) ; } public void test0036_Method ( ) { String str = "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT:}>" ; String completeBehind = "<STR_LIT>" ; int cursorLocation = str . indexOf ( "<STR_LIT>" ) + completeBehind . length ( ) - <NUM_LIT:1> ; String expectedCompletionNodeToString = "<STR_LIT>" ; String expectedParentNodeToString = "<STR_LIT>" ; String completionIdentifier = "<STR_LIT>" ; String expectedReplacedSource = "<STR_LIT>" ; String expectedUnitDisplayString = "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" ; checkMethodParse ( str . toCharArray ( ) , cursorLocation , expectedCompletionNodeToString , expectedParentNodeToString , expectedUnitDisplayString , completionIdentifier , expectedReplacedSource , "<STR_LIT>" ) ; } public void test0037_Diet ( ) { String str = "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT:}>" ; String completeBehind = "<STR_LIT>" ; int cursorLocation = str . indexOf ( "<STR_LIT>" ) + completeBehind . length ( ) - <NUM_LIT:1> ; String expectedCompletionNodeToString = "<STR_LIT>" ; String expectedParentNodeToString = "<STR_LIT>" ; String completionIdentifier = "<STR_LIT>" ; String expectedReplacedSource = "<STR_LIT>" ; String expectedUnitDisplayString = "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" ; checkDietParse ( str . toCharArray ( ) , cursorLocation , expectedCompletionNodeToString , expectedParentNodeToString , expectedUnitDisplayString , completionIdentifier , expectedReplacedSource , "<STR_LIT>" ) ; } public void test0037_Method ( ) { String str = "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT:}>" ; String completeBehind = "<STR_LIT>" ; int cursorLocation = str . indexOf ( "<STR_LIT>" ) + completeBehind . length ( ) - <NUM_LIT:1> ; String expectedCompletionNodeToString = "<STR_LIT>" ; String expectedParentNodeToString = "<STR_LIT>" ; String completionIdentifier = "<STR_LIT>" ; String expectedReplacedSource = "<STR_LIT>" ; String expectedUnitDisplayString = "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" ; checkMethodParse ( str . toCharArray ( ) , cursorLocation , expectedCompletionNodeToString , expectedParentNodeToString , expectedUnitDisplayString , completionIdentifier , expectedReplacedSource , "<STR_LIT>" ) ; } public void test0038_Diet ( ) { String str = "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT:}>" ; String completeBehind = "<STR_LIT>" ; int cursorLocation = str . indexOf ( "<STR_LIT>" ) + completeBehind . length ( ) - <NUM_LIT:1> ; String expectedCompletionNodeToString = "<STR_LIT>" ; String expectedParentNodeToString = "<STR_LIT>" ; String completionIdentifier = "<STR_LIT>" ; String expectedReplacedSource = "<STR_LIT>" ; String expectedUnitDisplayString = "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" ; checkDietParse ( str . toCharArray ( ) , cursorLocation , expectedCompletionNodeToString , expectedParentNodeToString , expectedUnitDisplayString , completionIdentifier , expectedReplacedSource , "<STR_LIT>" ) ; } public void test0038_Method ( ) { String str = "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT:}>" ; String completeBehind = "<STR_LIT>" ; int cursorLocation = str . indexOf ( "<STR_LIT>" ) + completeBehind . length ( ) - <NUM_LIT:1> ; String expectedCompletionNodeToString = "<STR_LIT>" ; String expectedParentNodeToString = "<STR_LIT>" ; String completionIdentifier = "<STR_LIT>" ; String expectedReplacedSource = "<STR_LIT>" ; String expectedUnitDisplayString = "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" ; checkMethodParse ( str . toCharArray ( ) , cursorLocation , expectedCompletionNodeToString , expectedParentNodeToString , expectedUnitDisplayString , completionIdentifier , expectedReplacedSource , "<STR_LIT>" ) ; } public void test0039_Diet ( ) { String str = "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT:}>" ; String completeBehind = "<STR_LIT>" ; int cursorLocation = str . indexOf ( "<STR_LIT>" ) + completeBehind . length ( ) - <NUM_LIT:1> ; String expectedCompletionNodeToString = "<STR_LIT>" ; String expectedParentNodeToString = "<STR_LIT>" ; String completionIdentifier = "<STR_LIT>" ; String expectedReplacedSource = "<STR_LIT>" ; String expectedUnitDisplayString = "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" ; checkDietParse ( str . toCharArray ( ) , cursorLocation , expectedCompletionNodeToString , expectedParentNodeToString , expectedUnitDisplayString , completionIdentifier , expectedReplacedSource , "<STR_LIT>" ) ; } public void test0039_Method ( ) { String str = "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT:}>" ; String completeBehind = "<STR_LIT>" ; int cursorLocation = str . indexOf ( "<STR_LIT>" ) + completeBehind . length ( ) - <NUM_LIT:1> ; String expectedCompletionNodeToString = "<STR_LIT>" ; String expectedParentNodeToString = "<STR_LIT>" ; String completionIdentifier = "<STR_LIT>" ; String expectedReplacedSource = "<STR_LIT>" ; String expectedUnitDisplayString = "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" ; checkMethodParse ( str . toCharArray ( ) , cursorLocation , expectedCompletionNodeToString , expectedParentNodeToString , expectedUnitDisplayString , completionIdentifier , expectedReplacedSource , "<STR_LIT>" ) ; } public void test0040_Diet ( ) { String str = "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT:}>" ; String completeBehind = "<STR_LIT>" ; int cursorLocation = str . indexOf ( "<STR_LIT>" ) + completeBehind . length ( ) - <NUM_LIT:1> ; String expectedCompletionNodeToString = "<STR_LIT>" ; String expectedParentNodeToString = "<STR_LIT>" ; String completionIdentifier = "<STR_LIT>" ; String expectedReplacedSource = "<STR_LIT>" ; String expectedUnitDisplayString = "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" ; checkDietParse ( str . toCharArray ( ) , cursorLocation , expectedCompletionNodeToString , expectedParentNodeToString , expectedUnitDisplayString , completionIdentifier , expectedReplacedSource , "<STR_LIT>" ) ; } public void test0040_Method ( ) { String str = "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT:}>" ; String completeBehind = "<STR_LIT>" ; int cursorLocation = str . indexOf ( "<STR_LIT>" ) + completeBehind . length ( ) - <NUM_LIT:1> ; String expectedCompletionNodeToString = "<STR_LIT>" ; String expectedParentNodeToString = "<STR_LIT>" ; String completionIdentifier = "<STR_LIT>" ; String expectedReplacedSource = "<STR_LIT>" ; String expectedUnitDisplayString = "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" ; checkMethodParse ( str . toCharArray ( ) , cursorLocation , expectedCompletionNodeToString , expectedParentNodeToString , expectedUnitDisplayString , completionIdentifier , expectedReplacedSource , "<STR_LIT>" ) ; } public void test0041_Diet ( ) { String str = "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT:}>" ; String completeBehind = "<STR_LIT>" ; int cursorLocation = str . indexOf ( "<STR_LIT>" ) + completeBehind . length ( ) - <NUM_LIT:1> ; String expectedCompletionNodeToString = "<STR_LIT>" ; String expectedParentNodeToString = "<STR_LIT>" ; String completionIdentifier = "<STR_LIT>" ; String expectedReplacedSource = "<STR_LIT>" ; String expectedUnitDisplayString = "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" ; checkDietParse ( str . toCharArray ( ) , cursorLocation , expectedCompletionNodeToString , expectedParentNodeToString , expectedUnitDisplayString , completionIdentifier , expectedReplacedSource , "<STR_LIT>" ) ; } public void test0041_Method ( ) { String str = "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT:}>" ; String completeBehind = "<STR_LIT>" ; int cursorLocation = str . indexOf ( "<STR_LIT>" ) + completeBehind . length ( ) - <NUM_LIT:1> ; String expectedCompletionNodeToString = "<STR_LIT>" ; String expectedParentNodeToString = "<STR_LIT>" ; String completionIdentifier = "<STR_LIT>" ; String expectedReplacedSource = "<STR_LIT>" ; String expectedUnitDisplayString = "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" ; checkMethodParse ( str . toCharArray ( ) , cursorLocation , expectedCompletionNodeToString , expectedParentNodeToString , expectedUnitDisplayString , completionIdentifier , expectedReplacedSource , "<STR_LIT>" ) ; } public void test0042_Diet ( ) { String str = "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT:}>" ; String completeBehind = "<STR_LIT>" ; int cursorLocation = str . indexOf ( "<STR_LIT>" ) + completeBehind . length ( ) - <NUM_LIT:1> ; String expectedCompletionNodeToString = "<STR_LIT>" ; String expectedParentNodeToString = "<STR_LIT>" ; String completionIdentifier = "<STR_LIT>" ; String expectedReplacedSource = "<STR_LIT>" ; String expectedUnitDisplayString = "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" ; checkDietParse ( str . toCharArray ( ) , cursorLocation , expectedCompletionNodeToString , expectedParentNodeToString , expectedUnitDisplayString , completionIdentifier , expectedReplacedSource , "<STR_LIT>" ) ; } public void test0042_Method ( ) { String str = "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT:}>" ; String completeBehind = "<STR_LIT>" ; int cursorLocation = str . indexOf ( "<STR_LIT>" ) + completeBehind . length ( ) - <NUM_LIT:1> ; String expectedCompletionNodeToString = "<STR_LIT>" ; String expectedParentNodeToString = "<STR_LIT>" ; String completionIdentifier = "<STR_LIT>" ; String expectedReplacedSource = "<STR_LIT>" ; String expectedUnitDisplayString = "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" ; checkMethodParse ( str . toCharArray ( ) , cursorLocation , expectedCompletionNodeToString , expectedParentNodeToString , expectedUnitDisplayString , completionIdentifier , expectedReplacedSource , "<STR_LIT>" ) ; } public void test0043_Diet ( ) { String str = "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT:}>" ; String completeBehind = "<STR_LIT>" ; int cursorLocation = str . indexOf ( "<STR_LIT>" ) + completeBehind . length ( ) - <NUM_LIT:1> ; String expectedCompletionNodeToString = "<STR_LIT>" ; String expectedParentNodeToString = "<STR_LIT>" ; String completionIdentifier = "<STR_LIT>" ; String expectedReplacedSource = "<STR_LIT>" ; String expectedUnitDisplayString = "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" ; checkDietParse ( str . toCharArray ( ) , cursorLocation , expectedCompletionNodeToString , expectedParentNodeToString , expectedUnitDisplayString , completionIdentifier , expectedReplacedSource , "<STR_LIT>" ) ; } public void test0043_Method ( ) { String str = "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT:}>" ; String completeBehind = "<STR_LIT>" ; int cursorLocation = str . indexOf ( "<STR_LIT>" ) + completeBehind . length ( ) - <NUM_LIT:1> ; String expectedCompletionNodeToString = "<STR_LIT>" ; String expectedParentNodeToString = "<STR_LIT>" ; String completionIdentifier = "<STR_LIT>" ; String expectedReplacedSource = "<STR_LIT>" ; String expectedUnitDisplayString = "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" ; checkMethodParse ( str . toCharArray ( ) , cursorLocation , expectedCompletionNodeToString , expectedParentNodeToString , expectedUnitDisplayString , completionIdentifier , expectedReplacedSource , "<STR_LIT>" ) ; } public void test0044_Diet ( ) { String str = "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT:}>" ; String completeBehind = "<STR_LIT>" ; int cursorLocation = str . indexOf ( "<STR_LIT>" ) + completeBehind . length ( ) - <NUM_LIT:1> ; String expectedCompletionNodeToString = "<STR_LIT>" ; String expectedParentNodeToString = "<STR_LIT>" ; String completionIdentifier = "<STR_LIT>" ; String expectedReplacedSource = "<STR_LIT>" ; String expectedUnitDisplayString = "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" ; checkDietParse ( str . toCharArray ( ) , cursorLocation , expectedCompletionNodeToString , expectedParentNodeToString , expectedUnitDisplayString , completionIdentifier , expectedReplacedSource , "<STR_LIT>" ) ; } public void test0044_Method ( ) { String str = "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT:}>" ; String completeBehind = "<STR_LIT>" ; int cursorLocation = str . indexOf ( "<STR_LIT>" ) + completeBehind . length ( ) - <NUM_LIT:1> ; String expectedCompletionNodeToString = "<STR_LIT>" ; String expectedParentNodeToString = "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT:U+0020U+0020}>" ; String completionIdentifier = "<STR_LIT>" ; String expectedReplacedSource = "<STR_LIT>" ; String expectedUnitDisplayString = "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" ; checkMethodParse ( str . toCharArray ( ) , cursorLocation , expectedCompletionNodeToString , expectedParentNodeToString , expectedUnitDisplayString , completionIdentifier , expectedReplacedSource , "<STR_LIT>" ) ; } public void test0045_Diet ( ) { String str = "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT:}>" ; String completeBehind = "<STR_LIT>" ; int cursorLocation = str . indexOf ( "<STR_LIT>" ) + completeBehind . length ( ) - <NUM_LIT:1> ; String expectedCompletionNodeToString = "<STR_LIT>" ; String expectedParentNodeToString = "<STR_LIT>" ; String completionIdentifier = "<STR_LIT>" ; String expectedReplacedSource = "<STR_LIT>" ; String expectedUnitDisplayString = "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" ; checkDietParse ( str . toCharArray ( ) , cursorLocation , expectedCompletionNodeToString , expectedParentNodeToString , expectedUnitDisplayString , completionIdentifier , expectedReplacedSource , "<STR_LIT>" ) ; } public void test0045_Method ( ) { String str = "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT:}>" ; String completeBehind = "<STR_LIT>" ; int cursorLocation = str . indexOf ( "<STR_LIT>" ) + completeBehind . length ( ) - <NUM_LIT:1> ; String expectedCompletionNodeToString = "<STR_LIT>" ; String expectedParentNodeToString = "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT:U+0020U+0020}>" ; String completionIdentifier = "<STR_LIT>" ; String expectedReplacedSource = "<STR_LIT>" ; String expectedUnitDisplayString = "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" ; checkMethodParse ( str . toCharArray ( ) , cursorLocation , expectedCompletionNodeToString , expectedParentNodeToString , expectedUnitDisplayString , completionIdentifier , expectedReplacedSource , "<STR_LIT>" ) ; } public void test0046_Diet ( ) { String str = "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT:}>" ; String completeBehind = "<STR_LIT>" ; int cursorLocation = str . indexOf ( "<STR_LIT>" ) + completeBehind . length ( ) - <NUM_LIT:1> ; String expectedCompletionNodeToString = "<STR_LIT>" ; String expectedParentNodeToString = "<STR_LIT>" ; String completionIdentifier = "<STR_LIT>" ; String expectedReplacedSource = "<STR_LIT>" ; String expectedUnitDisplayString = "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" ; checkDietParse ( str . toCharArray ( ) , cursorLocation , expectedCompletionNodeToString , expectedParentNodeToString , expectedUnitDisplayString , completionIdentifier , expectedReplacedSource , "<STR_LIT>" ) ; } public void test0046_Method ( ) { String str = "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT:}>" ; String completeBehind = "<STR_LIT>" ; int cursorLocation = str . indexOf ( "<STR_LIT>" ) + completeBehind . length ( ) - <NUM_LIT:1> ; String expectedCompletionNodeToString = "<STR_LIT>" ; String expectedParentNodeToString = "<STR_LIT>" ; String completionIdentifier = "<STR_LIT>" ; String expectedReplacedSource = "<STR_LIT>" ; String expectedUnitDisplayString = "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" ; checkMethodParse ( str . toCharArray ( ) , cursorLocation , expectedCompletionNodeToString , expectedParentNodeToString , expectedUnitDisplayString , completionIdentifier , expectedReplacedSource , "<STR_LIT>" ) ; } public void test0047_Diet ( ) { String str = "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT:}>" ; String completeBehind = "<STR_LIT>" ; int cursorLocation = str . indexOf ( "<STR_LIT>" ) + completeBehind . length ( ) - <NUM_LIT:1> ; String expectedCompletionNodeToString = "<STR_LIT>" ; String expectedParentNodeToString = "<STR_LIT>" ; String completionIdentifier = "<STR_LIT>" ; String expectedReplacedSource = "<STR_LIT>" ; String expectedUnitDisplayString = "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" ; checkDietParse ( str . toCharArray ( ) , cursorLocation , expectedCompletionNodeToString , expectedParentNodeToString , expectedUnitDisplayString , completionIdentifier , expectedReplacedSource , "<STR_LIT>" ) ; } public void test0047_Method ( ) { String str = "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT:}>" ; String completeBehind = "<STR_LIT>" ; int cursorLocation = str . indexOf ( "<STR_LIT>" ) + completeBehind . length ( ) - <NUM_LIT:1> ; String expectedCompletionNodeToString = "<STR_LIT>" ; String expectedParentNodeToString = "<STR_LIT>" ; String completionIdentifier = "<STR_LIT>" ; String expectedReplacedSource = "<STR_LIT>" ; String expectedUnitDisplayString = "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" ; checkMethodParse ( str . toCharArray ( ) , cursorLocation , expectedCompletionNodeToString , expectedParentNodeToString , expectedUnitDisplayString , completionIdentifier , expectedReplacedSource , "<STR_LIT>" ) ; } public void test0048_Diet ( ) { String str = "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT:}>" ; String completeBehind = "<STR_LIT>" ; int cursorLocation = str . indexOf ( "<STR_LIT>" ) + completeBehind . length ( ) - <NUM_LIT:1> ; String expectedCompletionNodeToString = "<STR_LIT>" ; String expectedParentNodeToString = "<STR_LIT>" ; String completionIdentifier = "<STR_LIT>" ; String expectedReplacedSource = "<STR_LIT>" ; String expectedUnitDisplayString = "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" ; checkDietParse ( str . toCharArray ( ) , cursorLocation , expectedCompletionNodeToString , expectedParentNodeToString , expectedUnitDisplayString , completionIdentifier , expectedReplacedSource , "<STR_LIT>" ) ; } public void test0048_Method ( ) { String str = "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT:}>" ; String completeBehind = "<STR_LIT>" ; int cursorLocation = str . indexOf ( "<STR_LIT>" ) + completeBehind . length ( ) - <NUM_LIT:1> ; String expectedCompletionNodeToString = "<STR_LIT>" ; String expectedParentNodeToString = "<STR_LIT>" ; String completionIdentifier = "<STR_LIT>" ; String expectedReplacedSource = "<STR_LIT>" ; String expectedUnitDisplayString = "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" ; checkMethodParse ( str . toCharArray ( ) , cursorLocation , expectedCompletionNodeToString , expectedParentNodeToString , expectedUnitDisplayString , completionIdentifier , expectedReplacedSource , "<STR_LIT>" ) ; } public void test0049_Diet ( ) { String str = "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT:}>" ; String completeBehind = "<STR_LIT>" ; int cursorLocation = str . indexOf ( "<STR_LIT>" ) + completeBehind . length ( ) - <NUM_LIT:1> ; String expectedCompletionNodeToString = "<STR_LIT>" ; String expectedParentNodeToString = "<STR_LIT>" ; String completionIdentifier = "<STR_LIT>" ; String expectedReplacedSource = "<STR_LIT>" ; String expectedUnitDisplayString = "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" ; checkDietParse ( str . toCharArray ( ) , cursorLocation , expectedCompletionNodeToString , expectedParentNodeToString , expectedUnitDisplayString , completionIdentifier , expectedReplacedSource , "<STR_LIT>" ) ; } public void test0049_Method ( ) { String str = "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT:}>" ; String completeBehind = "<STR_LIT>" ; int cursorLocation = str . indexOf ( "<STR_LIT>" ) + completeBehind . length ( ) - <NUM_LIT:1> ; String expectedCompletionNodeToString = "<STR_LIT>" ; String expectedParentNodeToString = "<STR_LIT>" ; String completionIdentifier = "<STR_LIT>" ; String expectedReplacedSource = "<STR_LIT>" ; String expectedUnitDisplayString = "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" ; checkMethodParse ( str . toCharArray ( ) , cursorLocation , expectedCompletionNodeToString , expectedParentNodeToString , expectedUnitDisplayString , completionIdentifier , expectedReplacedSource , "<STR_LIT>" ) ; } public void test0050_Diet ( ) { String str = "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT:}>" ; String completeBehind = "<STR_LIT>" ; int cursorLocation = str . indexOf ( "<STR_LIT>" ) + completeBehind . length ( ) - <NUM_LIT:1> ; String expectedCompletionNodeToString = "<STR_LIT>" ; String expectedParentNodeToString = "<STR_LIT>" ; String completionIdentifier = "<STR_LIT>" ; String expectedReplacedSource = "<STR_LIT>" ; String expectedUnitDisplayString = "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" ; checkDietParse ( str . toCharArray ( ) , cursorLocation , expectedCompletionNodeToString , expectedParentNodeToString , expectedUnitDisplayString , completionIdentifier , expectedReplacedSource , "<STR_LIT>" ) ; } public void test0050_Method ( ) { String str = "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT:}>" ; String completeBehind = "<STR_LIT>" ; int cursorLocation = str . indexOf ( "<STR_LIT>" ) + completeBehind . length ( ) - <NUM_LIT:1> ; String expectedCompletionNodeToString = "<STR_LIT>" ; String expectedParentNodeToString = "<STR_LIT>" ; String completionIdentifier = "<STR_LIT>" ; String expectedReplacedSource = "<STR_LIT>" ; String expectedUnitDisplayString = "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" ; checkMethodParse ( str . toCharArray ( ) , cursorLocation , expectedCompletionNodeToString , expectedParentNodeToString , expectedUnitDisplayString , completionIdentifier , expectedReplacedSource , "<STR_LIT>" ) ; } public void test0051_Diet ( ) { String str = "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT:}>" ; String completeBehind = "<STR_LIT>" ; int cursorLocation = str . indexOf ( "<STR_LIT>" ) + completeBehind . length ( ) - <NUM_LIT:1> ; String expectedCompletionNodeToString = "<STR_LIT>" ; String expectedParentNodeToString = "<STR_LIT>" ; String completionIdentifier = "<STR_LIT>" ; String expectedReplacedSource = "<STR_LIT>" ; String expectedUnitDisplayString = "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" ; checkDietParse ( str . toCharArray ( ) , cursorLocation , expectedCompletionNodeToString , expectedParentNodeToString , expectedUnitDisplayString , completionIdentifier , expectedReplacedSource , "<STR_LIT>" ) ; } public void test0051_Method ( ) { String str = "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT:}>" ; String completeBehind = "<STR_LIT>" ; int cursorLocation = str . indexOf ( "<STR_LIT>" ) + completeBehind . length ( ) - <NUM_LIT:1> ; String expectedCompletionNodeToString = "<STR_LIT>" ; String expectedParentNodeToString = "<STR_LIT>" ; String completionIdentifier = "<STR_LIT>" ; String expectedReplacedSource = "<STR_LIT>" ; String expectedUnitDisplayString = "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" ; checkMethodParse ( str . toCharArray ( ) , cursorLocation , expectedCompletionNodeToString , expectedParentNodeToString , expectedUnitDisplayString , completionIdentifier , expectedReplacedSource , "<STR_LIT>" ) ; } public void test0052_Diet ( ) { String str = "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT:}>" ; String completeBehind = "<STR_LIT>" ; int cursorLocation = str . indexOf ( "<STR_LIT>" ) + completeBehind . length ( ) - <NUM_LIT:1> ; String expectedCompletionNodeToString = "<STR_LIT>" ; String expectedParentNodeToString = "<STR_LIT>" ; String completionIdentifier = "<STR_LIT>" ; String expectedReplacedSource = "<STR_LIT>" ; String expectedUnitDisplayString = "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" ; checkDietParse ( str . toCharArray ( ) , cursorLocation , expectedCompletionNodeToString , expectedParentNodeToString , expectedUnitDisplayString , completionIdentifier , expectedReplacedSource , "<STR_LIT>" ) ; } public void test0052_Method ( ) { String str = "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT:}>" ; String completeBehind = "<STR_LIT>" ; int cursorLocation = str . indexOf ( "<STR_LIT>" ) + completeBehind . length ( ) - <NUM_LIT:1> ; String expectedCompletionNodeToString = "<STR_LIT>" ; String expectedParentNodeToString = "<STR_LIT>" ; String completionIdentifier = "<STR_LIT>" ; String expectedReplacedSource = "<STR_LIT>" ; String expectedUnitDisplayString = "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" ; checkMethodParse ( str . toCharArray ( ) , cursorLocation , expectedCompletionNodeToString , expectedParentNodeToString , expectedUnitDisplayString , completionIdentifier , expectedReplacedSource , "<STR_LIT>" ) ; } public void test0053_Diet ( ) { String str = "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT:}>" ; String completeBehind = "<STR_LIT>" ; int cursorLocation = str . indexOf ( "<STR_LIT>" ) + completeBehind . length ( ) - <NUM_LIT:1> ; String expectedCompletionNodeToString = "<STR_LIT>" ; String expectedParentNodeToString = "<STR_LIT>" ; String completionIdentifier = "<STR_LIT>" ; String expectedReplacedSource = "<STR_LIT>" ; String expectedUnitDisplayString = "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" ; checkDietParse ( str . toCharArray ( ) , cursorLocation , expectedCompletionNodeToString , expectedParentNodeToString , expectedUnitDisplayString , completionIdentifier , expectedReplacedSource , "<STR_LIT>" ) ; } public void test0053_Method ( ) { String str = "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT:}>" ; String completeBehind = "<STR_LIT>" ; int cursorLocation = str . indexOf ( "<STR_LIT>" ) + completeBehind . length ( ) - <NUM_LIT:1> ; String expectedCompletionNodeToString = "<STR_LIT>" ; String expectedParentNodeToString = "<STR_LIT>" ; String completionIdentifier = "<STR_LIT>" ; String expectedReplacedSource = "<STR_LIT>" ; String expectedUnitDisplayString = "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" ; checkMethodParse ( str . toCharArray ( ) , cursorLocation , expectedCompletionNodeToString , expectedParentNodeToString , expectedUnitDisplayString , completionIdentifier , expectedReplacedSource , "<STR_LIT>" ) ; } public void test0054_Diet ( ) { String str = "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT:}>" ; String completeBehind = "<STR_LIT>" ; int cursorLocation = str . indexOf ( "<STR_LIT>" ) + completeBehind . length ( ) - <NUM_LIT:1> ; String expectedCompletionNodeToString = "<STR_LIT>" ; String expectedParentNodeToString = "<STR_LIT>" ; String completionIdentifier = "<STR_LIT>" ; String expectedReplacedSource = "<STR_LIT>" ; String expectedUnitDisplayString = "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" ; checkDietParse ( str . toCharArray ( ) , cursorLocation , expectedCompletionNodeToString , expectedParentNodeToString , expectedUnitDisplayString , completionIdentifier , expectedReplacedSource , "<STR_LIT>" ) ; } public void test0054_Method ( ) { String str = "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT:}>" ; String completeBehind = "<STR_LIT>" ; int cursorLocation = str . indexOf ( "<STR_LIT>" ) + completeBehind . length ( ) - <NUM_LIT:1> ; String expectedCompletionNodeToString = "<STR_LIT>" ; String expectedParentNodeToString = "<STR_LIT>" ; String completionIdentifier = "<STR_LIT>" ; String expectedReplacedSource = "<STR_LIT>" ; String expectedUnitDisplayString = "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" ; checkMethodParse ( str . toCharArray ( ) , cursorLocation , expectedCompletionNodeToString , expectedParentNodeToString , expectedUnitDisplayString , completionIdentifier , expectedReplacedSource , "<STR_LIT>" ) ; } public void test0055_Diet ( ) { String str = "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT:}>" ; String completeBehind = "<STR_LIT>" ; int cursorLocation = str . indexOf ( "<STR_LIT>" ) + completeBehind . length ( ) - <NUM_LIT:1> ; String expectedCompletionNodeToString = "<STR_LIT>" ; String expectedParentNodeToString = "<STR_LIT>" ; String completionIdentifier = "<STR_LIT>" ; String expectedReplacedSource = "<STR_LIT>" ; String expectedUnitDisplayString = "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" ; checkDietParse ( str . toCharArray ( ) , cursorLocation , expectedCompletionNodeToString , expectedParentNodeToString , expectedUnitDisplayString , completionIdentifier , expectedReplacedSource , "<STR_LIT>" ) ; } public void test0055_Method ( ) { String str = "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT:}>" ; String completeBehind = "<STR_LIT>" ; int cursorLocation = str . indexOf ( "<STR_LIT>" ) + completeBehind . length ( ) - <NUM_LIT:1> ; String expectedCompletionNodeToString = "<STR_LIT>" ; String expectedParentNodeToString = "<STR_LIT>" ; String completionIdentifier = "<STR_LIT>" ; String expectedReplacedSource = "<STR_LIT>" ; String expectedUnitDisplayString = "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" ; checkMethodParse ( str . toCharArray ( ) , cursorLocation , expectedCompletionNodeToString , expectedParentNodeToString , expectedUnitDisplayString , completionIdentifier , expectedReplacedSource , "<STR_LIT>" ) ; } public void test0056_Diet ( ) { String str = "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT:}>" ; String completeBehind = "<STR_LIT>" ; int cursorLocation = str . indexOf ( "<STR_LIT>" ) + completeBehind . length ( ) - <NUM_LIT:1> ; String expectedCompletionNodeToString = "<STR_LIT>" ; String expectedParentNodeToString = "<STR_LIT>" ; String completionIdentifier = "<STR_LIT>" ; String expectedReplacedSource = "<STR_LIT>" ; String expectedUnitDisplayString = "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" ; checkDietParse ( str . toCharArray ( ) , cursorLocation , expectedCompletionNodeToString , expectedParentNodeToString , expectedUnitDisplayString , completionIdentifier , expectedReplacedSource , "<STR_LIT>" ) ; } public void test0056_Method ( ) { String str = "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT:}>" ; String completeBehind = "<STR_LIT>" ; int cursorLocation = str . indexOf ( "<STR_LIT>" ) + completeBehind . length ( ) - <NUM_LIT:1> ; String expectedCompletionNodeToString = "<STR_LIT>" ; String expectedParentNodeToString = "<STR_LIT>" ; String completionIdentifier = "<STR_LIT:Z>" ; String expectedReplacedSource = "<STR_LIT:Z>" ; String expectedUnitDisplayString = "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" ; checkMethodParse ( str . toCharArray ( ) , cursorLocation , expectedCompletionNodeToString , expectedParentNodeToString , expectedUnitDisplayString , completionIdentifier , expectedReplacedSource , "<STR_LIT>" ) ; } public void test0057_Diet ( ) { String str = "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT:}>" ; String completeBehind = "<STR_LIT>" ; int cursorLocation = str . indexOf ( "<STR_LIT>" ) + completeBehind . length ( ) - <NUM_LIT:1> ; String expectedCompletionNodeToString = "<STR_LIT>" ; String expectedParentNodeToString = "<STR_LIT>" ; String completionIdentifier = "<STR_LIT>" ; String expectedReplacedSource = "<STR_LIT>" ; String expectedUnitDisplayString = "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" ; checkDietParse ( str . toCharArray ( ) , cursorLocation , expectedCompletionNodeToString , expectedParentNodeToString , expectedUnitDisplayString , completionIdentifier , expectedReplacedSource , "<STR_LIT>" ) ; } public void test0057_Method ( ) { String str = "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT:}>" ; String completeBehind = "<STR_LIT>" ; int cursorLocation = str . indexOf ( "<STR_LIT>" ) + completeBehind . length ( ) - <NUM_LIT:1> ; String expectedCompletionNodeToString = "<STR_LIT>" ; String expectedParentNodeToString = "<STR_LIT>" ; String completionIdentifier = "<STR_LIT:Z>" ; String expectedReplacedSource = "<STR_LIT:Z>" ; String expectedUnitDisplayString = "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" ; checkMethodParse ( str . toCharArray ( ) , cursorLocation , expectedCompletionNodeToString , expectedParentNodeToString , expectedUnitDisplayString , completionIdentifier , expectedReplacedSource , "<STR_LIT>" ) ; } public void test0058_Diet ( ) { String str = "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT:}>" ; String completeBehind = "<STR_LIT>" ; int cursorLocation = str . indexOf ( "<STR_LIT>" ) + completeBehind . length ( ) - <NUM_LIT:1> ; String expectedCompletionNodeToString = "<STR_LIT>" ; String expectedParentNodeToString = "<STR_LIT>" ; String completionIdentifier = "<STR_LIT>" ; String expectedReplacedSource = "<STR_LIT>" ; String expectedUnitDisplayString = "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" ; checkDietParse ( str . toCharArray ( ) , cursorLocation , expectedCompletionNodeToString , expectedParentNodeToString , expectedUnitDisplayString , completionIdentifier , expectedReplacedSource , "<STR_LIT>" ) ; } public void test0058_Method ( ) { String str = "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT:}>" ; String completeBehind = "<STR_LIT>" ; int cursorLocation = str . indexOf ( "<STR_LIT>" ) + completeBehind . length ( ) - <NUM_LIT:1> ; String expectedCompletionNodeToString = "<STR_LIT>" ; String expectedParentNodeToString = "<STR_LIT>" ; String completionIdentifier = "<STR_LIT:Z>" ; String expectedReplacedSource = "<STR_LIT:Z>" ; String expectedUnitDisplayString = "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" ; checkMethodParse ( str . toCharArray ( ) , cursorLocation , expectedCompletionNodeToString , expectedParentNodeToString , expectedUnitDisplayString , completionIdentifier , expectedReplacedSource , "<STR_LIT>" ) ; } public void test0059 ( ) { String str = "<STR_LIT>" + "<STR_LIT:}>" ; String completeBehind = "<STR_LIT>" ; int cursorLocation = str . indexOf ( "<STR_LIT>" ) + completeBehind . length ( ) - <NUM_LIT:1> ; String expectedCompletionNodeToString = "<STR_LIT>" ; String expectedParentNodeToString = "<STR_LIT>" ; String completionIdentifier = "<STR_LIT:Y>" ; String expectedReplacedSource = "<STR_LIT:Y>" ; String expectedUnitDisplayString = "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" ; checkDietParse ( str . toCharArray ( ) , cursorLocation , expectedCompletionNodeToString , expectedParentNodeToString , expectedUnitDisplayString , completionIdentifier , expectedReplacedSource , "<STR_LIT>" ) ; } public void test0060 ( ) { String str = "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT:}>" ; String completeBehind = "<STR_LIT>" ; int cursorLocation = str . indexOf ( "<STR_LIT>" ) + completeBehind . length ( ) - <NUM_LIT:1> ; String expectedCompletionNodeToString = "<STR_LIT>" ; String expectedParentNodeToString = "<STR_LIT>" ; String completionIdentifier = "<STR_LIT:Z>" ; String expectedReplacedSource = "<STR_LIT:Z>" ; String expectedUnitDisplayString = "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" ; checkDietParse ( str . toCharArray ( ) , cursorLocation , expectedCompletionNodeToString , expectedParentNodeToString , expectedUnitDisplayString , completionIdentifier , expectedReplacedSource , "<STR_LIT>" ) ; } public void test0061 ( ) { String str = "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT:}>" ; String completeBehind = "<STR_LIT>" ; int cursorLocation = str . indexOf ( "<STR_LIT>" ) + completeBehind . length ( ) - <NUM_LIT:1> ; String expectedCompletionNodeToString = "<STR_LIT>" ; String expectedParentNodeToString = "<STR_LIT>" ; String completionIdentifier = "<STR_LIT:Z>" ; String expectedReplacedSource = "<STR_LIT:Z>" ; String expectedUnitDisplayString = "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" ; checkDietParse ( str . toCharArray ( ) , cursorLocation , expectedCompletionNodeToString , expectedParentNodeToString , expectedUnitDisplayString , completionIdentifier , expectedReplacedSource , "<STR_LIT>" ) ; } public void test0062 ( ) { String str = "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT:}>" ; String completeBehind = "<STR_LIT>" ; int cursorLocation = str . indexOf ( "<STR_LIT>" ) + completeBehind . length ( ) - <NUM_LIT:1> ; String expectedCompletionNodeToString = "<STR_LIT>" ; String expectedParentNodeToString = "<STR_LIT>" ; String completionIdentifier = "<STR_LIT:Z>" ; String expectedReplacedSource = "<STR_LIT:Z>" ; String expectedUnitDisplayString = "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" ; checkDietParse ( str . toCharArray ( ) , cursorLocation , expectedCompletionNodeToString , expectedParentNodeToString , expectedUnitDisplayString , completionIdentifier , expectedReplacedSource , "<STR_LIT>" ) ; } public void test0063 ( ) { String str = "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT:}>" ; String completeBehind = "<STR_LIT>" ; int cursorLocation = str . indexOf ( "<STR_LIT>" ) + completeBehind . length ( ) - <NUM_LIT:1> ; String expectedCompletionNodeToString = "<STR_LIT>" ; String expectedParentNodeToString = "<STR_LIT>" ; String completionIdentifier = "<STR_LIT:Z>" ; String expectedReplacedSource = "<STR_LIT:Z>" ; String expectedUnitDisplayString = "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" ; checkDietParse ( str . toCharArray ( ) , cursorLocation , expectedCompletionNodeToString , expectedParentNodeToString , expectedUnitDisplayString , completionIdentifier , expectedReplacedSource , "<STR_LIT>" ) ; } public void test0064 ( ) { String str = "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT:}>" ; String completeBehind = "<STR_LIT>" ; int cursorLocation = str . indexOf ( "<STR_LIT>" ) + completeBehind . length ( ) - <NUM_LIT:1> ; String expectedCompletionNodeToString = "<STR_LIT>" ; String expectedParentNodeToString = "<STR_LIT>" ; String completionIdentifier = "<STR_LIT:Z>" ; String expectedReplacedSource = "<STR_LIT:Z>" ; String expectedUnitDisplayString = "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" ; checkDietParse ( str . toCharArray ( ) , cursorLocation , expectedCompletionNodeToString , expectedParentNodeToString , expectedUnitDisplayString , completionIdentifier , expectedReplacedSource , "<STR_LIT>" ) ; } public void test0065 ( ) { String str = "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT:}>" ; String completeBehind = "<STR_LIT>" ; int cursorLocation = str . indexOf ( "<STR_LIT>" ) + completeBehind . length ( ) - <NUM_LIT:1> ; String expectedCompletionNodeToString = "<STR_LIT>" ; String expectedParentNodeToString = "<STR_LIT>" ; String completionIdentifier = "<STR_LIT:Z>" ; String expectedReplacedSource = "<STR_LIT:Z>" ; String expectedUnitDisplayString = "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" ; checkDietParse ( str . toCharArray ( ) , cursorLocation , expectedCompletionNodeToString , expectedParentNodeToString , expectedUnitDisplayString , completionIdentifier , expectedReplacedSource , "<STR_LIT>" ) ; } public void test0066 ( ) { String str = "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT:}>" ; String completeBehind = "<STR_LIT>" ; int cursorLocation = str . indexOf ( "<STR_LIT>" ) + completeBehind . length ( ) - <NUM_LIT:1> ; String expectedCompletionNodeToString = "<STR_LIT>" ; String expectedParentNodeToString = "<STR_LIT>" ; String completionIdentifier = "<STR_LIT:Z>" ; String expectedReplacedSource = "<STR_LIT:Z>" ; String expectedUnitDisplayString = "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" ; checkDietParse ( str . toCharArray ( ) , cursorLocation , expectedCompletionNodeToString , expectedParentNodeToString , expectedUnitDisplayString , completionIdentifier , expectedReplacedSource , "<STR_LIT>" ) ; } public void test0067 ( ) { String str = "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT:}>" ; String completeBehind = "<STR_LIT>" ; int cursorLocation = str . indexOf ( "<STR_LIT>" ) + completeBehind . length ( ) - <NUM_LIT:1> ; String expectedCompletionNodeToString = "<STR_LIT>" ; String expectedParentNodeToString = "<STR_LIT>" ; String completionIdentifier = "<STR_LIT:Z>" ; String expectedReplacedSource = "<STR_LIT:Z>" ; String expectedUnitDisplayString = "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" ; checkDietParse ( str . toCharArray ( ) , cursorLocation , expectedCompletionNodeToString , expectedParentNodeToString , expectedUnitDisplayString , completionIdentifier , expectedReplacedSource , "<STR_LIT>" ) ; } public void test0068 ( ) { String str = "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT:}>" ; String completeBehind = "<STR_LIT>" ; int cursorLocation = str . indexOf ( "<STR_LIT>" ) + completeBehind . length ( ) - <NUM_LIT:1> ; String expectedCompletionNodeToString = "<STR_LIT>" ; String expectedParentNodeToString = "<STR_LIT>" ; String completionIdentifier = "<STR_LIT>" ; String expectedReplacedSource = "<STR_LIT>" ; String expectedUnitDisplayString = "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" ; checkDietParse ( str . toCharArray ( ) , cursorLocation , expectedCompletionNodeToString , expectedParentNodeToString , expectedUnitDisplayString , completionIdentifier , expectedReplacedSource , "<STR_LIT>" ) ; } public void test0069 ( ) { String str = "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT:}>" ; String completeBehind = "<STR_LIT>" ; int cursorLocation = str . indexOf ( "<STR_LIT>" ) + completeBehind . length ( ) - <NUM_LIT:1> ; String expectedCompletionNodeToString = "<STR_LIT>" ; String expectedParentNodeToString = "<STR_LIT>" ; String completionIdentifier = "<STR_LIT>" ; String expectedReplacedSource = "<STR_LIT>" ; String expectedUnitDisplayString = "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" ; checkDietParse ( str . toCharArray ( ) , cursorLocation , expectedCompletionNodeToString , expectedParentNodeToString , expectedUnitDisplayString , completionIdentifier , expectedReplacedSource , "<STR_LIT>" ) ; } public void test0070 ( ) { String str = "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT:}>" ; String completeBehind = "<STR_LIT>" ; int cursorLocation = str . indexOf ( "<STR_LIT>" ) + completeBehind . length ( ) - <NUM_LIT:1> ; String expectedCompletionNodeToString = "<STR_LIT>" ; String expectedParentNodeToString = "<STR_LIT>" ; String completionIdentifier = "<STR_LIT>" ; String expectedReplacedSource = "<STR_LIT>" ; String expectedUnitDisplayString = "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" ; checkDietParse ( str . toCharArray ( ) , cursorLocation , expectedCompletionNodeToString , expectedParentNodeToString , expectedUnitDisplayString , completionIdentifier , expectedReplacedSource , "<STR_LIT>" ) ; } public void test0071 ( ) { String str = "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT:}>" ; String completeBehind = "<STR_LIT>" ; int cursorLocation = str . indexOf ( "<STR_LIT>" ) + completeBehind . length ( ) - <NUM_LIT:1> ; String expectedCompletionNodeToString = "<STR_LIT>" ; String expectedParentNodeToString = "<STR_LIT>" ; String completionIdentifier = "<STR_LIT>" ; String expectedReplacedSource = "<STR_LIT>" ; String expectedUnitDisplayString = "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" ; checkDietParse ( str . toCharArray ( ) , cursorLocation , expectedCompletionNodeToString , expectedParentNodeToString , expectedUnitDisplayString , completionIdentifier , expectedReplacedSource , "<STR_LIT>" ) ; } public void test0072 ( ) { String str = "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT:}>" ; String completeBehind = "<STR_LIT>" ; int cursorLocation = str . indexOf ( "<STR_LIT>" ) + completeBehind . length ( ) - <NUM_LIT:1> ; String expectedCompletionNodeToString = "<STR_LIT>" ; String expectedParentNodeToString = "<STR_LIT>" ; String completionIdentifier = "<STR_LIT>" ; String expectedReplacedSource = "<STR_LIT>" ; String expectedUnitDisplayString = "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" ; checkDietParse ( str . toCharArray ( ) , cursorLocation , expectedCompletionNodeToString , expectedParentNodeToString , expectedUnitDisplayString , completionIdentifier , expectedReplacedSource , "<STR_LIT>" ) ; } public void test0073 ( ) { String str = "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT:}>" ; String completeBehind = "<STR_LIT>" ; int cursorLocation = str . indexOf ( "<STR_LIT>" ) + completeBehind . length ( ) - <NUM_LIT:1> ; String expectedCompletionNodeToString = "<STR_LIT>" ; String expectedParentNodeToString = "<STR_LIT>" ; String completionIdentifier = "<STR_LIT>" ; String expectedReplacedSource = "<STR_LIT>" ; String expectedUnitDisplayString = "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" ; checkDietParse ( str . toCharArray ( ) , cursorLocation , expectedCompletionNodeToString , expectedParentNodeToString , expectedUnitDisplayString , completionIdentifier , expectedReplacedSource , "<STR_LIT>" ) ; } public void test0074 ( ) { String str = "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT:}>" ; String completeBehind = "<STR_LIT>" ; int cursorLocation = str . indexOf ( "<STR_LIT>" ) + completeBehind . length ( ) - <NUM_LIT:1> ; String expectedCompletionNodeToString = "<STR_LIT>" ; String expectedParentNodeToString = "<STR_LIT>" ; String completionIdentifier = "<STR_LIT>" ; String expectedReplacedSource = "<STR_LIT>" ; String expectedUnitDisplayString = "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" ; checkDietParse ( str . toCharArray ( ) , cursorLocation , expectedCompletionNodeToString , expectedParentNodeToString , expectedUnitDisplayString , completionIdentifier , expectedReplacedSource , "<STR_LIT>" ) ; } public void test0075 ( ) { String str = "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT:}>" ; String completeBehind = "<STR_LIT>" ; int cursorLocation = str . indexOf ( "<STR_LIT>" ) + completeBehind . length ( ) - <NUM_LIT:1> ; String expectedCompletionNodeToString = "<STR_LIT>" ; String expectedParentNodeToString = "<STR_LIT>" ; String completionIdentifier = "<STR_LIT>" ; String expectedReplacedSource = "<STR_LIT>" ; String expectedUnitDisplayString = "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" ; checkDietParse ( str . toCharArray ( ) , cursorLocation , expectedCompletionNodeToString , expectedParentNodeToString , expectedUnitDisplayString , completionIdentifier , expectedReplacedSource , "<STR_LIT>" ) ; } public void test0076 ( ) { String str = "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT:}>" ; String completeBehind = "<STR_LIT>" ; int cursorLocation = str . indexOf ( "<STR_LIT>" ) + completeBehind . length ( ) - <NUM_LIT:1> ; String expectedCompletionNodeToString = "<STR_LIT>" ; String expectedParentNodeToString = "<STR_LIT>" ; String completionIdentifier = "<STR_LIT:Z>" ; String expectedReplacedSource = "<STR_LIT:Z>" ; String expectedUnitDisplayString = "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" ; checkDietParse ( str . toCharArray ( ) , cursorLocation , expectedCompletionNodeToString , expectedParentNodeToString , expectedUnitDisplayString , completionIdentifier , expectedReplacedSource , "<STR_LIT>" ) ; } public void test0077 ( ) { String str = "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT:}>" ; String completeBehind = "<STR_LIT>" ; int cursorLocation = str . indexOf ( "<STR_LIT>" ) + completeBehind . length ( ) - <NUM_LIT:1> ; String expectedCompletionNodeToString = "<STR_LIT>" ; String expectedParentNodeToString = "<STR_LIT>" ; String completionIdentifier = "<STR_LIT:Z>" ; String expectedReplacedSource = "<STR_LIT:Z>" ; String expectedUnitDisplayString = "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" ; checkDietParse ( str . toCharArray ( ) , cursorLocation , expectedCompletionNodeToString , expectedParentNodeToString , expectedUnitDisplayString , completionIdentifier , expectedReplacedSource , "<STR_LIT>" ) ; } public void test0078 ( ) { String str = "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT:}>" ; String completeBehind = "<STR_LIT>" ; int cursorLocation = str . indexOf ( "<STR_LIT>" ) + completeBehind . length ( ) - <NUM_LIT:1> ; String expectedCompletionNodeToString = "<STR_LIT>" ; String expectedParentNodeToString = "<STR_LIT>" ; String completionIdentifier = "<STR_LIT:Z>" ; String expectedReplacedSource = "<STR_LIT:Z>" ; String expectedUnitDisplayString = "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" ; checkDietParse ( str . toCharArray ( ) , cursorLocation , expectedCompletionNodeToString , expectedParentNodeToString , expectedUnitDisplayString , completionIdentifier , expectedReplacedSource , "<STR_LIT>" ) ; } public void test0079 ( ) { String str = "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT:}>" ; String completeBehind = "<STR_LIT>" ; int cursorLocation = str . indexOf ( "<STR_LIT>" ) + completeBehind . length ( ) - <NUM_LIT:1> ; String expectedCompletionNodeToString = "<STR_LIT>" ; String expectedParentNodeToString = "<STR_LIT>" ; String completionIdentifier = "<STR_LIT:Z>" ; String expectedReplacedSource = "<STR_LIT:Z>" ; String expectedUnitDisplayString = "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" ; checkDietParse ( str . toCharArray ( ) , cursorLocation , expectedCompletionNodeToString , expectedParentNodeToString , expectedUnitDisplayString , completionIdentifier , expectedReplacedSource , "<STR_LIT>" ) ; } public void test0080 ( ) { String str = "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT:}>" ; String completeBehind = "<STR_LIT>" ; int cursorLocation = str . indexOf ( "<STR_LIT>" ) + completeBehind . length ( ) - <NUM_LIT:1> ; String expectedCompletionNodeToString = "<STR_LIT>" ; String expectedParentNodeToString = "<STR_LIT>" ; String completionIdentifier = "<STR_LIT:Z>" ; String expectedReplacedSource = "<STR_LIT:Z>" ; String expectedUnitDisplayString = "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" ; checkDietParse ( str . toCharArray ( ) , cursorLocation , expectedCompletionNodeToString , expectedParentNodeToString , expectedUnitDisplayString , completionIdentifier , expectedReplacedSource , "<STR_LIT>" ) ; } public void test0081 ( ) { String str = "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT:}>" ; String completeBehind = "<STR_LIT>" ; int cursorLocation = str . indexOf ( "<STR_LIT>" ) + completeBehind . length ( ) - <NUM_LIT:1> ; String expectedCompletionNodeToString = "<STR_LIT>" ; String expectedParentNodeToString = "<STR_LIT>" ; String completionIdentifier = "<STR_LIT:Z>" ; String expectedReplacedSource = "<STR_LIT:Z>" ; String expectedUnitDisplayString = "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" ; checkDietParse ( str . toCharArray ( ) , cursorLocation , expectedCompletionNodeToString , expectedParentNodeToString , expectedUnitDisplayString , completionIdentifier , expectedReplacedSource , "<STR_LIT>" ) ; } public void test0082 ( ) { String str = "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT:}>" ; String completeBehind = "<STR_LIT>" ; int cursorLocation = str . indexOf ( "<STR_LIT>" ) + completeBehind . length ( ) - <NUM_LIT:1> ; String expectedCompletionNodeToString = "<STR_LIT>" ; String expectedParentNodeToString = "<STR_LIT>" ; String completionIdentifier = "<STR_LIT:Z>" ; String expectedReplacedSource = "<STR_LIT:Z>" ; String expectedUnitDisplayString = "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" ; checkDietParse ( str . toCharArray ( ) , cursorLocation , expectedCompletionNodeToString , expectedParentNodeToString , expectedUnitDisplayString , completionIdentifier , expectedReplacedSource , "<STR_LIT>" ) ; } public void test0083 ( ) { String str = "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT:}>" ; String completeBehind = "<STR_LIT>" ; int cursorLocation = str . indexOf ( "<STR_LIT>" ) + completeBehind . length ( ) - <NUM_LIT:1> ; String expectedCompletionNodeToString = "<STR_LIT>" ; String expectedParentNodeToString = "<STR_LIT>" ; String completionIdentifier = "<STR_LIT:Z>" ; String expectedReplacedSource = "<STR_LIT:Z>" ; String expectedUnitDisplayString = "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" ; checkDietParse ( str . toCharArray ( ) , cursorLocation , expectedCompletionNodeToString , expectedParentNodeToString , expectedUnitDisplayString , completionIdentifier , expectedReplacedSource , "<STR_LIT>" ) ; } public void test0084 ( ) { String str = "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT:}>" ; String completeBehind = "<STR_LIT>" ; int cursorLocation = str . indexOf ( "<STR_LIT>" ) + completeBehind . length ( ) - <NUM_LIT:1> ; String expectedCompletionNodeToString = "<STR_LIT>" ; String expectedParentNodeToString = "<STR_LIT>" ; String completionIdentifier = "<STR_LIT:Z>" ; String expectedReplacedSource = "<STR_LIT:Z>" ; String expectedUnitDisplayString = "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" ; checkDietParse ( str . toCharArray ( ) , cursorLocation , expectedCompletionNodeToString , expectedParentNodeToString , expectedUnitDisplayString , completionIdentifier , expectedReplacedSource , "<STR_LIT>" ) ; } public void test0085 ( ) { String str = "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT:}>" ; String completeBehind = "<STR_LIT>" ; int cursorLocation = str . indexOf ( "<STR_LIT>" ) + completeBehind . length ( ) - <NUM_LIT:1> ; String expectedCompletionNodeToString = "<STR_LIT>" ; String expectedParentNodeToString = "<STR_LIT>" ; String completionIdentifier = "<STR_LIT:Z>" ; String expectedReplacedSource = "<STR_LIT:Z>" ; String expectedUnitDisplayString = "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" ; checkDietParse ( str . toCharArray ( ) , cursorLocation , expectedCompletionNodeToString , expectedParentNodeToString , expectedUnitDisplayString , completionIdentifier , expectedReplacedSource , "<STR_LIT>" ) ; } public void test0086 ( ) { String str = "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT:}>" ; String completeBehind = "<STR_LIT>" ; int cursorLocation = str . indexOf ( "<STR_LIT>" ) + completeBehind . length ( ) - <NUM_LIT:1> ; String expectedCompletionNodeToString = "<STR_LIT>" ; String expectedParentNodeToString = "<STR_LIT>" ; String completionIdentifier = "<STR_LIT:Z>" ; String expectedReplacedSource = "<STR_LIT:Z>" ; String expectedUnitDisplayString = "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" ; checkDietParse ( str . toCharArray ( ) , cursorLocation , expectedCompletionNodeToString , expectedParentNodeToString , expectedUnitDisplayString , completionIdentifier , expectedReplacedSource , "<STR_LIT>" ) ; } public void test0087 ( ) { String str = "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT:}>" ; String completeBehind = "<STR_LIT>" ; int cursorLocation = str . indexOf ( "<STR_LIT>" ) + completeBehind . length ( ) - <NUM_LIT:1> ; String expectedCompletionNodeToString = "<STR_LIT>" ; String expectedParentNodeToString = "<STR_LIT>" ; String completionIdentifier = "<STR_LIT:Z>" ; String expectedReplacedSource = "<STR_LIT:Z>" ; String expectedUnitDisplayString = "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" ; checkDietParse ( str . toCharArray ( ) , cursorLocation , expectedCompletionNodeToString , expectedParentNodeToString , expectedUnitDisplayString , completionIdentifier , expectedReplacedSource , "<STR_LIT>" ) ; } public void test0088 ( ) { String str = "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT:}>" ; String completeBehind = "<STR_LIT>" ; int cursorLocation = str . indexOf ( "<STR_LIT>" ) + completeBehind . length ( ) - <NUM_LIT:1> ; String expectedCompletionNodeToString = "<STR_LIT>" ; String expectedParentNodeToString = "<STR_LIT>" ; String completionIdentifier = "<STR_LIT:Z>" ; String expectedReplacedSource = "<STR_LIT:Z>" ; String expectedUnitDisplayString = "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" ; checkDietParse ( str . toCharArray ( ) , cursorLocation , expectedCompletionNodeToString , expectedParentNodeToString , expectedUnitDisplayString , completionIdentifier , expectedReplacedSource , "<STR_LIT>" ) ; } public void test0089 ( ) { String str = "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT:}>" ; String completeBehind = "<STR_LIT>" ; int cursorLocation = str . indexOf ( "<STR_LIT>" ) + completeBehind . length ( ) - <NUM_LIT:1> ; String expectedCompletionNodeToString = "<STR_LIT>" ; String expectedParentNodeToString = "<STR_LIT>" ; String completionIdentifier = "<STR_LIT:Z>" ; String expectedReplacedSource = "<STR_LIT:Z>" ; String expectedUnitDisplayString = "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" ; checkDietParse ( str . toCharArray ( ) , cursorLocation , expectedCompletionNodeToString , expectedParentNodeToString , expectedUnitDisplayString , completionIdentifier , expectedReplacedSource , "<STR_LIT>" ) ; } public void test0090 ( ) { String str = "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT:}>" ; String completeBehind = "<STR_LIT>" ; int cursorLocation = str . indexOf ( "<STR_LIT>" ) + completeBehind . length ( ) - <NUM_LIT:1> ; String expectedCompletionNodeToString = "<STR_LIT>" ; String expectedParentNodeToString = "<STR_LIT>" ; String completionIdentifier = "<STR_LIT:Z>" ; String expectedReplacedSource = "<STR_LIT:Z>" ; String expectedUnitDisplayString = "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" ; checkDietParse ( str . toCharArray ( ) , cursorLocation , expectedCompletionNodeToString , expectedParentNodeToString , expectedUnitDisplayString , completionIdentifier , expectedReplacedSource , "<STR_LIT>" ) ; } public void test0091 ( ) { String str = "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT:}>" ; String completeBehind = "<STR_LIT>" ; int cursorLocation = str . indexOf ( "<STR_LIT>" ) + completeBehind . length ( ) - <NUM_LIT:1> ; String expectedCompletionNodeToString = "<STR_LIT>" ; String expectedParentNodeToString = "<STR_LIT>" ; String completionIdentifier = "<STR_LIT:Z>" ; String expectedReplacedSource = "<STR_LIT:Z>" ; String expectedUnitDisplayString = "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" ; checkDietParse ( str . toCharArray ( ) , cursorLocation , expectedCompletionNodeToString , expectedParentNodeToString , expectedUnitDisplayString , completionIdentifier , expectedReplacedSource , "<STR_LIT>" ) ; } public void test0092 ( ) { String str = "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT:}>" ; String completeBehind = "<STR_LIT>" ; int cursorLocation = str . indexOf ( "<STR_LIT>" ) + completeBehind . length ( ) - <NUM_LIT:1> ; String expectedCompletionNodeToString = "<STR_LIT>" ; String expectedParentNodeToString = "<STR_LIT>" ; String completionIdentifier = "<STR_LIT:Z>" ; String expectedReplacedSource = "<STR_LIT:Z>" ; String expectedUnitDisplayString = "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" ; checkDietParse ( str . toCharArray ( ) , cursorLocation , expectedCompletionNodeToString , expectedParentNodeToString , expectedUnitDisplayString , completionIdentifier , expectedReplacedSource , "<STR_LIT>" ) ; } public void test0093 ( ) { String str = "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT:}>" ; String completeBehind = "<STR_LIT>" ; int cursorLocation = str . indexOf ( "<STR_LIT>" ) + completeBehind . length ( ) - <NUM_LIT:1> ; String expectedCompletionNodeToString = "<STR_LIT>" ; String expectedParentNodeToString = "<STR_LIT>" ; String completionIdentifier = "<STR_LIT:Z>" ; String expectedReplacedSource = "<STR_LIT:Z>" ; String expectedUnitDisplayString = "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" ; checkDietParse ( str . toCharArray ( ) , cursorLocation , expectedCompletionNodeToString , expectedParentNodeToString , expectedUnitDisplayString , completionIdentifier , expectedReplacedSource , "<STR_LIT>" ) ; } public void test0094 ( ) { String str = "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT:}>" ; String completeBehind = "<STR_LIT>" ; int cursorLocation = str . indexOf ( "<STR_LIT>" ) + completeBehind . length ( ) - <NUM_LIT:1> ; String expectedCompletionNodeToString = "<STR_LIT>" ; String expectedParentNodeToString = "<STR_LIT>" ; String completionIdentifier = "<STR_LIT:Z>" ; String expectedReplacedSource = "<STR_LIT:Z>" ; String expectedUnitDisplayString = "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" ; checkDietParse ( str . toCharArray ( ) , cursorLocation , expectedCompletionNodeToString , expectedParentNodeToString , expectedUnitDisplayString , completionIdentifier , expectedReplacedSource , "<STR_LIT>" ) ; } public void test0095 ( ) { String str = "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT:}>" ; String completeBehind = "<STR_LIT>" ; int cursorLocation = str . indexOf ( "<STR_LIT>" ) + completeBehind . length ( ) - <NUM_LIT:1> ; String expectedCompletionNodeToString = "<STR_LIT>" ; String expectedParentNodeToString = "<STR_LIT>" ; String completionIdentifier = "<STR_LIT:Z>" ; String expectedReplacedSource = "<STR_LIT:Z>" ; String expectedUnitDisplayString = "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" ; checkDietParse ( str . toCharArray ( ) , cursorLocation , expectedCompletionNodeToString , expectedParentNodeToString , expectedUnitDisplayString , completionIdentifier , expectedReplacedSource , "<STR_LIT>" ) ; } public void test0096 ( ) { String str = "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT:}>" ; String completeBehind = "<STR_LIT>" ; int cursorLocation = str . indexOf ( "<STR_LIT>" ) + completeBehind . length ( ) - <NUM_LIT:1> ; String expectedCompletionNodeToString = "<STR_LIT>" ; String expectedParentNodeToString = "<STR_LIT>" ; String completionIdentifier = "<STR_LIT:Z>" ; String expectedReplacedSource = "<STR_LIT:Z>" ; String expectedUnitDisplayString = "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" ; checkDietParse ( str . toCharArray ( ) , cursorLocation , expectedCompletionNodeToString , expectedParentNodeToString , expectedUnitDisplayString , completionIdentifier , expectedReplacedSource , "<STR_LIT>" ) ; } public void test0097 ( ) { String str = "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT:}>" ; String completeBehind = "<STR_LIT>" ; int cursorLocation = str . indexOf ( "<STR_LIT>" ) + completeBehind . length ( ) - <NUM_LIT:1> ; String expectedCompletionNodeToString = "<STR_LIT>" ; String expectedParentNodeToString = "<STR_LIT>" ; String completionIdentifier = "<STR_LIT:Z>" ; String expectedReplacedSource = "<STR_LIT:Z>" ; String expectedUnitDisplayString = "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" ; checkDietParse ( str . toCharArray ( ) , cursorLocation , expectedCompletionNodeToString , expectedParentNodeToString , expectedUnitDisplayString , completionIdentifier , expectedReplacedSource , "<STR_LIT>" ) ; } public void test0098 ( ) { String str = "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT:}>" ; String completeBehind = "<STR_LIT>" ; int cursorLocation = str . indexOf ( "<STR_LIT>" ) + completeBehind . length ( ) - <NUM_LIT:1> ; String expectedCompletionNodeToString = "<STR_LIT>" ; String expectedParentNodeToString = "<STR_LIT>" ; String completionIdentifier = "<STR_LIT:Z>" ; String expectedReplacedSource = "<STR_LIT:Z>" ; String expectedUnitDisplayString = "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" ; checkDietParse ( str . toCharArray ( ) , cursorLocation , expectedCompletionNodeToString , expectedParentNodeToString , expectedUnitDisplayString , completionIdentifier , expectedReplacedSource , "<STR_LIT>" ) ; } public void test0099_Diet ( ) { String str = "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT:}>" ; String completeBehind = "<STR_LIT>" ; int cursorLocation = str . indexOf ( "<STR_LIT>" ) + completeBehind . length ( ) - <NUM_LIT:1> ; String expectedCompletionNodeToString = "<STR_LIT>" ; String expectedParentNodeToString = "<STR_LIT>" ; String completionIdentifier = "<STR_LIT>" ; String expectedReplacedSource = "<STR_LIT>" ; String expectedUnitDisplayString = "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" ; checkDietParse ( str . toCharArray ( ) , cursorLocation , expectedCompletionNodeToString , expectedParentNodeToString , expectedUnitDisplayString , completionIdentifier , expectedReplacedSource , "<STR_LIT>" ) ; } public void test0099_Method ( ) { String str = "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT:}>" ; String completeBehind = "<STR_LIT>" ; int cursorLocation = str . indexOf ( "<STR_LIT>" ) + completeBehind . length ( ) - <NUM_LIT:1> ; String expectedCompletionNodeToString = "<STR_LIT>" ; String expectedParentNodeToString = "<STR_LIT>" ; String completionIdentifier = "<STR_LIT:Z>" ; String expectedReplacedSource = "<STR_LIT:Z>" ; String expectedUnitDisplayString = "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" ; checkMethodParse ( str . toCharArray ( ) , cursorLocation , expectedCompletionNodeToString , expectedParentNodeToString , expectedUnitDisplayString , completionIdentifier , expectedReplacedSource , "<STR_LIT>" ) ; } public void test0100_Diet ( ) { String str = "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT:}>" ; String completeBehind = "<STR_LIT>" ; int cursorLocation = str . indexOf ( "<STR_LIT>" ) + completeBehind . length ( ) - <NUM_LIT:1> ; String expectedCompletionNodeToString = "<STR_LIT>" ; String expectedParentNodeToString = "<STR_LIT>" ; String completionIdentifier = "<STR_LIT>" ; String expectedReplacedSource = "<STR_LIT>" ; String expectedUnitDisplayString = "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" ; checkDietParse ( str . toCharArray ( ) , cursorLocation , expectedCompletionNodeToString , expectedParentNodeToString , expectedUnitDisplayString , completionIdentifier , expectedReplacedSource , "<STR_LIT>" ) ; } public void test0100_Method ( ) { String str = "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT:}>" ; String completeBehind = "<STR_LIT>" ; int cursorLocation = str . indexOf ( "<STR_LIT>" ) + completeBehind . length ( ) - <NUM_LIT:1> ; String expectedCompletionNodeToString = "<STR_LIT>" ; String expectedParentNodeToString = "<STR_LIT>" ; String completionIdentifier = "<STR_LIT:Z>" ; String expectedReplacedSource = "<STR_LIT:Z>" ; String expectedUnitDisplayString = "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" ; checkMethodParse ( str . toCharArray ( ) , cursorLocation , expectedCompletionNodeToString , expectedParentNodeToString , expectedUnitDisplayString , completionIdentifier , expectedReplacedSource , "<STR_LIT>" ) ; } public void test0101_Diet ( ) { String str = "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT:}>" ; String completeBehind = "<STR_LIT>" ; int cursorLocation = str . indexOf ( "<STR_LIT>" ) + completeBehind . length ( ) - <NUM_LIT:1> ; String expectedCompletionNodeToString = "<STR_LIT>" ; String expectedParentNodeToString = "<STR_LIT>" ; String completionIdentifier = "<STR_LIT>" ; String expectedReplacedSource = "<STR_LIT>" ; String expectedUnitDisplayString = "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" ; checkDietParse ( str . toCharArray ( ) , cursorLocation , expectedCompletionNodeToString , expectedParentNodeToString , expectedUnitDisplayString , completionIdentifier , expectedReplacedSource , "<STR_LIT>" ) ; } public void test0101_Method ( ) { String str = "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT:}>" ; String completeBehind = "<STR_LIT>" ; int cursorLocation = str . indexOf ( "<STR_LIT>" ) + completeBehind . length ( ) - <NUM_LIT:1> ; String expectedCompletionNodeToString = "<STR_LIT>" ; String expectedParentNodeToString = "<STR_LIT>" ; String completionIdentifier = "<STR_LIT:Z>" ; String expectedReplacedSource = "<STR_LIT:Z>" ; String expectedUnitDisplayString = "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" ; checkMethodParse ( str . toCharArray ( ) , cursorLocation , expectedCompletionNodeToString , expectedParentNodeToString , expectedUnitDisplayString , completionIdentifier , expectedReplacedSource , "<STR_LIT>" ) ; } public void test0102_Diet ( ) { String str = "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT:}>" ; String completeBehind = "<STR_LIT>" ; int cursorLocation = str . indexOf ( "<STR_LIT>" ) + completeBehind . length ( ) - <NUM_LIT:1> ; String expectedCompletionNodeToString = "<STR_LIT>" ; String expectedParentNodeToString = "<STR_LIT>" ; String completionIdentifier = "<STR_LIT>" ; String expectedReplacedSource = "<STR_LIT>" ; String expectedUnitDisplayString = "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" ; checkDietParse ( str . toCharArray ( ) , cursorLocation , expectedCompletionNodeToString , expectedParentNodeToString , expectedUnitDisplayString , completionIdentifier , expectedReplacedSource , "<STR_LIT>" ) ; } public void test0102_Method ( ) { String str = "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT:}>" ; String completeBehind = "<STR_LIT>" ; int cursorLocation = str . indexOf ( "<STR_LIT>" ) + completeBehind . length ( ) - <NUM_LIT:1> ; String expectedCompletionNodeToString = "<STR_LIT>" ; String expectedParentNodeToString = "<STR_LIT>" ; String completionIdentifier = "<STR_LIT:Z>" ; String expectedReplacedSource = "<STR_LIT:Z>" ; String expectedUnitDisplayString = "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" ; checkMethodParse ( str . toCharArray ( ) , cursorLocation , expectedCompletionNodeToString , expectedParentNodeToString , expectedUnitDisplayString , completionIdentifier , expectedReplacedSource , "<STR_LIT>" ) ; } public void test0103_Diet ( ) { String str = "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT:}>" ; String completeBehind = "<STR_LIT>" ; int cursorLocation = str . indexOf ( "<STR_LIT>" ) + completeBehind . length ( ) - <NUM_LIT:1> ; String expectedCompletionNodeToString = "<STR_LIT>" ; String expectedParentNodeToString = "<STR_LIT>" ; String completionIdentifier = "<STR_LIT>" ; String expectedReplacedSource = "<STR_LIT>" ; String expectedUnitDisplayString = "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" ; checkDietParse ( str . toCharArray ( ) , cursorLocation , expectedCompletionNodeToString , expectedParentNodeToString , expectedUnitDisplayString , completionIdentifier , expectedReplacedSource , "<STR_LIT>" ) ; } public void test0103_Method ( ) { String str = "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT:}>" ; String completeBehind = "<STR_LIT>" ; int cursorLocation = str . indexOf ( "<STR_LIT>" ) + completeBehind . length ( ) - <NUM_LIT:1> ; String expectedCompletionNodeToString = "<STR_LIT>" ; String expectedParentNodeToString = "<STR_LIT>" ; String completionIdentifier = "<STR_LIT:Z>" ; String expectedReplacedSource = "<STR_LIT:Z>" ; String expectedUnitDisplayString = "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" ; checkMethodParse ( str . toCharArray ( ) , cursorLocation , expectedCompletionNodeToString , expectedParentNodeToString , expectedUnitDisplayString , completionIdentifier , expectedReplacedSource , "<STR_LIT>" ) ; } public void test0104_Diet ( ) { String str = "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT:}>" ; String completeBehind = "<STR_LIT>" ; int cursorLocation = str . indexOf ( "<STR_LIT>" ) + completeBehind . length ( ) - <NUM_LIT:1> ; String expectedCompletionNodeToString = "<STR_LIT>" ; String expectedParentNodeToString = "<STR_LIT>" ; String completionIdentifier = "<STR_LIT>" ; String expectedReplacedSource = "<STR_LIT>" ; String expectedUnitDisplayString = "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" ; checkDietParse ( str . toCharArray ( ) , cursorLocation , expectedCompletionNodeToString , expectedParentNodeToString , expectedUnitDisplayString , completionIdentifier , expectedReplacedSource , "<STR_LIT>" ) ; } public void test0104_Method ( ) { String str = "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT:}>" ; String completeBehind = "<STR_LIT>" ; int cursorLocation = str . indexOf ( "<STR_LIT>" ) + completeBehind . length ( ) - <NUM_LIT:1> ; String expectedCompletionNodeToString = "<STR_LIT>" ; String expectedParentNodeToString = "<STR_LIT>" ; String completionIdentifier = "<STR_LIT:Z>" ; String expectedReplacedSource = "<STR_LIT:Z>" ; String expectedUnitDisplayString = "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" ; checkMethodParse ( str . toCharArray ( ) , cursorLocation , expectedCompletionNodeToString , expectedParentNodeToString , expectedUnitDisplayString , completionIdentifier , expectedReplacedSource , "<STR_LIT>" ) ; } public void test0105_Diet ( ) { String str = "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT:}>" ; String completeBehind = "<STR_LIT>" ; int cursorLocation = str . indexOf ( "<STR_LIT>" ) + completeBehind . length ( ) - <NUM_LIT:1> ; String expectedCompletionNodeToString = "<STR_LIT>" ; String expectedParentNodeToString = "<STR_LIT>" ; String completionIdentifier = "<STR_LIT>" ; String expectedReplacedSource = "<STR_LIT>" ; String expectedUnitDisplayString = "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" ; checkDietParse ( str . toCharArray ( ) , cursorLocation , expectedCompletionNodeToString , expectedParentNodeToString , expectedUnitDisplayString , completionIdentifier , expectedReplacedSource , "<STR_LIT>" ) ; } public void test0105_Method ( ) { String str = "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT:}>" ; String completeBehind = "<STR_LIT>" ; int cursorLocation = str . indexOf ( "<STR_LIT>" ) + completeBehind . length ( ) - <NUM_LIT:1> ; String expectedCompletionNodeToString = "<STR_LIT>" ; String expectedParentNodeToString = "<STR_LIT>" ; String completionIdentifier = "<STR_LIT:Z>" ; String expectedReplacedSource = "<STR_LIT:Z>" ; String expectedUnitDisplayString = "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" ; checkMethodParse ( str . toCharArray ( ) , cursorLocation , expectedCompletionNodeToString , expectedParentNodeToString , expectedUnitDisplayString , completionIdentifier , expectedReplacedSource , "<STR_LIT>" ) ; } public void test0106_Diet ( ) { String str = "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT:}>" ; String completeBehind = "<STR_LIT>" ; int cursorLocation = str . indexOf ( "<STR_LIT>" ) + completeBehind . length ( ) - <NUM_LIT:1> ; String expectedCompletionNodeToString = "<STR_LIT>" ; String expectedParentNodeToString = "<STR_LIT>" ; String completionIdentifier = "<STR_LIT>" ; String expectedReplacedSource = "<STR_LIT>" ; String expectedUnitDisplayString = "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" ; checkDietParse ( str . toCharArray ( ) , cursorLocation , expectedCompletionNodeToString , expectedParentNodeToString , expectedUnitDisplayString , completionIdentifier , expectedReplacedSource , "<STR_LIT>" ) ; } public void test0106_Method ( ) { String str = "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT:}>" ; String completeBehind = "<STR_LIT>" ; int cursorLocation = str . indexOf ( "<STR_LIT>" ) + completeBehind . length ( ) - <NUM_LIT:1> ; String expectedCompletionNodeToString = "<STR_LIT>" ; String expectedParentNodeToString = "<STR_LIT>" ; String completionIdentifier = "<STR_LIT:Z>" ; String expectedReplacedSource = "<STR_LIT:Z>" ; String expectedUnitDisplayString = "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" ; checkMethodParse ( str . toCharArray ( ) , cursorLocation , expectedCompletionNodeToString , expectedParentNodeToString , expectedUnitDisplayString , completionIdentifier , expectedReplacedSource , "<STR_LIT>" ) ; } public void test0107_Diet ( ) { String str = "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT:}>" ; String completeBehind = "<STR_LIT>" ; int cursorLocation = str . indexOf ( "<STR_LIT>" ) + completeBehind . length ( ) - <NUM_LIT:1> ; String expectedCompletionNodeToString = "<STR_LIT>" ; String expectedParentNodeToString = "<STR_LIT>" ; String completionIdentifier = "<STR_LIT>" ; String expectedReplacedSource = "<STR_LIT>" ; String expectedUnitDisplayString = "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" ; checkDietParse ( str . toCharArray ( ) , cursorLocation , expectedCompletionNodeToString , expectedParentNodeToString , expectedUnitDisplayString , completionIdentifier , expectedReplacedSource , "<STR_LIT>" ) ; } public void test0107_Method ( ) { String str = "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT:}>" ; String completeBehind = "<STR_LIT>" ; int cursorLocation = str . indexOf ( "<STR_LIT>" ) + completeBehind . length ( ) - <NUM_LIT:1> ; String expectedCompletionNodeToString = "<STR_LIT>" ; String expectedParentNodeToString = "<STR_LIT>" ; String completionIdentifier = "<STR_LIT:Z>" ; String expectedReplacedSource = "<STR_LIT:Z>" ; String expectedUnitDisplayString = "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" ; checkMethodParse ( str . toCharArray ( ) , cursorLocation , expectedCompletionNodeToString , expectedParentNodeToString , expectedUnitDisplayString , completionIdentifier , expectedReplacedSource , "<STR_LIT>" ) ; } public void test0108_Diet ( ) { String str = "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT:}>" ; String completeBehind = "<STR_LIT>" ; int cursorLocation = str . indexOf ( "<STR_LIT>" ) + completeBehind . length ( ) - <NUM_LIT:1> ; String expectedCompletionNodeToString = "<STR_LIT>" ; String expectedParentNodeToString = "<STR_LIT>" ; String completionIdentifier = "<STR_LIT>" ; String expectedReplacedSource = "<STR_LIT>" ; String expectedUnitDisplayString = "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" ; checkDietParse ( str . toCharArray ( ) , cursorLocation , expectedCompletionNodeToString , expectedParentNodeToString , expectedUnitDisplayString , completionIdentifier , expectedReplacedSource , "<STR_LIT>" ) ; } public void test0108_Method ( ) { String str = "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT:}>" ; String completeBehind = "<STR_LIT>" ; int cursorLocation = str . indexOf ( "<STR_LIT>" ) + completeBehind . length ( ) - <NUM_LIT:1> ; String expectedCompletionNodeToString = "<STR_LIT>" ; String expectedParentNodeToString = "<STR_LIT>" ; String completionIdentifier = "<STR_LIT:Z>" ; String expectedReplacedSource = "<STR_LIT:Z>" ; String expectedUnitDisplayString = "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" ; checkMethodParse ( str . toCharArray ( ) , cursorLocation , expectedCompletionNodeToString , expectedParentNodeToString , expectedUnitDisplayString , completionIdentifier , expectedReplacedSource , "<STR_LIT>" ) ; } public void test0109_Diet ( ) { String str = "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT:}>" ; String completeBehind = "<STR_LIT>" ; int cursorLocation = str . indexOf ( "<STR_LIT>" ) + completeBehind . length ( ) - <NUM_LIT:1> ; String expectedCompletionNodeToString = "<STR_LIT>" ; String expectedParentNodeToString = "<STR_LIT>" ; String completionIdentifier = "<STR_LIT>" ; String expectedReplacedSource = "<STR_LIT>" ; String expectedUnitDisplayString = "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" ; checkDietParse ( str . toCharArray ( ) , cursorLocation , expectedCompletionNodeToString , expectedParentNodeToString , expectedUnitDisplayString , completionIdentifier , expectedReplacedSource , "<STR_LIT>" ) ; } public void test0109_Method ( ) { String str = "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT:}>" ; String completeBehind = "<STR_LIT>" ; int cursorLocation = str . indexOf ( "<STR_LIT>" ) + completeBehind . length ( ) - <NUM_LIT:1> ; String expectedCompletionNodeToString = "<STR_LIT>" ; String expectedParentNodeToString = "<STR_LIT>" ; String completionIdentifier = "<STR_LIT:Z>" ; String expectedReplacedSource = "<STR_LIT:Z>" ; String expectedUnitDisplayString = "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" ; checkMethodParse ( str . toCharArray ( ) , cursorLocation , expectedCompletionNodeToString , expectedParentNodeToString , expectedUnitDisplayString , completionIdentifier , expectedReplacedSource , "<STR_LIT>" ) ; } public void test0110_Diet ( ) { String str = "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT:}>" ; String completeBehind = "<STR_LIT>" ; int cursorLocation = str . indexOf ( "<STR_LIT>" ) + completeBehind . length ( ) - <NUM_LIT:1> ; String expectedCompletionNodeToString = "<STR_LIT>" ; String expectedParentNodeToString = "<STR_LIT>" ; String completionIdentifier = "<STR_LIT>" ; String expectedReplacedSource = "<STR_LIT>" ; String expectedUnitDisplayString = "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" ; checkDietParse ( str . toCharArray ( ) , cursorLocation , expectedCompletionNodeToString , expectedParentNodeToString , expectedUnitDisplayString , completionIdentifier , expectedReplacedSource , "<STR_LIT>" ) ; } public void test0110_Method ( ) { String str = "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT:}>" ; String completeBehind = "<STR_LIT>" ; int cursorLocation = str . indexOf ( "<STR_LIT>" ) + completeBehind . length ( ) - <NUM_LIT:1> ; String expectedCompletionNodeToString = "<STR_LIT>" ; String expectedParentNodeToString = "<STR_LIT>" ; String completionIdentifier = "<STR_LIT:Z>" ; String expectedReplacedSource = "<STR_LIT:Z>" ; String expectedUnitDisplayString = "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" ; checkMethodParse ( str . toCharArray ( ) , cursorLocation , expectedCompletionNodeToString , expectedParentNodeToString , expectedUnitDisplayString , completionIdentifier , expectedReplacedSource , "<STR_LIT>" ) ; } public void test0111_Diet ( ) { String str = "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT:}>" ; String completeBehind = "<STR_LIT>" ; int cursorLocation = str . indexOf ( "<STR_LIT>" ) + completeBehind . length ( ) - <NUM_LIT:1> ; String expectedCompletionNodeToString = "<STR_LIT>" ; String expectedParentNodeToString = "<STR_LIT>" ; String completionIdentifier = "<STR_LIT>" ; String expectedReplacedSource = "<STR_LIT>" ; String expectedUnitDisplayString = "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" ; checkDietParse ( str . toCharArray ( ) , cursorLocation , expectedCompletionNodeToString , expectedParentNodeToString , expectedUnitDisplayString , completionIdentifier , expectedReplacedSource , "<STR_LIT>" ) ; } public void test0111_Method ( ) { String str = "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT:}>" ; String completeBehind = "<STR_LIT>" ; int cursorLocation = str . indexOf ( "<STR_LIT>" ) + completeBehind . length ( ) - <NUM_LIT:1> ; String expectedCompletionNodeToString = "<STR_LIT>" ; String expectedParentNodeToString = "<STR_LIT>" ; String completionIdentifier = "<STR_LIT:Z>" ; String expectedReplacedSource = "<STR_LIT:Z>" ; String expectedUnitDisplayString = "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" ; checkMethodParse ( str . toCharArray ( ) , cursorLocation , expectedCompletionNodeToString , expectedParentNodeToString , expectedUnitDisplayString , completionIdentifier , expectedReplacedSource , "<STR_LIT>" ) ; } public void test0112_Diet ( ) { String str = "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT:}>" ; String completeBehind = "<STR_LIT>" ; int cursorLocation = str . indexOf ( "<STR_LIT>" ) + completeBehind . length ( ) - <NUM_LIT:1> ; String expectedCompletionNodeToString = "<STR_LIT>" ; String expectedParentNodeToString = "<STR_LIT>" ; String completionIdentifier = "<STR_LIT>" ; String expectedReplacedSource = "<STR_LIT>" ; String expectedUnitDisplayString = "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" ; checkDietParse ( str . toCharArray ( ) , cursorLocation , expectedCompletionNodeToString , expectedParentNodeToString , expectedUnitDisplayString , completionIdentifier , expectedReplacedSource , "<STR_LIT>" ) ; } public void test0112_Method ( ) { String str = "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT:}>" ; String completeBehind = "<STR_LIT>" ; int cursorLocation = str . indexOf ( "<STR_LIT>" ) + completeBehind . length ( ) - <NUM_LIT:1> ; String expectedCompletionNodeToString = "<STR_LIT>" ; String expectedParentNodeToString = "<STR_LIT>" ; String completionIdentifier = "<STR_LIT:Z>" ; String expectedReplacedSource = "<STR_LIT:Z>" ; String expectedUnitDisplayString = "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" ; checkMethodParse ( str . toCharArray ( ) , cursorLocation , expectedCompletionNodeToString , expectedParentNodeToString , expectedUnitDisplayString , completionIdentifier , expectedReplacedSource , "<STR_LIT>" ) ; } public void test0113_Diet ( ) { String str = "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT:}>" ; String completeBehind = "<STR_LIT>" ; int cursorLocation = str . indexOf ( "<STR_LIT>" ) + completeBehind . length ( ) - <NUM_LIT:1> ; String expectedCompletionNodeToString = "<STR_LIT>" ; String expectedParentNodeToString = "<STR_LIT>" ; String completionIdentifier = "<STR_LIT>" ; String expectedReplacedSource = "<STR_LIT>" ; String expectedUnitDisplayString = "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" ; checkDietParse ( str . toCharArray ( ) , cursorLocation , expectedCompletionNodeToString , expectedParentNodeToString , expectedUnitDisplayString , completionIdentifier , expectedReplacedSource , "<STR_LIT>" ) ; } public void test0113_Method ( ) { String str = "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT:}>" ; String completeBehind = "<STR_LIT>" ; int cursorLocation = str . indexOf ( "<STR_LIT>" ) + completeBehind . length ( ) - <NUM_LIT:1> ; String expectedCompletionNodeToString = "<STR_LIT>" ; String expectedParentNodeToString = "<STR_LIT>" ; String completionIdentifier = "<STR_LIT:Z>" ; String expectedReplacedSource = "<STR_LIT:Z>" ; String expectedUnitDisplayString = "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" ; checkMethodParse ( str . toCharArray ( ) , cursorLocation , expectedCompletionNodeToString , expectedParentNodeToString , expectedUnitDisplayString , completionIdentifier , expectedReplacedSource , "<STR_LIT>" ) ; } public void test0114_Diet ( ) { String str = "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT:}>" ; String completeBehind = "<STR_LIT>" ; int cursorLocation = str . indexOf ( "<STR_LIT>" ) + completeBehind . length ( ) - <NUM_LIT:1> ; String expectedCompletionNodeToString = "<STR_LIT>" ; String expectedParentNodeToString = "<STR_LIT>" ; String completionIdentifier = "<STR_LIT>" ; String expectedReplacedSource = "<STR_LIT>" ; String expectedUnitDisplayString = "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" ; checkDietParse ( str . toCharArray ( ) , cursorLocation , expectedCompletionNodeToString , expectedParentNodeToString , expectedUnitDisplayString , completionIdentifier , expectedReplacedSource , "<STR_LIT>" ) ; } public void test0114_Method ( ) { String str = "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT:}>" ; String completeBehind = "<STR_LIT>" ; int cursorLocation = str . indexOf ( "<STR_LIT>" ) + completeBehind . length ( ) - <NUM_LIT:1> ; String expectedCompletionNodeToString = "<STR_LIT>" ; String expectedParentNodeToString = "<STR_LIT>" ; String completionIdentifier = "<STR_LIT:Z>" ; String expectedReplacedSource = "<STR_LIT:Z>" ; String expectedUnitDisplayString = "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" ; checkMethodParse ( str . toCharArray ( ) , cursorLocation , expectedCompletionNodeToString , expectedParentNodeToString , expectedUnitDisplayString , completionIdentifier , expectedReplacedSource , "<STR_LIT>" ) ; } public void test0115_Diet ( ) { String str = "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT:}>" ; String completeBehind = "<STR_LIT>" ; int cursorLocation = str . indexOf ( "<STR_LIT>" ) + completeBehind . length ( ) - <NUM_LIT:1> ; String expectedCompletionNodeToString = "<STR_LIT>" ; String expectedParentNodeToString = "<STR_LIT>" ; String completionIdentifier = "<STR_LIT>" ; String expectedReplacedSource = "<STR_LIT>" ; String expectedUnitDisplayString = "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" ; checkDietParse ( str . toCharArray ( ) , cursorLocation , expectedCompletionNodeToString , expectedParentNodeToString , expectedUnitDisplayString , completionIdentifier , expectedReplacedSource , "<STR_LIT>" ) ; } public void test0115_Method ( ) { String str = "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT:}>" ; String completeBehind = "<STR_LIT>" ; int cursorLocation = str . indexOf ( "<STR_LIT>" ) + completeBehind . length ( ) - <NUM_LIT:1> ; String expectedCompletionNodeToString = "<STR_LIT>" ; String expectedParentNodeToString = "<STR_LIT>" ; String completionIdentifier = "<STR_LIT:Z>" ; String expectedReplacedSource = "<STR_LIT:Z>" ; String expectedUnitDisplayString = "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" ; checkMethodParse ( str . toCharArray ( ) , cursorLocation , expectedCompletionNodeToString , expectedParentNodeToString , expectedUnitDisplayString , completionIdentifier , expectedReplacedSource , "<STR_LIT>" ) ; } public void test0116_Diet ( ) { String str = "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT:}>" ; String completeBehind = "<STR_LIT>" ; int cursorLocation = str . indexOf ( "<STR_LIT>" ) + completeBehind . length ( ) - <NUM_LIT:1> ; String expectedCompletionNodeToString = "<STR_LIT>" ; String expectedParentNodeToString = "<STR_LIT>" ; String completionIdentifier = "<STR_LIT>" ; String expectedReplacedSource = "<STR_LIT>" ; String expectedUnitDisplayString = "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" ; checkDietParse ( str . toCharArray ( ) , cursorLocation , expectedCompletionNodeToString , expectedParentNodeToString , expectedUnitDisplayString , completionIdentifier , expectedReplacedSource , "<STR_LIT>" ) ; } public void test0116_Method ( ) { String str = "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT:}>" ; String completeBehind = "<STR_LIT>" ; int cursorLocation = str . indexOf ( "<STR_LIT>" ) + completeBehind . length ( ) - <NUM_LIT:1> ; String expectedCompletionNodeToString = "<STR_LIT>" ; String expectedParentNodeToString = "<STR_LIT>" ; String completionIdentifier = "<STR_LIT:Z>" ; String expectedReplacedSource = "<STR_LIT:Z>" ; String expectedUnitDisplayString = "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" ; checkMethodParse ( str . toCharArray ( ) , cursorLocation , expectedCompletionNodeToString , expectedParentNodeToString , expectedUnitDisplayString , completionIdentifier , expectedReplacedSource , "<STR_LIT>" ) ; } public void test0117_Diet ( ) { String str = "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT:}>" ; String completeBehind = "<STR_LIT>" ; int cursorLocation = str . indexOf ( "<STR_LIT>" ) + completeBehind . length ( ) - <NUM_LIT:1> ; String expectedCompletionNodeToString = "<STR_LIT>" ; String expectedParentNodeToString = "<STR_LIT>" ; String completionIdentifier = "<STR_LIT>" ; String expectedReplacedSource = "<STR_LIT>" ; String expectedUnitDisplayString = "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" ; checkDietParse ( str . toCharArray ( ) , cursorLocation , expectedCompletionNodeToString , expectedParentNodeToString , expectedUnitDisplayString , completionIdentifier , expectedReplacedSource , "<STR_LIT>" ) ; } public void test0117_Method ( ) { String str = "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT:}>" ; String completeBehind = "<STR_LIT>" ; int cursorLocation = str . indexOf ( "<STR_LIT>" ) + completeBehind . length ( ) - <NUM_LIT:1> ; String expectedCompletionNodeToString = "<STR_LIT>" ; String expectedParentNodeToString = "<STR_LIT>" ; String completionIdentifier = "<STR_LIT:Z>" ; String expectedReplacedSource = "<STR_LIT:Z>" ; String expectedUnitDisplayString = "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" ; checkMethodParse ( str . toCharArray ( ) , cursorLocation , expectedCompletionNodeToString , expectedParentNodeToString , expectedUnitDisplayString , completionIdentifier , expectedReplacedSource , "<STR_LIT>" ) ; } public void test0118_Diet ( ) { String str = "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT:}>" ; String completeBehind = "<STR_LIT>" ; int cursorLocation = str . indexOf ( "<STR_LIT>" ) + completeBehind . length ( ) - <NUM_LIT:1> ; String expectedCompletionNodeToString = "<STR_LIT>" ; String expectedParentNodeToString = "<STR_LIT>" ; String completionIdentifier = "<STR_LIT>" ; String expectedReplacedSource = "<STR_LIT>" ; String expectedUnitDisplayString = "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" ; checkDietParse ( str . toCharArray ( ) , cursorLocation , expectedCompletionNodeToString , expectedParentNodeToString , expectedUnitDisplayString , completionIdentifier , expectedReplacedSource , "<STR_LIT>" ) ; } public void test0118_Method ( ) { String str = "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT:}>" ; String completeBehind = "<STR_LIT>" ; int cursorLocation = str . indexOf ( "<STR_LIT>" ) + completeBehind . length ( ) - <NUM_LIT:1> ; String expectedCompletionNodeToString = "<STR_LIT>" ; String expectedParentNodeToString = "<STR_LIT>" ; String completionIdentifier = "<STR_LIT:Z>" ; String expectedReplacedSource = "<STR_LIT:Z>" ; String expectedUnitDisplayString = "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" ; checkMethodParse ( str . toCharArray ( ) , cursorLocation , expectedCompletionNodeToString , expectedParentNodeToString , expectedUnitDisplayString , completionIdentifier , expectedReplacedSource , "<STR_LIT>" ) ; } public void test0119_Diet ( ) { String str = "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT:}>" ; String completeBehind = "<STR_LIT>" ; int cursorLocation = str . indexOf ( "<STR_LIT>" ) + completeBehind . length ( ) - <NUM_LIT:1> ; String expectedCompletionNodeToString = "<STR_LIT>" ; String expectedParentNodeToString = "<STR_LIT>" ; String completionIdentifier = "<STR_LIT>" ; String expectedReplacedSource = "<STR_LIT>" ; String expectedUnitDisplayString = "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" ; checkDietParse ( str . toCharArray ( ) , cursorLocation , expectedCompletionNodeToString , expectedParentNodeToString , expectedUnitDisplayString , completionIdentifier , expectedReplacedSource , "<STR_LIT>" ) ; } public void test0119_Method ( ) { String str = "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT:}>" ; String completeBehind = "<STR_LIT>" ; int cursorLocation = str . indexOf ( "<STR_LIT>" ) + completeBehind . length ( ) - <NUM_LIT:1> ; String expectedCompletionNodeToString = "<STR_LIT>" ; String expectedParentNodeToString = "<STR_LIT>" ; String completionIdentifier = "<STR_LIT:Z>" ; String expectedReplacedSource = "<STR_LIT:Z>" ; String expectedUnitDisplayString = "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" ; checkMethodParse ( str . toCharArray ( ) , cursorLocation , expectedCompletionNodeToString , expectedParentNodeToString , expectedUnitDisplayString , completionIdentifier , expectedReplacedSource , "<STR_LIT>" ) ; } public void test0120_Diet ( ) { String str = "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT:}>" ; String completeBehind = "<STR_LIT>" ; int cursorLocation = str . indexOf ( "<STR_LIT>" ) + completeBehind . length ( ) - <NUM_LIT:1> ; String expectedCompletionNodeToString = "<STR_LIT>" ; String expectedParentNodeToString = "<STR_LIT>" ; String completionIdentifier = "<STR_LIT>" ; String expectedReplacedSource = "<STR_LIT>" ; String expectedUnitDisplayString = "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" ; checkDietParse ( str . toCharArray ( ) , cursorLocation , expectedCompletionNodeToString , expectedParentNodeToString , expectedUnitDisplayString , completionIdentifier , expectedReplacedSource , "<STR_LIT>" ) ; } public void test0120_Method ( ) { String str = "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT:}>" ; String completeBehind = "<STR_LIT>" ; int cursorLocation = str . indexOf ( "<STR_LIT>" ) + completeBehind . length ( ) - <NUM_LIT:1> ; String expectedCompletionNodeToString = "<STR_LIT>" ; String expectedParentNodeToString = "<STR_LIT>" ; String completionIdentifier = "<STR_LIT:Z>" ; String expectedReplacedSource = "<STR_LIT:Z>" ; String expectedUnitDisplayString = "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" ; checkMethodParse ( str . toCharArray ( ) , cursorLocation , expectedCompletionNodeToString , expectedParentNodeToString , expectedUnitDisplayString , completionIdentifier , expectedReplacedSource , "<STR_LIT>" ) ; } public void test0121_Diet ( ) { String str = "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT:}>" ; String completeBehind = "<STR_LIT>" ; int cursorLocation = str . indexOf ( "<STR_LIT>" ) + completeBehind . length ( ) - <NUM_LIT:1> ; String expectedCompletionNodeToString = "<STR_LIT>" ; String expectedParentNodeToString = "<STR_LIT>" ; String completionIdentifier = "<STR_LIT>" ; String expectedReplacedSource = "<STR_LIT>" ; String expectedUnitDisplayString = "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" ; checkDietParse ( str . toCharArray ( ) , cursorLocation , expectedCompletionNodeToString , expectedParentNodeToString , expectedUnitDisplayString , completionIdentifier , expectedReplacedSource , "<STR_LIT>" ) ; } public void test0121_Method ( ) { String str = "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT:}>" ; String completeBehind = "<STR_LIT>" ; int cursorLocation = str . indexOf ( "<STR_LIT>" ) + completeBehind . length ( ) - <NUM_LIT:1> ; String expectedCompletionNodeToString = "<STR_LIT>" ; String expectedParentNodeToString = "<STR_LIT>" ; String completionIdentifier = "<STR_LIT:Z>" ; String expectedReplacedSource = "<STR_LIT:Z>" ; String expectedUnitDisplayString = "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" ; checkMethodParse ( str . toCharArray ( ) , cursorLocation , expectedCompletionNodeToString , expectedParentNodeToString , expectedUnitDisplayString , completionIdentifier , expectedReplacedSource , "<STR_LIT>" ) ; } public void test0122_Diet ( ) { String str = "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT:}>" ; String completeBehind = "<STR_LIT>" ; int cursorLocation = str . indexOf ( "<STR_LIT>" ) + completeBehind . length ( ) - <NUM_LIT:1> ; String expectedCompletionNodeToString = "<STR_LIT>" ; String expectedParentNodeToString = "<STR_LIT>" ; String completionIdentifier = "<STR_LIT>" ; String expectedReplacedSource = "<STR_LIT>" ; String expectedUnitDisplayString = "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" ; checkDietParse ( str . toCharArray ( ) , cursorLocation , expectedCompletionNodeToString , expectedParentNodeToString , expectedUnitDisplayString , completionIdentifier , expectedReplacedSource , "<STR_LIT>" ) ; } public void test0122_Method ( ) { String str = "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT:}>" ; String completeBehind = "<STR_LIT>" ; int cursorLocation = str . indexOf ( "<STR_LIT>" ) + completeBehind . length ( ) - <NUM_LIT:1> ; String expectedCompletionNodeToString = "<STR_LIT>" ; String expectedParentNodeToString = "<STR_LIT>" ; String completionIdentifier = "<STR_LIT:Z>" ; String expectedReplacedSource = "<STR_LIT:Z>" ; String expectedUnitDisplayString = "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" ; checkMethodParse ( str . toCharArray ( ) , cursorLocation , expectedCompletionNodeToString , expectedParentNodeToString , expectedUnitDisplayString , completionIdentifier , expectedReplacedSource , "<STR_LIT>" ) ; } public void test0123_Diet ( ) { String str = "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT:}>" ; String completeBehind = "<STR_LIT>" ; int cursorLocation = str . indexOf ( "<STR_LIT>" ) + completeBehind . length ( ) - <NUM_LIT:1> ; String expectedCompletionNodeToString = "<STR_LIT>" ; String expectedParentNodeToString = "<STR_LIT>" ; String completionIdentifier = "<STR_LIT>" ; String expectedReplacedSource = "<STR_LIT>" ; String expectedUnitDisplayString = "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" ; checkDietParse ( str . toCharArray ( ) , cursorLocation , expectedCompletionNodeToString , expectedParentNodeToString , expectedUnitDisplayString , completionIdentifier , expectedReplacedSource , "<STR_LIT>" ) ; } public void test0123_Method ( ) { String str = "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT:}>" ; String completeBehind = "<STR_LIT>" ; int cursorLocation = str . indexOf ( "<STR_LIT>" ) + completeBehind . length ( ) - <NUM_LIT:1> ; String expectedCompletionNodeToString = "<STR_LIT>" ; String expectedParentNodeToString = "<STR_LIT>" ; String completionIdentifier = "<STR_LIT:Z>" ; String expectedReplacedSource = "<STR_LIT:Z>" ; String expectedUnitDisplayString = "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" ; checkMethodParse ( str . toCharArray ( ) , cursorLocation , expectedCompletionNodeToString , expectedParentNodeToString , expectedUnitDisplayString , completionIdentifier , expectedReplacedSource , "<STR_LIT>" ) ; } public void test0124_Diet ( ) { String str = "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT:}>" ; String completeBehind = "<STR_LIT>" ; int cursorLocation = str . indexOf ( "<STR_LIT>" ) + completeBehind . length ( ) - <NUM_LIT:1> ; String expectedCompletionNodeToString = "<STR_LIT>" ; String expectedParentNodeToString = "<STR_LIT>" ; String completionIdentifier = "<STR_LIT>" ; String expectedReplacedSource = "<STR_LIT>" ; String expectedUnitDisplayString = "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" ; checkDietParse ( str . toCharArray ( ) , cursorLocation , expectedCompletionNodeToString , expectedParentNodeToString , expectedUnitDisplayString , completionIdentifier , expectedReplacedSource , "<STR_LIT>" ) ; } public void test0124_Method ( ) { String str = "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT:}>" ; String completeBehind = "<STR_LIT>" ; int cursorLocation = str . indexOf ( "<STR_LIT>" ) + completeBehind . length ( ) - <NUM_LIT:1> ; String expectedCompletionNodeToString = "<STR_LIT>" ; String expectedParentNodeToString = "<STR_LIT>" ; String completionIdentifier = "<STR_LIT:Z>" ; String expectedReplacedSource = "<STR_LIT:Z>" ; String expectedUnitDisplayString = "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" ; checkMethodParse ( str . toCharArray ( ) , cursorLocation , expectedCompletionNodeToString , expectedParentNodeToString , expectedUnitDisplayString , completionIdentifier , expectedReplacedSource , "<STR_LIT>" ) ; } public void test0125_Diet ( ) { String str = "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT:}>" ; String completeBehind = "<STR_LIT>" ; int cursorLocation = str . indexOf ( "<STR_LIT>" ) + completeBehind . length ( ) - <NUM_LIT:1> ; String expectedCompletionNodeToString = "<STR_LIT>" ; String expectedParentNodeToString = "<STR_LIT>" ; String completionIdentifier = "<STR_LIT>" ; String expectedReplacedSource = "<STR_LIT>" ; String expectedUnitDisplayString = "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" ; checkDietParse ( str . toCharArray ( ) , cursorLocation , expectedCompletionNodeToString , expectedParentNodeToString , expectedUnitDisplayString , completionIdentifier , expectedReplacedSource , "<STR_LIT>" ) ; } public void test0125_Method ( ) { String str = "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT:}>" ; String completeBehind = "<STR_LIT>" ; int cursorLocation = str . indexOf ( "<STR_LIT>" ) + completeBehind . length ( ) - <NUM_LIT:1> ; String expectedCompletionNodeToString = "<STR_LIT>" ; String expectedParentNodeToString = "<STR_LIT>" ; String completionIdentifier = "<STR_LIT:Z>" ; String expectedReplacedSource = "<STR_LIT:Z>" ; String expectedUnitDisplayString = "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" ; checkMethodParse ( str . toCharArray ( ) , cursorLocation , expectedCompletionNodeToString , expectedParentNodeToString , expectedUnitDisplayString , completionIdentifier , expectedReplacedSource , "<STR_LIT>" ) ; } public void test0126_Diet ( ) { String str = "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT:}>" ; String completeBehind = "<STR_LIT>" ; int cursorLocation = str . indexOf ( "<STR_LIT>" ) + completeBehind . length ( ) - <NUM_LIT:1> ; String expectedCompletionNodeToString = "<STR_LIT>" ; String expectedParentNodeToString = "<STR_LIT>" ; String completionIdentifier = "<STR_LIT>" ; String expectedReplacedSource = "<STR_LIT>" ; String expectedUnitDisplayString = "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" ; checkDietParse ( str . toCharArray ( ) , cursorLocation , expectedCompletionNodeToString , expectedParentNodeToString , expectedUnitDisplayString , completionIdentifier , expectedReplacedSource , "<STR_LIT>" ) ; } public void test0126_Method ( ) { String str = "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT:}>" ; String completeBehind = "<STR_LIT>" ; int cursorLocation = str . indexOf ( "<STR_LIT>" ) + completeBehind . length ( ) - <NUM_LIT:1> ; String expectedCompletionNodeToString = "<STR_LIT>" ; String expectedParentNodeToString = "<STR_LIT>" ; String completionIdentifier = "<STR_LIT:Z>" ; String expectedReplacedSource = "<STR_LIT:Z>" ; String expectedUnitDisplayString = "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" ; checkMethodParse ( str . toCharArray ( ) , cursorLocation , expectedCompletionNodeToString , expectedParentNodeToString , expectedUnitDisplayString , completionIdentifier , expectedReplacedSource , "<STR_LIT>" ) ; } public void test0127_Diet ( ) { String str = "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT:}>" ; String completeBehind = "<STR_LIT>" ; int cursorLocation = str . indexOf ( "<STR_LIT>" ) + completeBehind . length ( ) - <NUM_LIT:1> ; String expectedCompletionNodeToString = "<STR_LIT>" ; String expectedParentNodeToString = "<STR_LIT>" ; String completionIdentifier = "<STR_LIT>" ; String expectedReplacedSource = "<STR_LIT>" ; String expectedUnitDisplayString = "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" ; checkDietParse ( str . toCharArray ( ) , cursorLocation , expectedCompletionNodeToString , expectedParentNodeToString , expectedUnitDisplayString , completionIdentifier , expectedReplacedSource , "<STR_LIT>" ) ; } public void test0127_Method ( ) { String str = "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT:}>" ; String completeBehind = "<STR_LIT>" ; int cursorLocation = str . indexOf ( "<STR_LIT>" ) + completeBehind . length ( ) - <NUM_LIT:1> ; String expectedCompletionNodeToString = "<STR_LIT>" ; String expectedParentNodeToString = "<STR_LIT>" ; String completionIdentifier = "<STR_LIT:Z>" ; String expectedReplacedSource = "<STR_LIT:Z>" ; String expectedUnitDisplayString = "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" ; checkMethodParse ( str . toCharArray ( ) , cursorLocation , expectedCompletionNodeToString , expectedParentNodeToString , expectedUnitDisplayString , completionIdentifier , expectedReplacedSource , "<STR_LIT>" ) ; } public void test0128_Diet ( ) { String str = "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT:}>" ; String completeBehind = "<STR_LIT>" ; int cursorLocation = str . indexOf ( "<STR_LIT>" ) + completeBehind . length ( ) - <NUM_LIT:1> ; String expectedCompletionNodeToString = "<STR_LIT>" ; String expectedParentNodeToString = "<STR_LIT>" ; String completionIdentifier = "<STR_LIT>" ; String expectedReplacedSource = "<STR_LIT>" ; String expectedUnitDisplayString = "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" ; checkDietParse ( str . toCharArray ( ) , cursorLocation , expectedCompletionNodeToString , expectedParentNodeToString , expectedUnitDisplayString , completionIdentifier , expectedReplacedSource , "<STR_LIT>" ) ; } public void test0128_Method ( ) { String str = "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT:}>" ; String completeBehind = "<STR_LIT>" ; int cursorLocation = str . indexOf ( "<STR_LIT>" ) + completeBehind . length ( ) - <NUM_LIT:1> ; String expectedCompletionNodeToString = "<STR_LIT>" ; String expectedParentNodeToString = "<STR_LIT>" ; String completionIdentifier = "<STR_LIT:Z>" ; String expectedReplacedSource = "<STR_LIT:Z>" ; String expectedUnitDisplayString = "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" ; checkMethodParse ( str . toCharArray ( ) , cursorLocation , expectedCompletionNodeToString , expectedParentNodeToString , expectedUnitDisplayString , completionIdentifier , expectedReplacedSource , "<STR_LIT>" ) ; } public void test0129_Diet ( ) { String str = "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT:}>" ; String completeBehind = "<STR_LIT>" ; int cursorLocation = str . indexOf ( "<STR_LIT>" ) + completeBehind . length ( ) - <NUM_LIT:1> ; String expectedCompletionNodeToString = "<STR_LIT>" ; String expectedParentNodeToString = "<STR_LIT>" ; String completionIdentifier = "<STR_LIT>" ; String expectedReplacedSource = "<STR_LIT>" ; String expectedUnitDisplayString = "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" ; checkDietParse ( str . toCharArray ( ) , cursorLocation , expectedCompletionNodeToString , expectedParentNodeToString , expectedUnitDisplayString , completionIdentifier , expectedReplacedSource , "<STR_LIT>" ) ; } public void test0129_Method ( ) { String str = "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT:}>" ; String completeBehind = "<STR_LIT>" ; int cursorLocation = str . indexOf ( "<STR_LIT>" ) + completeBehind . length ( ) - <NUM_LIT:1> ; String expectedCompletionNodeToString = "<STR_LIT>" ; String expectedParentNodeToString = "<STR_LIT>" ; String completionIdentifier = "<STR_LIT:Z>" ; String expectedReplacedSource = "<STR_LIT:Z>" ; String expectedUnitDisplayString = "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" ; checkMethodParse ( str . toCharArray ( ) , cursorLocation , expectedCompletionNodeToString , expectedParentNodeToString , expectedUnitDisplayString , completionIdentifier , expectedReplacedSource , "<STR_LIT>" ) ; } public void test0130_Diet ( ) { String str = "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT:}>" ; String completeBehind = "<STR_LIT>" ; int cursorLocation = str . indexOf ( "<STR_LIT>" ) + completeBehind . length ( ) - <NUM_LIT:1> ; String expectedCompletionNodeToString = "<STR_LIT>" ; String expectedParentNodeToString = "<STR_LIT>" ; String completionIdentifier = "<STR_LIT>" ; String expectedReplacedSource = "<STR_LIT>" ; String expectedUnitDisplayString = "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" ; checkDietParse ( str . toCharArray ( ) , cursorLocation , expectedCompletionNodeToString , expectedParentNodeToString , expectedUnitDisplayString , completionIdentifier , expectedReplacedSource , "<STR_LIT>" ) ; } public void test0130_Method ( ) { String str = "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT:}>" ; String completeBehind = "<STR_LIT>" ; int cursorLocation = str . indexOf ( "<STR_LIT>" ) + completeBehind . length ( ) - <NUM_LIT:1> ; String expectedCompletionNodeToString = "<STR_LIT>" ; String expectedParentNodeToString = "<STR_LIT>" ; String completionIdentifier = "<STR_LIT:Z>" ; String expectedReplacedSource = "<STR_LIT:Z>" ; String expectedUnitDisplayString = "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" ; checkMethodParse ( str . toCharArray ( ) , cursorLocation , expectedCompletionNodeToString , expectedParentNodeToString , expectedUnitDisplayString , completionIdentifier , expectedReplacedSource , "<STR_LIT>" ) ; } public void test0131_Diet ( ) { String str = "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT:}>" ; String completeBehind = "<STR_LIT>" ; int cursorLocation = str . indexOf ( "<STR_LIT>" ) + completeBehind . length ( ) - <NUM_LIT:1> ; String expectedCompletionNodeToString = "<STR_LIT>" ; String expectedParentNodeToString = "<STR_LIT>" ; String completionIdentifier = "<STR_LIT>" ; String expectedReplacedSource = "<STR_LIT>" ; String expectedUnitDisplayString = "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" ; checkDietParse ( str . toCharArray ( ) , cursorLocation , expectedCompletionNodeToString , expectedParentNodeToString , expectedUnitDisplayString , completionIdentifier , expectedReplacedSource , "<STR_LIT>" ) ; } public void test0131_Method ( ) { String str = "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT:}>" ; String completeBehind = "<STR_LIT>" ; int cursorLocation = str . indexOf ( "<STR_LIT>" ) + completeBehind . length ( ) - <NUM_LIT:1> ; String expectedCompletionNodeToString = "<STR_LIT>" ; String expectedParentNodeToString = "<STR_LIT>" ; String completionIdentifier = "<STR_LIT:Z>" ; String expectedReplacedSource = "<STR_LIT:Z>" ; String expectedUnitDisplayString = "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" ; checkMethodParse ( str . toCharArray ( ) , cursorLocation , expectedCompletionNodeToString , expectedParentNodeToString , expectedUnitDisplayString , completionIdentifier , expectedReplacedSource , "<STR_LIT>" ) ; } public void test0132_Diet ( ) { String str = "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT:}>" ; String completeBehind = "<STR_LIT>" ; int cursorLocation = str . indexOf ( "<STR_LIT>" ) + completeBehind . length ( ) - <NUM_LIT:1> ; String expectedCompletionNodeToString = "<STR_LIT>" ; String expectedParentNodeToString = "<STR_LIT>" ; String completionIdentifier = "<STR_LIT>" ; String expectedReplacedSource = "<STR_LIT>" ; String expectedUnitDisplayString = "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" ; checkDietParse ( str . toCharArray ( ) , cursorLocation , expectedCompletionNodeToString , expectedParentNodeToString , expectedUnitDisplayString , completionIdentifier , expectedReplacedSource , "<STR_LIT>" ) ; } public void test0132_Method ( ) { String str = "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT:}>" ; String completeBehind = "<STR_LIT>" ; int cursorLocation = str . indexOf ( "<STR_LIT>" ) + completeBehind . length ( ) - <NUM_LIT:1> ; String expectedCompletionNodeToString = "<STR_LIT>" ; String expectedParentNodeToString = "<STR_LIT>" ; String completionIdentifier = "<STR_LIT:Z>" ; String expectedReplacedSource = "<STR_LIT:Z>" ; String expectedUnitDisplayString = "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" ; checkMethodParse ( str . toCharArray ( ) , cursorLocation , expectedCompletionNodeToString , expectedParentNodeToString , expectedUnitDisplayString , completionIdentifier , expectedReplacedSource , "<STR_LIT>" ) ; } public void test0133_Diet ( ) { String str = "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT:}>" ; String completeBehind = "<STR_LIT>" ; int cursorLocation = str . indexOf ( "<STR_LIT>" ) + completeBehind . length ( ) - <NUM_LIT:1> ; String expectedCompletionNodeToString = "<STR_LIT>" ; String expectedParentNodeToString = "<STR_LIT>" ; String completionIdentifier = "<STR_LIT>" ; String expectedReplacedSource = "<STR_LIT>" ; String expectedUnitDisplayString = "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" ; checkDietParse ( str . toCharArray ( ) , cursorLocation , expectedCompletionNodeToString , expectedParentNodeToString , expectedUnitDisplayString , completionIdentifier , expectedReplacedSource , "<STR_LIT>" ) ; } public void test0133_Method ( ) { String str = "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT:}>" ; String completeBehind = "<STR_LIT>" ; int cursorLocation = str . indexOf ( "<STR_LIT>" ) + completeBehind . length ( ) - <NUM_LIT:1> ; String expectedCompletionNodeToString = "<STR_LIT>" ; String expectedParentNodeToString = "<STR_LIT>" ; String completionIdentifier = "<STR_LIT:Z>" ; String expectedReplacedSource = "<STR_LIT:Z>" ; String expectedUnitDisplayString = "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" ; checkMethodParse ( str . toCharArray ( ) , cursorLocation , expectedCompletionNodeToString , expectedParentNodeToString , expectedUnitDisplayString , completionIdentifier , expectedReplacedSource , "<STR_LIT>" ) ; } public void test0134_Diet ( ) { String str = "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT:}>" ; String completeBehind = "<STR_LIT>" ; int cursorLocation = str . indexOf ( "<STR_LIT>" ) + completeBehind . length ( ) - <NUM_LIT:1> ; String expectedCompletionNodeToString = "<STR_LIT>" ; String expectedParentNodeToString = "<STR_LIT>" ; String completionIdentifier = "<STR_LIT>" ; String expectedReplacedSource = "<STR_LIT>" ; String expectedUnitDisplayString = "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" ; checkDietParse ( str . toCharArray ( ) , cursorLocation , expectedCompletionNodeToString , expectedParentNodeToString , expectedUnitDisplayString , completionIdentifier , expectedReplacedSource , "<STR_LIT>" ) ; } public void test0134_Method ( ) { String str = "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT:}>" ; String completeBehind = "<STR_LIT>" ; int cursorLocation = str . indexOf ( "<STR_LIT>" ) + completeBehind . length ( ) - <NUM_LIT:1> ; String expectedCompletionNodeToString = "<STR_LIT>" ; String expectedParentNodeToString = "<STR_LIT>" ; String completionIdentifier = "<STR_LIT:Z>" ; String expectedReplacedSource = "<STR_LIT:Z>" ; String expectedUnitDisplayString = "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" ; checkMethodParse ( str . toCharArray ( ) , cursorLocation , expectedCompletionNodeToString , expectedParentNodeToString , expectedUnitDisplayString , completionIdentifier , expectedReplacedSource , "<STR_LIT>" ) ; } public void test0135_Diet ( ) { String str = "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT:}>" ; String completeBehind = "<STR_LIT>" ; int cursorLocation = str . indexOf ( "<STR_LIT>" ) + completeBehind . length ( ) - <NUM_LIT:1> ; String expectedCompletionNodeToString = "<STR_LIT>" ; String expectedParentNodeToString = "<STR_LIT>" ; String completionIdentifier = "<STR_LIT>" ; String expectedReplacedSource = "<STR_LIT>" ; String expectedUnitDisplayString = "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" ; checkDietParse ( str . toCharArray ( ) , cursorLocation , expectedCompletionNodeToString , expectedParentNodeToString , expectedUnitDisplayString , completionIdentifier , expectedReplacedSource , "<STR_LIT>" ) ; } public void test0135_Method ( ) { String str = "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT:}>" ; String completeBehind = "<STR_LIT>" ; int cursorLocation = str . indexOf ( "<STR_LIT>" ) + completeBehind . length ( ) - <NUM_LIT:1> ; String expectedCompletionNodeToString = "<STR_LIT>" ; String expectedParentNodeToString = "<STR_LIT>" ; String completionIdentifier = "<STR_LIT:Z>" ; String expectedReplacedSource = "<STR_LIT:Z>" ; String expectedUnitDisplayString = "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" ; checkMethodParse ( str . toCharArray ( ) , cursorLocation , expectedCompletionNodeToString , expectedParentNodeToString , expectedUnitDisplayString , completionIdentifier , expectedReplacedSource , "<STR_LIT>" ) ; } public void test0136_Diet ( ) { String str = "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT:}>" ; String completeBehind = "<STR_LIT>" ; int cursorLocation = str . indexOf ( "<STR_LIT>" ) + completeBehind . length ( ) - <NUM_LIT:1> ; String expectedCompletionNodeToString = "<STR_LIT>" ; String expectedParentNodeToString = "<STR_LIT>" ; String completionIdentifier = "<STR_LIT>" ; String expectedReplacedSource = "<STR_LIT>" ; String expectedUnitDisplayString = "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" ; checkDietParse ( str . toCharArray ( ) , cursorLocation , expectedCompletionNodeToString , expectedParentNodeToString , expectedUnitDisplayString , completionIdentifier , expectedReplacedSource , "<STR_LIT>" ) ; } public void test0136_Method ( ) { String str = "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT:}>" ; String completeBehind = "<STR_LIT>" ; int cursorLocation = str . indexOf ( "<STR_LIT>" ) + completeBehind . length ( ) - <NUM_LIT:1> ; String expectedCompletionNodeToString = "<STR_LIT>" ; String expectedParentNodeToString = "<STR_LIT>" ; String completionIdentifier = "<STR_LIT:Z>" ; String expectedReplacedSource = "<STR_LIT:Z>" ; String expectedUnitDisplayString = "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" ; checkMethodParse ( str . toCharArray ( ) , cursorLocation , expectedCompletionNodeToString , expectedParentNodeToString , expectedUnitDisplayString , completionIdentifier , expectedReplacedSource , "<STR_LIT>" ) ; } public void test0137_Diet ( ) { String str = "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT:}>" ; String completeBehind = "<STR_LIT>" ; int cursorLocation = str . indexOf ( "<STR_LIT>" ) + completeBehind . length ( ) - <NUM_LIT:1> ; String expectedCompletionNodeToString = "<STR_LIT>" ; String expectedParentNodeToString = "<STR_LIT>" ; String completionIdentifier = "<STR_LIT>" ; String expectedReplacedSource = "<STR_LIT>" ; String expectedUnitDisplayString = "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" ; checkDietParse ( str . toCharArray ( ) , cursorLocation , expectedCompletionNodeToString , expectedParentNodeToString , expectedUnitDisplayString , completionIdentifier , expectedReplacedSource , "<STR_LIT>" ) ; } public void test0137_Method ( ) { String str = "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT:}>" ; String completeBehind = "<STR_LIT>" ; int cursorLocation = str . indexOf ( "<STR_LIT>" ) + completeBehind . length ( ) - <NUM_LIT:1> ; String expectedCompletionNodeToString = "<STR_LIT>" ; String expectedParentNodeToString = "<STR_LIT>" ; String completionIdentifier = "<STR_LIT:Z>" ; String expectedReplacedSource = "<STR_LIT:Z>" ; String expectedUnitDisplayString = "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" ; checkMethodParse ( str . toCharArray ( ) , cursorLocation , expectedCompletionNodeToString , expectedParentNodeToString , expectedUnitDisplayString , completionIdentifier , expectedReplacedSource , "<STR_LIT>" ) ; } public void test0138_Diet ( ) { String str = "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT:}>" ; String completeBehind = "<STR_LIT>" ; int cursorLocation = str . indexOf ( "<STR_LIT>" ) + completeBehind . length ( ) - <NUM_LIT:1> ; String expectedCompletionNodeToString = "<STR_LIT>" ; String expectedParentNodeToString = "<STR_LIT>" ; String completionIdentifier = "<STR_LIT>" ; String expectedReplacedSource = "<STR_LIT>" ; String expectedUnitDisplayString = "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" ; checkDietParse ( str . toCharArray ( ) , cursorLocation , expectedCompletionNodeToString , expectedParentNodeToString , expectedUnitDisplayString , completionIdentifier , expectedReplacedSource , "<STR_LIT>" ) ; } public void test0138_Method ( ) { String str = "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT:}>" ; String completeBehind = "<STR_LIT>" ; int cursorLocation = str . indexOf ( "<STR_LIT>" ) + completeBehind . length ( ) - <NUM_LIT:1> ; String expectedCompletionNodeToString = "<STR_LIT>" ; String expectedParentNodeToString = "<STR_LIT>" ; String completionIdentifier = "<STR_LIT:Z>" ; String expectedReplacedSource = "<STR_LIT:Z>" ; String expectedUnitDisplayString = "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" ; checkMethodParse ( str . toCharArray ( ) , cursorLocation , expectedCompletionNodeToString , expectedParentNodeToString , expectedUnitDisplayString , completionIdentifier , expectedReplacedSource , "<STR_LIT>" ) ; } public void test0139_Diet ( ) { String str = "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT:}>" ; String completeBehind = "<STR_LIT>" ; int cursorLocation = str . indexOf ( "<STR_LIT>" ) + completeBehind . length ( ) - <NUM_LIT:1> ; String expectedCompletionNodeToString = "<STR_LIT>" ; String expectedParentNodeToString = "<STR_LIT>" ; String completionIdentifier = "<STR_LIT>" ; String expectedReplacedSource = "<STR_LIT>" ; String expectedUnitDisplayString = "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" ; checkDietParse ( str . toCharArray ( ) , cursorLocation , expectedCompletionNodeToString , expectedParentNodeToString , expectedUnitDisplayString , completionIdentifier , expectedReplacedSource , "<STR_LIT>" ) ; } public void test0139_Method ( ) { String str = "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT:}>" ; String completeBehind = "<STR_LIT>" ; int cursorLocation = str . indexOf ( "<STR_LIT>" ) + completeBehind . length ( ) - <NUM_LIT:1> ; String expectedCompletionNodeToString = "<STR_LIT>" ; String expectedParentNodeToString = "<STR_LIT>" ; String completionIdentifier = "<STR_LIT:Z>" ; String expectedReplacedSource = "<STR_LIT:Z>" ; String expectedUnitDisplayString = "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" ; checkMethodParse ( str . toCharArray ( ) , cursorLocation , expectedCompletionNodeToString , expectedParentNodeToString , expectedUnitDisplayString , completionIdentifier , expectedReplacedSource , "<STR_LIT>" ) ; } public void test0140_Diet ( ) { String str = "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT:}>" ; String completeBehind = "<STR_LIT>" ; int cursorLocation = str . indexOf ( "<STR_LIT>" ) + completeBehind . length ( ) - <NUM_LIT:1> ; String expectedCompletionNodeToString = "<STR_LIT>" ; String expectedParentNodeToString = "<STR_LIT>" ; String completionIdentifier = "<STR_LIT>" ; String expectedReplacedSource = "<STR_LIT>" ; String expectedUnitDisplayString = "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" ; checkDietParse ( str . toCharArray ( ) , cursorLocation , expectedCompletionNodeToString , expectedParentNodeToString , expectedUnitDisplayString , completionIdentifier , expectedReplacedSource , "<STR_LIT>" ) ; } public void test0140_Method ( ) { String str = "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT:}>" ; String completeBehind = "<STR_LIT>" ; int cursorLocation = str . indexOf ( "<STR_LIT>" ) + completeBehind . length ( ) - <NUM_LIT:1> ; String expectedCompletionNodeToString = "<STR_LIT>" ; String expectedParentNodeToString = "<STR_LIT>" ; String completionIdentifier = "<STR_LIT:Z>" ; String expectedReplacedSource = "<STR_LIT:Z>" ; String expectedUnitDisplayString = "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" ; checkMethodParse ( str . toCharArray ( ) , cursorLocation , expectedCompletionNodeToString , expectedParentNodeToString , expectedUnitDisplayString , completionIdentifier , expectedReplacedSource , "<STR_LIT>" ) ; } public void test0141_Diet ( ) { String str = "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT:}>" ; String completeBehind = "<STR_LIT>" ; int cursorLocation = str . indexOf ( "<STR_LIT>" ) + completeBehind . length ( ) - <NUM_LIT:1> ; String expectedCompletionNodeToString = "<STR_LIT>" ; String expectedParentNodeToString = "<STR_LIT>" ; String completionIdentifier = "<STR_LIT>" ; String expectedReplacedSource = "<STR_LIT>" ; String expectedUnitDisplayString = "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" ; checkDietParse ( str . toCharArray ( ) , cursorLocation , expectedCompletionNodeToString , expectedParentNodeToString , expectedUnitDisplayString , completionIdentifier , expectedReplacedSource , "<STR_LIT>" ) ; } public void test0141_Method ( ) { String str = "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT:}>" ; String completeBehind = "<STR_LIT>" ; int cursorLocation = str . indexOf ( "<STR_LIT>" ) + completeBehind . length ( ) - <NUM_LIT:1> ; String expectedCompletionNodeToString = "<STR_LIT>" ; String expectedParentNodeToString = "<STR_LIT>" ; String completionIdentifier = "<STR_LIT:Z>" ; String expectedReplacedSource = "<STR_LIT:Z>" ; String expectedUnitDisplayString = "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" ; checkMethodParse ( str . toCharArray ( ) , cursorLocation , expectedCompletionNodeToString , expectedParentNodeToString , expectedUnitDisplayString , completionIdentifier , expectedReplacedSource , "<STR_LIT>" ) ; } public void test0142_Diet ( ) { String str = "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT:}>" ; String completeBehind = "<STR_LIT>" ; int cursorLocation = str . indexOf ( "<STR_LIT>" ) + completeBehind . length ( ) - <NUM_LIT:1> ; String expectedCompletionNodeToString = "<STR_LIT>" ; String expectedParentNodeToString = "<STR_LIT>" ; String completionIdentifier = "<STR_LIT>" ; String expectedReplacedSource = "<STR_LIT>" ; String expectedUnitDisplayString = "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" ; checkDietParse ( str . toCharArray ( ) , cursorLocation , expectedCompletionNodeToString , expectedParentNodeToString , expectedUnitDisplayString , completionIdentifier , expectedReplacedSource , "<STR_LIT>" ) ; } public void test0142_Method ( ) { String str = "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT:}>" ; String completeBehind = "<STR_LIT>" ; int cursorLocation = str . indexOf ( "<STR_LIT>" ) + completeBehind . length ( ) - <NUM_LIT:1> ; String expectedCompletionNodeToString = "<STR_LIT>" ; String expectedParentNodeToString = "<STR_LIT>" ; String completionIdentifier = "<STR_LIT:Z>" ; String expectedReplacedSource = "<STR_LIT:Z>" ; String expectedUnitDisplayString = "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" ; checkMethodParse ( str . toCharArray ( ) , cursorLocation , expectedCompletionNodeToString , expectedParentNodeToString , expectedUnitDisplayString , completionIdentifier , expectedReplacedSource , "<STR_LIT>" ) ; } public void test0143_Diet ( ) { String str = "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT:}>" ; String completeBehind = "<STR_LIT>" ; int cursorLocation = str . indexOf ( "<STR_LIT>" ) + completeBehind . length ( ) - <NUM_LIT:1> ; String expectedCompletionNodeToString = "<STR_LIT>" ; String expectedParentNodeToString = "<STR_LIT>" ; String completionIdentifier = "<STR_LIT>" ; String expectedReplacedSource = "<STR_LIT>" ; String expectedUnitDisplayString = "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" ; checkDietParse ( str . toCharArray ( ) , cursorLocation , expectedCompletionNodeToString , expectedParentNodeToString , expectedUnitDisplayString , completionIdentifier , expectedReplacedSource , "<STR_LIT>" ) ; } public void test0143_Method ( ) { String str = "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT:}>" ; String completeBehind = "<STR_LIT>" ; int cursorLocation = str . indexOf ( "<STR_LIT>" ) + completeBehind . length ( ) - <NUM_LIT:1> ; String expectedCompletionNodeToString = "<STR_LIT>" ; String expectedParentNodeToString = "<STR_LIT>" ; String completionIdentifier = "<STR_LIT:Z>" ; String expectedReplacedSource = "<STR_LIT:Z>" ; String expectedUnitDisplayString = "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" ; checkMethodParse ( str . toCharArray ( ) , cursorLocation , expectedCompletionNodeToString , expectedParentNodeToString , expectedUnitDisplayString , completionIdentifier , expectedReplacedSource , "<STR_LIT>" ) ; } public void test0144_Diet ( ) { String str = "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT:}>" ; String completeBehind = "<STR_LIT>" ; int cursorLocation = str . indexOf ( "<STR_LIT>" ) + completeBehind . length ( ) - <NUM_LIT:1> ; String expectedCompletionNodeToString = "<STR_LIT>" ; String expectedParentNodeToString = "<STR_LIT>" ; String completionIdentifier = "<STR_LIT>" ; String expectedReplacedSource = "<STR_LIT>" ; String expectedUnitDisplayString = "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" ; checkDietParse ( str . toCharArray ( ) , cursorLocation , expectedCompletionNodeToString , expectedParentNodeToString , expectedUnitDisplayString , completionIdentifier , expectedReplacedSource , "<STR_LIT>" ) ; } public void test0144_Method ( ) { String str = "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT:}>" ; String completeBehind = "<STR_LIT>" ; int cursorLocation = str . indexOf ( "<STR_LIT>" ) + completeBehind . length ( ) - <NUM_LIT:1> ; String expectedCompletionNodeToString = "<STR_LIT>" ; String expectedParentNodeToString = "<STR_LIT>" ; String completionIdentifier = "<STR_LIT:Z>" ; String expectedReplacedSource = "<STR_LIT:Z>" ; String expectedUnitDisplayString = "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" ; checkMethodParse ( str . toCharArray ( ) , cursorLocation , expectedCompletionNodeToString , expectedParentNodeToString , expectedUnitDisplayString , completionIdentifier , expectedReplacedSource , "<STR_LIT>" ) ; } public void test0145_Diet ( ) { String str = "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT:}>" ; String completeBehind = "<STR_LIT>" ; int cursorLocation = str . indexOf ( "<STR_LIT>" ) + completeBehind . length ( ) - <NUM_LIT:1> ; String expectedCompletionNodeToString = "<STR_LIT>" ; String expectedParentNodeToString = "<STR_LIT>" ; String completionIdentifier = "<STR_LIT>" ; String expectedReplacedSource = "<STR_LIT>" ; String expectedUnitDisplayString = "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" ; checkDietParse ( str . toCharArray ( ) , cursorLocation , expectedCompletionNodeToString , expectedParentNodeToString , expectedUnitDisplayString , completionIdentifier , expectedReplacedSource , "<STR_LIT>" ) ; } public void test0145_Method ( ) { String str = "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT:}>" ; String completeBehind = "<STR_LIT>" ; int cursorLocation = str . indexOf ( "<STR_LIT>" ) + completeBehind . length ( ) - <NUM_LIT:1> ; String expectedCompletionNodeToString = "<STR_LIT>" ; String expectedParentNodeToString = "<STR_LIT>" ; String completionIdentifier = "<STR_LIT:Z>" ; String expectedReplacedSource = "<STR_LIT:Z>" ; String expectedUnitDisplayString = "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" ; checkMethodParse ( str . toCharArray ( ) , cursorLocation , expectedCompletionNodeToString , expectedParentNodeToString , expectedUnitDisplayString , completionIdentifier , expectedReplacedSource , "<STR_LIT>" ) ; } public void test0146 ( ) { String str = "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT:}>" ; String completeBehind = "<STR_LIT>" ; int cursorLocation = str . indexOf ( "<STR_LIT>" ) + completeBehind . length ( ) - <NUM_LIT:1> ; String expectedCompletionNodeToString = "<STR_LIT>" ; String expectedParentNodeToString = "<STR_LIT>" ; String completionIdentifier = "<STR_LIT:Z>" ; String expectedReplacedSource = "<STR_LIT:Z>" ; String expectedUnitDisplayString = "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" ; checkDietParse ( str . toCharArray ( ) , cursorLocation , expectedCompletionNodeToString , expectedParentNodeToString , expectedUnitDisplayString , completionIdentifier , expectedReplacedSource , "<STR_LIT>" ) ; } public void test0147 ( ) { String str = "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT:}>" ; String completeBehind = "<STR_LIT>" ; int cursorLocation = str . indexOf ( "<STR_LIT>" ) + completeBehind . length ( ) - <NUM_LIT:1> ; String expectedCompletionNodeToString = "<STR_LIT>" ; String expectedParentNodeToString = "<STR_LIT>" ; String completionIdentifier = "<STR_LIT:Z>" ; String expectedReplacedSource = "<STR_LIT:Z>" ; String expectedUnitDisplayString = "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" ; checkDietParse ( str . toCharArray ( ) , cursorLocation , expectedCompletionNodeToString , expectedParentNodeToString , expectedUnitDisplayString , completionIdentifier , expectedReplacedSource , "<STR_LIT>" ) ; } public void test0148 ( ) { String str = "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT:}>" ; String completeBehind = "<STR_LIT>" ; int cursorLocation = str . indexOf ( "<STR_LIT>" ) + completeBehind . length ( ) - <NUM_LIT:1> ; String expectedCompletionNodeToString = "<STR_LIT>" ; String expectedParentNodeToString = "<STR_LIT>" ; String completionIdentifier = "<STR_LIT:Z>" ; String expectedReplacedSource = "<STR_LIT:Z>" ; String expectedUnitDisplayString = "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" ; checkDietParse ( str . toCharArray ( ) , cursorLocation , expectedCompletionNodeToString , expectedParentNodeToString , expectedUnitDisplayString , completionIdentifier , expectedReplacedSource , "<STR_LIT>" ) ; } public void test0149 ( ) { String str = "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT:}>" ; String completeBehind = "<STR_LIT>" ; int cursorLocation = str . indexOf ( "<STR_LIT>" ) + completeBehind . length ( ) - <NUM_LIT:1> ; String expectedCompletionNodeToString = "<STR_LIT>" ; String expectedParentNodeToString = "<STR_LIT>" ; String completionIdentifier = "<STR_LIT:Z>" ; String expectedReplacedSource = "<STR_LIT:Z>" ; String expectedUnitDisplayString = "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" ; checkDietParse ( str . toCharArray ( ) , cursorLocation , expectedCompletionNodeToString , expectedParentNodeToString , expectedUnitDisplayString , completionIdentifier , expectedReplacedSource , "<STR_LIT>" ) ; } public void test0150 ( ) { String str = "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT:}>" ; String completeBehind = "<STR_LIT>" ; int cursorLocation = str . indexOf ( "<STR_LIT>" ) + completeBehind . length ( ) - <NUM_LIT:1> ; String expectedCompletionNodeToString = "<STR_LIT>" ; String expectedParentNodeToString = "<STR_LIT>" ; String completionIdentifier = "<STR_LIT:Z>" ; String expectedReplacedSource = "<STR_LIT:Z>" ; String expectedUnitDisplayString = "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" ; checkDietParse ( str . toCharArray ( ) , cursorLocation , expectedCompletionNodeToString , expectedParentNodeToString , expectedUnitDisplayString , completionIdentifier , expectedReplacedSource , "<STR_LIT>" ) ; } public void test0151 ( ) { String str = "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT:}>" ; String completeBehind = "<STR_LIT>" ; int cursorLocation = str . indexOf ( "<STR_LIT>" ) + completeBehind . length ( ) - <NUM_LIT:1> ; String expectedCompletionNodeToString = "<STR_LIT>" ; String expectedParentNodeToString = "<STR_LIT>" ; String completionIdentifier = "<STR_LIT:B>" ; String expectedReplacedSource = "<STR_LIT:B>" ; String expectedUnitDisplayString = "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" ; checkDietParse ( str . toCharArray ( ) , cursorLocation , expectedCompletionNodeToString , expectedParentNodeToString , expectedUnitDisplayString , completionIdentifier , expectedReplacedSource , "<STR_LIT>" ) ; } public void test0152 ( ) { String str = "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT:}>" ; String completeBehind = "<STR_LIT>" ; int cursorLocation = str . indexOf ( "<STR_LIT>" ) + completeBehind . length ( ) - <NUM_LIT:1> ; String expectedCompletionNodeToString = "<STR_LIT>" ; String expectedParentNodeToString = "<STR_LIT>" ; String completionIdentifier = "<STR_LIT:B>" ; String expectedReplacedSource = "<STR_LIT:B>" ; String expectedUnitDisplayString = "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" ; checkDietParse ( str . toCharArray ( ) , cursorLocation , expectedCompletionNodeToString , expectedParentNodeToString , expectedUnitDisplayString , completionIdentifier , expectedReplacedSource , "<STR_LIT>" ) ; } public void test0153 ( ) { String str = "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT:}>" ; String completeBehind = "<STR_LIT>" ; int cursorLocation = str . indexOf ( "<STR_LIT>" ) + completeBehind . length ( ) - <NUM_LIT:1> ; String expectedCompletionNodeToString = "<STR_LIT>" ; String expectedParentNodeToString = "<STR_LIT>" ; String completionIdentifier = "<STR_LIT:B>" ; String expectedReplacedSource = "<STR_LIT:B>" ; String expectedUnitDisplayString = "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" ; checkDietParse ( str . toCharArray ( ) , cursorLocation , expectedCompletionNodeToString , expectedParentNodeToString , expectedUnitDisplayString , completionIdentifier , expectedReplacedSource , "<STR_LIT>" ) ; } public void test0154 ( ) { String str = "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT:}>" ; String completeBehind = "<STR_LIT>" ; int cursorLocation = str . indexOf ( "<STR_LIT>" ) + completeBehind . length ( ) - <NUM_LIT:1> ; String expectedCompletionNodeToString = "<STR_LIT>" ; String expectedParentNodeToString = "<STR_LIT>" ; String completionIdentifier = "<STR_LIT:B>" ; String expectedReplacedSource = "<STR_LIT:B>" ; String expectedUnitDisplayString = "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" ; checkDietParse ( str . toCharArray ( ) , cursorLocation , expectedCompletionNodeToString , expectedParentNodeToString , expectedUnitDisplayString , completionIdentifier , expectedReplacedSource , "<STR_LIT>" ) ; } public void test0155 ( ) { String str = "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT:}>" ; String completeBehind = "<STR_LIT>" ; int cursorLocation = str . indexOf ( "<STR_LIT>" ) + completeBehind . length ( ) - <NUM_LIT:1> ; String expectedCompletionNodeToString = "<STR_LIT>" ; String expectedParentNodeToString = "<STR_LIT>" ; String completionIdentifier = "<STR_LIT:Z>" ; String expectedReplacedSource = "<STR_LIT:Z>" ; String expectedUnitDisplayString = "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" ; checkDietParse ( str . toCharArray ( ) , cursorLocation , expectedCompletionNodeToString , expectedParentNodeToString , expectedUnitDisplayString , completionIdentifier , expectedReplacedSource , "<STR_LIT>" ) ; } public void test0156 ( ) { String str = "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT:}>" ; String completeBehind = "<STR_LIT>" ; int cursorLocation = str . indexOf ( "<STR_LIT>" ) + completeBehind . length ( ) - <NUM_LIT:1> ; String expectedCompletionNodeToString = "<STR_LIT>" ; String expectedParentNodeToString = "<STR_LIT>" ; String completionIdentifier = "<STR_LIT:Z>" ; String expectedReplacedSource = "<STR_LIT:Z>" ; String expectedUnitDisplayString = "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" ; checkDietParse ( str . toCharArray ( ) , cursorLocation , expectedCompletionNodeToString , expectedParentNodeToString , expectedUnitDisplayString , completionIdentifier , expectedReplacedSource , "<STR_LIT>" ) ; } public void test0157 ( ) { String str = "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT:}>" ; String completeBehind = "<STR_LIT>" ; int cursorLocation = str . indexOf ( "<STR_LIT>" ) + completeBehind . length ( ) - <NUM_LIT:1> ; String expectedCompletionNodeToString = "<STR_LIT>" ; String expectedParentNodeToString = "<STR_LIT>" ; String completionIdentifier = "<STR_LIT:Z>" ; String expectedReplacedSource = "<STR_LIT:Z>" ; String expectedUnitDisplayString = "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" ; checkDietParse ( str . toCharArray ( ) , cursorLocation , expectedCompletionNodeToString , expectedParentNodeToString , expectedUnitDisplayString , completionIdentifier , expectedReplacedSource , "<STR_LIT>" ) ; } public void test0158 ( ) { String str = "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT:}>" ; String completeBehind = "<STR_LIT>" ; int cursorLocation = str . indexOf ( "<STR_LIT>" ) + completeBehind . length ( ) - <NUM_LIT:1> ; String expectedCompletionNodeToString = "<STR_LIT>" ; String expectedParentNodeToString = "<STR_LIT>" ; String completionIdentifier = "<STR_LIT:Z>" ; String expectedReplacedSource = "<STR_LIT:Z>" ; String expectedUnitDisplayString = "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" ; checkDietParse ( str . toCharArray ( ) , cursorLocation , expectedCompletionNodeToString , expectedParentNodeToString , expectedUnitDisplayString , completionIdentifier , expectedReplacedSource , "<STR_LIT>" ) ; } public void test0159_Diet ( ) { String str = "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT:}>" ; String completeBehind = "<STR_LIT>" ; int cursorLocation = str . indexOf ( "<STR_LIT>" ) + completeBehind . length ( ) - <NUM_LIT:1> ; String expectedCompletionNodeToString = "<STR_LIT>" ; String expectedParentNodeToString = "<STR_LIT>" ; String completionIdentifier = "<STR_LIT>" ; String expectedReplacedSource = "<STR_LIT>" ; String expectedUnitDisplayString = "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" ; checkDietParse ( str . toCharArray ( ) , cursorLocation , expectedCompletionNodeToString , expectedParentNodeToString , expectedUnitDisplayString , completionIdentifier , expectedReplacedSource , "<STR_LIT>" ) ; } public void test0159_Method ( ) { String str = "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT:}>" ; String completeBehind = "<STR_LIT>" ; int cursorLocation = str . indexOf ( "<STR_LIT>" ) + completeBehind . length ( ) - <NUM_LIT:1> ; String expectedCompletionNodeToString = "<STR_LIT>" ; String expectedParentNodeToString = "<STR_LIT>" ; String completionIdentifier = "<STR_LIT:Z>" ; String expectedReplacedSource = "<STR_LIT:Z>" ; String expectedUnitDisplayString = "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" ; checkMethodParse ( str . toCharArray ( ) , cursorLocation , expectedCompletionNodeToString , expectedParentNodeToString , expectedUnitDisplayString , completionIdentifier , expectedReplacedSource , "<STR_LIT>" ) ; } public void test0160_Diet ( ) { String str = "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT:}>" ; String completeBehind = "<STR_LIT>" ; int cursorLocation = str . indexOf ( "<STR_LIT>" ) + completeBehind . length ( ) - <NUM_LIT:1> ; String expectedCompletionNodeToString = "<STR_LIT>" ; String expectedParentNodeToString = "<STR_LIT>" ; String completionIdentifier = "<STR_LIT>" ; String expectedReplacedSource = "<STR_LIT>" ; String expectedUnitDisplayString = "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" ; checkDietParse ( str . toCharArray ( ) , cursorLocation , expectedCompletionNodeToString , expectedParentNodeToString , expectedUnitDisplayString , completionIdentifier , expectedReplacedSource , "<STR_LIT>" ) ; } public void test0160_Method ( ) { String str = "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT:}>" ; String completeBehind = "<STR_LIT>" ; int cursorLocation = str . indexOf ( "<STR_LIT>" ) + completeBehind . length ( ) - <NUM_LIT:1> ; String expectedCompletionNodeToString = "<STR_LIT>" ; String expectedParentNodeToString = "<STR_LIT>" ; String completionIdentifier = "<STR_LIT:Z>" ; String expectedReplacedSource = "<STR_LIT:Z>" ; String expectedUnitDisplayString = "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" ; checkMethodParse ( str . toCharArray ( ) , cursorLocation , expectedCompletionNodeToString , expectedParentNodeToString , expectedUnitDisplayString , completionIdentifier , expectedReplacedSource , "<STR_LIT>" ) ; } public void test0161 ( ) { String str = "<STR_LIT>" + "<STR_LIT:}>" ; String completeBehind = "<STR_LIT:Z>" ; int cursorLocation = str . indexOf ( "<STR_LIT:Z>" ) + completeBehind . length ( ) - <NUM_LIT:1> ; String expectedCompletionNodeToString = "<STR_LIT>" ; String expectedParentNodeToString = "<STR_LIT>" ; String completionIdentifier = "<STR_LIT:Z>" ; String expectedReplacedSource = "<STR_LIT:Z>" ; String expectedUnitDisplayString = "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" ; checkDietParse ( str . toCharArray ( ) , cursorLocation , expectedCompletionNodeToString , expectedParentNodeToString , expectedUnitDisplayString , completionIdentifier , expectedReplacedSource , "<STR_LIT>" ) ; } public void test0162 ( ) { String str = "<STR_LIT>" + "<STR_LIT:}>" ; String completeBehind = "<STR_LIT:Z>" ; int cursorLocation = str . indexOf ( "<STR_LIT:Z>" ) + completeBehind . length ( ) - <NUM_LIT:1> ; String expectedCompletionNodeToString = "<STR_LIT>" ; String expectedParentNodeToString = "<STR_LIT>" ; String completionIdentifier = "<STR_LIT:Z>" ; String expectedReplacedSource = "<STR_LIT>" ; String expectedUnitDisplayString = "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" ; checkDietParse ( str . toCharArray ( ) , cursorLocation , expectedCompletionNodeToString , expectedParentNodeToString , expectedUnitDisplayString , completionIdentifier , expectedReplacedSource , "<STR_LIT>" ) ; } public void test0163 ( ) { String str = "<STR_LIT>" + "<STR_LIT:}>" ; String completeBehind = "<STR_LIT:Z>" ; int cursorLocation = str . indexOf ( "<STR_LIT:Z>" ) + completeBehind . length ( ) - <NUM_LIT:1> ; String expectedCompletionNodeToString = "<STR_LIT>" ; String expectedParentNodeToString = "<STR_LIT>" ; String completionIdentifier = "<STR_LIT:Z>" ; String expectedReplacedSource = "<STR_LIT>" ; String expectedUnitDisplayString = "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" ; checkDietParse ( str . toCharArray ( ) , cursorLocation , expectedCompletionNodeToString , expectedParentNodeToString , expectedUnitDisplayString , completionIdentifier , expectedReplacedSource , "<STR_LIT>" ) ; } public void test0164 ( ) { String str = "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT:}>" ; String completeBehind = "<STR_LIT:Z>" ; int cursorLocation = str . indexOf ( "<STR_LIT:Z>" ) + completeBehind . length ( ) - <NUM_LIT:1> ; String expectedCompletionNodeToString = "<STR_LIT>" ; String expectedParentNodeToString = "<STR_LIT>" ; String completionIdentifier = "<STR_LIT:Z>" ; String expectedReplacedSource = "<STR_LIT>" ; String expectedUnitDisplayString = "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" ; checkDietParse ( str . toCharArray ( ) , cursorLocation , expectedCompletionNodeToString , expectedParentNodeToString , expectedUnitDisplayString , completionIdentifier , expectedReplacedSource , "<STR_LIT>" ) ; } public void test0165_Diet ( ) { String str = "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT:}>" ; String completeBehind = "<STR_LIT>" ; int cursorLocation = str . indexOf ( "<STR_LIT>" ) + completeBehind . length ( ) - <NUM_LIT:1> ; String expectedCompletionNodeToString = "<STR_LIT>" ; String expectedParentNodeToString = "<STR_LIT>" ; String completionIdentifier = "<STR_LIT>" ; String expectedReplacedSource = "<STR_LIT>" ; String expectedUnitDisplayString = "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" ; checkDietParse ( str . toCharArray ( ) , cursorLocation , expectedCompletionNodeToString , expectedParentNodeToString , expectedUnitDisplayString , completionIdentifier , expectedReplacedSource , "<STR_LIT>" ) ; } public void test0165_Method ( ) { String str = "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT:}>" ; String completeBehind = "<STR_LIT>" ; int cursorLocation = str . indexOf ( "<STR_LIT>" ) + completeBehind . length ( ) - <NUM_LIT:1> ; String expectedCompletionNodeToString = "<STR_LIT>" ; String expectedParentNodeToString = "<STR_LIT>" ; String completionIdentifier = "<STR_LIT:Z>" ; String expectedReplacedSource = "<STR_LIT:Z>" ; String expectedUnitDisplayString = "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" ; checkMethodParse ( str . toCharArray ( ) , cursorLocation , expectedCompletionNodeToString , expectedParentNodeToString , expectedUnitDisplayString , completionIdentifier , expectedReplacedSource , "<STR_LIT>" ) ; } public void test0166_Diet ( ) { String str = "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT:}>" ; String completeBehind = "<STR_LIT>" ; int cursorLocation = str . indexOf ( "<STR_LIT>" ) + completeBehind . length ( ) - <NUM_LIT:1> ; String expectedCompletionNodeToString = "<STR_LIT>" ; String expectedParentNodeToString = "<STR_LIT>" ; String completionIdentifier = "<STR_LIT>" ; String expectedReplacedSource = "<STR_LIT>" ; String expectedUnitDisplayString = "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" ; checkDietParse ( str . toCharArray ( ) , cursorLocation , expectedCompletionNodeToString , expectedParentNodeToString , expectedUnitDisplayString , completionIdentifier , expectedReplacedSource , "<STR_LIT>" ) ; } public void test0166_Method ( ) { String str = "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT:}>" ; String completeBehind = "<STR_LIT>" ; int cursorLocation = str . indexOf ( "<STR_LIT>" ) + completeBehind . length ( ) - <NUM_LIT:1> ; String expectedCompletionNodeToString = "<STR_LIT>" ; String expectedParentNodeToString = "<STR_LIT>" ; String completionIdentifier = "<STR_LIT:Z>" ; String expectedReplacedSource = "<STR_LIT:Z>" ; String expectedUnitDisplayString = "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" ; checkMethodParse ( str . toCharArray ( ) , cursorLocation , expectedCompletionNodeToString , expectedParentNodeToString , expectedUnitDisplayString , completionIdentifier , expectedReplacedSource , "<STR_LIT>" ) ; } public void test0167_Diet ( ) { String str = "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT:}>" ; String completeBehind = "<STR_LIT>" ; int cursorLocation = str . indexOf ( "<STR_LIT>" ) + completeBehind . length ( ) - <NUM_LIT:1> ; String expectedCompletionNodeToString = "<STR_LIT>" ; String expectedParentNodeToString = "<STR_LIT>" ; String completionIdentifier = "<STR_LIT>" ; String expectedReplacedSource = "<STR_LIT>" ; String expectedUnitDisplayString = "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" ; checkDietParse ( str . toCharArray ( ) , cursorLocation , expectedCompletionNodeToString , expectedParentNodeToString , expectedUnitDisplayString , completionIdentifier , expectedReplacedSource , "<STR_LIT>" ) ; } public void test0167_Method ( ) { String str = "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT:}>" ; String completeBehind = "<STR_LIT>" ; int cursorLocation = str . indexOf ( "<STR_LIT>" ) + completeBehind . length ( ) - <NUM_LIT:1> ; String expectedCompletionNodeToString = "<STR_LIT>" ; String expectedParentNodeToString = "<STR_LIT>" ; String completionIdentifier = "<STR_LIT>" ; String expectedReplacedSource = "<STR_LIT>" ; String expectedUnitDisplayString = "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" ; checkMethodParse ( str . toCharArray ( ) , cursorLocation , expectedCompletionNodeToString , expectedParentNodeToString , expectedUnitDisplayString , completionIdentifier , expectedReplacedSource , "<STR_LIT>" ) ; } public void test0168_Diet ( ) { String str = "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT:}>" ; String completeBehind = "<STR_LIT>" ; int cursorLocation = str . indexOf ( "<STR_LIT>" ) + completeBehind . length ( ) - <NUM_LIT:1> ; String expectedCompletionNodeToString = "<STR_LIT>" ; String expectedParentNodeToString = "<STR_LIT>" ; String completionIdentifier = "<STR_LIT>" ; String expectedReplacedSource = "<STR_LIT>" ; String expectedUnitDisplayString = "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" ; checkDietParse ( str . toCharArray ( ) , cursorLocation , expectedCompletionNodeToString , expectedParentNodeToString , expectedUnitDisplayString , completionIdentifier , expectedReplacedSource , "<STR_LIT>" ) ; } public void test0168_Method ( ) { String str = "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT:}>" ; String completeBehind = "<STR_LIT>" ; int cursorLocation = str . indexOf ( "<STR_LIT>" ) + completeBehind . length ( ) - <NUM_LIT:1> ; String expectedCompletionNodeToString = "<STR_LIT>" ; String expectedParentNodeToString = "<STR_LIT>" ; String completionIdentifier = "<STR_LIT>" ; String expectedReplacedSource = "<STR_LIT>" ; String expectedUnitDisplayString = "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" ; checkMethodParse ( str . toCharArray ( ) , cursorLocation , expectedCompletionNodeToString , expectedParentNodeToString , expectedUnitDisplayString , completionIdentifier , expectedReplacedSource , "<STR_LIT>" ) ; } public void test0169 ( ) { String str = "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT:}>" ; String completeBehind = "<STR_LIT>" ; int cursorLocation = str . indexOf ( "<STR_LIT>" ) + completeBehind . length ( ) - <NUM_LIT:1> ; String expectedCompletionNodeToString = "<STR_LIT>" ; String expectedParentNodeToString = "<STR_LIT>" ; String completionIdentifier = "<STR_LIT>" ; String expectedReplacedSource = "<STR_LIT>" ; String expectedUnitDisplayString = "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" ; checkDietParse ( str . toCharArray ( ) , cursorLocation , expectedCompletionNodeToString , expectedParentNodeToString , expectedUnitDisplayString , completionIdentifier , expectedReplacedSource , "<STR_LIT>" ) ; } public void test0170 ( ) { String str = "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT:}>" ; String completeBehind = "<STR_LIT:bar>" ; int cursorLocation = str . indexOf ( "<STR_LIT:bar>" ) + completeBehind . length ( ) - <NUM_LIT:1> ; String expectedCompletionNodeToString = "<STR_LIT>" ; String expectedParentNodeToString = "<STR_LIT>" ; String completionIdentifier = "<STR_LIT:bar>" ; String expectedReplacedSource = "<STR_LIT:bar>" ; String expectedUnitDisplayString = "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" ; checkDietParse ( str . toCharArray ( ) , cursorLocation , expectedCompletionNodeToString , expectedParentNodeToString , expectedUnitDisplayString , completionIdentifier , expectedReplacedSource , "<STR_LIT>" ) ; } public void _testXXX2 ( ) { String str = "<STR_LIT>" + "<STR_LIT:}>" ; String completeBehind = "<STR_LIT:Y>" ; int cursorLocation = str . indexOf ( "<STR_LIT:Y>" ) + completeBehind . length ( ) - <NUM_LIT:1> ; String expectedCompletionNodeToString = "<STR_LIT>" ; String expectedParentNodeToString = "<STR_LIT>" ; String completionIdentifier = "<STR_LIT:Z>" ; String expectedReplacedSource = "<STR_LIT:Z>" ; String expectedUnitDisplayString = "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" ; checkDietParse ( str . toCharArray ( ) , cursorLocation , expectedCompletionNodeToString , expectedParentNodeToString , expectedUnitDisplayString , completionIdentifier , expectedReplacedSource , "<STR_LIT>" ) ; } public void test0171_Diet ( ) { String str = "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT:n>" ; String completeBehind = "<STR_LIT:bar>" ; int cursorLocation = str . indexOf ( "<STR_LIT:bar>" ) + completeBehind . length ( ) - <NUM_LIT:1> ; String expectedCompletionNodeToString = "<STR_LIT>" ; String expectedParentNodeToString = "<STR_LIT>" ; String completionIdentifier = "<STR_LIT>" ; String expectedReplacedSource = "<STR_LIT>" ; String expectedUnitDisplayString = "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" ; checkDietParse ( str . toCharArray ( ) , cursorLocation , expectedCompletionNodeToString , expectedParentNodeToString , expectedUnitDisplayString , completionIdentifier , expectedReplacedSource , "<STR_LIT>" ) ; } public void test0171_Method ( ) { String str = "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT:n>" ; String completeBehind = "<STR_LIT:bar>" ; int cursorLocation = str . indexOf ( "<STR_LIT:bar>" ) + completeBehind . length ( ) - <NUM_LIT:1> ; String expectedCompletionNodeToString = "<STR_LIT>" ; String expectedParentNodeToString = "<STR_LIT>" ; String completionIdentifier = "<STR_LIT:bar>" ; String expectedReplacedSource = "<STR_LIT:bar>" ; String expectedUnitDisplayString = "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" ; checkMethodParse ( str . toCharArray ( ) , cursorLocation , expectedCompletionNodeToString , expectedParentNodeToString , expectedUnitDisplayString , completionIdentifier , expectedReplacedSource , "<STR_LIT>" ) ; } public void test0172_Diet ( ) { String str = "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT:n>" ; String completeBehind = "<STR_LIT:bar>" ; int cursorLocation = str . indexOf ( "<STR_LIT:bar>" ) + completeBehind . length ( ) - <NUM_LIT:1> ; String expectedCompletionNodeToString = "<STR_LIT>" ; String expectedParentNodeToString = "<STR_LIT>" ; String completionIdentifier = "<STR_LIT>" ; String expectedReplacedSource = "<STR_LIT>" ; String expectedUnitDisplayString = "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" ; checkDietParse ( str . toCharArray ( ) , cursorLocation , expectedCompletionNodeToString , expectedParentNodeToString , expectedUnitDisplayString , completionIdentifier , expectedReplacedSource , "<STR_LIT>" ) ; } public void test0172_Method ( ) { String str = "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT:n>" ; String completeBehind = "<STR_LIT:bar>" ; int cursorLocation = str . indexOf ( "<STR_LIT:bar>" ) + completeBehind . length ( ) - <NUM_LIT:1> ; String expectedCompletionNodeToString = "<STR_LIT>" ; String expectedParentNodeToString = "<STR_LIT>" ; String completionIdentifier = "<STR_LIT:bar>" ; String expectedReplacedSource = "<STR_LIT:bar>" ; String expectedUnitDisplayString = "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" ; checkMethodParse ( str . toCharArray ( ) , cursorLocation , expectedCompletionNodeToString , expectedParentNodeToString , expectedUnitDisplayString , completionIdentifier , expectedReplacedSource , "<STR_LIT>" ) ; } public void test0173_Diet ( ) { String str = "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT:n>" ; String completeBehind = "<STR_LIT:bar>" ; int cursorLocation = str . indexOf ( "<STR_LIT:bar>" ) + completeBehind . length ( ) - <NUM_LIT:1> ; String expectedCompletionNodeToString = "<STR_LIT>" ; String expectedParentNodeToString = "<STR_LIT>" ; String completionIdentifier = "<STR_LIT>" ; String expectedReplacedSource = "<STR_LIT>" ; String expectedUnitDisplayString = "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" ; checkDietParse ( str . toCharArray ( ) , cursorLocation , expectedCompletionNodeToString , expectedParentNodeToString , expectedUnitDisplayString , completionIdentifier , expectedReplacedSource , "<STR_LIT>" ) ; } public void test0173_Method ( ) { String str = "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT:n>" ; String completeBehind = "<STR_LIT:bar>" ; int cursorLocation = str . indexOf ( "<STR_LIT:bar>" ) + completeBehind . length ( ) - <NUM_LIT:1> ; String expectedCompletionNodeToString = "<STR_LIT>" ; String expectedParentNodeToString = "<STR_LIT>" ; String completionIdentifier = "<STR_LIT:bar>" ; String expectedReplacedSource = "<STR_LIT:bar>" ; String expectedUnitDisplayString = "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" ; checkMethodParse ( str . toCharArray ( ) , cursorLocation , expectedCompletionNodeToString , expectedParentNodeToString , expectedUnitDisplayString , completionIdentifier , expectedReplacedSource , "<STR_LIT>" ) ; } public void test0174_Diet ( ) { String str = "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT:n>" ; String completeBehind = "<STR_LIT:bar>" ; int cursorLocation = str . indexOf ( "<STR_LIT:bar>" ) + completeBehind . length ( ) - <NUM_LIT:1> ; String expectedCompletionNodeToString = "<STR_LIT>" ; String expectedParentNodeToString = "<STR_LIT>" ; String completionIdentifier = "<STR_LIT>" ; String expectedReplacedSource = "<STR_LIT>" ; String expectedUnitDisplayString = "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" ; checkDietParse ( str . toCharArray ( ) , cursorLocation , expectedCompletionNodeToString , expectedParentNodeToString , expectedUnitDisplayString , completionIdentifier , expectedReplacedSource , "<STR_LIT>" ) ; } public void test0174_Method ( ) { String str = "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT:n>" ; String completeBehind = "<STR_LIT:bar>" ; int cursorLocation = str . indexOf ( "<STR_LIT:bar>" ) + completeBehind . length ( ) - <NUM_LIT:1> ; String expectedCompletionNodeToString = "<STR_LIT>" ; String expectedParentNodeToString = "<STR_LIT>" ; String completionIdentifier = "<STR_LIT:bar>" ; String expectedReplacedSource = "<STR_LIT:bar>" ; String expectedUnitDisplayString = "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" ; checkMethodParse ( str . toCharArray ( ) , cursorLocation , expectedCompletionNodeToString , expectedParentNodeToString , expectedUnitDisplayString , completionIdentifier , expectedReplacedSource , "<STR_LIT>" ) ; } public void test0175_Diet ( ) { String str = "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT:n>" ; String completeBehind = "<STR_LIT:bar>" ; int cursorLocation = str . indexOf ( "<STR_LIT:bar>" ) + completeBehind . length ( ) - <NUM_LIT:1> ; String expectedCompletionNodeToString = "<STR_LIT>" ; String expectedParentNodeToString = "<STR_LIT>" ; String completionIdentifier = "<STR_LIT>" ; String expectedReplacedSource = "<STR_LIT>" ; String expectedUnitDisplayString = "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" ; checkDietParse ( str . toCharArray ( ) , cursorLocation , expectedCompletionNodeToString , expectedParentNodeToString , expectedUnitDisplayString , completionIdentifier , expectedReplacedSource , "<STR_LIT>" ) ; } public void test0175_Method ( ) { String str = "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT:n>" ; String completeBehind = "<STR_LIT:bar>" ; int cursorLocation = str . indexOf ( "<STR_LIT:bar>" ) + completeBehind . length ( ) - <NUM_LIT:1> ; String expectedCompletionNodeToString = "<STR_LIT>" ; String expectedParentNodeToString = "<STR_LIT>" ; String completionIdentifier = "<STR_LIT:bar>" ; String expectedReplacedSource = "<STR_LIT:bar>" ; String expectedUnitDisplayString = "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" ; checkMethodParse ( str . toCharArray ( ) , cursorLocation , expectedCompletionNodeToString , expectedParentNodeToString , expectedUnitDisplayString , completionIdentifier , expectedReplacedSource , "<STR_LIT>" ) ; } public void test0176_Diet ( ) { String str = "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT:n>" ; String completeBehind = "<STR_LIT:bar>" ; int cursorLocation = str . indexOf ( "<STR_LIT:bar>" ) + completeBehind . length ( ) - <NUM_LIT:1> ; String expectedCompletionNodeToString = "<STR_LIT>" ; String expectedParentNodeToString = "<STR_LIT>" ; String completionIdentifier = "<STR_LIT>" ; String expectedReplacedSource = "<STR_LIT>" ; String expectedUnitDisplayString = "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" ; checkDietParse ( str . toCharArray ( ) , cursorLocation , expectedCompletionNodeToString , expectedParentNodeToString , expectedUnitDisplayString , completionIdentifier , expectedReplacedSource , "<STR_LIT>" ) ; } public void test0176_Method ( ) { String str = "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT:n>" ; String completeBehind = "<STR_LIT:bar>" ; int cursorLocation = str . indexOf ( "<STR_LIT:bar>" ) + completeBehind . length ( ) - <NUM_LIT:1> ; String expectedCompletionNodeToString = "<STR_LIT>" ; String expectedParentNodeToString = "<STR_LIT>" ; String completionIdentifier = "<STR_LIT:bar>" ; String expectedReplacedSource = "<STR_LIT:bar>" ; String expectedUnitDisplayString = "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" ; checkMethodParse ( str . toCharArray ( ) , cursorLocation , expectedCompletionNodeToString , expectedParentNodeToString , expectedUnitDisplayString , completionIdentifier , expectedReplacedSource , "<STR_LIT>" ) ; } public void test0177 ( ) { String str = "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT:n>" ; String completeBehind = "<STR_LIT>" ; int cursorLocation = str . indexOf ( "<STR_LIT>" ) + completeBehind . length ( ) - <NUM_LIT:1> ; String expectedCompletionNodeToString = "<STR_LIT>" ; String expectedParentNodeToString = "<STR_LIT>" ; String completionIdentifier = "<STR_LIT>" ; String expectedReplacedSource = "<STR_LIT>" ; String expectedUnitDisplayString = "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" ; checkDietParse ( str . toCharArray ( ) , cursorLocation , expectedCompletionNodeToString , expectedParentNodeToString , expectedUnitDisplayString , completionIdentifier , expectedReplacedSource , "<STR_LIT>" ) ; } public void test0178 ( ) { String str = "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT:n>" ; String completeBehind = "<STR_LIT>" ; int cursorLocation = str . indexOf ( "<STR_LIT>" ) + completeBehind . length ( ) - <NUM_LIT:1> ; String expectedCompletionNodeToString = "<STR_LIT>" ; String expectedParentNodeToString = "<STR_LIT>" ; String completionIdentifier = "<STR_LIT>" ; String expectedReplacedSource = "<STR_LIT>" ; String expectedUnitDisplayString = "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" ; checkDietParse ( str . toCharArray ( ) , cursorLocation , expectedCompletionNodeToString , expectedParentNodeToString , expectedUnitDisplayString , completionIdentifier , expectedReplacedSource , "<STR_LIT>" ) ; } public void test0179 ( ) { String str = "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT:n>" ; String completeBehind = "<STR_LIT>" ; int cursorLocation = str . indexOf ( "<STR_LIT>" ) + completeBehind . length ( ) - <NUM_LIT:1> ; String expectedCompletionNodeToString = "<STR_LIT>" ; String expectedParentNodeToString = "<STR_LIT>" ; String completionIdentifier = "<STR_LIT>" ; String expectedReplacedSource = "<STR_LIT>" ; String expectedUnitDisplayString = "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" ; checkDietParse ( str . toCharArray ( ) , cursorLocation , expectedCompletionNodeToString , expectedParentNodeToString , expectedUnitDisplayString , completionIdentifier , expectedReplacedSource , "<STR_LIT>" ) ; } public void test0180 ( ) { String str = "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT:n>" ; String completeBehind = "<STR_LIT>" ; int cursorLocation = str . indexOf ( "<STR_LIT>" ) + completeBehind . length ( ) - <NUM_LIT:1> ; String expectedCompletionNodeToString = "<STR_LIT>" ; String expectedParentNodeToString = "<STR_LIT>" ; String completionIdentifier = "<STR_LIT>" ; String expectedReplacedSource = "<STR_LIT>" ; String expectedUnitDisplayString = "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" ; checkDietParse ( str . toCharArray ( ) , cursorLocation , expectedCompletionNodeToString , expectedParentNodeToString , expectedUnitDisplayString , completionIdentifier , expectedReplacedSource , "<STR_LIT>" ) ; } public void test0181 ( ) { String str = "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT:n>" ; String completeBehind = "<STR_LIT>" ; int cursorLocation = str . indexOf ( "<STR_LIT>" ) + completeBehind . length ( ) - <NUM_LIT:1> ; String expectedCompletionNodeToString = "<STR_LIT>" ; String expectedParentNodeToString = "<STR_LIT>" ; String completionIdentifier = "<STR_LIT>" ; String expectedReplacedSource = "<STR_LIT>" ; String expectedUnitDisplayString = "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" ; checkDietParse ( str . toCharArray ( ) , cursorLocation , expectedCompletionNodeToString , expectedParentNodeToString , expectedUnitDisplayString , completionIdentifier , expectedReplacedSource , "<STR_LIT>" ) ; } public void test0182 ( ) { String str = "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT:n>" ; String completeBehind = "<STR_LIT:X>" ; int cursorLocation = str . indexOf ( "<STR_LIT>" ) + completeBehind . length ( ) - <NUM_LIT:1> ; String expectedCompletionNodeToString = "<STR_LIT>" ; String expectedParentNodeToString = "<STR_LIT>" ; String completionIdentifier = "<STR_LIT:X>" ; String expectedReplacedSource = "<STR_LIT:X>" ; String expectedUnitDisplayString = "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" ; checkDietParse ( str . toCharArray ( ) , cursorLocation , expectedCompletionNodeToString , expectedParentNodeToString , expectedUnitDisplayString , completionIdentifier , expectedReplacedSource , "<STR_LIT>" ) ; } public void test0183 ( ) { String str = "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT:n>" ; String completeBehind = "<STR_LIT:X>" ; int cursorLocation = str . indexOf ( "<STR_LIT>" ) + completeBehind . length ( ) - <NUM_LIT:1> ; String expectedCompletionNodeToString = "<STR_LIT>" ; String expectedParentNodeToString = "<STR_LIT>" ; String completionIdentifier = "<STR_LIT:X>" ; String expectedReplacedSource = "<STR_LIT:X>" ; String expectedUnitDisplayString = "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" ; checkDietParse ( str . toCharArray ( ) , cursorLocation , expectedCompletionNodeToString , expectedParentNodeToString , expectedUnitDisplayString , completionIdentifier , expectedReplacedSource , "<STR_LIT>" ) ; } public void test0184_Diet ( ) { String str = "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT:n>" ; String completeBehind = "<STR_LIT>" ; int cursorLocation = str . indexOf ( "<STR_LIT>" ) + completeBehind . length ( ) - <NUM_LIT:1> ; String expectedCompletionNodeToString = "<STR_LIT>" ; String expectedParentNodeToString = "<STR_LIT>" ; String completionIdentifier = "<STR_LIT>" ; String expectedReplacedSource = "<STR_LIT>" ; String expectedUnitDisplayString = "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" ; checkDietParse ( str . toCharArray ( ) , cursorLocation , expectedCompletionNodeToString , expectedParentNodeToString , expectedUnitDisplayString , completionIdentifier , expectedReplacedSource , "<STR_LIT>" ) ; } public void test0184_Method ( ) { String str = "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT:n>" ; String completeBehind = "<STR_LIT>" ; int cursorLocation = str . indexOf ( "<STR_LIT>" ) + completeBehind . length ( ) - <NUM_LIT:1> ; String expectedCompletionNodeToString = "<STR_LIT>" ; String expectedParentNodeToString = "<STR_LIT>" ; String completionIdentifier = "<STR_LIT>" ; String expectedReplacedSource = "<STR_LIT:String>" ; String expectedUnitDisplayString = "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" ; checkMethodParse ( str . toCharArray ( ) , cursorLocation , expectedCompletionNodeToString , expectedParentNodeToString , expectedUnitDisplayString , completionIdentifier , expectedReplacedSource , "<STR_LIT>" ) ; } public void test0185 ( ) { String str = "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" ; String completeBehind = "<STR_LIT>" ; int cursorLocation = str . indexOf ( "<STR_LIT>" ) + completeBehind . length ( ) - <NUM_LIT:1> ; String expectedCompletionNodeToString = "<STR_LIT>" ; String expectedParentNodeToString = "<STR_LIT>" ; String completionIdentifier = "<STR_LIT>" ; String expectedReplacedSource = "<STR_LIT>" ; String expectedUnitDisplayString = "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" ; checkDietParse ( str . toCharArray ( ) , cursorLocation , expectedCompletionNodeToString , expectedParentNodeToString , expectedUnitDisplayString , completionIdentifier , expectedReplacedSource , "<STR_LIT>" ) ; } public void test0186 ( ) { String str = "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" ; String completeBehind = "<STR_LIT>" ; int cursorLocation = str . indexOf ( "<STR_LIT>" ) + completeBehind . length ( ) - <NUM_LIT:1> ; String expectedCompletionNodeToString = "<STR_LIT>" ; String expectedParentNodeToString = "<STR_LIT>" ; String completionIdentifier = "<STR_LIT>" ; String expectedReplacedSource = "<STR_LIT>" ; String expectedUnitDisplayString = "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" ; checkDietParse ( str . toCharArray ( ) , cursorLocation , expectedCompletionNodeToString , expectedParentNodeToString , expectedUnitDisplayString , completionIdentifier , expectedReplacedSource , "<STR_LIT>" ) ; } public void test0187_Diet ( ) { String str = "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" ; String completeBehind = "<STR_LIT>" ; int cursorLocation = str . indexOf ( "<STR_LIT>" ) + completeBehind . length ( ) - <NUM_LIT:1> ; String expectedCompletionNodeToString = "<STR_LIT>" ; String expectedParentNodeToString = "<STR_LIT>" ; String completionIdentifier = "<STR_LIT>" ; String expectedReplacedSource = "<STR_LIT>" ; String expectedUnitDisplayString = "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" ; checkDietParse ( str . toCharArray ( ) , cursorLocation , expectedCompletionNodeToString , expectedParentNodeToString , expectedUnitDisplayString , completionIdentifier , expectedReplacedSource , "<STR_LIT>" ) ; } public void test0187_Method ( ) { String str = "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" ; String completeBehind = "<STR_LIT>" ; int cursorLocation = str . indexOf ( "<STR_LIT>" ) + completeBehind . length ( ) - <NUM_LIT:1> ; String expectedCompletionNodeToString = "<STR_LIT>" ; String expectedParentNodeToString = "<STR_LIT>" ; String completionIdentifier = "<STR_LIT>" ; String expectedReplacedSource = "<STR_LIT>" ; String expectedUnitDisplayString = "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" ; checkMethodParse ( str . toCharArray ( ) , cursorLocation , expectedCompletionNodeToString , expectedParentNodeToString , expectedUnitDisplayString , completionIdentifier , expectedReplacedSource , "<STR_LIT>" ) ; } public void test0188_Diet ( ) { String str = "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" ; String completeBehind = "<STR_LIT>" ; int cursorLocation = str . indexOf ( "<STR_LIT>" ) + completeBehind . length ( ) - <NUM_LIT:1> ; String expectedCompletionNodeToString = "<STR_LIT>" ; String expectedParentNodeToString = "<STR_LIT>" ; String completionIdentifier = "<STR_LIT>" ; String expectedReplacedSource = "<STR_LIT>" ; String expectedUnitDisplayString = "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" ; checkDietParse ( str . toCharArray ( ) , cursorLocation , expectedCompletionNodeToString , expectedParentNodeToString , expectedUnitDisplayString , completionIdentifier , expectedReplacedSource , "<STR_LIT>" ) ; } public void test0188_Method ( ) { String str = "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" ; String completeBehind = "<STR_LIT>" ; int cursorLocation = str . indexOf ( "<STR_LIT>" ) + completeBehind . length ( ) - <NUM_LIT:1> ; String expectedCompletionNodeToString = "<STR_LIT>" ; String expectedParentNodeToString = "<STR_LIT>" ; String completionIdentifier = "<STR_LIT>" ; String expectedReplacedSource = "<STR_LIT>" ; String expectedUnitDisplayString = "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" ; checkMethodParse ( str . toCharArray ( ) , cursorLocation , expectedCompletionNodeToString , expectedParentNodeToString , expectedUnitDisplayString , completionIdentifier , expectedReplacedSource , "<STR_LIT>" ) ; } public void test0189_Diet ( ) { String str = "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" ; String completeBehind = "<STR_LIT>" ; int cursorLocation = str . indexOf ( "<STR_LIT>" ) + completeBehind . length ( ) - <NUM_LIT:1> ; String expectedCompletionNodeToString = "<STR_LIT>" ; String expectedParentNodeToString = "<STR_LIT>" ; String completionIdentifier = "<STR_LIT>" ; String expectedReplacedSource = "<STR_LIT>" ; String expectedUnitDisplayString = "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" ; checkDietParse ( str . toCharArray ( ) , cursorLocation , expectedCompletionNodeToString , expectedParentNodeToString , expectedUnitDisplayString , completionIdentifier , expectedReplacedSource , "<STR_LIT>" ) ; } public void test0189_Method ( ) { String str = "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" ; String completeBehind = "<STR_LIT>" ; int cursorLocation = str . indexOf ( "<STR_LIT>" ) + completeBehind . length ( ) - <NUM_LIT:1> ; String expectedCompletionNodeToString = "<STR_LIT>" ; String expectedParentNodeToString = "<STR_LIT>" ; String completionIdentifier = "<STR_LIT>" ; String expectedReplacedSource = "<STR_LIT>" ; String expectedUnitDisplayString = "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" ; checkMethodParse ( str . toCharArray ( ) , cursorLocation , expectedCompletionNodeToString , expectedParentNodeToString , expectedUnitDisplayString , completionIdentifier , expectedReplacedSource , "<STR_LIT>" ) ; } public void test0190_Diet ( ) { String str = "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" ; String completeBehind = "<STR_LIT>" ; int cursorLocation = str . indexOf ( "<STR_LIT>" ) + completeBehind . length ( ) - <NUM_LIT:1> ; String expectedCompletionNodeToString = "<STR_LIT>" ; String expectedParentNodeToString = "<STR_LIT>" ; String completionIdentifier = "<STR_LIT>" ; String expectedReplacedSource = "<STR_LIT>" ; String expectedUnitDisplayString = "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" ; checkDietParse ( str . toCharArray ( ) , cursorLocation , expectedCompletionNodeToString , expectedParentNodeToString , expectedUnitDisplayString , completionIdentifier , expectedReplacedSource , "<STR_LIT>" ) ; } public void test0190_Method ( ) { String str = "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" ; String completeBehind = "<STR_LIT>" ; int cursorLocation = str . indexOf ( "<STR_LIT>" ) + completeBehind . length ( ) - <NUM_LIT:1> ; String expectedCompletionNodeToString = "<STR_LIT>" ; String expectedParentNodeToString = "<STR_LIT>" ; String completionIdentifier = "<STR_LIT>" ; String expectedReplacedSource = "<STR_LIT>" ; String expectedUnitDisplayString = "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" ; checkMethodParse ( str . toCharArray ( ) , cursorLocation , expectedCompletionNodeToString , expectedParentNodeToString , expectedUnitDisplayString , completionIdentifier , expectedReplacedSource , "<STR_LIT>" ) ; } public void test0191_Diet ( ) { String str = "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" ; String completeBehind = "<STR_LIT>" ; int cursorLocation = str . indexOf ( "<STR_LIT>" ) + completeBehind . length ( ) - <NUM_LIT:1> ; String expectedCompletionNodeToString = "<STR_LIT>" ; String expectedParentNodeToString = "<STR_LIT>" ; String completionIdentifier = "<STR_LIT>" ; String expectedReplacedSource = "<STR_LIT>" ; String expectedUnitDisplayString = "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" ; checkDietParse ( str . toCharArray ( ) , cursorLocation , expectedCompletionNodeToString , expectedParentNodeToString , expectedUnitDisplayString , completionIdentifier , expectedReplacedSource , "<STR_LIT>" ) ; } public void test0191_Method ( ) { String str = "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" ; String completeBehind = "<STR_LIT>" ; int cursorLocation = str . indexOf ( "<STR_LIT>" ) + completeBehind . length ( ) - <NUM_LIT:1> ; String expectedCompletionNodeToString = "<STR_LIT>" ; String expectedParentNodeToString = "<STR_LIT>" ; String completionIdentifier = "<STR_LIT>" ; String expectedReplacedSource = "<STR_LIT>" ; String expectedUnitDisplayString = "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" ; checkMethodParse ( str . toCharArray ( ) , cursorLocation , expectedCompletionNodeToString , expectedParentNodeToString , expectedUnitDisplayString , completionIdentifier , expectedReplacedSource , "<STR_LIT>" ) ; } public void test0192_Diet ( ) { String str = "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" ; String completeBehind = "<STR_LIT>" ; int cursorLocation = str . indexOf ( "<STR_LIT>" ) + completeBehind . length ( ) - <NUM_LIT:1> ; String expectedCompletionNodeToString = "<STR_LIT>" ; String expectedParentNodeToString = "<STR_LIT>" ; String completionIdentifier = "<STR_LIT>" ; String expectedReplacedSource = "<STR_LIT>" ; String expectedUnitDisplayString = "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" ; checkDietParse ( str . toCharArray ( ) , cursorLocation , expectedCompletionNodeToString , expectedParentNodeToString , expectedUnitDisplayString , completionIdentifier , expectedReplacedSource , "<STR_LIT>" ) ; } public void test0192_Method ( ) { String str = "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" ; String completeBehind = "<STR_LIT>" ; int cursorLocation = str . indexOf ( "<STR_LIT>" ) + completeBehind . length ( ) - <NUM_LIT:1> ; String expectedCompletionNodeToString = "<STR_LIT>" ; String expectedParentNodeToString = "<STR_LIT>" ; String completionIdentifier = "<STR_LIT>" ; String expectedReplacedSource = "<STR_LIT:foo>" ; String expectedUnitDisplayString = "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" ; checkMethodParse ( str . toCharArray ( ) , cursorLocation , expectedCompletionNodeToString , expectedParentNodeToString , expectedUnitDisplayString , completionIdentifier , expectedReplacedSource , "<STR_LIT>" ) ; } public void test0193_Diet ( ) { String str = "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" ; String completeBehind = "<STR_LIT>" ; int cursorLocation = str . indexOf ( "<STR_LIT>" ) + completeBehind . length ( ) - <NUM_LIT:1> ; String expectedCompletionNodeToString = "<STR_LIT>" ; String expectedParentNodeToString = "<STR_LIT>" ; String completionIdentifier = "<STR_LIT>" ; String expectedReplacedSource = "<STR_LIT>" ; String expectedUnitDisplayString = "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" ; checkDietParse ( str . toCharArray ( ) , cursorLocation , expectedCompletionNodeToString , expectedParentNodeToString , expectedUnitDisplayString , completionIdentifier , expectedReplacedSource , "<STR_LIT>" ) ; } public void test0193_Method ( ) { String str = "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" ; String completeBehind = "<STR_LIT>" ; int cursorLocation = str . indexOf ( "<STR_LIT>" ) + completeBehind . length ( ) - <NUM_LIT:1> ; String expectedCompletionNodeToString = "<STR_LIT>" ; String expectedParentNodeToString = "<STR_LIT>" ; String completionIdentifier = "<STR_LIT>" ; String expectedReplacedSource = "<STR_LIT>" ; String expectedUnitDisplayString = "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" ; checkMethodParse ( str . toCharArray ( ) , cursorLocation , expectedCompletionNodeToString , expectedParentNodeToString , expectedUnitDisplayString , completionIdentifier , expectedReplacedSource , "<STR_LIT>" ) ; } public void test0194_Diet ( ) { String str = "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" ; String completeBehind = "<STR_LIT>" ; int cursorLocation = str . indexOf ( "<STR_LIT>" ) + completeBehind . length ( ) - <NUM_LIT:1> ; String expectedCompletionNodeToString = "<STR_LIT>" ; String expectedParentNodeToString = "<STR_LIT>" ; String completionIdentifier = "<STR_LIT>" ; String expectedReplacedSource = "<STR_LIT>" ; String expectedUnitDisplayString = "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" ; checkDietParse ( str . toCharArray ( ) , cursorLocation , expectedCompletionNodeToString , expectedParentNodeToString , expectedUnitDisplayString , completionIdentifier , expectedReplacedSource , "<STR_LIT>" ) ; } public void test0194_Method ( ) { String str = "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" ; String completeBehind = "<STR_LIT>" ; int cursorLocation = str . indexOf ( "<STR_LIT>" ) + completeBehind . length ( ) - <NUM_LIT:1> ; String expectedCompletionNodeToString = "<STR_LIT>" ; String expectedParentNodeToString = "<STR_LIT>" ; String completionIdentifier = "<STR_LIT>" ; String expectedReplacedSource = "<STR_LIT>" ; String expectedUnitDisplayString = "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" ; checkMethodParse ( str . toCharArray ( ) , cursorLocation , expectedCompletionNodeToString , expectedParentNodeToString , expectedUnitDisplayString , completionIdentifier , expectedReplacedSource , "<STR_LIT>" ) ; } public void test0195_Diet ( ) { String str = "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" ; String completeBehind = "<STR_LIT>" ; int cursorLocation = str . indexOf ( "<STR_LIT>" ) + completeBehind . length ( ) - <NUM_LIT:1> ; String expectedCompletionNodeToString = "<STR_LIT>" ; String expectedParentNodeToString = "<STR_LIT>" ; String completionIdentifier = "<STR_LIT>" ; String expectedReplacedSource = "<STR_LIT>" ; String expectedUnitDisplayString = "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" ; checkDietParse ( str . toCharArray ( ) , cursorLocation , expectedCompletionNodeToString , expectedParentNodeToString , expectedUnitDisplayString , completionIdentifier , expectedReplacedSource , "<STR_LIT>" ) ; } public void test0195_Method ( ) { String str = "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" ; String completeBehind = "<STR_LIT>" ; int cursorLocation = str . indexOf ( "<STR_LIT>" ) + completeBehind . length ( ) - <NUM_LIT:1> ; String expectedCompletionNodeToString = "<STR_LIT>" ; String expectedParentNodeToString = "<STR_LIT>" ; String completionIdentifier = "<STR_LIT>" ; String expectedReplacedSource = "<STR_LIT>" ; String expectedUnitDisplayString = "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" ; checkMethodParse ( str . toCharArray ( ) , cursorLocation , expectedCompletionNodeToString , expectedParentNodeToString , expectedUnitDisplayString , completionIdentifier , expectedReplacedSource , "<STR_LIT>" ) ; } public void test0196 ( ) { String str = "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" ; String completeBehind = "<STR_LIT>" ; int cursorLocation = str . indexOf ( "<STR_LIT>" ) + completeBehind . length ( ) - <NUM_LIT:1> ; String expectedCompletionNodeToString = "<STR_LIT>" ; String expectedParentNodeToString = "<STR_LIT>" ; String completionIdentifier = "<STR_LIT>" ; String expectedReplacedSource = "<STR_LIT>" ; String expectedUnitDisplayString = "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" ; checkDietParse ( str . toCharArray ( ) , cursorLocation , expectedCompletionNodeToString , expectedParentNodeToString , expectedUnitDisplayString , completionIdentifier , expectedReplacedSource , "<STR_LIT>" ) ; } public void test0197 ( ) { String str = "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" ; String completeBehind = "<STR_LIT>" ; int cursorLocation = str . indexOf ( "<STR_LIT>" ) + completeBehind . length ( ) - <NUM_LIT:1> ; String expectedCompletionNodeToString = "<STR_LIT>" ; String expectedParentNodeToString = "<STR_LIT>" ; String completionIdentifier = "<STR_LIT>" ; String expectedReplacedSource = "<STR_LIT>" ; String expectedUnitDisplayString = "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" ; checkDietParse ( str . toCharArray ( ) , cursorLocation , expectedCompletionNodeToString , expectedParentNodeToString , expectedUnitDisplayString , completionIdentifier , expectedReplacedSource , "<STR_LIT>" ) ; } public void test0198 ( ) { String str = "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" ; String completeBehind = "<STR_LIT>" ; int cursorLocation = str . indexOf ( "<STR_LIT>" ) + completeBehind . length ( ) - <NUM_LIT:1> ; String expectedCompletionNodeToString = "<STR_LIT>" ; String expectedParentNodeToString = "<STR_LIT>" ; String completionIdentifier = "<STR_LIT>" ; String expectedReplacedSource = "<STR_LIT>" ; String expectedUnitDisplayString = "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" ; checkDietParse ( str . toCharArray ( ) , cursorLocation , expectedCompletionNodeToString , expectedParentNodeToString , expectedUnitDisplayString , completionIdentifier , expectedReplacedSource , "<STR_LIT>" ) ; } public void test0199 ( ) { String str = "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" ; String completeBehind = "<STR_LIT>" ; int cursorLocation = str . indexOf ( "<STR_LIT>" ) + completeBehind . length ( ) - <NUM_LIT:1> ; String expectedCompletionNodeToString = "<STR_LIT>" ; String expectedParentNodeToString = "<STR_LIT>" ; String completionIdentifier = "<STR_LIT>" ; String expectedReplacedSource = "<STR_LIT>" ; String expectedUnitDisplayString = "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" ; checkDietParse ( str . toCharArray ( ) , cursorLocation , expectedCompletionNodeToString , expectedParentNodeToString , expectedUnitDisplayString , completionIdentifier , expectedReplacedSource , "<STR_LIT>" ) ; } public void test0200 ( ) { String str = "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" ; String completeBehind = "<STR_LIT>" ; int cursorLocation = str . indexOf ( "<STR_LIT>" ) + completeBehind . length ( ) - <NUM_LIT:1> ; String expectedCompletionNodeToString = "<STR_LIT>" ; String expectedParentNodeToString = "<STR_LIT>" ; String completionIdentifier = "<STR_LIT>" ; String expectedReplacedSource = "<STR_LIT>" ; String expectedUnitDisplayString = "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" ; checkDietParse ( str . toCharArray ( ) , cursorLocation , expectedCompletionNodeToString , expectedParentNodeToString , expectedUnitDisplayString , completionIdentifier , expectedReplacedSource , "<STR_LIT>" ) ; } public void test0201 ( ) { String str = "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" ; String completeBehind = "<STR_LIT>" ; int cursorLocation = str . indexOf ( "<STR_LIT>" ) + completeBehind . length ( ) - <NUM_LIT:1> ; String expectedCompletionNodeToString = "<STR_LIT>" ; String expectedParentNodeToString = "<STR_LIT>" ; String completionIdentifier = "<STR_LIT>" ; String expectedReplacedSource = "<STR_LIT>" ; String expectedUnitDisplayString = "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" ; checkDietParse ( str . toCharArray ( ) , cursorLocation , expectedCompletionNodeToString , expectedParentNodeToString , expectedUnitDisplayString , completionIdentifier , expectedReplacedSource , "<STR_LIT>" ) ; } public void test0202_Diet ( ) { String str = "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" ; String completeBehind = "<STR_LIT>" ; int cursorLocation = str . indexOf ( "<STR_LIT>" ) + completeBehind . length ( ) - <NUM_LIT:1> ; String expectedCompletionNodeToString = "<STR_LIT>" ; String expectedParentNodeToString = "<STR_LIT>" ; String completionIdentifier = "<STR_LIT>" ; String expectedReplacedSource = "<STR_LIT>" ; String expectedUnitDisplayString = "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" ; checkDietParse ( str . toCharArray ( ) , cursorLocation , expectedCompletionNodeToString , expectedParentNodeToString , expectedUnitDisplayString , completionIdentifier , expectedReplacedSource , "<STR_LIT>" ) ; } public void test0202_Method ( ) { String str = "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" ; String completeBehind = "<STR_LIT>" ; int cursorLocation = str . indexOf ( "<STR_LIT>" ) + completeBehind . length ( ) - <NUM_LIT:1> ; String expectedCompletionNodeToString = "<STR_LIT>" ; String expectedParentNodeToString = "<STR_LIT>" ; String completionIdentifier = "<STR_LIT>" ; String expectedReplacedSource = "<STR_LIT>" ; String expectedUnitDisplayString = "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" ; checkMethodParse ( str . toCharArray ( ) , cursorLocation , expectedCompletionNodeToString , expectedParentNodeToString , expectedUnitDisplayString , completionIdentifier , expectedReplacedSource , "<STR_LIT>" ) ; } public void test0203_Diet ( ) { String str = "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" ; String completeBehind = "<STR_LIT>" ; int cursorLocation = str . indexOf ( "<STR_LIT>" ) + completeBehind . length ( ) - <NUM_LIT:1> ; String expectedCompletionNodeToString = "<STR_LIT>" ; String expectedParentNodeToString = "<STR_LIT>" ; String completionIdentifier = "<STR_LIT>" ; String expectedReplacedSource = "<STR_LIT>" ; String expectedUnitDisplayString = "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" ; checkDietParse ( str . toCharArray ( ) , cursorLocation , expectedCompletionNodeToString , expectedParentNodeToString , expectedUnitDisplayString , completionIdentifier , expectedReplacedSource , "<STR_LIT>" ) ; } public void test0203_Method ( ) { String str = "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" ; String completeBehind = "<STR_LIT>" ; int cursorLocation = str . indexOf ( "<STR_LIT>" ) + completeBehind . length ( ) - <NUM_LIT:1> ; String expectedCompletionNodeToString = "<STR_LIT>" ; String expectedParentNodeToString = "<STR_LIT>" ; String completionIdentifier = "<STR_LIT>" ; String expectedReplacedSource = "<STR_LIT>" ; String expectedUnitDisplayString = "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" ; checkMethodParse ( str . toCharArray ( ) , cursorLocation , expectedCompletionNodeToString , expectedParentNodeToString , expectedUnitDisplayString , completionIdentifier , expectedReplacedSource , "<STR_LIT>" ) ; } public void test0204_Diet ( ) { String str = "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" ; String completeBehind = "<STR_LIT>" ; int cursorLocation = str . indexOf ( "<STR_LIT>" ) + completeBehind . length ( ) - <NUM_LIT:1> ; String expectedCompletionNodeToString = "<STR_LIT>" ; String expectedParentNodeToString = "<STR_LIT>" ; String completionIdentifier = "<STR_LIT>" ; String expectedReplacedSource = "<STR_LIT>" ; String expectedUnitDisplayString = "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" ; checkDietParse ( str . toCharArray ( ) , cursorLocation , expectedCompletionNodeToString , expectedParentNodeToString , expectedUnitDisplayString , completionIdentifier , expectedReplacedSource , "<STR_LIT>" ) ; } public void test0204_Method ( ) { String str = "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" ; String completeBehind = "<STR_LIT>" ; int cursorLocation = str . indexOf ( "<STR_LIT>" ) + completeBehind . length ( ) - <NUM_LIT:1> ; String expectedCompletionNodeToString = "<STR_LIT>" ; String expectedParentNodeToString = "<STR_LIT>" ; String completionIdentifier = "<STR_LIT>" ; String expectedReplacedSource = "<STR_LIT>" ; String expectedUnitDisplayString = "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" ; checkMethodParse ( str . toCharArray ( ) , cursorLocation , expectedCompletionNodeToString , expectedParentNodeToString , expectedUnitDisplayString , completionIdentifier , expectedReplacedSource , "<STR_LIT>" ) ; } public void test0205 ( ) { String str = "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT:}>" ; String completeBehind = "<STR_LIT>" ; int cursorLocation = str . indexOf ( "<STR_LIT>" ) + completeBehind . length ( ) - <NUM_LIT:1> ; String expectedCompletionNodeToString = "<STR_LIT>" ; String expectedParentNodeToString = "<STR_LIT>" ; String completionIdentifier = "<STR_LIT>" ; String expectedReplacedSource = "<STR_LIT>" ; String expectedUnitDisplayString = "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" ; checkDietParse ( str . toCharArray ( ) , cursorLocation , expectedCompletionNodeToString , expectedParentNodeToString , expectedUnitDisplayString , completionIdentifier , expectedReplacedSource , "<STR_LIT>" ) ; } public void test0206_Diet ( ) { String str = "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" ; String completeBehind = "<STR_LIT>" ; int cursorLocation = str . indexOf ( "<STR_LIT>" ) + completeBehind . length ( ) - <NUM_LIT:1> ; String expectedCompletionNodeToString = "<STR_LIT>" ; String expectedParentNodeToString = "<STR_LIT>" ; String completionIdentifier = "<STR_LIT>" ; String expectedReplacedSource = "<STR_LIT>" ; String expectedUnitDisplayString = "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" ; checkDietParse ( str . toCharArray ( ) , cursorLocation , expectedCompletionNodeToString , expectedParentNodeToString , expectedUnitDisplayString , completionIdentifier , expectedReplacedSource , "<STR_LIT>" ) ; } public void test0206_Method ( ) { String str = "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" ; String completeBehind = "<STR_LIT>" ; int cursorLocation = str . indexOf ( "<STR_LIT>" ) + completeBehind . length ( ) - <NUM_LIT:1> ; String expectedCompletionNodeToString = "<STR_LIT>" ; String expectedParentNodeToString = "<STR_LIT>" ; String completionIdentifier = "<STR_LIT>" ; String expectedReplacedSource = "<STR_LIT>" ; String expectedUnitDisplayString = "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" ; checkMethodParse ( str . toCharArray ( ) , cursorLocation , expectedCompletionNodeToString , expectedParentNodeToString , expectedUnitDisplayString , completionIdentifier , expectedReplacedSource , "<STR_LIT>" ) ; } public void test0207_Diet ( ) { String str = "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" ; String completeBehind = "<STR_LIT>" ; int cursorLocation = str . indexOf ( "<STR_LIT>" ) + completeBehind . length ( ) - <NUM_LIT:1> ; String expectedCompletionNodeToString = "<STR_LIT>" ; String expectedParentNodeToString = "<STR_LIT>" ; String completionIdentifier = "<STR_LIT>" ; String expectedReplacedSource = "<STR_LIT>" ; String expectedUnitDisplayString = "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" ; checkDietParse ( str . toCharArray ( ) , cursorLocation , expectedCompletionNodeToString , expectedParentNodeToString , expectedUnitDisplayString , completionIdentifier , expectedReplacedSource , "<STR_LIT>" ) ; } public void test0207_Method ( ) { String str = "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" ; String completeBehind = "<STR_LIT>" ; int cursorLocation = str . indexOf ( "<STR_LIT>" ) + completeBehind . length ( ) - <NUM_LIT:1> ; String expectedCompletionNodeToString = "<STR_LIT>" ; String expectedParentNodeToString = "<STR_LIT>" ; String completionIdentifier = "<STR_LIT>" ; String expectedReplacedSource = "<STR_LIT>" ; String expectedUnitDisplayString = "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" ; checkMethodParse ( str . toCharArray ( ) , cursorLocation , expectedCompletionNodeToString , expectedParentNodeToString , expectedUnitDisplayString , completionIdentifier , expectedReplacedSource , "<STR_LIT>" ) ; } public void test0208_Diet ( ) { String str = "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" ; String completeBehind = "<STR_LIT>" ; int cursorLocation = str . indexOf ( "<STR_LIT>" ) + completeBehind . length ( ) - <NUM_LIT:1> ; String expectedCompletionNodeToString = "<STR_LIT>" ; String expectedParentNodeToString = "<STR_LIT>" ; String completionIdentifier = "<STR_LIT>" ; String expectedReplacedSource = "<STR_LIT>" ; String expectedUnitDisplayString = "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" ; checkDietParse ( str . toCharArray ( ) , cursorLocation , expectedCompletionNodeToString , expectedParentNodeToString , expectedUnitDisplayString , completionIdentifier , expectedReplacedSource , "<STR_LIT>" ) ; } public void test0208_Method ( ) { String str = "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" ; String completeBehind = "<STR_LIT>" ; int cursorLocation = str . indexOf ( "<STR_LIT>" ) + completeBehind . length ( ) - <NUM_LIT:1> ; String expectedCompletionNodeToString = "<STR_LIT>" ; String expectedParentNodeToString = "<STR_LIT>" ; String completionIdentifier = "<STR_LIT>" ; String expectedReplacedSource = "<STR_LIT>" ; String expectedUnitDisplayString = "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" ; checkMethodParse ( str . toCharArray ( ) , cursorLocation , expectedCompletionNodeToString , expectedParentNodeToString , expectedUnitDisplayString , completionIdentifier , expectedReplacedSource , "<STR_LIT>" ) ; } public void test0209_Diet ( ) { String str = "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" ; String completeBehind = "<STR_LIT>" ; int cursorLocation = str . indexOf ( "<STR_LIT>" ) + completeBehind . length ( ) - <NUM_LIT:1> ; String expectedCompletionNodeToString = "<STR_LIT>" ; String expectedParentNodeToString = "<STR_LIT>" ; String completionIdentifier = "<STR_LIT>" ; String expectedReplacedSource = "<STR_LIT>" ; String expectedUnitDisplayString = "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" ; checkDietParse ( str . toCharArray ( ) , cursorLocation , expectedCompletionNodeToString , expectedParentNodeToString , expectedUnitDisplayString , completionIdentifier , expectedReplacedSource , "<STR_LIT>" ) ; } public void test0209_Method ( ) { String str = "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" ; String completeBehind = "<STR_LIT>" ; int cursorLocation = str . indexOf ( "<STR_LIT>" ) + completeBehind . length ( ) - <NUM_LIT:1> ; String expectedCompletionNodeToString = "<STR_LIT>" ; String expectedParentNodeToString = "<STR_LIT>" ; String completionIdentifier = "<STR_LIT>" ; String expectedReplacedSource = "<STR_LIT>" ; String expectedUnitDisplayString = "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" ; checkMethodParse ( str . toCharArray ( ) , cursorLocation , expectedCompletionNodeToString , expectedParentNodeToString , expectedUnitDisplayString , completionIdentifier , expectedReplacedSource , "<STR_LIT>" ) ; } public void test0210_Diet ( ) { String str = "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" ; String completeBehind = "<STR_LIT>" ; int cursorLocation = str . indexOf ( "<STR_LIT>" ) + completeBehind . length ( ) - <NUM_LIT:1> ; String expectedCompletionNodeToString = "<STR_LIT>" ; String expectedParentNodeToString = "<STR_LIT>" ; String completionIdentifier = "<STR_LIT>" ; String expectedReplacedSource = "<STR_LIT>" ; String expectedUnitDisplayString = "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" ; checkDietParse ( str . toCharArray ( ) , cursorLocation , expectedCompletionNodeToString , expectedParentNodeToString , expectedUnitDisplayString , completionIdentifier , expectedReplacedSource , "<STR_LIT>" ) ; } public void test0210_Method ( ) { String str = "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" ; String completeBehind = "<STR_LIT>" ; int cursorLocation = str . indexOf ( "<STR_LIT>" ) + completeBehind . length ( ) - <NUM_LIT:1> ; String expectedCompletionNodeToString = "<STR_LIT>" ; String expectedParentNodeToString = "<STR_LIT>" ; String completionIdentifier = "<STR_LIT>" ; String expectedReplacedSource = "<STR_LIT>" ; String expectedUnitDisplayString = "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" ; checkMethodParse ( str . toCharArray ( ) , cursorLocation , expectedCompletionNodeToString , expectedParentNodeToString , expectedUnitDisplayString , completionIdentifier , expectedReplacedSource , "<STR_LIT>" ) ; } public void test0211 ( ) { String str = "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" ; String completeBehind = "<STR_LIT:Test>" ; int cursorLocation = str . indexOf ( "<STR_LIT>" ) + completeBehind . length ( ) - <NUM_LIT:1> ; String expectedCompletionNodeToString = "<STR_LIT>" ; String expectedParentNodeToString = "<STR_LIT>" ; String completionIdentifier = "<STR_LIT:Test>" ; String expectedReplacedSource = "<STR_LIT:Test>" ; String expectedUnitDisplayString = "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" ; checkDietParse ( str . toCharArray ( ) , cursorLocation , expectedCompletionNodeToString , expectedParentNodeToString , expectedUnitDisplayString , completionIdentifier , expectedReplacedSource , "<STR_LIT>" ) ; } public void test0212 ( ) { String str = "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" ; String completeBehind = "<STR_LIT>" ; int cursorLocation = str . indexOf ( "<STR_LIT>" ) + completeBehind . length ( ) - <NUM_LIT:1> ; String expectedCompletionNodeToString = "<STR_LIT>" ; String expectedParentNodeToString = "<STR_LIT>" ; String completionIdentifier = "<STR_LIT>" ; String expectedReplacedSource = "<STR_LIT>" ; String expectedUnitDisplayString = "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" ; checkDietParse ( str . toCharArray ( ) , cursorLocation , expectedCompletionNodeToString , expectedParentNodeToString , expectedUnitDisplayString , completionIdentifier , expectedReplacedSource , "<STR_LIT>" ) ; } public void test0213_Diet ( ) { String str = "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" ; String completeBehind = "<STR_LIT>" ; int cursorLocation = str . lastIndexOf ( "<STR_LIT>" ) + completeBehind . length ( ) - <NUM_LIT:1> ; String expectedCompletionNodeToString = "<STR_LIT>" ; String expectedParentNodeToString = "<STR_LIT>" ; String completionIdentifier = "<STR_LIT>" ; String expectedReplacedSource = "<STR_LIT>" ; String expectedUnitDisplayString = "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" ; checkDietParse ( str . toCharArray ( ) , cursorLocation , expectedCompletionNodeToString , expectedParentNodeToString , expectedUnitDisplayString , completionIdentifier , expectedReplacedSource , "<STR_LIT>" ) ; } public void test0213_Method ( ) { String str = "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" ; String completeBehind = "<STR_LIT>" ; int cursorLocation = str . lastIndexOf ( "<STR_LIT>" ) + completeBehind . length ( ) - <NUM_LIT:1> ; String expectedCompletionNodeToString = "<STR_LIT>" ; String expectedParentNodeToString = "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT:U+0020U+0020}>" ; String completionIdentifier = "<STR_LIT>" ; String expectedReplacedSource = "<STR_LIT>" ; String expectedUnitDisplayString = "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" ; checkMethodParse ( str . toCharArray ( ) , cursorLocation , expectedCompletionNodeToString , expectedParentNodeToString , expectedUnitDisplayString , completionIdentifier , expectedReplacedSource , "<STR_LIT>" ) ; } public void test0214_Diet ( ) { String str = "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" ; String completeBehind = "<STR_LIT:<>" ; int cursorLocation = str . lastIndexOf ( "<STR_LIT:<>" ) + completeBehind . length ( ) - <NUM_LIT:1> ; String expectedCompletionNodeToString = "<STR_LIT>" ; String expectedParentNodeToString = "<STR_LIT>" ; String completionIdentifier = "<STR_LIT>" ; String expectedReplacedSource = "<STR_LIT>" ; String expectedUnitDisplayString = "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" ; checkDietParse ( str . toCharArray ( ) , cursorLocation , expectedCompletionNodeToString , expectedParentNodeToString , expectedUnitDisplayString , completionIdentifier , expectedReplacedSource , "<STR_LIT>" ) ; } public void test0214_Method ( ) { String str = "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" ; String completeBehind = "<STR_LIT:<>" ; int cursorLocation = str . lastIndexOf ( "<STR_LIT:<>" ) + completeBehind . length ( ) - <NUM_LIT:1> ; String expectedCompletionNodeToString = "<STR_LIT>" ; String expectedParentNodeToString = "<STR_LIT>" ; String completionIdentifier = "<STR_LIT>" ; String expectedReplacedSource = "<STR_LIT>" ; String expectedUnitDisplayString = "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" ; checkMethodParse ( str . toCharArray ( ) , cursorLocation , expectedCompletionNodeToString , expectedParentNodeToString , expectedUnitDisplayString , completionIdentifier , expectedReplacedSource , "<STR_LIT>" ) ; } public void test0215_Diet ( ) { String str = "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" ; String completeBehind = "<STR_LIT>" ; int cursorLocation = str . lastIndexOf ( "<STR_LIT>" ) + completeBehind . length ( ) - <NUM_LIT:1> ; String expectedCompletionNodeToString = "<STR_LIT>" ; String expectedParentNodeToString = "<STR_LIT>" ; String completionIdentifier = "<STR_LIT>" ; String expectedReplacedSource = "<STR_LIT>" ; String expectedUnitDisplayString = "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" ; checkDietParse ( str . toCharArray ( ) , cursorLocation , expectedCompletionNodeToString , expectedParentNodeToString , expectedUnitDisplayString , completionIdentifier , expectedReplacedSource , "<STR_LIT>" ) ; } public void test0215_Method ( ) { String str = "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" ; String completeBehind = "<STR_LIT>" ; int cursorLocation = str . lastIndexOf ( "<STR_LIT>" ) + completeBehind . length ( ) - <NUM_LIT:1> ; String expectedCompletionNodeToString = "<STR_LIT>" ; String expectedParentNodeToString = "<STR_LIT>" ; String completionIdentifier = "<STR_LIT>" ; String expectedReplacedSource = "<STR_LIT>" ; String expectedUnitDisplayString = "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" ; checkMethodParse ( str . toCharArray ( ) , cursorLocation , expectedCompletionNodeToString , expectedParentNodeToString , expectedUnitDisplayString , completionIdentifier , expectedReplacedSource , "<STR_LIT>" ) ; } public void test0216_Diet ( ) { String str = "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" ; String completeBehind = "<STR_LIT>" ; int cursorLocation = str . lastIndexOf ( "<STR_LIT>" ) + completeBehind . length ( ) - <NUM_LIT:1> ; String expectedCompletionNodeToString = "<STR_LIT>" ; String expectedParentNodeToString = "<STR_LIT>" ; String completionIdentifier = "<STR_LIT>" ; String expectedReplacedSource = "<STR_LIT>" ; String expectedUnitDisplayString = "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" ; checkDietParse ( str . toCharArray ( ) , cursorLocation , expectedCompletionNodeToString , expectedParentNodeToString , expectedUnitDisplayString , completionIdentifier , expectedReplacedSource , "<STR_LIT>" ) ; } public void test0217_Method ( ) { String str = "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" ; String completeBehind = "<STR_LIT:foo>" ; int cursorLocation = str . lastIndexOf ( "<STR_LIT:foo>" ) + completeBehind . length ( ) - <NUM_LIT:1> ; String expectedCompletionNodeToString = "<STR_LIT>" ; String expectedParentNodeToString = "<STR_LIT>" ; String completionIdentifier = "<STR_LIT:foo>" ; String expectedReplacedSource = "<STR_LIT:foo>" ; String expectedUnitDisplayString = "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" ; checkMethodParse ( str . toCharArray ( ) , cursorLocation , expectedCompletionNodeToString , expectedParentNodeToString , expectedUnitDisplayString , completionIdentifier , expectedReplacedSource , "<STR_LIT>" ) ; } public void test0218_Diet ( ) { String str = "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" ; String completeBehind = "<STR_LIT>" ; int cursorLocation = str . lastIndexOf ( "<STR_LIT>" ) + completeBehind . length ( ) - <NUM_LIT:1> ; String expectedCompletionNodeToString = "<STR_LIT>" ; String expectedParentNodeToString = "<STR_LIT>" ; String completionIdentifier = "<STR_LIT>" ; String expectedReplacedSource = "<STR_LIT>" ; String expectedUnitDisplayString = "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" ; checkDietParse ( str . toCharArray ( ) , cursorLocation , expectedCompletionNodeToString , expectedParentNodeToString , expectedUnitDisplayString , completionIdentifier , expectedReplacedSource , "<STR_LIT>" ) ; } } </s>
|
<s> package org . eclipse . jdt . core . tests . compiler . parser ; import java . util . ArrayList ; import java . util . List ; import org . eclipse . jdt . core . tests . junit . extension . TestCase ; import org . eclipse . jdt . core . tests . util . AbstractCompilerTest ; import org . eclipse . jdt . internal . compiler . classfmt . ClassFileConstants ; import junit . framework . Test ; import junit . framework . TestSuite ; public class TestAll extends junit . framework . TestCase { public final static List TEST_CLASSES_1_5 = new ArrayList ( ) ; static { TEST_CLASSES_1_5 . addAll ( RunCompletionParserTests . TEST_CLASSES_1_5 ) ; TEST_CLASSES_1_5 . add ( GenericsSelectionTest . class ) ; TEST_CLASSES_1_5 . add ( AnnotationSelectionTest . class ) ; TEST_CLASSES_1_5 . add ( EnumSelectionTest . class ) ; TEST_CLASSES_1_5 . add ( GenericDietRecoveryTest . class ) ; TEST_CLASSES_1_5 . add ( EnumDietRecoveryTest . class ) ; TEST_CLASSES_1_5 . add ( AnnotationDietRecoveryTest . class ) ; TEST_CLASSES_1_5 . add ( StatementRecoveryTest_1_5 . class ) ; } public TestAll ( String testName ) { super ( testName ) ; } public static Test suite ( ) { ArrayList testClasses = new ArrayList ( ) ; testClasses . addAll ( RunCompletionParserTests . TEST_CLASSES ) ; testClasses . add ( ExplicitConstructorInvocationSelectionTest . class ) ; testClasses . add ( SelectionTest . class ) ; testClasses . add ( SelectionTest2 . class ) ; testClasses . add ( SelectionJavadocTest . class ) ; testClasses . add ( DietRecoveryTest . class ) ; testClasses . add ( StatementRecoveryTest . class ) ; testClasses . add ( SourceElementParserTest . class ) ; testClasses . add ( DocumentElementParserTest . class ) ; testClasses . add ( SyntaxErrorTest . class ) ; testClasses . add ( DualParseSyntaxErrorTest . class ) ; testClasses . add ( ParserTest . class ) ; testClasses . add ( ComplianceDiagnoseTest . class ) ; TestSuite all = new TestSuite ( TestAll . class . getName ( ) ) ; int possibleComplianceLevels = AbstractCompilerTest . getPossibleComplianceLevels ( ) ; if ( ( possibleComplianceLevels & AbstractCompilerTest . F_1_3 ) != <NUM_LIT:0> ) { ArrayList tests_1_3 = ( ArrayList ) testClasses . clone ( ) ; TestCase . TESTS_PREFIX = null ; TestCase . TESTS_NAMES = null ; TestCase . TESTS_NUMBERS = null ; TestCase . TESTS_RANGE = null ; TestCase . RUN_ONLY_ID = null ; all . addTest ( AbstractCompilerTest . buildComplianceTestSuite ( ClassFileConstants . JDK1_3 , tests_1_3 ) ) ; } if ( ( possibleComplianceLevels & AbstractCompilerTest . F_1_4 ) != <NUM_LIT:0> ) { ArrayList tests_1_4 = ( ArrayList ) testClasses . clone ( ) ; TestCase . TESTS_PREFIX = null ; TestCase . TESTS_NAMES = null ; TestCase . TESTS_NUMBERS = null ; TestCase . TESTS_RANGE = null ; TestCase . RUN_ONLY_ID = null ; all . addTest ( AbstractCompilerTest . buildComplianceTestSuite ( ClassFileConstants . JDK1_4 , tests_1_4 ) ) ; } if ( ( possibleComplianceLevels & AbstractCompilerTest . F_1_5 ) != <NUM_LIT:0> ) { ArrayList tests_1_5 = ( ArrayList ) testClasses . clone ( ) ; tests_1_5 . addAll ( TEST_CLASSES_1_5 ) ; TestCase . TESTS_PREFIX = null ; TestCase . TESTS_NAMES = null ; TestCase . TESTS_NUMBERS = null ; TestCase . TESTS_RANGE = null ; TestCase . RUN_ONLY_ID = null ; all . addTest ( AbstractCompilerTest . buildComplianceTestSuite ( ClassFileConstants . JDK1_5 , tests_1_5 ) ) ; } if ( ( possibleComplianceLevels & AbstractCompilerTest . F_1_6 ) != <NUM_LIT:0> ) { ArrayList tests_1_6 = ( ArrayList ) testClasses . clone ( ) ; tests_1_6 . addAll ( TEST_CLASSES_1_5 ) ; TestCase . TESTS_PREFIX = null ; TestCase . TESTS_NAMES = null ; TestCase . TESTS_NUMBERS = null ; TestCase . TESTS_RANGE = null ; TestCase . RUN_ONLY_ID = null ; all . addTest ( AbstractCompilerTest . buildComplianceTestSuite ( ClassFileConstants . JDK1_6 , tests_1_6 ) ) ; } if ( ( possibleComplianceLevels & AbstractCompilerTest . F_1_7 ) != <NUM_LIT:0> ) { ArrayList tests_1_7 = ( ArrayList ) testClasses . clone ( ) ; tests_1_7 . addAll ( TEST_CLASSES_1_5 ) ; TestCase . TESTS_PREFIX = null ; TestCase . TESTS_NAMES = null ; TestCase . TESTS_NUMBERS = null ; TestCase . TESTS_RANGE = null ; TestCase . RUN_ONLY_ID = null ; all . addTest ( AbstractCompilerTest . buildComplianceTestSuite ( ClassFileConstants . JDK1_7 , tests_1_7 ) ) ; } return all ; } } </s>
|
<s> package org . eclipse . jdt . core . tests . compiler . parser ; import java . util . Locale ; import java . util . Map ; import junit . framework . Test ; import org . eclipse . jdt . core . tests . util . AbstractCompilerTest ; import org . eclipse . jdt . core . tests . util . Util ; import org . eclipse . jdt . internal . compiler . CompilationResult ; import org . eclipse . jdt . internal . compiler . DefaultErrorHandlingPolicies ; import org . eclipse . jdt . internal . compiler . ast . CompilationUnitDeclaration ; import org . eclipse . jdt . internal . compiler . batch . CompilationUnit ; import org . eclipse . jdt . internal . compiler . classfmt . ClassFileConstants ; import org . eclipse . jdt . internal . compiler . env . ICompilationUnit ; import org . eclipse . jdt . internal . compiler . impl . CompilerOptions ; import org . eclipse . jdt . internal . compiler . parser . Parser ; import org . eclipse . jdt . internal . compiler . problem . DefaultProblemFactory ; import org . eclipse . jdt . internal . compiler . problem . ProblemReporter ; public class StatementRecoveryTest_1_5 extends AbstractCompilerTest { public static final boolean ONLY_DIET_PLUS_BODY_WITH_STATEMENT_RECOVERY = false ; public static boolean optimizeStringLiterals = false ; public static long sourceLevel = ClassFileConstants . JDK1_3 ; static { } public static Test suite ( ) { return buildAllCompliancesTestSuite ( StatementRecoveryTest_1_5 . class ) ; } public StatementRecoveryTest_1_5 ( String testName ) { super ( testName ) ; } public void checkParse ( char [ ] source , String expectedDietUnitToString , String expectedDietWithStatementRecoveryUnitToString , String expectedDietPlusBodyUnitToString , String expectedDietPlusBodyWithStatementRecoveryUnitToString , String expectedFullUnitToString , String expectedFullWithStatementRecoveryUnitToString , String testName ) { if ( ! ONLY_DIET_PLUS_BODY_WITH_STATEMENT_RECOVERY ) { Parser parser = new Parser ( new ProblemReporter ( DefaultErrorHandlingPolicies . proceedWithAllProblems ( ) , new CompilerOptions ( getCompilerOptions ( ) ) , new DefaultProblemFactory ( Locale . getDefault ( ) ) ) , optimizeStringLiterals ) ; parser . setStatementsRecovery ( false ) ; ICompilationUnit sourceUnit = new CompilationUnit ( source , testName , null ) ; CompilationResult compilationResult = new CompilationResult ( sourceUnit , <NUM_LIT:0> , <NUM_LIT:0> , <NUM_LIT:0> ) ; CompilationUnitDeclaration computedUnit = parser . dietParse ( sourceUnit , compilationResult ) ; String computedUnitToString = computedUnit . toString ( ) ; if ( ! expectedDietUnitToString . equals ( computedUnitToString ) ) { System . out . println ( Util . displayString ( computedUnitToString ) ) ; } assertEquals ( "<STR_LIT>" + testName , expectedDietUnitToString , computedUnitToString ) ; } if ( ! ONLY_DIET_PLUS_BODY_WITH_STATEMENT_RECOVERY ) { Parser parser = new Parser ( new ProblemReporter ( DefaultErrorHandlingPolicies . proceedWithAllProblems ( ) , new CompilerOptions ( getCompilerOptions ( ) ) , new DefaultProblemFactory ( Locale . getDefault ( ) ) ) , optimizeStringLiterals ) ; ICompilationUnit sourceUnit = new CompilationUnit ( source , testName , null ) ; CompilationResult compilationResult = new CompilationResult ( sourceUnit , <NUM_LIT:0> , <NUM_LIT:0> , <NUM_LIT:0> ) ; CompilationUnitDeclaration computedUnit = parser . dietParse ( sourceUnit , compilationResult ) ; String computedUnitToString = computedUnit . toString ( ) ; if ( ! expectedDietWithStatementRecoveryUnitToString . equals ( computedUnitToString ) ) { System . out . println ( Util . displayString ( computedUnitToString ) ) ; } assertEquals ( "<STR_LIT>" + testName , expectedDietWithStatementRecoveryUnitToString , computedUnitToString ) ; } if ( ! ONLY_DIET_PLUS_BODY_WITH_STATEMENT_RECOVERY ) { Parser parser = new Parser ( new ProblemReporter ( DefaultErrorHandlingPolicies . proceedWithAllProblems ( ) , new CompilerOptions ( getCompilerOptions ( ) ) , new DefaultProblemFactory ( Locale . getDefault ( ) ) ) , optimizeStringLiterals ) ; parser . setStatementsRecovery ( false ) ; ICompilationUnit sourceUnit = new CompilationUnit ( source , testName , null ) ; CompilationResult compilationResult = new CompilationResult ( sourceUnit , <NUM_LIT:0> , <NUM_LIT:0> , <NUM_LIT:0> ) ; CompilationUnitDeclaration computedUnit = parser . dietParse ( sourceUnit , compilationResult ) ; String computedUnitToString = computedUnit . toString ( ) ; if ( ! expectedDietUnitToString . equals ( computedUnitToString ) ) { System . out . println ( Util . displayString ( computedUnitToString ) ) ; } assertEquals ( "<STR_LIT>" + testName , expectedDietUnitToString , computedUnitToString ) ; if ( computedUnit . types != null ) { for ( int i = <NUM_LIT:0> , length = computedUnit . types . length ; i < length ; i ++ ) { computedUnit . types [ i ] . parseMethods ( parser , computedUnit ) ; } } computedUnitToString = computedUnit . toString ( ) ; if ( ! expectedDietPlusBodyUnitToString . equals ( computedUnitToString ) ) { System . out . println ( Util . displayString ( computedUnitToString ) ) ; } assertEquals ( "<STR_LIT>" + testName , expectedDietPlusBodyUnitToString , computedUnitToString ) ; } { Parser parser = new Parser ( new ProblemReporter ( DefaultErrorHandlingPolicies . proceedWithAllProblems ( ) , new CompilerOptions ( getCompilerOptions ( ) ) , new DefaultProblemFactory ( Locale . getDefault ( ) ) ) , optimizeStringLiterals ) ; ICompilationUnit sourceUnit = new CompilationUnit ( source , testName , null ) ; CompilationResult compilationResult = new CompilationResult ( sourceUnit , <NUM_LIT:0> , <NUM_LIT:0> , <NUM_LIT:0> ) ; CompilationUnitDeclaration computedUnit = parser . dietParse ( sourceUnit , compilationResult ) ; String computedUnitToString = computedUnit . toString ( ) ; if ( ! expectedDietWithStatementRecoveryUnitToString . equals ( computedUnitToString ) ) { System . out . println ( Util . displayString ( computedUnitToString ) ) ; } assertEquals ( "<STR_LIT>" + testName , expectedDietWithStatementRecoveryUnitToString , computedUnitToString ) ; if ( computedUnit . types != null ) { for ( int i = <NUM_LIT:0> , length = computedUnit . types . length ; i < length ; i ++ ) { computedUnit . types [ i ] . parseMethods ( parser , computedUnit ) ; } } computedUnitToString = computedUnit . toString ( ) ; if ( ! expectedDietPlusBodyWithStatementRecoveryUnitToString . equals ( computedUnitToString ) ) { System . out . println ( Util . displayString ( computedUnitToString ) ) ; } assertEquals ( "<STR_LIT>" + testName , expectedDietPlusBodyWithStatementRecoveryUnitToString , computedUnitToString ) ; } if ( ! ONLY_DIET_PLUS_BODY_WITH_STATEMENT_RECOVERY ) { Parser parser = new Parser ( new ProblemReporter ( DefaultErrorHandlingPolicies . proceedWithAllProblems ( ) , new CompilerOptions ( getCompilerOptions ( ) ) , new DefaultProblemFactory ( Locale . getDefault ( ) ) ) , optimizeStringLiterals ) ; parser . setStatementsRecovery ( false ) ; ICompilationUnit sourceUnit = new CompilationUnit ( source , testName , null ) ; CompilationResult compilationResult = new CompilationResult ( sourceUnit , <NUM_LIT:0> , <NUM_LIT:0> , <NUM_LIT:0> ) ; CompilationUnitDeclaration computedUnit = parser . parse ( sourceUnit , compilationResult ) ; String computedUnitToString = computedUnit . toString ( ) ; if ( ! expectedFullUnitToString . equals ( computedUnitToString ) ) { System . out . println ( Util . displayString ( computedUnitToString ) ) ; } assertEquals ( "<STR_LIT>" + testName , expectedFullUnitToString , computedUnitToString ) ; } if ( ! ONLY_DIET_PLUS_BODY_WITH_STATEMENT_RECOVERY ) { Parser parser = new Parser ( new ProblemReporter ( DefaultErrorHandlingPolicies . proceedWithAllProblems ( ) , new CompilerOptions ( getCompilerOptions ( ) ) , new DefaultProblemFactory ( Locale . getDefault ( ) ) ) , optimizeStringLiterals ) ; ICompilationUnit sourceUnit = new CompilationUnit ( source , testName , null ) ; CompilationResult compilationResult = new CompilationResult ( sourceUnit , <NUM_LIT:0> , <NUM_LIT:0> , <NUM_LIT:0> ) ; CompilationUnitDeclaration computedUnit = parser . parse ( sourceUnit , compilationResult ) ; String computedUnitToString = computedUnit . toString ( ) ; if ( ! expectedFullWithStatementRecoveryUnitToString . equals ( computedUnitToString ) ) { System . out . println ( Util . displayString ( computedUnitToString ) ) ; } assertEquals ( "<STR_LIT>" + testName , expectedFullWithStatementRecoveryUnitToString , computedUnitToString ) ; } } protected Map getCompilerOptions ( ) { Map options = super . getCompilerOptions ( ) ; options . put ( CompilerOptions . OPTION_Compliance , CompilerOptions . VERSION_1_5 ) ; options . put ( CompilerOptions . OPTION_Source , CompilerOptions . VERSION_1_5 ) ; options . put ( CompilerOptions . OPTION_TargetPlatform , CompilerOptions . VERSION_1_5 ) ; return options ; } public void test0001 ( ) { String s = "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" ; String expectedDietUnitToString = "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" ; String expectedDietWithStatementRecoveryUnitToString = expectedDietUnitToString ; String expectedDietPlusBodyUnitToString = "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" ; String expectedDietPlusBodyWithStatementRecoveryUnitToString = "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" ; String expectedFullUnitToString = "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" ; String expectedFullWithStatementRecoveryUnitToString = expectedFullUnitToString ; String testName = "<STR_LIT>" ; checkParse ( s . toCharArray ( ) , expectedDietUnitToString , expectedDietWithStatementRecoveryUnitToString , expectedDietPlusBodyUnitToString , expectedDietPlusBodyWithStatementRecoveryUnitToString , expectedFullUnitToString , expectedFullWithStatementRecoveryUnitToString , testName ) ; } public void test0002 ( ) { String s = "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" ; String expectedDietUnitToString = "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" ; String expectedDietWithStatementRecoveryUnitToString = expectedDietUnitToString ; String expectedDietPlusBodyUnitToString = "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" ; String expectedDietPlusBodyWithStatementRecoveryUnitToString = "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" ; String expectedFullUnitToString = expectedDietUnitToString ; String expectedFullWithStatementRecoveryUnitToString = expectedFullUnitToString ; String testName = "<STR_LIT>" ; checkParse ( s . toCharArray ( ) , expectedDietUnitToString , expectedDietWithStatementRecoveryUnitToString , expectedDietPlusBodyUnitToString , expectedDietPlusBodyWithStatementRecoveryUnitToString , expectedFullUnitToString , expectedFullWithStatementRecoveryUnitToString , testName ) ; } public void test0003 ( ) { String s = "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" ; String expectedDietUnitToString = "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" ; String expectedDietWithStatementRecoveryUnitToString = expectedDietUnitToString ; String expectedDietPlusBodyUnitToString = "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" ; String expectedDietPlusBodyWithStatementRecoveryUnitToString = "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" ; String expectedFullUnitToString = expectedDietUnitToString ; String expectedFullWithStatementRecoveryUnitToString = expectedFullUnitToString ; String testName = "<STR_LIT>" ; checkParse ( s . toCharArray ( ) , expectedDietUnitToString , expectedDietWithStatementRecoveryUnitToString , expectedDietPlusBodyUnitToString , expectedDietPlusBodyWithStatementRecoveryUnitToString , expectedFullUnitToString , expectedFullWithStatementRecoveryUnitToString , testName ) ; } public void test0004 ( ) { String s = "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" ; String expectedDietUnitToString = "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" ; String expectedDietWithStatementRecoveryUnitToString = expectedDietUnitToString ; String expectedDietPlusBodyUnitToString = "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" ; String expectedDietPlusBodyWithStatementRecoveryUnitToString = "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" ; String expectedFullUnitToString = expectedDietUnitToString ; String expectedFullWithStatementRecoveryUnitToString = expectedFullUnitToString ; String testName = "<STR_LIT>" ; checkParse ( s . toCharArray ( ) , expectedDietUnitToString , expectedDietWithStatementRecoveryUnitToString , expectedDietPlusBodyUnitToString , expectedDietPlusBodyWithStatementRecoveryUnitToString , expectedFullUnitToString , expectedFullWithStatementRecoveryUnitToString , testName ) ; } public void test0005 ( ) { String s = "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" ; String expectedDietUnitToString = "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" ; String expectedDietWithStatementRecoveryUnitToString = expectedDietUnitToString ; String expectedDietPlusBodyUnitToString = "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" ; String expectedDietPlusBodyWithStatementRecoveryUnitToString = "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" ; String expectedFullUnitToString = expectedDietUnitToString ; String expectedFullWithStatementRecoveryUnitToString = expectedFullUnitToString ; String testName = "<STR_LIT>" ; checkParse ( s . toCharArray ( ) , expectedDietUnitToString , expectedDietWithStatementRecoveryUnitToString , expectedDietPlusBodyUnitToString , expectedDietPlusBodyWithStatementRecoveryUnitToString , expectedFullUnitToString , expectedFullWithStatementRecoveryUnitToString , testName ) ; } public void test0006 ( ) { String s = "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" ; String expectedDietUnitToString = "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" ; String expectedDietWithStatementRecoveryUnitToString = expectedDietUnitToString ; String expectedDietPlusBodyUnitToString = "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" ; String expectedDietPlusBodyWithStatementRecoveryUnitToString = "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" ; String expectedFullUnitToString = expectedDietUnitToString ; String expectedFullWithStatementRecoveryUnitToString = expectedFullUnitToString ; String testName = "<STR_LIT>" ; checkParse ( s . toCharArray ( ) , expectedDietUnitToString , expectedDietWithStatementRecoveryUnitToString , expectedDietPlusBodyUnitToString , expectedDietPlusBodyWithStatementRecoveryUnitToString , expectedFullUnitToString , expectedFullWithStatementRecoveryUnitToString , testName ) ; } public void test0007 ( ) { String s = "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" ; String expectedDietUnitToString = "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" ; String expectedDietWithStatementRecoveryUnitToString = expectedDietUnitToString ; String expectedDietPlusBodyUnitToString = "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" ; String expectedDietPlusBodyWithStatementRecoveryUnitToString = "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" ; String expectedFullUnitToString = expectedDietUnitToString ; String expectedFullWithStatementRecoveryUnitToString = expectedFullUnitToString ; String testName = "<STR_LIT>" ; checkParse ( s . toCharArray ( ) , expectedDietUnitToString , expectedDietWithStatementRecoveryUnitToString , expectedDietPlusBodyUnitToString , expectedDietPlusBodyWithStatementRecoveryUnitToString , expectedFullUnitToString , expectedFullWithStatementRecoveryUnitToString , testName ) ; } } </s>
|
<s> package org . eclipse . jdt . core . tests . compiler . parser ; import junit . framework . Test ; public class MethodInvocationCompletionTest extends AbstractCompletionTest { public MethodInvocationCompletionTest ( String testName ) { super ( testName ) ; } public static Test suite ( ) { return buildAllCompliancesTestSuite ( MethodInvocationCompletionTest . class ) ; } public void test1FVVWS8_1 ( ) { this . runTestCheckMethodParse ( "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" , "<STR_LIT>" , "<STR_LIT>" , "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" , "<STR_LIT>" , "<STR_LIT>" , "<STR_LIT>" ) ; } public void test1FVVWS8_2 ( ) { this . runTestCheckMethodParse ( "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" , "<STR_LIT>" , "<STR_LIT>" , "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" , "<STR_LIT>" , "<STR_LIT>" , "<STR_LIT>" ) ; } public void test1FW2ZTB_1 ( ) { this . runTestCheckMethodParse ( "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" , "<STR_LIT>" , "<STR_LIT>" , "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" , "<STR_LIT>" , "<STR_LIT>" , "<STR_LIT>" ) ; } public void test1FW2ZTB_2 ( ) { this . runTestCheckMethodParse ( "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" , "<STR_LIT>" , "<STR_LIT>" , "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" , "<STR_LIT>" , "<STR_LIT>" , "<STR_LIT>" ) ; } public void test1FW35YZ_1 ( ) { this . runTestCheckMethodParse ( "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" , "<STR_LIT>" , "<STR_LIT>" , "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" , "<STR_LIT>" , "<STR_LIT>" , "<STR_LIT>" ) ; } public void test1FW35YZ_2 ( ) { this . runTestCheckMethodParse ( "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" , "<STR_LIT>" , "<STR_LIT>" , "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" , "<STR_LIT>" , "<STR_LIT>" , "<STR_LIT>" ) ; } public void test1FWYBKF ( ) { this . runTestCheckMethodParse ( "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" , "<STR_LIT>" , "<STR_LIT>" , "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" , "<STR_LIT>" , "<STR_LIT>" , "<STR_LIT>" ) ; } public void test1GAJBUQ ( ) { this . runTestCheckMethodParse ( "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" , "<STR_LIT>" , "<STR_LIT>" , "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" , "<STR_LIT>" , "<STR_LIT>" , "<STR_LIT>" ) ; } public void testAfterEmptyAnonymous ( ) { this . runTestCheckMethodParse ( "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" , "<STR_LIT>" , "<STR_LIT>" , "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" , "<STR_LIT>" , "<STR_LIT>" , "<STR_LIT>" ) ; } public void testAfterFirstParameter ( ) { this . runTestCheckMethodParse ( "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" , "<STR_LIT>" , "<STR_LIT>" , "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" , "<STR_LIT>" , "<STR_LIT>" , "<STR_LIT>" ) ; } public void testBeforeFirstParameter ( ) { this . runTestCheckMethodParse ( "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" , "<STR_LIT>" , "<STR_LIT>" , "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" , "<STR_LIT>" , "<STR_LIT>" , "<STR_LIT>" ) ; } public void testBeforeLastParameter ( ) { this . runTestCheckMethodParse ( "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" , "<STR_LIT>" , "<STR_LIT>" , "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" , "<STR_LIT>" , "<STR_LIT>" , "<STR_LIT>" ) ; } public void testBeforeSecondParameter ( ) { this . runTestCheckMethodParse ( "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" , "<STR_LIT>" , "<STR_LIT>" , "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" , "<STR_LIT>" , "<STR_LIT>" , "<STR_LIT>" ) ; } public void testEmptyInFirstParameter ( ) { this . runTestCheckMethodParse ( "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" , "<STR_LIT>" , "<STR_LIT>" , "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" , "<STR_LIT>" , "<STR_LIT>" , "<STR_LIT>" ) ; } public void testInFirstParameter ( ) { this . runTestCheckMethodParse ( "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" , "<STR_LIT>" , "<STR_LIT>" , "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" , "<STR_LIT>" , "<STR_LIT>" , "<STR_LIT>" ) ; } public void testInIfStatement ( ) { this . runTestCheckMethodParse ( "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" , "<STR_LIT>" , "<STR_LIT>" , "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" , "<STR_LIT>" , "<STR_LIT>" , "<STR_LIT>" ) ; } public void testLabeledWithExpressionReceiver ( ) { this . runTestCheckMethodParse ( "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" , "<STR_LIT>" , "<STR_LIT>" , "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" , "<STR_LIT>" , "<STR_LIT>" , new String [ ] { "<STR_LIT>" } , "<STR_LIT>" ) ; } public void testLabeledWithoutReceiver ( ) { this . runTestCheckMethodParse ( "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" , "<STR_LIT>" , "<STR_LIT>" , "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" , "<STR_LIT>" , "<STR_LIT>" , new String [ ] { "<STR_LIT>" } , "<STR_LIT>" ) ; } public void testNoReceiver ( ) { this . runTestCheckMethodParse ( "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" , "<STR_LIT>" , "<STR_LIT>" , "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" , "<STR_LIT>" , "<STR_LIT>" , "<STR_LIT>" ) ; } public void testSpaceThenFirstParameter ( ) { this . runTestCheckMethodParse ( "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" , "<STR_LIT>" , "<STR_LIT>" , "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" , "<STR_LIT>" , "<STR_LIT>" , "<STR_LIT>" ) ; } public void testSuper ( ) { this . runTestCheckMethodParse ( "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" , "<STR_LIT>" , "<STR_LIT>" , "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" , "<STR_LIT>" , "<STR_LIT>" , "<STR_LIT>" ) ; } public void testWithExpressionReceiver ( ) { this . runTestCheckMethodParse ( "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" , "<STR_LIT>" , "<STR_LIT>" , "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" , "<STR_LIT>" , "<STR_LIT>" , "<STR_LIT>" ) ; } public void testWithNameReceiver ( ) { this . runTestCheckMethodParse ( "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" , "<STR_LIT>" , "<STR_LIT>" , "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" , "<STR_LIT>" , "<STR_LIT>" , "<STR_LIT>" ) ; } public void testWithNameReceiverAfterConditionalExpression ( ) { this . runTestCheckMethodParse ( "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" , "<STR_LIT>" , "<STR_LIT>" , "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" , "<STR_LIT>" , "<STR_LIT>" , new String [ ] { } , "<STR_LIT>" ) ; } public void testWithNameReceiverAndTwoArgs ( ) { this . runTestCheckMethodParse ( "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" , "<STR_LIT>" , "<STR_LIT>" , "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" , "<STR_LIT>" , "<STR_LIT>" , "<STR_LIT>" ) ; } public void testWithQualifiedNameReceiver ( ) { this . runTestCheckMethodParse ( "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" , "<STR_LIT>" , "<STR_LIT>" , "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" , "<STR_LIT>" , "<STR_LIT>" , "<STR_LIT>" ) ; } } </s>
|
<s> package org . eclipse . jdt . core . tests . compiler . parser ; import junit . framework . Test ; public class CompletionParserTest2 extends AbstractCompletionTest { public CompletionParserTest2 ( String testName ) { super ( testName ) ; } public static Test suite ( ) { return buildAllCompliancesTestSuite ( CompletionParserTest2 . class ) ; } public void test0001 ( ) { String str = "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" ; String completeBehind = "<STR_LIT>" ; int cursorLocation = str . indexOf ( "<STR_LIT>" ) + completeBehind . length ( ) - <NUM_LIT:1> ; String expectedCompletionNodeToString = "<STR_LIT>" ; String expectedParentNodeToString = "<STR_LIT>" ; String completionIdentifier = "<STR_LIT>" ; String expectedReplacedSource = "<STR_LIT>" ; String expectedUnitDisplayString = "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" ; checkDietParse ( str . toCharArray ( ) , cursorLocation , expectedCompletionNodeToString , expectedParentNodeToString , expectedUnitDisplayString , completionIdentifier , expectedReplacedSource , "<STR_LIT>" ) ; } public void test0002_Diet ( ) { String str = "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" ; String completeBehind = "<STR_LIT>" ; int cursorLocation = str . indexOf ( "<STR_LIT>" ) + completeBehind . length ( ) - <NUM_LIT:1> ; String expectedCompletionNodeToString = "<STR_LIT>" ; String expectedParentNodeToString = "<STR_LIT>" ; String completionIdentifier = "<STR_LIT>" ; String expectedReplacedSource = "<STR_LIT>" ; String expectedUnitDisplayString = "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" ; checkDietParse ( str . toCharArray ( ) , cursorLocation , expectedCompletionNodeToString , expectedParentNodeToString , expectedUnitDisplayString , completionIdentifier , expectedReplacedSource , "<STR_LIT>" ) ; } public void test0002_Method ( ) { String str = "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" ; String completeBehind = "<STR_LIT>" ; int cursorLocation = str . indexOf ( "<STR_LIT>" ) + completeBehind . length ( ) - <NUM_LIT:1> ; String expectedCompletionNodeToString = "<STR_LIT>" ; String expectedParentNodeToString = "<STR_LIT>" ; String completionIdentifier = "<STR_LIT>" ; String expectedReplacedSource = "<STR_LIT>" ; String expectedUnitDisplayString = "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" ; checkMethodParse ( str . toCharArray ( ) , cursorLocation , expectedCompletionNodeToString , expectedParentNodeToString , expectedUnitDisplayString , completionIdentifier , expectedReplacedSource , "<STR_LIT>" ) ; } public void test0003_Diet ( ) { String str = "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" ; String completeBehind = "<STR_LIT>" ; int cursorLocation = str . indexOf ( "<STR_LIT>" ) + completeBehind . length ( ) - <NUM_LIT:1> ; String expectedCompletionNodeToString = "<STR_LIT>" ; String expectedParentNodeToString = "<STR_LIT>" ; String completionIdentifier = "<STR_LIT>" ; String expectedReplacedSource = "<STR_LIT>" ; String expectedUnitDisplayString = "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" ; checkDietParse ( str . toCharArray ( ) , cursorLocation , expectedCompletionNodeToString , expectedParentNodeToString , expectedUnitDisplayString , completionIdentifier , expectedReplacedSource , "<STR_LIT>" ) ; } public void test0003_Method ( ) { String str = "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" ; String completeBehind = "<STR_LIT>" ; int cursorLocation = str . indexOf ( "<STR_LIT>" ) + completeBehind . length ( ) - <NUM_LIT:1> ; String expectedCompletionNodeToString = "<STR_LIT>" ; String expectedParentNodeToString = "<STR_LIT>" ; String completionIdentifier = "<STR_LIT>" ; String expectedReplacedSource = "<STR_LIT>" ; String expectedUnitDisplayString = "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" ; checkMethodParse ( str . toCharArray ( ) , cursorLocation , expectedCompletionNodeToString , expectedParentNodeToString , expectedUnitDisplayString , completionIdentifier , expectedReplacedSource , "<STR_LIT>" ) ; } public void test0004 ( ) { String str = "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" ; String completeBehind = "<STR_LIT>" ; int cursorLocation = str . indexOf ( "<STR_LIT>" ) + completeBehind . length ( ) - <NUM_LIT:1> ; String expectedCompletionNodeToString = "<STR_LIT>" ; String expectedParentNodeToString = "<STR_LIT>" ; String completionIdentifier = "<STR_LIT>" ; String expectedReplacedSource = "<STR_LIT>" ; String expectedUnitDisplayString = "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" ; checkDietParse ( str . toCharArray ( ) , cursorLocation , expectedCompletionNodeToString , expectedParentNodeToString , expectedUnitDisplayString , completionIdentifier , expectedReplacedSource , "<STR_LIT>" ) ; } public void test0005_Diet ( ) { String str = "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" ; String completeBehind = "<STR_LIT>" ; int cursorLocation = str . indexOf ( "<STR_LIT>" ) + completeBehind . length ( ) - <NUM_LIT:1> ; String expectedCompletionNodeToString = "<STR_LIT>" ; String expectedParentNodeToString = "<STR_LIT>" ; String completionIdentifier = "<STR_LIT>" ; String expectedReplacedSource = "<STR_LIT>" ; String expectedUnitDisplayString = "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" ; checkDietParse ( str . toCharArray ( ) , cursorLocation , expectedCompletionNodeToString , expectedParentNodeToString , expectedUnitDisplayString , completionIdentifier , expectedReplacedSource , "<STR_LIT>" ) ; } public void test0005_Method ( ) { String str = "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" ; String completeBehind = "<STR_LIT>" ; int cursorLocation = str . indexOf ( "<STR_LIT>" ) + completeBehind . length ( ) - <NUM_LIT:1> ; String expectedCompletionNodeToString = "<STR_LIT>" ; String expectedParentNodeToString = "<STR_LIT>" ; String completionIdentifier = "<STR_LIT>" ; String expectedReplacedSource = "<STR_LIT>" ; String expectedUnitDisplayString = "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" ; checkMethodParse ( str . toCharArray ( ) , cursorLocation , expectedCompletionNodeToString , expectedParentNodeToString , expectedUnitDisplayString , completionIdentifier , expectedReplacedSource , "<STR_LIT>" ) ; } public void test0006_Diet ( ) { String str = "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" ; String completeBehind = "<STR_LIT>" ; int cursorLocation = str . indexOf ( "<STR_LIT>" ) + completeBehind . length ( ) - <NUM_LIT:1> ; String expectedCompletionNodeToString = "<STR_LIT>" ; String expectedParentNodeToString = "<STR_LIT>" ; String completionIdentifier = "<STR_LIT>" ; String expectedReplacedSource = "<STR_LIT>" ; String expectedUnitDisplayString = "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" ; checkDietParse ( str . toCharArray ( ) , cursorLocation , expectedCompletionNodeToString , expectedParentNodeToString , expectedUnitDisplayString , completionIdentifier , expectedReplacedSource , "<STR_LIT>" ) ; } public void test0006_Method ( ) { String str = "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" ; String completeBehind = "<STR_LIT>" ; int cursorLocation = str . indexOf ( "<STR_LIT>" ) + completeBehind . length ( ) - <NUM_LIT:1> ; String expectedCompletionNodeToString = "<STR_LIT>" ; String expectedParentNodeToString = "<STR_LIT>" ; String completionIdentifier = "<STR_LIT>" ; String expectedReplacedSource = "<STR_LIT>" ; String expectedUnitDisplayString = "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" ; checkMethodParse ( str . toCharArray ( ) , cursorLocation , expectedCompletionNodeToString , expectedParentNodeToString , expectedUnitDisplayString , completionIdentifier , expectedReplacedSource , "<STR_LIT>" ) ; } public void test0007 ( ) { String str = "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" ; String completeBehind = "<STR_LIT>" ; int cursorLocation = str . indexOf ( "<STR_LIT>" ) + completeBehind . length ( ) - <NUM_LIT:1> ; String expectedCompletionNodeToString = "<STR_LIT>" ; String expectedParentNodeToString = "<STR_LIT>" ; String completionIdentifier = "<STR_LIT>" ; String expectedReplacedSource = "<STR_LIT>" ; String expectedUnitDisplayString = "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" ; checkDietParse ( str . toCharArray ( ) , cursorLocation , expectedCompletionNodeToString , expectedParentNodeToString , expectedUnitDisplayString , completionIdentifier , expectedReplacedSource , "<STR_LIT>" ) ; } public void test0008_Diet ( ) { String str = "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" ; String completeBehind = "<STR_LIT>" ; int cursorLocation = str . indexOf ( "<STR_LIT>" ) + completeBehind . length ( ) - <NUM_LIT:1> ; String expectedCompletionNodeToString = "<STR_LIT>" ; String expectedParentNodeToString = "<STR_LIT>" ; String completionIdentifier = "<STR_LIT>" ; String expectedReplacedSource = "<STR_LIT>" ; String expectedUnitDisplayString = "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" ; checkDietParse ( str . toCharArray ( ) , cursorLocation , expectedCompletionNodeToString , expectedParentNodeToString , expectedUnitDisplayString , completionIdentifier , expectedReplacedSource , "<STR_LIT>" ) ; } public void test0008_Method ( ) { String str = "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" ; String completeBehind = "<STR_LIT>" ; int cursorLocation = str . indexOf ( "<STR_LIT>" ) + completeBehind . length ( ) - <NUM_LIT:1> ; String expectedCompletionNodeToString = "<STR_LIT>" ; String expectedParentNodeToString = "<STR_LIT>" ; String completionIdentifier = "<STR_LIT>" ; String expectedReplacedSource = "<STR_LIT>" ; String expectedUnitDisplayString = "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" ; checkMethodParse ( str . toCharArray ( ) , cursorLocation , expectedCompletionNodeToString , expectedParentNodeToString , expectedUnitDisplayString , completionIdentifier , expectedReplacedSource , "<STR_LIT>" ) ; } public void test0009_Diet ( ) { String str = "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" ; String completeBehind = "<STR_LIT>" ; int cursorLocation = str . indexOf ( "<STR_LIT>" ) + completeBehind . length ( ) - <NUM_LIT:1> ; String expectedCompletionNodeToString = "<STR_LIT>" ; String expectedParentNodeToString = "<STR_LIT>" ; String completionIdentifier = "<STR_LIT>" ; String expectedReplacedSource = "<STR_LIT>" ; String expectedUnitDisplayString = "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" ; checkDietParse ( str . toCharArray ( ) , cursorLocation , expectedCompletionNodeToString , expectedParentNodeToString , expectedUnitDisplayString , completionIdentifier , expectedReplacedSource , "<STR_LIT>" ) ; } public void test0009_Method ( ) { String str = "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" ; String completeBehind = "<STR_LIT>" ; int cursorLocation = str . indexOf ( "<STR_LIT>" ) + completeBehind . length ( ) - <NUM_LIT:1> ; String expectedCompletionNodeToString = "<STR_LIT>" ; String expectedParentNodeToString = "<STR_LIT>" ; String completionIdentifier = "<STR_LIT>" ; String expectedReplacedSource = "<STR_LIT>" ; String expectedUnitDisplayString = "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" ; checkMethodParse ( str . toCharArray ( ) , cursorLocation , expectedCompletionNodeToString , expectedParentNodeToString , expectedUnitDisplayString , completionIdentifier , expectedReplacedSource , "<STR_LIT>" ) ; } public void test0010 ( ) { String str = "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" ; String completeBehind = "<STR_LIT>" ; int cursorLocation = str . indexOf ( "<STR_LIT>" ) + completeBehind . length ( ) - <NUM_LIT:1> ; String expectedCompletionNodeToString = "<STR_LIT>" ; String expectedParentNodeToString = "<STR_LIT>" ; String completionIdentifier = "<STR_LIT>" ; String expectedReplacedSource = "<STR_LIT>" ; String expectedUnitDisplayString = "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" ; checkDietParse ( str . toCharArray ( ) , cursorLocation , expectedCompletionNodeToString , expectedParentNodeToString , expectedUnitDisplayString , completionIdentifier , expectedReplacedSource , "<STR_LIT>" ) ; } public void test0011_Diet ( ) { String str = "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" ; String completeBehind = "<STR_LIT>" ; int cursorLocation = str . indexOf ( "<STR_LIT>" ) + completeBehind . length ( ) - <NUM_LIT:1> ; String expectedCompletionNodeToString = "<STR_LIT>" ; String expectedParentNodeToString = "<STR_LIT>" ; String completionIdentifier = "<STR_LIT>" ; String expectedReplacedSource = "<STR_LIT>" ; String expectedUnitDisplayString = "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" ; checkDietParse ( str . toCharArray ( ) , cursorLocation , expectedCompletionNodeToString , expectedParentNodeToString , expectedUnitDisplayString , completionIdentifier , expectedReplacedSource , "<STR_LIT>" ) ; } public void test0011_Method ( ) { String str = "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" ; String completeBehind = "<STR_LIT>" ; int cursorLocation = str . indexOf ( "<STR_LIT>" ) + completeBehind . length ( ) - <NUM_LIT:1> ; String expectedCompletionNodeToString = "<STR_LIT>" ; String expectedParentNodeToString = "<STR_LIT>" ; String completionIdentifier = "<STR_LIT>" ; String expectedReplacedSource = "<STR_LIT>" ; String expectedUnitDisplayString = "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" ; checkMethodParse ( str . toCharArray ( ) , cursorLocation , expectedCompletionNodeToString , expectedParentNodeToString , expectedUnitDisplayString , completionIdentifier , expectedReplacedSource , "<STR_LIT>" ) ; } public void test0012_Diet ( ) { String str = "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" ; String completeBehind = "<STR_LIT>" ; int cursorLocation = str . indexOf ( "<STR_LIT>" ) + completeBehind . length ( ) - <NUM_LIT:1> ; String expectedCompletionNodeToString = "<STR_LIT>" ; String expectedParentNodeToString = "<STR_LIT>" ; String completionIdentifier = "<STR_LIT>" ; String expectedReplacedSource = "<STR_LIT>" ; String expectedUnitDisplayString = "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" ; checkDietParse ( str . toCharArray ( ) , cursorLocation , expectedCompletionNodeToString , expectedParentNodeToString , expectedUnitDisplayString , completionIdentifier , expectedReplacedSource , "<STR_LIT>" ) ; } public void test0012_Method ( ) { String str = "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" ; String completeBehind = "<STR_LIT>" ; int cursorLocation = str . indexOf ( "<STR_LIT>" ) + completeBehind . length ( ) - <NUM_LIT:1> ; String expectedCompletionNodeToString = "<STR_LIT>" ; String expectedParentNodeToString = "<STR_LIT>" ; String completionIdentifier = "<STR_LIT>" ; String expectedReplacedSource = "<STR_LIT>" ; String expectedUnitDisplayString = "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" ; checkMethodParse ( str . toCharArray ( ) , cursorLocation , expectedCompletionNodeToString , expectedParentNodeToString , expectedUnitDisplayString , completionIdentifier , expectedReplacedSource , "<STR_LIT>" ) ; } public void test0013 ( ) { String str = "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" ; String completeBehind = "<STR_LIT>" ; int cursorLocation = str . indexOf ( "<STR_LIT>" ) + completeBehind . length ( ) - <NUM_LIT:1> ; String expectedCompletionNodeToString = "<STR_LIT>" ; String expectedParentNodeToString = "<STR_LIT>" ; String completionIdentifier = "<STR_LIT>" ; String expectedReplacedSource = "<STR_LIT>" ; String expectedUnitDisplayString = "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" ; checkDietParse ( str . toCharArray ( ) , cursorLocation , expectedCompletionNodeToString , expectedParentNodeToString , expectedUnitDisplayString , completionIdentifier , expectedReplacedSource , "<STR_LIT>" ) ; } public void test0014_Diet ( ) { String str = "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" ; String completeBehind = "<STR_LIT>" ; int cursorLocation = str . indexOf ( "<STR_LIT>" ) + completeBehind . length ( ) - <NUM_LIT:1> ; String expectedCompletionNodeToString = "<STR_LIT>" ; String expectedParentNodeToString = "<STR_LIT>" ; String completionIdentifier = "<STR_LIT>" ; String expectedReplacedSource = "<STR_LIT>" ; String expectedUnitDisplayString = "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" ; checkDietParse ( str . toCharArray ( ) , cursorLocation , expectedCompletionNodeToString , expectedParentNodeToString , expectedUnitDisplayString , completionIdentifier , expectedReplacedSource , "<STR_LIT>" ) ; } public void test0014_Method ( ) { String str = "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" ; String completeBehind = "<STR_LIT>" ; int cursorLocation = str . indexOf ( "<STR_LIT>" ) + completeBehind . length ( ) - <NUM_LIT:1> ; String expectedCompletionNodeToString = "<STR_LIT>" ; String expectedParentNodeToString = "<STR_LIT>" ; String completionIdentifier = "<STR_LIT>" ; String expectedReplacedSource = "<STR_LIT>" ; String expectedUnitDisplayString = "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" ; checkMethodParse ( str . toCharArray ( ) , cursorLocation , expectedCompletionNodeToString , expectedParentNodeToString , expectedUnitDisplayString , completionIdentifier , expectedReplacedSource , "<STR_LIT>" ) ; } public void test0015_Diet ( ) { String str = "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" ; String completeBehind = "<STR_LIT>" ; int cursorLocation = str . indexOf ( "<STR_LIT>" ) + completeBehind . length ( ) - <NUM_LIT:1> ; String expectedCompletionNodeToString = "<STR_LIT>" ; String expectedParentNodeToString = "<STR_LIT>" ; String completionIdentifier = "<STR_LIT>" ; String expectedReplacedSource = "<STR_LIT>" ; String expectedUnitDisplayString = "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" ; checkDietParse ( str . toCharArray ( ) , cursorLocation , expectedCompletionNodeToString , expectedParentNodeToString , expectedUnitDisplayString , completionIdentifier , expectedReplacedSource , "<STR_LIT>" ) ; } public void test0015_Method ( ) { String str = "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" ; String completeBehind = "<STR_LIT>" ; int cursorLocation = str . indexOf ( "<STR_LIT>" ) + completeBehind . length ( ) - <NUM_LIT:1> ; String expectedCompletionNodeToString = "<STR_LIT>" ; String expectedParentNodeToString = "<STR_LIT>" ; String completionIdentifier = "<STR_LIT>" ; String expectedReplacedSource = "<STR_LIT>" ; String expectedUnitDisplayString = "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" ; checkMethodParse ( str . toCharArray ( ) , cursorLocation , expectedCompletionNodeToString , expectedParentNodeToString , expectedUnitDisplayString , completionIdentifier , expectedReplacedSource , "<STR_LIT>" ) ; } public void test0016 ( ) { String str = "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" ; String completeBehind = "<STR_LIT>" ; int cursorLocation = str . indexOf ( "<STR_LIT>" ) + completeBehind . length ( ) - <NUM_LIT:1> ; String expectedCompletionNodeToString = "<STR_LIT>" ; String expectedParentNodeToString = "<STR_LIT>" ; String completionIdentifier = "<STR_LIT>" ; String expectedReplacedSource = "<STR_LIT>" ; String expectedUnitDisplayString = "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" ; checkDietParse ( str . toCharArray ( ) , cursorLocation , expectedCompletionNodeToString , expectedParentNodeToString , expectedUnitDisplayString , completionIdentifier , expectedReplacedSource , "<STR_LIT>" ) ; } public void test0017_Diet ( ) { String str = "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" ; String completeBehind = "<STR_LIT>" ; int cursorLocation = str . indexOf ( "<STR_LIT>" ) + completeBehind . length ( ) - <NUM_LIT:1> ; String expectedCompletionNodeToString = "<STR_LIT>" ; String expectedParentNodeToString = "<STR_LIT>" ; String completionIdentifier = "<STR_LIT>" ; String expectedReplacedSource = "<STR_LIT>" ; String expectedUnitDisplayString = "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" ; checkDietParse ( str . toCharArray ( ) , cursorLocation , expectedCompletionNodeToString , expectedParentNodeToString , expectedUnitDisplayString , completionIdentifier , expectedReplacedSource , "<STR_LIT>" ) ; } public void test0017_Method ( ) { String str = "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" ; String completeBehind = "<STR_LIT>" ; int cursorLocation = str . indexOf ( "<STR_LIT>" ) + completeBehind . length ( ) - <NUM_LIT:1> ; String expectedCompletionNodeToString = "<STR_LIT>" ; String expectedParentNodeToString = "<STR_LIT>" ; String completionIdentifier = "<STR_LIT>" ; String expectedReplacedSource = "<STR_LIT>" ; String expectedUnitDisplayString = "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" ; checkMethodParse ( str . toCharArray ( ) , cursorLocation , expectedCompletionNodeToString , expectedParentNodeToString , expectedUnitDisplayString , completionIdentifier , expectedReplacedSource , "<STR_LIT>" ) ; } public void test0018_Diet ( ) { String str = "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" ; String completeBehind = "<STR_LIT>" ; int cursorLocation = str . indexOf ( "<STR_LIT>" ) + completeBehind . length ( ) - <NUM_LIT:1> ; String expectedCompletionNodeToString = "<STR_LIT>" ; String expectedParentNodeToString = "<STR_LIT>" ; String completionIdentifier = "<STR_LIT>" ; String expectedReplacedSource = "<STR_LIT>" ; String expectedUnitDisplayString = "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" ; checkDietParse ( str . toCharArray ( ) , cursorLocation , expectedCompletionNodeToString , expectedParentNodeToString , expectedUnitDisplayString , completionIdentifier , expectedReplacedSource , "<STR_LIT>" ) ; } public void test0018_Method ( ) { String str = "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" ; String completeBehind = "<STR_LIT>" ; int cursorLocation = str . indexOf ( "<STR_LIT>" ) + completeBehind . length ( ) - <NUM_LIT:1> ; String expectedCompletionNodeToString = "<STR_LIT>" ; String expectedParentNodeToString = "<STR_LIT>" ; String completionIdentifier = "<STR_LIT>" ; String expectedReplacedSource = "<STR_LIT>" ; String expectedUnitDisplayString = "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" ; checkMethodParse ( str . toCharArray ( ) , cursorLocation , expectedCompletionNodeToString , expectedParentNodeToString , expectedUnitDisplayString , completionIdentifier , expectedReplacedSource , "<STR_LIT>" ) ; } public void test0019 ( ) { String str = "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" ; String completeBehind = "<STR_LIT>" ; int cursorLocation = str . indexOf ( "<STR_LIT>" ) + completeBehind . length ( ) - <NUM_LIT:1> ; String expectedCompletionNodeToString = "<STR_LIT>" ; String expectedParentNodeToString = "<STR_LIT>" ; String completionIdentifier = "<STR_LIT>" ; String expectedReplacedSource = "<STR_LIT>" ; String expectedUnitDisplayString = "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" ; checkDietParse ( str . toCharArray ( ) , cursorLocation , expectedCompletionNodeToString , expectedParentNodeToString , expectedUnitDisplayString , completionIdentifier , expectedReplacedSource , "<STR_LIT>" ) ; } public void test0020_Diet ( ) { String str = "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" ; String completeBehind = "<STR_LIT>" ; int cursorLocation = str . indexOf ( "<STR_LIT>" ) + completeBehind . length ( ) - <NUM_LIT:1> ; String expectedCompletionNodeToString = "<STR_LIT>" ; String expectedParentNodeToString = "<STR_LIT>" ; String completionIdentifier = "<STR_LIT>" ; String expectedReplacedSource = "<STR_LIT>" ; String expectedUnitDisplayString = "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" ; checkDietParse ( str . toCharArray ( ) , cursorLocation , expectedCompletionNodeToString , expectedParentNodeToString , expectedUnitDisplayString , completionIdentifier , expectedReplacedSource , "<STR_LIT>" ) ; } public void test0020_Method ( ) { String str = "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" ; String completeBehind = "<STR_LIT>" ; int cursorLocation = str . indexOf ( "<STR_LIT>" ) + completeBehind . length ( ) - <NUM_LIT:1> ; String expectedCompletionNodeToString = "<STR_LIT>" ; String expectedParentNodeToString = "<STR_LIT>" ; String completionIdentifier = "<STR_LIT>" ; String expectedReplacedSource = "<STR_LIT>" ; String expectedUnitDisplayString = "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" ; checkMethodParse ( str . toCharArray ( ) , cursorLocation , expectedCompletionNodeToString , expectedParentNodeToString , expectedUnitDisplayString , completionIdentifier , expectedReplacedSource , "<STR_LIT>" ) ; } public void test0021_Diet ( ) { String str = "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" ; String completeBehind = "<STR_LIT>" ; int cursorLocation = str . indexOf ( "<STR_LIT>" ) + completeBehind . length ( ) - <NUM_LIT:1> ; String expectedCompletionNodeToString = "<STR_LIT>" ; String expectedParentNodeToString = "<STR_LIT>" ; String completionIdentifier = "<STR_LIT>" ; String expectedReplacedSource = "<STR_LIT>" ; String expectedUnitDisplayString = "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" ; checkDietParse ( str . toCharArray ( ) , cursorLocation , expectedCompletionNodeToString , expectedParentNodeToString , expectedUnitDisplayString , completionIdentifier , expectedReplacedSource , "<STR_LIT>" ) ; } public void test0021_Method ( ) { String str = "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" ; String completeBehind = "<STR_LIT>" ; int cursorLocation = str . indexOf ( "<STR_LIT>" ) + completeBehind . length ( ) - <NUM_LIT:1> ; String expectedCompletionNodeToString = "<STR_LIT>" ; String expectedParentNodeToString = "<STR_LIT>" ; String completionIdentifier = "<STR_LIT>" ; String expectedReplacedSource = "<STR_LIT>" ; String expectedUnitDisplayString = "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" ; checkMethodParse ( str . toCharArray ( ) , cursorLocation , expectedCompletionNodeToString , expectedParentNodeToString , expectedUnitDisplayString , completionIdentifier , expectedReplacedSource , "<STR_LIT>" ) ; } public void test0022 ( ) { String str = "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" ; String completeBehind = "<STR_LIT>" ; int cursorLocation = str . indexOf ( "<STR_LIT>" ) + completeBehind . length ( ) - <NUM_LIT:1> ; String expectedCompletionNodeToString = "<STR_LIT>" ; String expectedParentNodeToString = "<STR_LIT>" ; String completionIdentifier = "<STR_LIT>" ; String expectedReplacedSource = "<STR_LIT>" ; String expectedUnitDisplayString = "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" ; checkDietParse ( str . toCharArray ( ) , cursorLocation , expectedCompletionNodeToString , expectedParentNodeToString , expectedUnitDisplayString , completionIdentifier , expectedReplacedSource , "<STR_LIT>" ) ; } public void test0023_Diet ( ) { String str = "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" ; String completeBehind = "<STR_LIT>" ; int cursorLocation = str . indexOf ( "<STR_LIT>" ) + completeBehind . length ( ) - <NUM_LIT:1> ; String expectedCompletionNodeToString = "<STR_LIT>" ; String expectedParentNodeToString = "<STR_LIT>" ; String completionIdentifier = "<STR_LIT>" ; String expectedReplacedSource = "<STR_LIT>" ; String expectedUnitDisplayString = "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" ; checkDietParse ( str . toCharArray ( ) , cursorLocation , expectedCompletionNodeToString , expectedParentNodeToString , expectedUnitDisplayString , completionIdentifier , expectedReplacedSource , "<STR_LIT>" ) ; } public void test0023_Method ( ) { String str = "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" ; String completeBehind = "<STR_LIT>" ; int cursorLocation = str . indexOf ( "<STR_LIT>" ) + completeBehind . length ( ) - <NUM_LIT:1> ; String expectedCompletionNodeToString = "<STR_LIT>" ; String expectedParentNodeToString = "<STR_LIT>" ; String completionIdentifier = "<STR_LIT>" ; String expectedReplacedSource = "<STR_LIT>" ; String expectedUnitDisplayString = "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" ; checkMethodParse ( str . toCharArray ( ) , cursorLocation , expectedCompletionNodeToString , expectedParentNodeToString , expectedUnitDisplayString , completionIdentifier , expectedReplacedSource , "<STR_LIT>" ) ; } public void test0024_Diet ( ) { String str = "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" ; String completeBehind = "<STR_LIT>" ; int cursorLocation = str . indexOf ( "<STR_LIT>" ) + completeBehind . length ( ) - <NUM_LIT:1> ; String expectedCompletionNodeToString = "<STR_LIT>" ; String expectedParentNodeToString = "<STR_LIT>" ; String completionIdentifier = "<STR_LIT>" ; String expectedReplacedSource = "<STR_LIT>" ; String expectedUnitDisplayString = "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" ; checkDietParse ( str . toCharArray ( ) , cursorLocation , expectedCompletionNodeToString , expectedParentNodeToString , expectedUnitDisplayString , completionIdentifier , expectedReplacedSource , "<STR_LIT>" ) ; } public void test0024_Method ( ) { String str = "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" ; String completeBehind = "<STR_LIT>" ; int cursorLocation = str . indexOf ( "<STR_LIT>" ) + completeBehind . length ( ) - <NUM_LIT:1> ; String expectedCompletionNodeToString = "<STR_LIT>" ; String expectedParentNodeToString = "<STR_LIT>" ; String completionIdentifier = "<STR_LIT>" ; String expectedReplacedSource = "<STR_LIT>" ; String expectedUnitDisplayString = "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" ; checkMethodParse ( str . toCharArray ( ) , cursorLocation , expectedCompletionNodeToString , expectedParentNodeToString , expectedUnitDisplayString , completionIdentifier , expectedReplacedSource , "<STR_LIT>" ) ; } public void test0025 ( ) { String str = "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" ; String completeBehind = "<STR_LIT>" ; int cursorLocation = str . indexOf ( "<STR_LIT>" ) + completeBehind . length ( ) - <NUM_LIT:1> ; String expectedCompletionNodeToString = "<STR_LIT>" ; String expectedParentNodeToString = "<STR_LIT>" ; String completionIdentifier = "<STR_LIT>" ; String expectedReplacedSource = "<STR_LIT>" ; String expectedUnitDisplayString = "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" ; checkDietParse ( str . toCharArray ( ) , cursorLocation , expectedCompletionNodeToString , expectedParentNodeToString , expectedUnitDisplayString , completionIdentifier , expectedReplacedSource , "<STR_LIT>" ) ; } public void test0026_Diet ( ) { String str = "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" ; String completeBehind = "<STR_LIT>" ; int cursorLocation = str . indexOf ( "<STR_LIT>" ) + completeBehind . length ( ) - <NUM_LIT:1> ; String expectedCompletionNodeToString = "<STR_LIT>" ; String expectedParentNodeToString = "<STR_LIT>" ; String completionIdentifier = "<STR_LIT>" ; String expectedReplacedSource = "<STR_LIT>" ; String expectedUnitDisplayString = "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" ; checkDietParse ( str . toCharArray ( ) , cursorLocation , expectedCompletionNodeToString , expectedParentNodeToString , expectedUnitDisplayString , completionIdentifier , expectedReplacedSource , "<STR_LIT>" ) ; } public void test0026_Method ( ) { String str = "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" ; String completeBehind = "<STR_LIT>" ; int cursorLocation = str . indexOf ( "<STR_LIT>" ) + completeBehind . length ( ) - <NUM_LIT:1> ; String expectedCompletionNodeToString = "<STR_LIT>" ; String expectedParentNodeToString = "<STR_LIT>" ; String completionIdentifier = "<STR_LIT>" ; String expectedReplacedSource = "<STR_LIT>" ; String expectedUnitDisplayString = "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" ; checkMethodParse ( str . toCharArray ( ) , cursorLocation , expectedCompletionNodeToString , expectedParentNodeToString , expectedUnitDisplayString , completionIdentifier , expectedReplacedSource , "<STR_LIT>" ) ; } public void test0027_Diet ( ) { String str = "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" ; String completeBehind = "<STR_LIT>" ; int cursorLocation = str . indexOf ( "<STR_LIT>" ) + completeBehind . length ( ) - <NUM_LIT:1> ; String expectedCompletionNodeToString = "<STR_LIT>" ; String expectedParentNodeToString = "<STR_LIT>" ; String completionIdentifier = "<STR_LIT>" ; String expectedReplacedSource = "<STR_LIT>" ; String expectedUnitDisplayString = "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" ; checkDietParse ( str . toCharArray ( ) , cursorLocation , expectedCompletionNodeToString , expectedParentNodeToString , expectedUnitDisplayString , completionIdentifier , expectedReplacedSource , "<STR_LIT>" ) ; } public void test0027_Method ( ) { String str = "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" ; String completeBehind = "<STR_LIT>" ; int cursorLocation = str . indexOf ( "<STR_LIT>" ) + completeBehind . length ( ) - <NUM_LIT:1> ; String expectedCompletionNodeToString = "<STR_LIT>" ; String expectedParentNodeToString = "<STR_LIT>" ; String completionIdentifier = "<STR_LIT>" ; String expectedReplacedSource = "<STR_LIT>" ; String expectedUnitDisplayString = "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" ; checkMethodParse ( str . toCharArray ( ) , cursorLocation , expectedCompletionNodeToString , expectedParentNodeToString , expectedUnitDisplayString , completionIdentifier , expectedReplacedSource , "<STR_LIT>" ) ; } public void test0028 ( ) { String str = "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" ; String completeBehind = "<STR_LIT>" ; int cursorLocation = str . indexOf ( "<STR_LIT>" ) + completeBehind . length ( ) - <NUM_LIT:1> ; String expectedCompletionNodeToString = "<STR_LIT>" ; String expectedParentNodeToString = "<STR_LIT>" ; String completionIdentifier = "<STR_LIT>" ; String expectedReplacedSource = "<STR_LIT>" ; String expectedUnitDisplayString = "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" ; checkDietParse ( str . toCharArray ( ) , cursorLocation , expectedCompletionNodeToString , expectedParentNodeToString , expectedUnitDisplayString , completionIdentifier , expectedReplacedSource , "<STR_LIT>" ) ; } public void test0029_Diet ( ) { String str = "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" ; String completeBehind = "<STR_LIT>" ; int cursorLocation = str . indexOf ( "<STR_LIT>" ) + completeBehind . length ( ) - <NUM_LIT:1> ; String expectedCompletionNodeToString = "<STR_LIT>" ; String expectedParentNodeToString = "<STR_LIT>" ; String completionIdentifier = "<STR_LIT>" ; String expectedReplacedSource = "<STR_LIT>" ; String expectedUnitDisplayString = "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" ; checkDietParse ( str . toCharArray ( ) , cursorLocation , expectedCompletionNodeToString , expectedParentNodeToString , expectedUnitDisplayString , completionIdentifier , expectedReplacedSource , "<STR_LIT>" ) ; } public void test0029_Method ( ) { String str = "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" ; String completeBehind = "<STR_LIT>" ; int cursorLocation = str . indexOf ( "<STR_LIT>" ) + completeBehind . length ( ) - <NUM_LIT:1> ; String expectedCompletionNodeToString = "<STR_LIT>" ; String expectedParentNodeToString = "<STR_LIT>" ; String completionIdentifier = "<STR_LIT>" ; String expectedReplacedSource = "<STR_LIT>" ; String expectedUnitDisplayString = "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" ; checkMethodParse ( str . toCharArray ( ) , cursorLocation , expectedCompletionNodeToString , expectedParentNodeToString , expectedUnitDisplayString , completionIdentifier , expectedReplacedSource , "<STR_LIT>" ) ; } public void test0030_Diet ( ) { String str = "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" ; String completeBehind = "<STR_LIT>" ; int cursorLocation = str . indexOf ( "<STR_LIT>" ) + completeBehind . length ( ) - <NUM_LIT:1> ; String expectedCompletionNodeToString = "<STR_LIT>" ; String expectedParentNodeToString = "<STR_LIT>" ; String completionIdentifier = "<STR_LIT>" ; String expectedReplacedSource = "<STR_LIT>" ; String expectedUnitDisplayString = "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" ; checkDietParse ( str . toCharArray ( ) , cursorLocation , expectedCompletionNodeToString , expectedParentNodeToString , expectedUnitDisplayString , completionIdentifier , expectedReplacedSource , "<STR_LIT>" ) ; } public void test0030_Method ( ) { String str = "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" ; String completeBehind = "<STR_LIT>" ; int cursorLocation = str . indexOf ( "<STR_LIT>" ) + completeBehind . length ( ) - <NUM_LIT:1> ; String expectedCompletionNodeToString = "<STR_LIT>" ; String expectedParentNodeToString = "<STR_LIT>" ; String completionIdentifier = "<STR_LIT>" ; String expectedReplacedSource = "<STR_LIT>" ; String expectedUnitDisplayString = "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" ; checkMethodParse ( str . toCharArray ( ) , cursorLocation , expectedCompletionNodeToString , expectedParentNodeToString , expectedUnitDisplayString , completionIdentifier , expectedReplacedSource , "<STR_LIT>" ) ; } public void test0031_Diet ( ) { String str = "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" ; String completeBehind = "<STR_LIT>" ; int cursorLocation = str . indexOf ( "<STR_LIT>" ) + completeBehind . length ( ) - <NUM_LIT:1> ; String expectedCompletionNodeToString = "<STR_LIT>" ; String expectedParentNodeToString = "<STR_LIT>" ; String completionIdentifier = "<STR_LIT>" ; String expectedReplacedSource = "<STR_LIT>" ; String expectedUnitDisplayString = "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" ; checkDietParse ( str . toCharArray ( ) , cursorLocation , expectedCompletionNodeToString , expectedParentNodeToString , expectedUnitDisplayString , completionIdentifier , expectedReplacedSource , "<STR_LIT>" ) ; } public void test0031_Method ( ) { String str = "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" ; String completeBehind = "<STR_LIT>" ; int cursorLocation = str . indexOf ( "<STR_LIT>" ) + completeBehind . length ( ) - <NUM_LIT:1> ; String expectedCompletionNodeToString = "<STR_LIT>" ; String expectedParentNodeToString = "<STR_LIT>" ; String completionIdentifier = "<STR_LIT>" ; String expectedReplacedSource = "<STR_LIT>" ; String expectedUnitDisplayString = "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" ; checkMethodParse ( str . toCharArray ( ) , cursorLocation , expectedCompletionNodeToString , expectedParentNodeToString , expectedUnitDisplayString , completionIdentifier , expectedReplacedSource , "<STR_LIT>" ) ; } public void test0032_Diet ( ) { String str = "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" ; String completeBehind = "<STR_LIT>" ; int cursorLocation = str . indexOf ( "<STR_LIT>" ) + completeBehind . length ( ) - <NUM_LIT:1> ; String expectedCompletionNodeToString = "<STR_LIT>" ; String expectedParentNodeToString = "<STR_LIT>" ; String completionIdentifier = "<STR_LIT>" ; String expectedReplacedSource = "<STR_LIT>" ; String expectedUnitDisplayString = "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" ; checkDietParse ( str . toCharArray ( ) , cursorLocation , expectedCompletionNodeToString , expectedParentNodeToString , expectedUnitDisplayString , completionIdentifier , expectedReplacedSource , "<STR_LIT>" ) ; } public void test0032_Method ( ) { String str = "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" ; String completeBehind = "<STR_LIT>" ; int cursorLocation = str . indexOf ( "<STR_LIT>" ) + completeBehind . length ( ) - <NUM_LIT:1> ; String expectedCompletionNodeToString = "<STR_LIT>" ; String expectedParentNodeToString = "<STR_LIT>" ; String completionIdentifier = "<STR_LIT>" ; String expectedReplacedSource = "<STR_LIT>" ; String expectedUnitDisplayString = "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" ; checkMethodParse ( str . toCharArray ( ) , cursorLocation , expectedCompletionNodeToString , expectedParentNodeToString , expectedUnitDisplayString , completionIdentifier , expectedReplacedSource , "<STR_LIT>" ) ; } public void test0033_Diet ( ) { String str = "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" ; String completeBehind = "<STR_LIT>" ; int cursorLocation = str . indexOf ( "<STR_LIT>" ) + completeBehind . length ( ) - <NUM_LIT:1> ; String expectedCompletionNodeToString = "<STR_LIT>" ; String expectedParentNodeToString = "<STR_LIT>" ; String completionIdentifier = "<STR_LIT>" ; String expectedReplacedSource = "<STR_LIT>" ; String expectedUnitDisplayString = "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" ; checkDietParse ( str . toCharArray ( ) , cursorLocation , expectedCompletionNodeToString , expectedParentNodeToString , expectedUnitDisplayString , completionIdentifier , expectedReplacedSource , "<STR_LIT>" ) ; } public void test0033_Method ( ) { String str = "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" ; String completeBehind = "<STR_LIT>" ; int cursorLocation = str . indexOf ( "<STR_LIT>" ) + completeBehind . length ( ) - <NUM_LIT:1> ; String expectedCompletionNodeToString = "<STR_LIT>" ; String expectedParentNodeToString = "<STR_LIT>" ; String completionIdentifier = "<STR_LIT>" ; String expectedReplacedSource = "<STR_LIT>" ; String expectedUnitDisplayString = "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" ; checkMethodParse ( str . toCharArray ( ) , cursorLocation , expectedCompletionNodeToString , expectedParentNodeToString , expectedUnitDisplayString , completionIdentifier , expectedReplacedSource , "<STR_LIT>" ) ; } public void test0034_Diet ( ) { String str = "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" ; String completeBehind = "<STR_LIT>" ; int cursorLocation = str . indexOf ( "<STR_LIT>" ) + completeBehind . length ( ) - <NUM_LIT:1> ; String expectedCompletionNodeToString = "<STR_LIT>" ; String expectedParentNodeToString = "<STR_LIT>" ; String completionIdentifier = "<STR_LIT>" ; String expectedReplacedSource = "<STR_LIT>" ; String expectedUnitDisplayString = "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" ; checkDietParse ( str . toCharArray ( ) , cursorLocation , expectedCompletionNodeToString , expectedParentNodeToString , expectedUnitDisplayString , completionIdentifier , expectedReplacedSource , "<STR_LIT>" ) ; } public void test0034_Method ( ) { String str = "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" ; String completeBehind = "<STR_LIT>" ; int cursorLocation = str . indexOf ( "<STR_LIT>" ) + completeBehind . length ( ) - <NUM_LIT:1> ; String expectedCompletionNodeToString = "<STR_LIT>" ; String expectedParentNodeToString = "<STR_LIT>" ; String completionIdentifier = "<STR_LIT>" ; String expectedReplacedSource = "<STR_LIT>" ; String expectedUnitDisplayString = "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" ; checkMethodParse ( str . toCharArray ( ) , cursorLocation , expectedCompletionNodeToString , expectedParentNodeToString , expectedUnitDisplayString , completionIdentifier , expectedReplacedSource , "<STR_LIT>" ) ; } public void test0035_Diet ( ) { String str = "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" ; String completeBehind = "<STR_LIT>" ; int cursorLocation = str . indexOf ( "<STR_LIT>" ) + completeBehind . length ( ) - <NUM_LIT:1> ; String expectedCompletionNodeToString = "<STR_LIT>" ; String expectedParentNodeToString = "<STR_LIT>" ; String completionIdentifier = "<STR_LIT>" ; String expectedReplacedSource = "<STR_LIT>" ; String expectedUnitDisplayString = "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" ; checkDietParse ( str . toCharArray ( ) , cursorLocation , expectedCompletionNodeToString , expectedParentNodeToString , expectedUnitDisplayString , completionIdentifier , expectedReplacedSource , "<STR_LIT>" ) ; } public void test0035_Method ( ) { String str = "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" ; String completeBehind = "<STR_LIT>" ; int cursorLocation = str . indexOf ( "<STR_LIT>" ) + completeBehind . length ( ) - <NUM_LIT:1> ; String expectedCompletionNodeToString = "<STR_LIT>" ; String expectedParentNodeToString = "<STR_LIT>" ; String completionIdentifier = "<STR_LIT>" ; String expectedReplacedSource = "<STR_LIT>" ; String expectedUnitDisplayString = "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" ; checkMethodParse ( str . toCharArray ( ) , cursorLocation , expectedCompletionNodeToString , expectedParentNodeToString , expectedUnitDisplayString , completionIdentifier , expectedReplacedSource , "<STR_LIT>" ) ; } public void test0036_Diet ( ) { String str = "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" ; String completeBehind = "<STR_LIT>" ; int cursorLocation = str . indexOf ( "<STR_LIT>" ) + completeBehind . length ( ) - <NUM_LIT:1> ; String expectedCompletionNodeToString = "<STR_LIT>" ; String expectedParentNodeToString = "<STR_LIT>" ; String completionIdentifier = "<STR_LIT>" ; String expectedReplacedSource = "<STR_LIT>" ; String expectedUnitDisplayString = "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" ; checkDietParse ( str . toCharArray ( ) , cursorLocation , expectedCompletionNodeToString , expectedParentNodeToString , expectedUnitDisplayString , completionIdentifier , expectedReplacedSource , "<STR_LIT>" ) ; } public void test0036_Method ( ) { String str = "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" ; String completeBehind = "<STR_LIT>" ; int cursorLocation = str . indexOf ( "<STR_LIT>" ) + completeBehind . length ( ) - <NUM_LIT:1> ; String expectedCompletionNodeToString = "<STR_LIT>" ; String expectedParentNodeToString = "<STR_LIT>" ; String completionIdentifier = "<STR_LIT>" ; String expectedReplacedSource = "<STR_LIT>" ; String expectedUnitDisplayString = "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" ; checkMethodParse ( str . toCharArray ( ) , cursorLocation , expectedCompletionNodeToString , expectedParentNodeToString , expectedUnitDisplayString , completionIdentifier , expectedReplacedSource , "<STR_LIT>" ) ; } public void test0037 ( ) { String str = "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" ; String completeBehind = "<STR_LIT>" ; int cursorLocation = str . indexOf ( "<STR_LIT>" ) + completeBehind . length ( ) - <NUM_LIT:1> ; String expectedCompletionNodeToString = "<STR_LIT>" ; String expectedParentNodeToString = "<STR_LIT>" ; String completionIdentifier = "<STR_LIT>" ; String expectedReplacedSource = "<STR_LIT>" ; String expectedUnitDisplayString = "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" ; checkDietParse ( str . toCharArray ( ) , cursorLocation , expectedCompletionNodeToString , expectedParentNodeToString , expectedUnitDisplayString , completionIdentifier , expectedReplacedSource , "<STR_LIT>" ) ; } public void test0038_Diet ( ) { String str = "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" ; String completeBehind = "<STR_LIT>" ; int cursorLocation = str . indexOf ( "<STR_LIT>" ) + completeBehind . length ( ) - <NUM_LIT:1> ; String expectedCompletionNodeToString = "<STR_LIT>" ; String expectedParentNodeToString = "<STR_LIT>" ; String completionIdentifier = "<STR_LIT>" ; String expectedReplacedSource = "<STR_LIT>" ; String expectedUnitDisplayString = "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" ; checkDietParse ( str . toCharArray ( ) , cursorLocation , expectedCompletionNodeToString , expectedParentNodeToString , expectedUnitDisplayString , completionIdentifier , expectedReplacedSource , "<STR_LIT>" ) ; } public void test0038_Method ( ) { String str = "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" ; String completeBehind = "<STR_LIT>" ; int cursorLocation = str . indexOf ( "<STR_LIT>" ) + completeBehind . length ( ) - <NUM_LIT:1> ; String expectedCompletionNodeToString = "<STR_LIT>" ; String expectedParentNodeToString = "<STR_LIT>" ; String completionIdentifier = "<STR_LIT>" ; String expectedReplacedSource = "<STR_LIT>" ; String expectedUnitDisplayString = "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" ; checkMethodParse ( str . toCharArray ( ) , cursorLocation , expectedCompletionNodeToString , expectedParentNodeToString , expectedUnitDisplayString , completionIdentifier , expectedReplacedSource , "<STR_LIT>" ) ; } public void test0039_Diet ( ) { String str = "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" ; String completeBehind = "<STR_LIT>" ; int cursorLocation = str . indexOf ( "<STR_LIT>" ) + completeBehind . length ( ) - <NUM_LIT:1> ; String expectedCompletionNodeToString = "<STR_LIT>" ; String expectedParentNodeToString = "<STR_LIT>" ; String completionIdentifier = "<STR_LIT>" ; String expectedReplacedSource = "<STR_LIT>" ; String expectedUnitDisplayString = "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" ; checkDietParse ( str . toCharArray ( ) , cursorLocation , expectedCompletionNodeToString , expectedParentNodeToString , expectedUnitDisplayString , completionIdentifier , expectedReplacedSource , "<STR_LIT>" ) ; } public void test0039_Method ( ) { String str = "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" ; String completeBehind = "<STR_LIT>" ; int cursorLocation = str . indexOf ( "<STR_LIT>" ) + completeBehind . length ( ) - <NUM_LIT:1> ; String expectedCompletionNodeToString = "<STR_LIT>" ; String expectedParentNodeToString = "<STR_LIT>" ; String completionIdentifier = "<STR_LIT>" ; String expectedReplacedSource = "<STR_LIT>" ; String expectedUnitDisplayString = "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" ; checkMethodParse ( str . toCharArray ( ) , cursorLocation , expectedCompletionNodeToString , expectedParentNodeToString , expectedUnitDisplayString , completionIdentifier , expectedReplacedSource , "<STR_LIT>" ) ; } public void test0040 ( ) { String str = "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" ; String completeBehind = "<STR_LIT>" ; int cursorLocation = str . indexOf ( "<STR_LIT>" ) + completeBehind . length ( ) - <NUM_LIT:1> ; String expectedCompletionNodeToString = "<STR_LIT>" ; String expectedParentNodeToString = "<STR_LIT>" ; String completionIdentifier = "<STR_LIT>" ; String expectedReplacedSource = "<STR_LIT>" ; String expectedUnitDisplayString = "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" ; checkDietParse ( str . toCharArray ( ) , cursorLocation , expectedCompletionNodeToString , expectedParentNodeToString , expectedUnitDisplayString , completionIdentifier , expectedReplacedSource , "<STR_LIT>" ) ; } public void test0041_Diet ( ) { String str = "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" ; String completeBehind = "<STR_LIT>" ; int cursorLocation = str . indexOf ( "<STR_LIT>" ) + completeBehind . length ( ) - <NUM_LIT:1> ; String expectedCompletionNodeToString = "<STR_LIT>" ; String expectedParentNodeToString = "<STR_LIT>" ; String completionIdentifier = "<STR_LIT>" ; String expectedReplacedSource = "<STR_LIT>" ; String expectedUnitDisplayString = "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" ; checkDietParse ( str . toCharArray ( ) , cursorLocation , expectedCompletionNodeToString , expectedParentNodeToString , expectedUnitDisplayString , completionIdentifier , expectedReplacedSource , "<STR_LIT>" ) ; } public void test0041_Method ( ) { String str = "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" ; String completeBehind = "<STR_LIT>" ; int cursorLocation = str . indexOf ( "<STR_LIT>" ) + completeBehind . length ( ) - <NUM_LIT:1> ; String expectedCompletionNodeToString = "<STR_LIT>" ; String expectedParentNodeToString = "<STR_LIT>" ; String completionIdentifier = "<STR_LIT>" ; String expectedReplacedSource = "<STR_LIT>" ; String expectedUnitDisplayString = "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" ; checkMethodParse ( str . toCharArray ( ) , cursorLocation , expectedCompletionNodeToString , expectedParentNodeToString , expectedUnitDisplayString , completionIdentifier , expectedReplacedSource , "<STR_LIT>" ) ; } public void test0042_Diet ( ) { String str = "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" ; String completeBehind = "<STR_LIT>" ; int cursorLocation = str . indexOf ( "<STR_LIT>" ) + completeBehind . length ( ) - <NUM_LIT:1> ; String expectedCompletionNodeToString = "<STR_LIT>" ; String expectedParentNodeToString = "<STR_LIT>" ; String completionIdentifier = "<STR_LIT>" ; String expectedReplacedSource = "<STR_LIT>" ; String expectedUnitDisplayString = "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" ; checkDietParse ( str . toCharArray ( ) , cursorLocation , expectedCompletionNodeToString , expectedParentNodeToString , expectedUnitDisplayString , completionIdentifier , expectedReplacedSource , "<STR_LIT>" ) ; } public void test0042_Method ( ) { String str = "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" ; String completeBehind = "<STR_LIT>" ; int cursorLocation = str . indexOf ( "<STR_LIT>" ) + completeBehind . length ( ) - <NUM_LIT:1> ; String expectedCompletionNodeToString = "<STR_LIT>" ; String expectedParentNodeToString = "<STR_LIT>" ; String completionIdentifier = "<STR_LIT>" ; String expectedReplacedSource = "<STR_LIT>" ; String expectedUnitDisplayString = "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" ; checkMethodParse ( str . toCharArray ( ) , cursorLocation , expectedCompletionNodeToString , expectedParentNodeToString , expectedUnitDisplayString , completionIdentifier , expectedReplacedSource , "<STR_LIT>" ) ; } public void test0043 ( ) { String str = "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" ; String completeBehind = "<STR_LIT>" ; int cursorLocation = str . indexOf ( "<STR_LIT>" ) + completeBehind . length ( ) - <NUM_LIT:1> ; String expectedCompletionNodeToString = "<STR_LIT>" ; String expectedParentNodeToString = "<STR_LIT>" ; String completionIdentifier = "<STR_LIT>" ; String expectedReplacedSource = "<STR_LIT>" ; String expectedUnitDisplayString = "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" ; checkDietParse ( str . toCharArray ( ) , cursorLocation , expectedCompletionNodeToString , expectedParentNodeToString , expectedUnitDisplayString , completionIdentifier , expectedReplacedSource , "<STR_LIT>" ) ; } public void test0044_Diet ( ) { String str = "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" ; String completeBehind = "<STR_LIT>" ; int cursorLocation = str . indexOf ( "<STR_LIT>" ) + completeBehind . length ( ) - <NUM_LIT:1> ; String expectedCompletionNodeToString = "<STR_LIT>" ; String expectedParentNodeToString = "<STR_LIT>" ; String completionIdentifier = "<STR_LIT>" ; String expectedReplacedSource = "<STR_LIT>" ; String expectedUnitDisplayString = "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" ; checkDietParse ( str . toCharArray ( ) , cursorLocation , expectedCompletionNodeToString , expectedParentNodeToString , expectedUnitDisplayString , completionIdentifier , expectedReplacedSource , "<STR_LIT>" ) ; } public void test0044_Method ( ) { String str = "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" ; String completeBehind = "<STR_LIT>" ; int cursorLocation = str . indexOf ( "<STR_LIT>" ) + completeBehind . length ( ) - <NUM_LIT:1> ; String expectedCompletionNodeToString = "<STR_LIT>" ; String expectedParentNodeToString = "<STR_LIT>" ; String completionIdentifier = "<STR_LIT>" ; String expectedReplacedSource = "<STR_LIT>" ; String expectedUnitDisplayString = "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" ; checkMethodParse ( str . toCharArray ( ) , cursorLocation , expectedCompletionNodeToString , expectedParentNodeToString , expectedUnitDisplayString , completionIdentifier , expectedReplacedSource , "<STR_LIT>" ) ; } public void test0045_Diet ( ) { String str = "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" ; String completeBehind = "<STR_LIT>" ; int cursorLocation = str . indexOf ( "<STR_LIT>" ) + completeBehind . length ( ) - <NUM_LIT:1> ; String expectedCompletionNodeToString = "<STR_LIT>" ; String expectedParentNodeToString = "<STR_LIT>" ; String completionIdentifier = "<STR_LIT>" ; String expectedReplacedSource = "<STR_LIT>" ; String expectedUnitDisplayString = "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" ; checkDietParse ( str . toCharArray ( ) , cursorLocation , expectedCompletionNodeToString , expectedParentNodeToString , expectedUnitDisplayString , completionIdentifier , expectedReplacedSource , "<STR_LIT>" ) ; } public void test0045_Method ( ) { String str = "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" ; String completeBehind = "<STR_LIT>" ; int cursorLocation = str . indexOf ( "<STR_LIT>" ) + completeBehind . length ( ) - <NUM_LIT:1> ; String expectedCompletionNodeToString = "<STR_LIT>" ; String expectedParentNodeToString = "<STR_LIT>" ; String completionIdentifier = "<STR_LIT>" ; String expectedReplacedSource = "<STR_LIT>" ; String expectedUnitDisplayString = "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" ; checkMethodParse ( str . toCharArray ( ) , cursorLocation , expectedCompletionNodeToString , expectedParentNodeToString , expectedUnitDisplayString , completionIdentifier , expectedReplacedSource , "<STR_LIT>" ) ; } public void test0046 ( ) { String str = "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" ; String completeBehind = "<STR_LIT>" ; int cursorLocation = str . indexOf ( "<STR_LIT>" ) + completeBehind . length ( ) - <NUM_LIT:1> ; String expectedCompletionNodeToString = "<STR_LIT>" ; String expectedParentNodeToString = "<STR_LIT>" ; String completionIdentifier = "<STR_LIT>" ; String expectedReplacedSource = "<STR_LIT>" ; String expectedUnitDisplayString = "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" ; checkDietParse ( str . toCharArray ( ) , cursorLocation , expectedCompletionNodeToString , expectedParentNodeToString , expectedUnitDisplayString , completionIdentifier , expectedReplacedSource , "<STR_LIT>" ) ; } public void test0047_Diet ( ) { String str = "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" ; String completeBehind = "<STR_LIT>" ; int cursorLocation = str . indexOf ( "<STR_LIT>" ) + completeBehind . length ( ) - <NUM_LIT:1> ; String expectedCompletionNodeToString = "<STR_LIT>" ; String expectedParentNodeToString = "<STR_LIT>" ; String completionIdentifier = "<STR_LIT>" ; String expectedReplacedSource = "<STR_LIT>" ; String expectedUnitDisplayString = "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" ; checkDietParse ( str . toCharArray ( ) , cursorLocation , expectedCompletionNodeToString , expectedParentNodeToString , expectedUnitDisplayString , completionIdentifier , expectedReplacedSource , "<STR_LIT>" ) ; } public void test0047_Method ( ) { String str = "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" ; String completeBehind = "<STR_LIT>" ; int cursorLocation = str . indexOf ( "<STR_LIT>" ) + completeBehind . length ( ) - <NUM_LIT:1> ; String expectedCompletionNodeToString = "<STR_LIT>" ; String expectedParentNodeToString = "<STR_LIT>" ; String completionIdentifier = "<STR_LIT>" ; String expectedReplacedSource = "<STR_LIT>" ; String expectedUnitDisplayString = "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" ; checkMethodParse ( str . toCharArray ( ) , cursorLocation , expectedCompletionNodeToString , expectedParentNodeToString , expectedUnitDisplayString , completionIdentifier , expectedReplacedSource , "<STR_LIT>" ) ; } public void test0048_Diet ( ) { String str = "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" ; String completeBehind = "<STR_LIT>" ; int cursorLocation = str . indexOf ( "<STR_LIT>" ) + completeBehind . length ( ) - <NUM_LIT:1> ; String expectedCompletionNodeToString = "<STR_LIT>" ; String expectedParentNodeToString = "<STR_LIT>" ; String completionIdentifier = "<STR_LIT>" ; String expectedReplacedSource = "<STR_LIT>" ; String expectedUnitDisplayString = "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" ; checkDietParse ( str . toCharArray ( ) , cursorLocation , expectedCompletionNodeToString , expectedParentNodeToString , expectedUnitDisplayString , completionIdentifier , expectedReplacedSource , "<STR_LIT>" ) ; } public void test0048_Method ( ) { String str = "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" ; String completeBehind = "<STR_LIT>" ; int cursorLocation = str . indexOf ( "<STR_LIT>" ) + completeBehind . length ( ) - <NUM_LIT:1> ; String expectedCompletionNodeToString = "<STR_LIT>" ; String expectedParentNodeToString = "<STR_LIT>" ; String completionIdentifier = "<STR_LIT>" ; String expectedReplacedSource = "<STR_LIT>" ; String expectedUnitDisplayString = "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" ; checkMethodParse ( str . toCharArray ( ) , cursorLocation , expectedCompletionNodeToString , expectedParentNodeToString , expectedUnitDisplayString , completionIdentifier , expectedReplacedSource , "<STR_LIT>" ) ; } public void test0049 ( ) { String str = "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" ; String completeBehind = "<STR_LIT>" ; int cursorLocation = str . indexOf ( "<STR_LIT>" ) + completeBehind . length ( ) - <NUM_LIT:1> ; String expectedCompletionNodeToString = "<STR_LIT>" ; String expectedParentNodeToString = "<STR_LIT>" ; String completionIdentifier = "<STR_LIT>" ; String expectedReplacedSource = "<STR_LIT>" ; String expectedUnitDisplayString = "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" ; checkDietParse ( str . toCharArray ( ) , cursorLocation , expectedCompletionNodeToString , expectedParentNodeToString , expectedUnitDisplayString , completionIdentifier , expectedReplacedSource , "<STR_LIT>" ) ; } public void test0050_Diet ( ) { String str = "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" ; String completeBehind = "<STR_LIT>" ; int cursorLocation = str . indexOf ( "<STR_LIT>" ) + completeBehind . length ( ) - <NUM_LIT:1> ; String expectedCompletionNodeToString = "<STR_LIT>" ; String expectedParentNodeToString = "<STR_LIT>" ; String completionIdentifier = "<STR_LIT>" ; String expectedReplacedSource = "<STR_LIT>" ; String expectedUnitDisplayString = "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" ; checkDietParse ( str . toCharArray ( ) , cursorLocation , expectedCompletionNodeToString , expectedParentNodeToString , expectedUnitDisplayString , completionIdentifier , expectedReplacedSource , "<STR_LIT>" ) ; } public void test0050_Method ( ) { String str = "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" ; String completeBehind = "<STR_LIT>" ; int cursorLocation = str . indexOf ( "<STR_LIT>" ) + completeBehind . length ( ) - <NUM_LIT:1> ; String expectedCompletionNodeToString = "<STR_LIT>" ; String expectedParentNodeToString = "<STR_LIT>" ; String completionIdentifier = "<STR_LIT>" ; String expectedReplacedSource = "<STR_LIT>" ; String expectedUnitDisplayString = "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" ; checkMethodParse ( str . toCharArray ( ) , cursorLocation , expectedCompletionNodeToString , expectedParentNodeToString , expectedUnitDisplayString , completionIdentifier , expectedReplacedSource , "<STR_LIT>" ) ; } public void test0051_Diet ( ) { String str = "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" ; String completeBehind = "<STR_LIT>" ; int cursorLocation = str . indexOf ( "<STR_LIT>" ) + completeBehind . length ( ) - <NUM_LIT:1> ; String expectedCompletionNodeToString = "<STR_LIT>" ; String expectedParentNodeToString = "<STR_LIT>" ; String completionIdentifier = "<STR_LIT>" ; String expectedReplacedSource = "<STR_LIT>" ; String expectedUnitDisplayString = "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" ; checkDietParse ( str . toCharArray ( ) , cursorLocation , expectedCompletionNodeToString , expectedParentNodeToString , expectedUnitDisplayString , completionIdentifier , expectedReplacedSource , "<STR_LIT>" ) ; } public void test0051_Method ( ) { String str = "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" ; String completeBehind = "<STR_LIT>" ; int cursorLocation = str . indexOf ( "<STR_LIT>" ) + completeBehind . length ( ) - <NUM_LIT:1> ; String expectedCompletionNodeToString = "<STR_LIT>" ; String expectedParentNodeToString = "<STR_LIT>" ; String completionIdentifier = "<STR_LIT>" ; String expectedReplacedSource = "<STR_LIT>" ; String expectedUnitDisplayString = "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" ; checkMethodParse ( str . toCharArray ( ) , cursorLocation , expectedCompletionNodeToString , expectedParentNodeToString , expectedUnitDisplayString , completionIdentifier , expectedReplacedSource , "<STR_LIT>" ) ; } public void test0052 ( ) { String str = "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" ; String completeBehind = "<STR_LIT>" ; int cursorLocation = str . indexOf ( "<STR_LIT>" ) + completeBehind . length ( ) - <NUM_LIT:1> ; String expectedCompletionNodeToString = "<STR_LIT>" ; String expectedParentNodeToString = "<STR_LIT>" ; String completionIdentifier = "<STR_LIT>" ; String expectedReplacedSource = "<STR_LIT>" ; String expectedUnitDisplayString = "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" ; checkDietParse ( str . toCharArray ( ) , cursorLocation , expectedCompletionNodeToString , expectedParentNodeToString , expectedUnitDisplayString , completionIdentifier , expectedReplacedSource , "<STR_LIT>" ) ; } public void test0053_Diet ( ) { String str = "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" ; String completeBehind = "<STR_LIT>" ; int cursorLocation = str . indexOf ( "<STR_LIT>" ) + completeBehind . length ( ) - <NUM_LIT:1> ; String expectedCompletionNodeToString = "<STR_LIT>" ; String expectedParentNodeToString = "<STR_LIT>" ; String completionIdentifier = "<STR_LIT>" ; String expectedReplacedSource = "<STR_LIT>" ; String expectedUnitDisplayString = "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" ; checkDietParse ( str . toCharArray ( ) , cursorLocation , expectedCompletionNodeToString , expectedParentNodeToString , expectedUnitDisplayString , completionIdentifier , expectedReplacedSource , "<STR_LIT>" ) ; } public void test0053_Method ( ) { String str = "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" ; String completeBehind = "<STR_LIT>" ; int cursorLocation = str . indexOf ( "<STR_LIT>" ) + completeBehind . length ( ) - <NUM_LIT:1> ; String expectedCompletionNodeToString = "<STR_LIT>" ; String expectedParentNodeToString = "<STR_LIT>" ; String completionIdentifier = "<STR_LIT>" ; String expectedReplacedSource = "<STR_LIT>" ; String expectedUnitDisplayString = "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" ; checkMethodParse ( str . toCharArray ( ) , cursorLocation , expectedCompletionNodeToString , expectedParentNodeToString , expectedUnitDisplayString , completionIdentifier , expectedReplacedSource , "<STR_LIT>" ) ; } public void test0054_Diet ( ) { String str = "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" ; String completeBehind = "<STR_LIT>" ; int cursorLocation = str . indexOf ( "<STR_LIT>" ) + completeBehind . length ( ) - <NUM_LIT:1> ; String expectedCompletionNodeToString = "<STR_LIT>" ; String expectedParentNodeToString = "<STR_LIT>" ; String completionIdentifier = "<STR_LIT>" ; String expectedReplacedSource = "<STR_LIT>" ; String expectedUnitDisplayString = "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" ; checkDietParse ( str . toCharArray ( ) , cursorLocation , expectedCompletionNodeToString , expectedParentNodeToString , expectedUnitDisplayString , completionIdentifier , expectedReplacedSource , "<STR_LIT>" ) ; } public void test0054_Method ( ) { String str = "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" ; String completeBehind = "<STR_LIT>" ; int cursorLocation = str . indexOf ( "<STR_LIT>" ) + completeBehind . length ( ) - <NUM_LIT:1> ; String expectedCompletionNodeToString = "<STR_LIT>" ; String expectedParentNodeToString = "<STR_LIT>" ; String completionIdentifier = "<STR_LIT>" ; String expectedReplacedSource = "<STR_LIT>" ; String expectedUnitDisplayString = "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" ; checkMethodParse ( str . toCharArray ( ) , cursorLocation , expectedCompletionNodeToString , expectedParentNodeToString , expectedUnitDisplayString , completionIdentifier , expectedReplacedSource , "<STR_LIT>" ) ; } public void test0055 ( ) { String str = "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" ; String completeBehind = "<STR_LIT>" ; int cursorLocation = str . indexOf ( "<STR_LIT>" ) + completeBehind . length ( ) - <NUM_LIT:1> ; String expectedCompletionNodeToString = "<STR_LIT>" ; String expectedParentNodeToString = "<STR_LIT>" ; String completionIdentifier = "<STR_LIT>" ; String expectedReplacedSource = "<STR_LIT>" ; String expectedUnitDisplayString = "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" ; checkDietParse ( str . toCharArray ( ) , cursorLocation , expectedCompletionNodeToString , expectedParentNodeToString , expectedUnitDisplayString , completionIdentifier , expectedReplacedSource , "<STR_LIT>" ) ; } public void test0056_Diet ( ) { String str = "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" ; String completeBehind = "<STR_LIT>" ; int cursorLocation = str . indexOf ( "<STR_LIT>" ) + completeBehind . length ( ) - <NUM_LIT:1> ; String expectedCompletionNodeToString = "<STR_LIT>" ; String expectedParentNodeToString = "<STR_LIT>" ; String completionIdentifier = "<STR_LIT>" ; String expectedReplacedSource = "<STR_LIT>" ; String expectedUnitDisplayString = "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" ; checkDietParse ( str . toCharArray ( ) , cursorLocation , expectedCompletionNodeToString , expectedParentNodeToString , expectedUnitDisplayString , completionIdentifier , expectedReplacedSource , "<STR_LIT>" ) ; } public void test0056_Method ( ) { String str = "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" ; String completeBehind = "<STR_LIT>" ; int cursorLocation = str . indexOf ( "<STR_LIT>" ) + completeBehind . length ( ) - <NUM_LIT:1> ; String expectedCompletionNodeToString = "<STR_LIT>" ; String expectedParentNodeToString = "<STR_LIT>" ; String completionIdentifier = "<STR_LIT>" ; String expectedReplacedSource = "<STR_LIT>" ; String expectedUnitDisplayString = "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" ; checkMethodParse ( str . toCharArray ( ) , cursorLocation , expectedCompletionNodeToString , expectedParentNodeToString , expectedUnitDisplayString , completionIdentifier , expectedReplacedSource , "<STR_LIT>" ) ; } public void test0057_Diet ( ) { String str = "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" ; String completeBehind = "<STR_LIT>" ; int cursorLocation = str . indexOf ( "<STR_LIT>" ) + completeBehind . length ( ) - <NUM_LIT:1> ; String expectedCompletionNodeToString = "<STR_LIT>" ; String expectedParentNodeToString = "<STR_LIT>" ; String completionIdentifier = "<STR_LIT>" ; String expectedReplacedSource = "<STR_LIT>" ; String expectedUnitDisplayString = "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" ; checkDietParse ( str . toCharArray ( ) , cursorLocation , expectedCompletionNodeToString , expectedParentNodeToString , expectedUnitDisplayString , completionIdentifier , expectedReplacedSource , "<STR_LIT>" ) ; } public void test0057_Method ( ) { String str = "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" ; String completeBehind = "<STR_LIT>" ; int cursorLocation = str . indexOf ( "<STR_LIT>" ) + completeBehind . length ( ) - <NUM_LIT:1> ; String expectedCompletionNodeToString = "<STR_LIT>" ; String expectedParentNodeToString = "<STR_LIT>" ; String completionIdentifier = "<STR_LIT>" ; String expectedReplacedSource = "<STR_LIT>" ; String expectedUnitDisplayString = "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" ; checkMethodParse ( str . toCharArray ( ) , cursorLocation , expectedCompletionNodeToString , expectedParentNodeToString , expectedUnitDisplayString , completionIdentifier , expectedReplacedSource , "<STR_LIT>" ) ; } public void test0058 ( ) { String str = "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" ; String completeBehind = "<STR_LIT>" ; int cursorLocation = str . indexOf ( "<STR_LIT>" ) + completeBehind . length ( ) - <NUM_LIT:1> ; String expectedCompletionNodeToString = "<STR_LIT>" ; String expectedParentNodeToString = "<STR_LIT>" ; String completionIdentifier = "<STR_LIT>" ; String expectedReplacedSource = "<STR_LIT>" ; String expectedUnitDisplayString = "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" ; checkDietParse ( str . toCharArray ( ) , cursorLocation , expectedCompletionNodeToString , expectedParentNodeToString , expectedUnitDisplayString , completionIdentifier , expectedReplacedSource , "<STR_LIT>" ) ; } public void test0059_Diet ( ) { String str = "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" ; String completeBehind = "<STR_LIT>" ; int cursorLocation = str . indexOf ( "<STR_LIT>" ) + completeBehind . length ( ) - <NUM_LIT:1> ; String expectedCompletionNodeToString = "<STR_LIT>" ; String expectedParentNodeToString = "<STR_LIT>" ; String completionIdentifier = "<STR_LIT>" ; String expectedReplacedSource = "<STR_LIT>" ; String expectedUnitDisplayString = "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" ; checkDietParse ( str . toCharArray ( ) , cursorLocation , expectedCompletionNodeToString , expectedParentNodeToString , expectedUnitDisplayString , completionIdentifier , expectedReplacedSource , "<STR_LIT>" ) ; } public void test0059_Method ( ) { String str = "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" ; String completeBehind = "<STR_LIT>" ; int cursorLocation = str . indexOf ( "<STR_LIT>" ) + completeBehind . length ( ) - <NUM_LIT:1> ; String expectedCompletionNodeToString = "<STR_LIT>" ; String expectedParentNodeToString = "<STR_LIT>" ; String completionIdentifier = "<STR_LIT>" ; String expectedReplacedSource = "<STR_LIT>" ; String expectedUnitDisplayString = "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" ; checkMethodParse ( str . toCharArray ( ) , cursorLocation , expectedCompletionNodeToString , expectedParentNodeToString , expectedUnitDisplayString , completionIdentifier , expectedReplacedSource , "<STR_LIT>" ) ; } public void test0060_Diet ( ) { String str = "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" ; String completeBehind = "<STR_LIT>" ; int cursorLocation = str . indexOf ( "<STR_LIT>" ) + completeBehind . length ( ) - <NUM_LIT:1> ; String expectedCompletionNodeToString = "<STR_LIT>" ; String expectedParentNodeToString = "<STR_LIT>" ; String completionIdentifier = "<STR_LIT>" ; String expectedReplacedSource = "<STR_LIT>" ; String expectedUnitDisplayString = "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" ; checkDietParse ( str . toCharArray ( ) , cursorLocation , expectedCompletionNodeToString , expectedParentNodeToString , expectedUnitDisplayString , completionIdentifier , expectedReplacedSource , "<STR_LIT>" ) ; } public void test0060_Method ( ) { String str = "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" ; String completeBehind = "<STR_LIT>" ; int cursorLocation = str . indexOf ( "<STR_LIT>" ) + completeBehind . length ( ) - <NUM_LIT:1> ; String expectedCompletionNodeToString = "<STR_LIT>" ; String expectedParentNodeToString = "<STR_LIT>" ; String completionIdentifier = "<STR_LIT>" ; String expectedReplacedSource = "<STR_LIT>" ; String expectedUnitDisplayString = "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" ; checkMethodParse ( str . toCharArray ( ) , cursorLocation , expectedCompletionNodeToString , expectedParentNodeToString , expectedUnitDisplayString , completionIdentifier , expectedReplacedSource , "<STR_LIT>" ) ; } public void test0061 ( ) { String str = "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" ; String completeBehind = "<STR_LIT>" ; int cursorLocation = str . indexOf ( "<STR_LIT>" ) + completeBehind . length ( ) - <NUM_LIT:1> ; String expectedCompletionNodeToString = "<STR_LIT>" ; String expectedParentNodeToString = "<STR_LIT>" ; String completionIdentifier = "<STR_LIT>" ; String expectedReplacedSource = "<STR_LIT>" ; String expectedUnitDisplayString = "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" ; checkDietParse ( str . toCharArray ( ) , cursorLocation , expectedCompletionNodeToString , expectedParentNodeToString , expectedUnitDisplayString , completionIdentifier , expectedReplacedSource , "<STR_LIT>" ) ; } public void test0062_Diet ( ) { String str = "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" ; String completeBehind = "<STR_LIT>" ; int cursorLocation = str . indexOf ( "<STR_LIT>" ) + completeBehind . length ( ) - <NUM_LIT:1> ; String expectedCompletionNodeToString = "<STR_LIT>" ; String expectedParentNodeToString = "<STR_LIT>" ; String completionIdentifier = "<STR_LIT>" ; String expectedReplacedSource = "<STR_LIT>" ; String expectedUnitDisplayString = "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" ; checkDietParse ( str . toCharArray ( ) , cursorLocation , expectedCompletionNodeToString , expectedParentNodeToString , expectedUnitDisplayString , completionIdentifier , expectedReplacedSource , "<STR_LIT>" ) ; } public void test0062_Method ( ) { String str = "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" ; String completeBehind = "<STR_LIT>" ; int cursorLocation = str . indexOf ( "<STR_LIT>" ) + completeBehind . length ( ) - <NUM_LIT:1> ; String expectedCompletionNodeToString = "<STR_LIT>" ; String expectedParentNodeToString = "<STR_LIT>" ; String completionIdentifier = "<STR_LIT>" ; String expectedReplacedSource = "<STR_LIT>" ; String expectedUnitDisplayString = "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" ; checkMethodParse ( str . toCharArray ( ) , cursorLocation , expectedCompletionNodeToString , expectedParentNodeToString , expectedUnitDisplayString , completionIdentifier , expectedReplacedSource , "<STR_LIT>" ) ; } public void test0063_Diet ( ) { String str = "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" ; String completeBehind = "<STR_LIT>" ; int cursorLocation = str . indexOf ( "<STR_LIT>" ) + completeBehind . length ( ) - <NUM_LIT:1> ; String expectedCompletionNodeToString = "<STR_LIT>" ; String expectedParentNodeToString = "<STR_LIT>" ; String completionIdentifier = "<STR_LIT>" ; String expectedReplacedSource = "<STR_LIT>" ; String expectedUnitDisplayString = "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" ; checkDietParse ( str . toCharArray ( ) , cursorLocation , expectedCompletionNodeToString , expectedParentNodeToString , expectedUnitDisplayString , completionIdentifier , expectedReplacedSource , "<STR_LIT>" ) ; } public void test0063_Method ( ) { String str = "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" ; String completeBehind = "<STR_LIT>" ; int cursorLocation = str . indexOf ( "<STR_LIT>" ) + completeBehind . length ( ) - <NUM_LIT:1> ; String expectedCompletionNodeToString = "<STR_LIT>" ; String expectedParentNodeToString = "<STR_LIT>" ; String completionIdentifier = "<STR_LIT>" ; String expectedReplacedSource = "<STR_LIT>" ; String expectedUnitDisplayString = "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" ; checkMethodParse ( str . toCharArray ( ) , cursorLocation , expectedCompletionNodeToString , expectedParentNodeToString , expectedUnitDisplayString , completionIdentifier , expectedReplacedSource , "<STR_LIT>" ) ; } public void test0064 ( ) { String str = "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" ; String completeBehind = "<STR_LIT>" ; int cursorLocation = str . indexOf ( "<STR_LIT>" ) + completeBehind . length ( ) - <NUM_LIT:1> ; String expectedCompletionNodeToString = "<STR_LIT>" ; String expectedParentNodeToString = "<STR_LIT>" ; String completionIdentifier = "<STR_LIT>" ; String expectedReplacedSource = "<STR_LIT>" ; String expectedUnitDisplayString = "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" ; checkDietParse ( str . toCharArray ( ) , cursorLocation , expectedCompletionNodeToString , expectedParentNodeToString , expectedUnitDisplayString , completionIdentifier , expectedReplacedSource , "<STR_LIT>" ) ; } public void test0065_Diet ( ) { String str = "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" ; String completeBehind = "<STR_LIT>" ; int cursorLocation = str . indexOf ( "<STR_LIT>" ) + completeBehind . length ( ) - <NUM_LIT:1> ; String expectedCompletionNodeToString = "<STR_LIT>" ; String expectedParentNodeToString = "<STR_LIT>" ; String completionIdentifier = "<STR_LIT>" ; String expectedReplacedSource = "<STR_LIT>" ; String expectedUnitDisplayString = "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" ; checkDietParse ( str . toCharArray ( ) , cursorLocation , expectedCompletionNodeToString , expectedParentNodeToString , expectedUnitDisplayString , completionIdentifier , expectedReplacedSource , "<STR_LIT>" ) ; } public void test0065_Method ( ) { String str = "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" ; String completeBehind = "<STR_LIT>" ; int cursorLocation = str . indexOf ( "<STR_LIT>" ) + completeBehind . length ( ) - <NUM_LIT:1> ; String expectedCompletionNodeToString = "<STR_LIT>" ; String expectedParentNodeToString = "<STR_LIT>" ; String completionIdentifier = "<STR_LIT>" ; String expectedReplacedSource = "<STR_LIT>" ; String expectedUnitDisplayString = "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" ; checkMethodParse ( str . toCharArray ( ) , cursorLocation , expectedCompletionNodeToString , expectedParentNodeToString , expectedUnitDisplayString , completionIdentifier , expectedReplacedSource , "<STR_LIT>" ) ; } public void test0066_Diet ( ) { String str = "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" ; String completeBehind = "<STR_LIT>" ; int cursorLocation = str . indexOf ( "<STR_LIT>" ) + completeBehind . length ( ) - <NUM_LIT:1> ; String expectedCompletionNodeToString = "<STR_LIT>" ; String expectedParentNodeToString = "<STR_LIT>" ; String completionIdentifier = "<STR_LIT>" ; String expectedReplacedSource = "<STR_LIT>" ; String expectedUnitDisplayString = "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" ; checkDietParse ( str . toCharArray ( ) , cursorLocation , expectedCompletionNodeToString , expectedParentNodeToString , expectedUnitDisplayString , completionIdentifier , expectedReplacedSource , "<STR_LIT>" ) ; } public void test0066_Method ( ) { String str = "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" ; String completeBehind = "<STR_LIT>" ; int cursorLocation = str . indexOf ( "<STR_LIT>" ) + completeBehind . length ( ) - <NUM_LIT:1> ; String expectedCompletionNodeToString = "<STR_LIT>" ; String expectedParentNodeToString = "<STR_LIT>" ; String completionIdentifier = "<STR_LIT>" ; String expectedReplacedSource = "<STR_LIT>" ; String expectedUnitDisplayString = "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" ; checkMethodParse ( str . toCharArray ( ) , cursorLocation , expectedCompletionNodeToString , expectedParentNodeToString , expectedUnitDisplayString , completionIdentifier , expectedReplacedSource , "<STR_LIT>" ) ; } public void test0067_Diet ( ) { String str = "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" ; String completeBehind = "<STR_LIT>" ; int cursorLocation = str . indexOf ( "<STR_LIT>" ) + completeBehind . length ( ) - <NUM_LIT:1> ; String expectedCompletionNodeToString = "<STR_LIT>" ; String expectedParentNodeToString = "<STR_LIT>" ; String completionIdentifier = "<STR_LIT>" ; String expectedReplacedSource = "<STR_LIT>" ; String expectedUnitDisplayString = "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" ; checkDietParse ( str . toCharArray ( ) , cursorLocation , expectedCompletionNodeToString , expectedParentNodeToString , expectedUnitDisplayString , completionIdentifier , expectedReplacedSource , "<STR_LIT>" ) ; } public void test0067_Method ( ) { String str = "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" ; String completeBehind = "<STR_LIT>" ; int cursorLocation = str . indexOf ( "<STR_LIT>" ) + completeBehind . length ( ) - <NUM_LIT:1> ; String expectedCompletionNodeToString = "<STR_LIT>" ; String expectedParentNodeToString = "<STR_LIT>" ; String completionIdentifier = "<STR_LIT>" ; String expectedReplacedSource = "<STR_LIT>" ; String expectedUnitDisplayString = "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" ; checkMethodParse ( str . toCharArray ( ) , cursorLocation , expectedCompletionNodeToString , expectedParentNodeToString , expectedUnitDisplayString , completionIdentifier , expectedReplacedSource , "<STR_LIT>" ) ; } public void test0068_Diet ( ) { String str = "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" ; String completeBehind = "<STR_LIT>" ; int cursorLocation = str . indexOf ( "<STR_LIT>" ) + completeBehind . length ( ) - <NUM_LIT:1> ; String expectedCompletionNodeToString = "<STR_LIT>" ; String expectedParentNodeToString = "<STR_LIT>" ; String completionIdentifier = "<STR_LIT>" ; String expectedReplacedSource = "<STR_LIT>" ; String expectedUnitDisplayString = "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" ; checkDietParse ( str . toCharArray ( ) , cursorLocation , expectedCompletionNodeToString , expectedParentNodeToString , expectedUnitDisplayString , completionIdentifier , expectedReplacedSource , "<STR_LIT>" ) ; } public void test0068_Method ( ) { String str = "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" ; String completeBehind = "<STR_LIT>" ; int cursorLocation = str . indexOf ( "<STR_LIT>" ) + completeBehind . length ( ) - <NUM_LIT:1> ; String expectedCompletionNodeToString = "<STR_LIT>" ; String expectedParentNodeToString = "<STR_LIT>" ; String completionIdentifier = "<STR_LIT>" ; String expectedReplacedSource = "<STR_LIT>" ; String expectedUnitDisplayString = "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" ; checkMethodParse ( str . toCharArray ( ) , cursorLocation , expectedCompletionNodeToString , expectedParentNodeToString , expectedUnitDisplayString , completionIdentifier , expectedReplacedSource , "<STR_LIT>" ) ; } public void test0069_Diet ( ) { String str = "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" ; String completeBehind = "<STR_LIT>" ; int cursorLocation = str . indexOf ( "<STR_LIT>" ) + completeBehind . length ( ) - <NUM_LIT:1> ; String expectedCompletionNodeToString = "<STR_LIT>" ; String expectedParentNodeToString = "<STR_LIT>" ; String completionIdentifier = "<STR_LIT>" ; String expectedReplacedSource = "<STR_LIT>" ; String expectedUnitDisplayString = "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" ; checkDietParse ( str . toCharArray ( ) , cursorLocation , expectedCompletionNodeToString , expectedParentNodeToString , expectedUnitDisplayString , completionIdentifier , expectedReplacedSource , "<STR_LIT>" ) ; } public void test0069_Method ( ) { String str = "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" ; String completeBehind = "<STR_LIT>" ; int cursorLocation = str . indexOf ( "<STR_LIT>" ) + completeBehind . length ( ) - <NUM_LIT:1> ; String expectedCompletionNodeToString = "<STR_LIT>" ; String expectedParentNodeToString = "<STR_LIT>" ; String completionIdentifier = "<STR_LIT>" ; String expectedReplacedSource = "<STR_LIT>" ; String expectedUnitDisplayString = "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" ; checkMethodParse ( str . toCharArray ( ) , cursorLocation , expectedCompletionNodeToString , expectedParentNodeToString , expectedUnitDisplayString , completionIdentifier , expectedReplacedSource , "<STR_LIT>" ) ; } public void test0070_Diet ( ) { String str = "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" ; String completeBehind = "<STR_LIT>" ; int cursorLocation = str . indexOf ( "<STR_LIT>" ) + completeBehind . length ( ) - <NUM_LIT:1> ; String expectedCompletionNodeToString = "<STR_LIT>" ; String expectedParentNodeToString = "<STR_LIT>" ; String completionIdentifier = "<STR_LIT>" ; String expectedReplacedSource = "<STR_LIT>" ; String expectedUnitDisplayString = "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" ; checkDietParse ( str . toCharArray ( ) , cursorLocation , expectedCompletionNodeToString , expectedParentNodeToString , expectedUnitDisplayString , completionIdentifier , expectedReplacedSource , "<STR_LIT>" ) ; } public void test0070_Method ( ) { String str = "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" ; String completeBehind = "<STR_LIT>" ; int cursorLocation = str . indexOf ( "<STR_LIT>" ) + completeBehind . length ( ) - <NUM_LIT:1> ; String expectedCompletionNodeToString = "<STR_LIT>" ; String expectedParentNodeToString = "<STR_LIT>" ; String completionIdentifier = "<STR_LIT>" ; String expectedReplacedSource = "<STR_LIT>" ; String expectedUnitDisplayString = "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" ; checkMethodParse ( str . toCharArray ( ) , cursorLocation , expectedCompletionNodeToString , expectedParentNodeToString , expectedUnitDisplayString , completionIdentifier , expectedReplacedSource , "<STR_LIT>" ) ; } public void test0071_Diet ( ) { String str = "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" ; String completeBehind = "<STR_LIT>" ; int cursorLocation = str . indexOf ( "<STR_LIT>" ) + completeBehind . length ( ) - <NUM_LIT:1> ; String expectedCompletionNodeToString = "<STR_LIT>" ; String expectedParentNodeToString = "<STR_LIT>" ; String completionIdentifier = "<STR_LIT>" ; String expectedReplacedSource = "<STR_LIT>" ; String expectedUnitDisplayString = "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" ; checkDietParse ( str . toCharArray ( ) , cursorLocation , expectedCompletionNodeToString , expectedParentNodeToString , expectedUnitDisplayString , completionIdentifier , expectedReplacedSource , "<STR_LIT>" ) ; } public void test0071_Method ( ) { String str = "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" ; String completeBehind = "<STR_LIT>" ; int cursorLocation = str . indexOf ( "<STR_LIT>" ) + completeBehind . length ( ) - <NUM_LIT:1> ; String expectedCompletionNodeToString = "<STR_LIT>" ; String expectedParentNodeToString = "<STR_LIT>" ; String completionIdentifier = "<STR_LIT>" ; String expectedReplacedSource = "<STR_LIT>" ; String expectedUnitDisplayString = "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" ; checkMethodParse ( str . toCharArray ( ) , cursorLocation , expectedCompletionNodeToString , expectedParentNodeToString , expectedUnitDisplayString , completionIdentifier , expectedReplacedSource , "<STR_LIT>" ) ; } public void test0072_Diet ( ) { String str = "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" ; String completeBehind = "<STR_LIT>" ; int cursorLocation = str . indexOf ( "<STR_LIT>" ) + completeBehind . length ( ) - <NUM_LIT:1> ; String expectedCompletionNodeToString = "<STR_LIT>" ; String expectedParentNodeToString = "<STR_LIT>" ; String completionIdentifier = "<STR_LIT>" ; String expectedReplacedSource = "<STR_LIT>" ; String expectedUnitDisplayString = "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" ; checkDietParse ( str . toCharArray ( ) , cursorLocation , expectedCompletionNodeToString , expectedParentNodeToString , expectedUnitDisplayString , completionIdentifier , expectedReplacedSource , "<STR_LIT>" ) ; } public void test0072_Method ( ) { String str = "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" ; String completeBehind = "<STR_LIT>" ; int cursorLocation = str . indexOf ( "<STR_LIT>" ) + completeBehind . length ( ) - <NUM_LIT:1> ; String expectedCompletionNodeToString = "<STR_LIT>" ; String expectedParentNodeToString = "<STR_LIT>" ; String completionIdentifier = "<STR_LIT>" ; String expectedReplacedSource = "<STR_LIT>" ; String expectedUnitDisplayString = "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" ; checkMethodParse ( str . toCharArray ( ) , cursorLocation , expectedCompletionNodeToString , expectedParentNodeToString , expectedUnitDisplayString , completionIdentifier , expectedReplacedSource , "<STR_LIT>" ) ; } public void test0073 ( ) { String str = "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" ; String completeBehind = "<STR_LIT>" ; int cursorLocation = str . indexOf ( "<STR_LIT>" ) + completeBehind . length ( ) - <NUM_LIT:1> ; String expectedCompletionNodeToString = "<STR_LIT>" ; String expectedParentNodeToString = "<STR_LIT>" ; String completionIdentifier = "<STR_LIT>" ; String expectedReplacedSource = "<STR_LIT>" ; String expectedUnitDisplayString = "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" ; checkDietParse ( str . toCharArray ( ) , cursorLocation , expectedCompletionNodeToString , expectedParentNodeToString , expectedUnitDisplayString , completionIdentifier , expectedReplacedSource , "<STR_LIT>" ) ; } public void test0074_Diet ( ) { String str = "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" ; String completeBehind = "<STR_LIT>" ; int cursorLocation = str . indexOf ( "<STR_LIT>" ) + completeBehind . length ( ) - <NUM_LIT:1> ; String expectedCompletionNodeToString = "<STR_LIT>" ; String expectedParentNodeToString = "<STR_LIT>" ; String completionIdentifier = "<STR_LIT>" ; String expectedReplacedSource = "<STR_LIT>" ; String expectedUnitDisplayString = "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" ; checkDietParse ( str . toCharArray ( ) , cursorLocation , expectedCompletionNodeToString , expectedParentNodeToString , expectedUnitDisplayString , completionIdentifier , expectedReplacedSource , "<STR_LIT>" ) ; } public void test0074_Method ( ) { String str = "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" ; String completeBehind = "<STR_LIT>" ; int cursorLocation = str . indexOf ( "<STR_LIT>" ) + completeBehind . length ( ) - <NUM_LIT:1> ; String expectedCompletionNodeToString = "<STR_LIT>" ; String expectedParentNodeToString = "<STR_LIT>" ; String completionIdentifier = "<STR_LIT>" ; String expectedReplacedSource = "<STR_LIT>" ; String expectedUnitDisplayString = "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" ; checkMethodParse ( str . toCharArray ( ) , cursorLocation , expectedCompletionNodeToString , expectedParentNodeToString , expectedUnitDisplayString , completionIdentifier , expectedReplacedSource , "<STR_LIT>" ) ; } public void test0075_Diet ( ) { String str = "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" ; String completeBehind = "<STR_LIT>" ; int cursorLocation = str . indexOf ( "<STR_LIT>" ) + completeBehind . length ( ) - <NUM_LIT:1> ; String expectedCompletionNodeToString = "<STR_LIT>" ; String expectedParentNodeToString = "<STR_LIT>" ; String completionIdentifier = "<STR_LIT>" ; String expectedReplacedSource = "<STR_LIT>" ; String expectedUnitDisplayString = "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" ; checkDietParse ( str . toCharArray ( ) , cursorLocation , expectedCompletionNodeToString , expectedParentNodeToString , expectedUnitDisplayString , completionIdentifier , expectedReplacedSource , "<STR_LIT>" ) ; } public void test0075_Method ( ) { String str = "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" ; String completeBehind = "<STR_LIT>" ; int cursorLocation = str . indexOf ( "<STR_LIT>" ) + completeBehind . length ( ) - <NUM_LIT:1> ; String expectedCompletionNodeToString = "<STR_LIT>" ; String expectedParentNodeToString = "<STR_LIT>" ; String completionIdentifier = "<STR_LIT>" ; String expectedReplacedSource = "<STR_LIT>" ; String expectedUnitDisplayString = "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" ; checkMethodParse ( str . toCharArray ( ) , cursorLocation , expectedCompletionNodeToString , expectedParentNodeToString , expectedUnitDisplayString , completionIdentifier , expectedReplacedSource , "<STR_LIT>" ) ; } public void test0076 ( ) { String str = "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" ; String completeBehind = "<STR_LIT>" ; int cursorLocation = str . indexOf ( "<STR_LIT>" ) + completeBehind . length ( ) - <NUM_LIT:1> ; String expectedCompletionNodeToString = "<STR_LIT>" ; String expectedParentNodeToString = "<STR_LIT>" ; String completionIdentifier = "<STR_LIT>" ; String expectedReplacedSource = "<STR_LIT>" ; String expectedUnitDisplayString = "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" ; checkDietParse ( str . toCharArray ( ) , cursorLocation , expectedCompletionNodeToString , expectedParentNodeToString , expectedUnitDisplayString , completionIdentifier , expectedReplacedSource , "<STR_LIT>" ) ; } public void test0077_Diet ( ) { String str = "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" ; String completeBehind = "<STR_LIT>" ; int cursorLocation = str . indexOf ( "<STR_LIT>" ) + completeBehind . length ( ) - <NUM_LIT:1> ; String expectedCompletionNodeToString = "<STR_LIT>" ; String expectedParentNodeToString = "<STR_LIT>" ; String completionIdentifier = "<STR_LIT>" ; String expectedReplacedSource = "<STR_LIT>" ; String expectedUnitDisplayString = "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" ; checkDietParse ( str . toCharArray ( ) , cursorLocation , expectedCompletionNodeToString , expectedParentNodeToString , expectedUnitDisplayString , completionIdentifier , expectedReplacedSource , "<STR_LIT>" ) ; } public void test0077_Method ( ) { String str = "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" ; String completeBehind = "<STR_LIT>" ; int cursorLocation = str . indexOf ( "<STR_LIT>" ) + completeBehind . length ( ) - <NUM_LIT:1> ; String expectedCompletionNodeToString = "<STR_LIT>" ; String expectedParentNodeToString = "<STR_LIT>" ; String completionIdentifier = "<STR_LIT>" ; String expectedReplacedSource = "<STR_LIT>" ; String expectedUnitDisplayString = "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" ; checkMethodParse ( str . toCharArray ( ) , cursorLocation , expectedCompletionNodeToString , expectedParentNodeToString , expectedUnitDisplayString , completionIdentifier , expectedReplacedSource , "<STR_LIT>" ) ; } public void test0078_Diet ( ) { String str = "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" ; String completeBehind = "<STR_LIT>" ; int cursorLocation = str . indexOf ( "<STR_LIT>" ) + completeBehind . length ( ) - <NUM_LIT:1> ; String expectedCompletionNodeToString = "<STR_LIT>" ; String expectedParentNodeToString = "<STR_LIT>" ; String completionIdentifier = "<STR_LIT>" ; String expectedReplacedSource = "<STR_LIT>" ; String expectedUnitDisplayString = "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" ; checkDietParse ( str . toCharArray ( ) , cursorLocation , expectedCompletionNodeToString , expectedParentNodeToString , expectedUnitDisplayString , completionIdentifier , expectedReplacedSource , "<STR_LIT>" ) ; } public void test0078_Method ( ) { String str = "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" ; String completeBehind = "<STR_LIT>" ; int cursorLocation = str . indexOf ( "<STR_LIT>" ) + completeBehind . length ( ) - <NUM_LIT:1> ; String expectedCompletionNodeToString = "<STR_LIT>" ; String expectedParentNodeToString = "<STR_LIT>" ; String completionIdentifier = "<STR_LIT>" ; String expectedReplacedSource = "<STR_LIT>" ; String expectedUnitDisplayString = "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" ; checkMethodParse ( str . toCharArray ( ) , cursorLocation , expectedCompletionNodeToString , expectedParentNodeToString , expectedUnitDisplayString , completionIdentifier , expectedReplacedSource , "<STR_LIT>" ) ; } public void test0079_Diet ( ) { String str = "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" ; String completeBehind = "<STR_LIT>" ; int cursorLocation = str . indexOf ( "<STR_LIT>" ) + completeBehind . length ( ) - <NUM_LIT:1> ; String expectedCompletionNodeToString = "<STR_LIT>" ; String expectedParentNodeToString = "<STR_LIT>" ; String completionIdentifier = "<STR_LIT>" ; String expectedReplacedSource = "<STR_LIT>" ; String expectedUnitDisplayString = "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" ; checkDietParse ( str . toCharArray ( ) , cursorLocation , expectedCompletionNodeToString , expectedParentNodeToString , expectedUnitDisplayString , completionIdentifier , expectedReplacedSource , "<STR_LIT>" ) ; } public void test0079_Method ( ) { String str = "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" ; String completeBehind = "<STR_LIT>" ; int cursorLocation = str . indexOf ( "<STR_LIT>" ) + completeBehind . length ( ) - <NUM_LIT:1> ; String expectedCompletionNodeToString = "<STR_LIT>" ; String expectedParentNodeToString = "<STR_LIT>" ; String completionIdentifier = "<STR_LIT>" ; String expectedReplacedSource = "<STR_LIT>" ; String expectedUnitDisplayString = "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" ; checkMethodParse ( str . toCharArray ( ) , cursorLocation , expectedCompletionNodeToString , expectedParentNodeToString , expectedUnitDisplayString , completionIdentifier , expectedReplacedSource , "<STR_LIT>" ) ; } public void test0080_Diet ( ) { String str = "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" ; String completeBehind = "<STR_LIT>" ; int cursorLocation = str . indexOf ( "<STR_LIT>" ) + completeBehind . length ( ) - <NUM_LIT:1> ; String expectedCompletionNodeToString = "<STR_LIT>" ; String expectedParentNodeToString = "<STR_LIT>" ; String completionIdentifier = "<STR_LIT>" ; String expectedReplacedSource = "<STR_LIT>" ; String expectedUnitDisplayString = "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" ; checkDietParse ( str . toCharArray ( ) , cursorLocation , expectedCompletionNodeToString , expectedParentNodeToString , expectedUnitDisplayString , completionIdentifier , expectedReplacedSource , "<STR_LIT>" ) ; } public void test0080_Method ( ) { String str = "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" ; String completeBehind = "<STR_LIT>" ; int cursorLocation = str . indexOf ( "<STR_LIT>" ) + completeBehind . length ( ) - <NUM_LIT:1> ; String expectedCompletionNodeToString = "<STR_LIT>" ; String expectedParentNodeToString = "<STR_LIT>" ; String completionIdentifier = "<STR_LIT>" ; String expectedReplacedSource = "<STR_LIT>" ; String expectedUnitDisplayString = "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" ; checkMethodParse ( str . toCharArray ( ) , cursorLocation , expectedCompletionNodeToString , expectedParentNodeToString , expectedUnitDisplayString , completionIdentifier , expectedReplacedSource , "<STR_LIT>" ) ; } public void test0081_Diet ( ) { String str = "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" ; String completeBehind = "<STR_LIT>" ; int cursorLocation = str . indexOf ( "<STR_LIT>" ) + completeBehind . length ( ) - <NUM_LIT:1> ; String expectedCompletionNodeToString = "<STR_LIT>" ; String expectedParentNodeToString = "<STR_LIT>" ; String completionIdentifier = "<STR_LIT>" ; String expectedReplacedSource = "<STR_LIT>" ; String expectedUnitDisplayString = "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" ; checkDietParse ( str . toCharArray ( ) , cursorLocation , expectedCompletionNodeToString , expectedParentNodeToString , expectedUnitDisplayString , completionIdentifier , expectedReplacedSource , "<STR_LIT>" ) ; } public void test0081_Method ( ) { String str = "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" ; String completeBehind = "<STR_LIT>" ; int cursorLocation = str . indexOf ( "<STR_LIT>" ) + completeBehind . length ( ) - <NUM_LIT:1> ; String expectedCompletionNodeToString = "<STR_LIT>" ; String expectedParentNodeToString = "<STR_LIT>" ; String completionIdentifier = "<STR_LIT>" ; String expectedReplacedSource = "<STR_LIT>" ; String expectedUnitDisplayString = "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" ; checkMethodParse ( str . toCharArray ( ) , cursorLocation , expectedCompletionNodeToString , expectedParentNodeToString , expectedUnitDisplayString , completionIdentifier , expectedReplacedSource , "<STR_LIT>" ) ; } public void test0082_Diet ( ) { String str = "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" ; String completeBehind = "<STR_LIT>" ; int cursorLocation = str . indexOf ( "<STR_LIT>" ) + completeBehind . length ( ) - <NUM_LIT:1> ; String expectedCompletionNodeToString = "<STR_LIT>" ; String expectedParentNodeToString = "<STR_LIT>" ; String completionIdentifier = "<STR_LIT>" ; String expectedReplacedSource = "<STR_LIT>" ; String expectedUnitDisplayString = "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" ; checkDietParse ( str . toCharArray ( ) , cursorLocation , expectedCompletionNodeToString , expectedParentNodeToString , expectedUnitDisplayString , completionIdentifier , expectedReplacedSource , "<STR_LIT>" ) ; } public void test0082_Method ( ) { String str = "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" ; String completeBehind = "<STR_LIT>" ; int cursorLocation = str . indexOf ( "<STR_LIT>" ) + completeBehind . length ( ) - <NUM_LIT:1> ; String expectedCompletionNodeToString = "<STR_LIT>" ; String expectedParentNodeToString = "<STR_LIT>" ; String completionIdentifier = "<STR_LIT>" ; String expectedReplacedSource = "<STR_LIT>" ; String expectedUnitDisplayString = "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" ; checkMethodParse ( str . toCharArray ( ) , cursorLocation , expectedCompletionNodeToString , expectedParentNodeToString , expectedUnitDisplayString , completionIdentifier , expectedReplacedSource , "<STR_LIT>" ) ; } public void test0083_Diet ( ) { String str = "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" ; String completeBehind = "<STR_LIT>" ; int cursorLocation = str . indexOf ( "<STR_LIT>" ) + completeBehind . length ( ) - <NUM_LIT:1> ; String expectedCompletionNodeToString = "<STR_LIT>" ; String expectedParentNodeToString = "<STR_LIT>" ; String completionIdentifier = "<STR_LIT>" ; String expectedReplacedSource = "<STR_LIT>" ; String expectedUnitDisplayString = "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" ; checkDietParse ( str . toCharArray ( ) , cursorLocation , expectedCompletionNodeToString , expectedParentNodeToString , expectedUnitDisplayString , completionIdentifier , expectedReplacedSource , "<STR_LIT>" ) ; } public void test0083_Method ( ) { String str = "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" ; String completeBehind = "<STR_LIT>" ; int cursorLocation = str . indexOf ( "<STR_LIT>" ) + completeBehind . length ( ) - <NUM_LIT:1> ; String expectedCompletionNodeToString = "<STR_LIT>" ; String expectedParentNodeToString = "<STR_LIT>" ; String completionIdentifier = "<STR_LIT>" ; String expectedReplacedSource = "<STR_LIT>" ; String expectedUnitDisplayString = "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" ; checkMethodParse ( str . toCharArray ( ) , cursorLocation , expectedCompletionNodeToString , expectedParentNodeToString , expectedUnitDisplayString , completionIdentifier , expectedReplacedSource , "<STR_LIT>" ) ; } public void test0084_Diet ( ) { String str = "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" ; String completeBehind = "<STR_LIT>" ; int cursorLocation = str . indexOf ( "<STR_LIT>" ) + completeBehind . length ( ) - <NUM_LIT:1> ; String expectedCompletionNodeToString = "<STR_LIT>" ; String expectedParentNodeToString = "<STR_LIT>" ; String completionIdentifier = "<STR_LIT>" ; String expectedReplacedSource = "<STR_LIT>" ; String expectedUnitDisplayString = "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" ; checkDietParse ( str . toCharArray ( ) , cursorLocation , expectedCompletionNodeToString , expectedParentNodeToString , expectedUnitDisplayString , completionIdentifier , expectedReplacedSource , "<STR_LIT>" ) ; } public void test0084_Method ( ) { String str = "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" ; String completeBehind = "<STR_LIT>" ; int cursorLocation = str . indexOf ( "<STR_LIT>" ) + completeBehind . length ( ) - <NUM_LIT:1> ; String expectedCompletionNodeToString = "<STR_LIT>" ; String expectedParentNodeToString = "<STR_LIT>" ; String completionIdentifier = "<STR_LIT>" ; String expectedReplacedSource = "<STR_LIT>" ; String expectedUnitDisplayString = "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" ; checkMethodParse ( str . toCharArray ( ) , cursorLocation , expectedCompletionNodeToString , expectedParentNodeToString , expectedUnitDisplayString , completionIdentifier , expectedReplacedSource , "<STR_LIT>" ) ; } public void test0085_Diet ( ) { String str = "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" ; String completeBehind = "<STR_LIT>" ; int cursorLocation = str . indexOf ( "<STR_LIT>" ) + completeBehind . length ( ) - <NUM_LIT:1> ; String expectedCompletionNodeToString = "<STR_LIT>" ; String expectedParentNodeToString = "<STR_LIT>" ; String completionIdentifier = "<STR_LIT>" ; String expectedReplacedSource = "<STR_LIT>" ; String expectedUnitDisplayString = "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" ; checkDietParse ( str . toCharArray ( ) , cursorLocation , expectedCompletionNodeToString , expectedParentNodeToString , expectedUnitDisplayString , completionIdentifier , expectedReplacedSource , "<STR_LIT>" ) ; } public void test0085_Method ( ) { String str = "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" ; String completeBehind = "<STR_LIT>" ; int cursorLocation = str . indexOf ( "<STR_LIT>" ) + completeBehind . length ( ) - <NUM_LIT:1> ; String expectedCompletionNodeToString = "<STR_LIT>" ; String expectedParentNodeToString = "<STR_LIT>" ; String completionIdentifier = "<STR_LIT>" ; String expectedReplacedSource = "<STR_LIT>" ; String expectedUnitDisplayString = "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" ; checkMethodParse ( str . toCharArray ( ) , cursorLocation , expectedCompletionNodeToString , expectedParentNodeToString , expectedUnitDisplayString , completionIdentifier , expectedReplacedSource , "<STR_LIT>" ) ; } public void test0086_Diet ( ) { String str = "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" ; String completeBehind = "<STR_LIT>" ; int cursorLocation = str . indexOf ( "<STR_LIT>" ) + completeBehind . length ( ) - <NUM_LIT:1> ; String expectedCompletionNodeToString = "<STR_LIT>" ; String expectedParentNodeToString = "<STR_LIT>" ; String completionIdentifier = "<STR_LIT>" ; String expectedReplacedSource = "<STR_LIT>" ; String expectedUnitDisplayString = "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" ; checkDietParse ( str . toCharArray ( ) , cursorLocation , expectedCompletionNodeToString , expectedParentNodeToString , expectedUnitDisplayString , completionIdentifier , expectedReplacedSource , "<STR_LIT>" ) ; } public void test0086_Method ( ) { String str = "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" ; String completeBehind = "<STR_LIT>" ; int cursorLocation = str . indexOf ( "<STR_LIT>" ) + completeBehind . length ( ) - <NUM_LIT:1> ; String expectedCompletionNodeToString = "<STR_LIT>" ; String expectedParentNodeToString = "<STR_LIT>" ; String completionIdentifier = "<STR_LIT>" ; String expectedReplacedSource = "<STR_LIT>" ; String expectedUnitDisplayString = "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" ; checkMethodParse ( str . toCharArray ( ) , cursorLocation , expectedCompletionNodeToString , expectedParentNodeToString , expectedUnitDisplayString , completionIdentifier , expectedReplacedSource , "<STR_LIT>" ) ; } public void test0087_Diet ( ) { String str = "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" ; String completeBehind = "<STR_LIT>" ; int cursorLocation = str . indexOf ( "<STR_LIT>" ) + completeBehind . length ( ) - <NUM_LIT:1> ; String expectedCompletionNodeToString = "<STR_LIT>" ; String expectedParentNodeToString = "<STR_LIT>" ; String completionIdentifier = "<STR_LIT>" ; String expectedReplacedSource = "<STR_LIT>" ; String expectedUnitDisplayString = "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" ; checkDietParse ( str . toCharArray ( ) , cursorLocation , expectedCompletionNodeToString , expectedParentNodeToString , expectedUnitDisplayString , completionIdentifier , expectedReplacedSource , "<STR_LIT>" ) ; } public void test0087_Method ( ) { String str = "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" ; String completeBehind = "<STR_LIT>" ; int cursorLocation = str . indexOf ( "<STR_LIT>" ) + completeBehind . length ( ) - <NUM_LIT:1> ; String expectedCompletionNodeToString = "<STR_LIT>" ; String expectedParentNodeToString = "<STR_LIT>" ; String completionIdentifier = "<STR_LIT>" ; String expectedReplacedSource = "<STR_LIT>" ; String expectedUnitDisplayString = "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" ; checkMethodParse ( str . toCharArray ( ) , cursorLocation , expectedCompletionNodeToString , expectedParentNodeToString , expectedUnitDisplayString , completionIdentifier , expectedReplacedSource , "<STR_LIT>" ) ; } public void test0088_Diet ( ) { String str = "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" ; String completeBehind = "<STR_LIT>" ; int cursorLocation = str . indexOf ( "<STR_LIT>" ) + completeBehind . length ( ) - <NUM_LIT:1> ; String expectedCompletionNodeToString = "<STR_LIT>" ; String expectedParentNodeToString = "<STR_LIT>" ; String completionIdentifier = "<STR_LIT>" ; String expectedReplacedSource = "<STR_LIT>" ; String expectedUnitDisplayString = "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" ; checkDietParse ( str . toCharArray ( ) , cursorLocation , expectedCompletionNodeToString , expectedParentNodeToString , expectedUnitDisplayString , completionIdentifier , expectedReplacedSource , "<STR_LIT>" ) ; } public void test0088_Method ( ) { String str = "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" ; String completeBehind = "<STR_LIT>" ; int cursorLocation = str . indexOf ( "<STR_LIT>" ) + completeBehind . length ( ) - <NUM_LIT:1> ; String expectedCompletionNodeToString = "<STR_LIT>" ; String expectedParentNodeToString = "<STR_LIT>" ; String completionIdentifier = "<STR_LIT>" ; String expectedReplacedSource = "<STR_LIT>" ; String expectedUnitDisplayString = "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" ; checkMethodParse ( str . toCharArray ( ) , cursorLocation , expectedCompletionNodeToString , expectedParentNodeToString , expectedUnitDisplayString , completionIdentifier , expectedReplacedSource , "<STR_LIT>" ) ; } public void test0089_Diet ( ) { String str = "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" ; String completeBehind = "<STR_LIT>" ; int cursorLocation = str . indexOf ( "<STR_LIT>" ) + completeBehind . length ( ) - <NUM_LIT:1> ; String expectedCompletionNodeToString = "<STR_LIT>" ; String expectedParentNodeToString = "<STR_LIT>" ; String completionIdentifier = "<STR_LIT>" ; String expectedReplacedSource = "<STR_LIT>" ; String expectedUnitDisplayString = "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" ; checkDietParse ( str . toCharArray ( ) , cursorLocation , expectedCompletionNodeToString , expectedParentNodeToString , expectedUnitDisplayString , completionIdentifier , expectedReplacedSource , "<STR_LIT>" ) ; } public void test0089_Method ( ) { String str = "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" ; String completeBehind = "<STR_LIT>" ; int cursorLocation = str . indexOf ( "<STR_LIT>" ) + completeBehind . length ( ) - <NUM_LIT:1> ; String expectedCompletionNodeToString = "<STR_LIT>" ; String expectedParentNodeToString = "<STR_LIT>" ; String completionIdentifier = "<STR_LIT>" ; String expectedReplacedSource = "<STR_LIT>" ; String expectedUnitDisplayString = "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" ; checkMethodParse ( str . toCharArray ( ) , cursorLocation , expectedCompletionNodeToString , expectedParentNodeToString , expectedUnitDisplayString , completionIdentifier , expectedReplacedSource , "<STR_LIT>" ) ; } public void test0090_Diet ( ) { String str = "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" ; String completeBehind = "<STR_LIT>" ; int cursorLocation = str . indexOf ( "<STR_LIT>" ) + completeBehind . length ( ) - <NUM_LIT:1> ; String expectedCompletionNodeToString = "<STR_LIT>" ; String expectedParentNodeToString = "<STR_LIT>" ; String completionIdentifier = "<STR_LIT>" ; String expectedReplacedSource = "<STR_LIT>" ; String expectedUnitDisplayString = "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" ; checkDietParse ( str . toCharArray ( ) , cursorLocation , expectedCompletionNodeToString , expectedParentNodeToString , expectedUnitDisplayString , completionIdentifier , expectedReplacedSource , "<STR_LIT>" ) ; } public void test0090_Method ( ) { String str = "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" ; String completeBehind = "<STR_LIT>" ; int cursorLocation = str . indexOf ( "<STR_LIT>" ) + completeBehind . length ( ) - <NUM_LIT:1> ; String expectedCompletionNodeToString = "<STR_LIT>" ; String expectedParentNodeToString = "<STR_LIT>" ; String completionIdentifier = "<STR_LIT>" ; String expectedReplacedSource = "<STR_LIT>" ; String expectedUnitDisplayString = "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" ; checkMethodParse ( str . toCharArray ( ) , cursorLocation , expectedCompletionNodeToString , expectedParentNodeToString , expectedUnitDisplayString , completionIdentifier , expectedReplacedSource , "<STR_LIT>" ) ; } public void test0091 ( ) { String str = "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" ; String completeBehind = "<STR_LIT>" ; int cursorLocation = str . indexOf ( "<STR_LIT>" ) + completeBehind . length ( ) - <NUM_LIT:1> ; String expectedCompletionNodeToString = "<STR_LIT>" ; String expectedParentNodeToString = "<STR_LIT>" ; String completionIdentifier = "<STR_LIT>" ; String expectedReplacedSource = "<STR_LIT>" ; String expectedUnitDisplayString = "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" ; checkDietParse ( str . toCharArray ( ) , cursorLocation , expectedCompletionNodeToString , expectedParentNodeToString , expectedUnitDisplayString , completionIdentifier , expectedReplacedSource , "<STR_LIT>" ) ; } public void test0092_Diet ( ) { String str = "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" ; String completeBehind = "<STR_LIT>" ; int cursorLocation = str . indexOf ( "<STR_LIT>" ) + completeBehind . length ( ) - <NUM_LIT:1> ; String expectedCompletionNodeToString = "<STR_LIT>" ; String expectedParentNodeToString = "<STR_LIT>" ; String completionIdentifier = "<STR_LIT>" ; String expectedReplacedSource = "<STR_LIT>" ; String expectedUnitDisplayString = "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" ; checkDietParse ( str . toCharArray ( ) , cursorLocation , expectedCompletionNodeToString , expectedParentNodeToString , expectedUnitDisplayString , completionIdentifier , expectedReplacedSource , "<STR_LIT>" ) ; } public void test0092_Method ( ) { String str = "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" ; String completeBehind = "<STR_LIT>" ; int cursorLocation = str . indexOf ( "<STR_LIT>" ) + completeBehind . length ( ) - <NUM_LIT:1> ; String expectedCompletionNodeToString = "<STR_LIT>" ; String expectedParentNodeToString = "<STR_LIT>" ; String completionIdentifier = "<STR_LIT>" ; String expectedReplacedSource = "<STR_LIT>" ; String expectedUnitDisplayString = "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" ; checkMethodParse ( str . toCharArray ( ) , cursorLocation , expectedCompletionNodeToString , expectedParentNodeToString , expectedUnitDisplayString , completionIdentifier , expectedReplacedSource , "<STR_LIT>" ) ; } public void test0093_Diet ( ) { String str = "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" ; String completeBehind = "<STR_LIT>" ; int cursorLocation = str . indexOf ( "<STR_LIT>" ) + completeBehind . length ( ) - <NUM_LIT:1> ; String expectedCompletionNodeToString = "<STR_LIT>" ; String expectedParentNodeToString = "<STR_LIT>" ; String completionIdentifier = "<STR_LIT>" ; String expectedReplacedSource = "<STR_LIT>" ; String expectedUnitDisplayString = "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" ; checkDietParse ( str . toCharArray ( ) , cursorLocation , expectedCompletionNodeToString , expectedParentNodeToString , expectedUnitDisplayString , completionIdentifier , expectedReplacedSource , "<STR_LIT>" ) ; } public void test0093_Method ( ) { String str = "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" ; String completeBehind = "<STR_LIT>" ; int cursorLocation = str . indexOf ( "<STR_LIT>" ) + completeBehind . length ( ) - <NUM_LIT:1> ; String expectedCompletionNodeToString = "<STR_LIT>" ; String expectedParentNodeToString = "<STR_LIT>" ; String completionIdentifier = "<STR_LIT>" ; String expectedReplacedSource = "<STR_LIT>" ; String expectedUnitDisplayString = "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" ; checkMethodParse ( str . toCharArray ( ) , cursorLocation , expectedCompletionNodeToString , expectedParentNodeToString , expectedUnitDisplayString , completionIdentifier , expectedReplacedSource , "<STR_LIT>" ) ; } public void test0094 ( ) { String str = "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" ; String completeBehind = "<STR_LIT>" ; int cursorLocation = str . indexOf ( "<STR_LIT>" ) + completeBehind . length ( ) - <NUM_LIT:1> ; String expectedCompletionNodeToString = "<STR_LIT>" ; String expectedParentNodeToString = "<STR_LIT>" ; String completionIdentifier = "<STR_LIT>" ; String expectedReplacedSource = "<STR_LIT>" ; String expectedUnitDisplayString = "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" ; checkDietParse ( str . toCharArray ( ) , cursorLocation , expectedCompletionNodeToString , expectedParentNodeToString , expectedUnitDisplayString , completionIdentifier , expectedReplacedSource , "<STR_LIT>" ) ; } public void test0095_Diet ( ) { String str = "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" ; String completeBehind = "<STR_LIT>" ; int cursorLocation = str . indexOf ( "<STR_LIT>" ) + completeBehind . length ( ) - <NUM_LIT:1> ; String expectedCompletionNodeToString = "<STR_LIT>" ; String expectedParentNodeToString = "<STR_LIT>" ; String completionIdentifier = "<STR_LIT>" ; String expectedReplacedSource = "<STR_LIT>" ; String expectedUnitDisplayString = "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" ; checkDietParse ( str . toCharArray ( ) , cursorLocation , expectedCompletionNodeToString , expectedParentNodeToString , expectedUnitDisplayString , completionIdentifier , expectedReplacedSource , "<STR_LIT>" ) ; } public void test0095_Method ( ) { String str = "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" ; String completeBehind = "<STR_LIT>" ; int cursorLocation = str . indexOf ( "<STR_LIT>" ) + completeBehind . length ( ) - <NUM_LIT:1> ; String expectedCompletionNodeToString = "<STR_LIT>" ; String expectedParentNodeToString = "<STR_LIT>" ; String completionIdentifier = "<STR_LIT>" ; String expectedReplacedSource = "<STR_LIT>" ; String expectedUnitDisplayString = "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" ; checkMethodParse ( str . toCharArray ( ) , cursorLocation , expectedCompletionNodeToString , expectedParentNodeToString , expectedUnitDisplayString , completionIdentifier , expectedReplacedSource , "<STR_LIT>" ) ; } public void test0096_Diet ( ) { String str = "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" ; String completeBehind = "<STR_LIT>" ; int cursorLocation = str . indexOf ( "<STR_LIT>" ) + completeBehind . length ( ) - <NUM_LIT:1> ; String expectedCompletionNodeToString = "<STR_LIT>" ; String expectedParentNodeToString = "<STR_LIT>" ; String completionIdentifier = "<STR_LIT>" ; String expectedReplacedSource = "<STR_LIT>" ; String expectedUnitDisplayString = "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" ; checkDietParse ( str . toCharArray ( ) , cursorLocation , expectedCompletionNodeToString , expectedParentNodeToString , expectedUnitDisplayString , completionIdentifier , expectedReplacedSource , "<STR_LIT>" ) ; } public void test0096_Method ( ) { String str = "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" ; String completeBehind = "<STR_LIT>" ; int cursorLocation = str . indexOf ( "<STR_LIT>" ) + completeBehind . length ( ) - <NUM_LIT:1> ; String expectedCompletionNodeToString = "<STR_LIT>" ; String expectedParentNodeToString = "<STR_LIT>" ; String completionIdentifier = "<STR_LIT>" ; String expectedReplacedSource = "<STR_LIT>" ; String expectedUnitDisplayString = "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" ; checkMethodParse ( str . toCharArray ( ) , cursorLocation , expectedCompletionNodeToString , expectedParentNodeToString , expectedUnitDisplayString , completionIdentifier , expectedReplacedSource , "<STR_LIT>" ) ; } public void test0097_Diet ( ) { String str = "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" ; String completeBehind = "<STR_LIT>" ; int cursorLocation = str . indexOf ( "<STR_LIT>" ) + completeBehind . length ( ) - <NUM_LIT:1> ; String expectedCompletionNodeToString = "<STR_LIT>" ; String expectedParentNodeToString = "<STR_LIT>" ; String completionIdentifier = "<STR_LIT>" ; String expectedReplacedSource = "<STR_LIT>" ; String expectedUnitDisplayString = "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" ; checkDietParse ( str . toCharArray ( ) , cursorLocation , expectedCompletionNodeToString , expectedParentNodeToString , expectedUnitDisplayString , completionIdentifier , expectedReplacedSource , "<STR_LIT>" ) ; } public void test0097_Method ( ) { String str = "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" ; String completeBehind = "<STR_LIT>" ; int cursorLocation = str . indexOf ( "<STR_LIT>" ) + completeBehind . length ( ) - <NUM_LIT:1> ; String expectedCompletionNodeToString = "<STR_LIT>" ; String expectedParentNodeToString = "<STR_LIT>" ; String completionIdentifier = "<STR_LIT>" ; String expectedReplacedSource = "<STR_LIT>" ; String expectedUnitDisplayString = "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" ; checkMethodParse ( str . toCharArray ( ) , cursorLocation , expectedCompletionNodeToString , expectedParentNodeToString , expectedUnitDisplayString , completionIdentifier , expectedReplacedSource , "<STR_LIT>" ) ; } public void test0098_Diet ( ) { String str = "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" ; String completeBehind = "<STR_LIT>" ; int cursorLocation = str . indexOf ( "<STR_LIT>" ) + completeBehind . length ( ) - <NUM_LIT:1> ; String expectedCompletionNodeToString = "<STR_LIT>" ; String expectedParentNodeToString = "<STR_LIT>" ; String completionIdentifier = "<STR_LIT>" ; String expectedReplacedSource = "<STR_LIT>" ; String expectedUnitDisplayString = "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" ; checkDietParse ( str . toCharArray ( ) , cursorLocation , expectedCompletionNodeToString , expectedParentNodeToString , expectedUnitDisplayString , completionIdentifier , expectedReplacedSource , "<STR_LIT>" ) ; } public void test0098_Method ( ) { String str = "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" ; String completeBehind = "<STR_LIT>" ; int cursorLocation = str . indexOf ( "<STR_LIT>" ) + completeBehind . length ( ) - <NUM_LIT:1> ; String expectedCompletionNodeToString = "<STR_LIT>" ; String expectedParentNodeToString = "<STR_LIT>" ; String completionIdentifier = "<STR_LIT>" ; String expectedReplacedSource = "<STR_LIT>" ; String expectedUnitDisplayString = "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" ; checkMethodParse ( str . toCharArray ( ) , cursorLocation , expectedCompletionNodeToString , expectedParentNodeToString , expectedUnitDisplayString , completionIdentifier , expectedReplacedSource , "<STR_LIT>" ) ; } public void test0099_Diet ( ) { String str = "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" ; String completeBehind = "<STR_LIT>" ; int cursorLocation = str . indexOf ( "<STR_LIT>" ) + completeBehind . length ( ) - <NUM_LIT:1> ; String expectedCompletionNodeToString = "<STR_LIT>" ; String expectedParentNodeToString = "<STR_LIT>" ; String completionIdentifier = "<STR_LIT>" ; String expectedReplacedSource = "<STR_LIT>" ; String expectedUnitDisplayString = "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" ; checkDietParse ( str . toCharArray ( ) , cursorLocation , expectedCompletionNodeToString , expectedParentNodeToString , expectedUnitDisplayString , completionIdentifier , expectedReplacedSource , "<STR_LIT>" ) ; } public void test0099_Method ( ) { String str = "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" ; String completeBehind = "<STR_LIT>" ; int cursorLocation = str . indexOf ( "<STR_LIT>" ) + completeBehind . length ( ) - <NUM_LIT:1> ; String expectedCompletionNodeToString = "<STR_LIT>" ; String expectedParentNodeToString = "<STR_LIT>" ; String completionIdentifier = "<STR_LIT>" ; String expectedReplacedSource = "<STR_LIT>" ; String expectedUnitDisplayString = "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" ; checkMethodParse ( str . toCharArray ( ) , cursorLocation , expectedCompletionNodeToString , expectedParentNodeToString , expectedUnitDisplayString , completionIdentifier , expectedReplacedSource , "<STR_LIT>" ) ; } public void test0100_Diet ( ) { String str = "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" ; String completeBehind = "<STR_LIT>" ; int cursorLocation = str . indexOf ( "<STR_LIT>" ) + completeBehind . length ( ) - <NUM_LIT:1> ; String expectedCompletionNodeToString = "<STR_LIT>" ; String expectedParentNodeToString = "<STR_LIT>" ; String completionIdentifier = "<STR_LIT>" ; String expectedReplacedSource = "<STR_LIT>" ; String expectedUnitDisplayString = "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" ; checkDietParse ( str . toCharArray ( ) , cursorLocation , expectedCompletionNodeToString , expectedParentNodeToString , expectedUnitDisplayString , completionIdentifier , expectedReplacedSource , "<STR_LIT>" ) ; } public void test0100_Method ( ) { String str = "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" ; String completeBehind = "<STR_LIT>" ; int cursorLocation = str . indexOf ( "<STR_LIT>" ) + completeBehind . length ( ) - <NUM_LIT:1> ; String expectedCompletionNodeToString = "<STR_LIT>" ; String expectedParentNodeToString = "<STR_LIT>" ; String completionIdentifier = "<STR_LIT>" ; String expectedReplacedSource = "<STR_LIT>" ; String expectedUnitDisplayString = "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" ; checkMethodParse ( str . toCharArray ( ) , cursorLocation , expectedCompletionNodeToString , expectedParentNodeToString , expectedUnitDisplayString , completionIdentifier , expectedReplacedSource , "<STR_LIT>" ) ; } public void test0101_Diet ( ) { String str = "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" ; String completeBehind = "<STR_LIT>" ; int cursorLocation = str . indexOf ( "<STR_LIT>" ) + completeBehind . length ( ) - <NUM_LIT:1> ; String expectedCompletionNodeToString = "<STR_LIT>" ; String expectedParentNodeToString = "<STR_LIT>" ; String completionIdentifier = "<STR_LIT>" ; String expectedReplacedSource = "<STR_LIT>" ; String expectedUnitDisplayString = "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" ; checkDietParse ( str . toCharArray ( ) , cursorLocation , expectedCompletionNodeToString , expectedParentNodeToString , expectedUnitDisplayString , completionIdentifier , expectedReplacedSource , "<STR_LIT>" ) ; } public void test0101_Method ( ) { String str = "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" ; String completeBehind = "<STR_LIT>" ; int cursorLocation = str . indexOf ( "<STR_LIT>" ) + completeBehind . length ( ) - <NUM_LIT:1> ; String expectedCompletionNodeToString = "<STR_LIT>" ; String expectedParentNodeToString = "<STR_LIT>" ; String completionIdentifier = "<STR_LIT>" ; String expectedReplacedSource = "<STR_LIT>" ; String expectedUnitDisplayString = "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" ; checkMethodParse ( str . toCharArray ( ) , cursorLocation , expectedCompletionNodeToString , expectedParentNodeToString , expectedUnitDisplayString , completionIdentifier , expectedReplacedSource , "<STR_LIT>" ) ; } public void test0102_Diet ( ) { String str = "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" ; String completeBehind = "<STR_LIT>" ; int cursorLocation = str . indexOf ( "<STR_LIT>" ) + completeBehind . length ( ) - <NUM_LIT:1> ; String expectedCompletionNodeToString = "<STR_LIT>" ; String expectedParentNodeToString = "<STR_LIT>" ; String completionIdentifier = "<STR_LIT>" ; String expectedReplacedSource = "<STR_LIT>" ; String expectedUnitDisplayString = "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" ; checkDietParse ( str . toCharArray ( ) , cursorLocation , expectedCompletionNodeToString , expectedParentNodeToString , expectedUnitDisplayString , completionIdentifier , expectedReplacedSource , "<STR_LIT>" ) ; } public void test0102_Method ( ) { String str = "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" ; String completeBehind = "<STR_LIT>" ; int cursorLocation = str . indexOf ( "<STR_LIT>" ) + completeBehind . length ( ) - <NUM_LIT:1> ; String expectedCompletionNodeToString = "<STR_LIT>" ; String expectedParentNodeToString = "<STR_LIT>" ; String completionIdentifier = "<STR_LIT>" ; String expectedReplacedSource = "<STR_LIT>" ; String expectedUnitDisplayString = "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" ; checkMethodParse ( str . toCharArray ( ) , cursorLocation , expectedCompletionNodeToString , expectedParentNodeToString , expectedUnitDisplayString , completionIdentifier , expectedReplacedSource , "<STR_LIT>" ) ; } public void test0103_Diet ( ) { String str = "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" ; String completeBehind = "<STR_LIT>" ; int cursorLocation = str . indexOf ( "<STR_LIT>" ) + completeBehind . length ( ) - <NUM_LIT:1> ; String expectedCompletionNodeToString = "<STR_LIT>" ; String expectedParentNodeToString = "<STR_LIT>" ; String completionIdentifier = "<STR_LIT>" ; String expectedReplacedSource = "<STR_LIT>" ; String expectedUnitDisplayString = "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" ; checkDietParse ( str . toCharArray ( ) , cursorLocation , expectedCompletionNodeToString , expectedParentNodeToString , expectedUnitDisplayString , completionIdentifier , expectedReplacedSource , "<STR_LIT>" ) ; } public void test0103_Method ( ) { String str = "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" ; String completeBehind = "<STR_LIT>" ; int cursorLocation = str . indexOf ( "<STR_LIT>" ) + completeBehind . length ( ) - <NUM_LIT:1> ; String expectedCompletionNodeToString = "<STR_LIT>" ; String expectedParentNodeToString = "<STR_LIT>" ; String completionIdentifier = "<STR_LIT>" ; String expectedReplacedSource = "<STR_LIT>" ; String expectedUnitDisplayString = "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" ; checkMethodParse ( str . toCharArray ( ) , cursorLocation , expectedCompletionNodeToString , expectedParentNodeToString , expectedUnitDisplayString , completionIdentifier , expectedReplacedSource , "<STR_LIT>" ) ; } public void test0104_Diet ( ) { String str = "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" ; String completeBehind = "<STR_LIT>" ; int cursorLocation = str . indexOf ( "<STR_LIT>" ) + completeBehind . length ( ) - <NUM_LIT:1> ; String expectedCompletionNodeToString = "<STR_LIT>" ; String expectedParentNodeToString = "<STR_LIT>" ; String completionIdentifier = "<STR_LIT>" ; String expectedReplacedSource = "<STR_LIT>" ; String expectedUnitDisplayString = "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" ; checkDietParse ( str . toCharArray ( ) , cursorLocation , expectedCompletionNodeToString , expectedParentNodeToString , expectedUnitDisplayString , completionIdentifier , expectedReplacedSource , "<STR_LIT>" ) ; } public void test0104_Method ( ) { String str = "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" ; String completeBehind = "<STR_LIT>" ; int cursorLocation = str . indexOf ( "<STR_LIT>" ) + completeBehind . length ( ) - <NUM_LIT:1> ; String expectedCompletionNodeToString = "<STR_LIT>" ; String expectedParentNodeToString = "<STR_LIT>" ; String completionIdentifier = "<STR_LIT>" ; String expectedReplacedSource = "<STR_LIT>" ; String expectedUnitDisplayString = "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" ; checkMethodParse ( str . toCharArray ( ) , cursorLocation , expectedCompletionNodeToString , expectedParentNodeToString , expectedUnitDisplayString , completionIdentifier , expectedReplacedSource , "<STR_LIT>" ) ; } public void test0105_Diet ( ) { String str = "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" ; String completeBehind = "<STR_LIT>" ; int cursorLocation = str . indexOf ( "<STR_LIT>" ) + completeBehind . length ( ) - <NUM_LIT:1> ; String expectedCompletionNodeToString = "<STR_LIT>" ; String expectedParentNodeToString = "<STR_LIT>" ; String completionIdentifier = "<STR_LIT>" ; String expectedReplacedSource = "<STR_LIT>" ; String expectedUnitDisplayString = "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" ; checkDietParse ( str . toCharArray ( ) , cursorLocation , expectedCompletionNodeToString , expectedParentNodeToString , expectedUnitDisplayString , completionIdentifier , expectedReplacedSource , "<STR_LIT>" ) ; } public void test0105_Method ( ) { String str = "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" ; String completeBehind = "<STR_LIT>" ; int cursorLocation = str . indexOf ( "<STR_LIT>" ) + completeBehind . length ( ) - <NUM_LIT:1> ; String expectedCompletionNodeToString = "<STR_LIT>" ; String expectedParentNodeToString = "<STR_LIT>" ; String completionIdentifier = "<STR_LIT>" ; String expectedReplacedSource = "<STR_LIT>" ; String expectedUnitDisplayString = "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" ; checkMethodParse ( str . toCharArray ( ) , cursorLocation , expectedCompletionNodeToString , expectedParentNodeToString , expectedUnitDisplayString , completionIdentifier , expectedReplacedSource , "<STR_LIT>" ) ; } public void test0106_Diet ( ) { String str = "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" ; String completeBehind = "<STR_LIT>" ; int cursorLocation = str . indexOf ( "<STR_LIT>" ) + completeBehind . length ( ) - <NUM_LIT:1> ; String expectedCompletionNodeToString = "<STR_LIT>" ; String expectedParentNodeToString = "<STR_LIT>" ; String completionIdentifier = "<STR_LIT>" ; String expectedReplacedSource = "<STR_LIT>" ; String expectedUnitDisplayString = "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" ; checkDietParse ( str . toCharArray ( ) , cursorLocation , expectedCompletionNodeToString , expectedParentNodeToString , expectedUnitDisplayString , completionIdentifier , expectedReplacedSource , "<STR_LIT>" ) ; } public void test0106_Method ( ) { String str = "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" ; String completeBehind = "<STR_LIT>" ; int cursorLocation = str . indexOf ( "<STR_LIT>" ) + completeBehind . length ( ) - <NUM_LIT:1> ; String expectedCompletionNodeToString = "<STR_LIT>" ; String expectedParentNodeToString = "<STR_LIT>" ; String completionIdentifier = "<STR_LIT>" ; String expectedReplacedSource = "<STR_LIT>" ; String expectedUnitDisplayString = "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" ; checkMethodParse ( str . toCharArray ( ) , cursorLocation , expectedCompletionNodeToString , expectedParentNodeToString , expectedUnitDisplayString , completionIdentifier , expectedReplacedSource , "<STR_LIT>" ) ; } public void test0107_Diet ( ) { String str = "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" ; String completeBehind = "<STR_LIT>" ; int cursorLocation = str . indexOf ( "<STR_LIT>" ) + completeBehind . length ( ) - <NUM_LIT:1> ; String expectedCompletionNodeToString = "<STR_LIT>" ; String expectedParentNodeToString = "<STR_LIT>" ; String completionIdentifier = "<STR_LIT>" ; String expectedReplacedSource = "<STR_LIT>" ; String expectedUnitDisplayString = "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" ; checkDietParse ( str . toCharArray ( ) , cursorLocation , expectedCompletionNodeToString , expectedParentNodeToString , expectedUnitDisplayString , completionIdentifier , expectedReplacedSource , "<STR_LIT>" ) ; } public void test0107_Method ( ) { String str = "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" ; String completeBehind = "<STR_LIT>" ; int cursorLocation = str . indexOf ( "<STR_LIT>" ) + completeBehind . length ( ) - <NUM_LIT:1> ; String expectedCompletionNodeToString = "<STR_LIT>" ; String expectedParentNodeToString = "<STR_LIT>" ; String completionIdentifier = "<STR_LIT>" ; String expectedReplacedSource = "<STR_LIT>" ; String expectedUnitDisplayString = "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" ; checkMethodParse ( str . toCharArray ( ) , cursorLocation , expectedCompletionNodeToString , expectedParentNodeToString , expectedUnitDisplayString , completionIdentifier , expectedReplacedSource , "<STR_LIT>" ) ; } public void test0108_Diet ( ) { String str = "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" ; String completeBehind = "<STR_LIT>" ; int cursorLocation = str . indexOf ( "<STR_LIT>" ) + completeBehind . length ( ) - <NUM_LIT:1> ; String expectedCompletionNodeToString = "<STR_LIT>" ; String expectedParentNodeToString = "<STR_LIT>" ; String completionIdentifier = "<STR_LIT>" ; String expectedReplacedSource = "<STR_LIT>" ; String expectedUnitDisplayString = "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" ; checkDietParse ( str . toCharArray ( ) , cursorLocation , expectedCompletionNodeToString , expectedParentNodeToString , expectedUnitDisplayString , completionIdentifier , expectedReplacedSource , "<STR_LIT>" ) ; } public void test0108_Method ( ) { String str = "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" ; String completeBehind = "<STR_LIT>" ; int cursorLocation = str . indexOf ( "<STR_LIT>" ) + completeBehind . length ( ) - <NUM_LIT:1> ; String expectedCompletionNodeToString = "<STR_LIT>" ; String expectedParentNodeToString = "<STR_LIT>" ; String completionIdentifier = "<STR_LIT>" ; String expectedReplacedSource = "<STR_LIT>" ; String expectedUnitDisplayString = "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" ; checkMethodParse ( str . toCharArray ( ) , cursorLocation , expectedCompletionNodeToString , expectedParentNodeToString , expectedUnitDisplayString , completionIdentifier , expectedReplacedSource , "<STR_LIT>" ) ; } public void test0109_Diet ( ) { String str = "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" ; String completeBehind = "<STR_LIT>" ; int cursorLocation = str . indexOf ( "<STR_LIT>" ) + completeBehind . length ( ) - <NUM_LIT:1> ; String expectedCompletionNodeToString = "<STR_LIT>" ; String expectedParentNodeToString = "<STR_LIT>" ; String completionIdentifier = "<STR_LIT>" ; String expectedReplacedSource = "<STR_LIT>" ; String expectedUnitDisplayString = "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" ; checkDietParse ( str . toCharArray ( ) , cursorLocation , expectedCompletionNodeToString , expectedParentNodeToString , expectedUnitDisplayString , completionIdentifier , expectedReplacedSource , "<STR_LIT>" ) ; } public void test0109_Method ( ) { String str = "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" ; String completeBehind = "<STR_LIT>" ; int cursorLocation = str . indexOf ( "<STR_LIT>" ) + completeBehind . length ( ) - <NUM_LIT:1> ; String expectedCompletionNodeToString = "<STR_LIT>" ; String expectedParentNodeToString = "<STR_LIT>" ; String completionIdentifier = "<STR_LIT>" ; String expectedReplacedSource = "<STR_LIT>" ; String expectedUnitDisplayString = "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" ; checkMethodParse ( str . toCharArray ( ) , cursorLocation , expectedCompletionNodeToString , expectedParentNodeToString , expectedUnitDisplayString , completionIdentifier , expectedReplacedSource , "<STR_LIT>" ) ; } public void test0110_Diet ( ) { String str = "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" ; String completeBehind = "<STR_LIT>" ; int cursorLocation = str . indexOf ( "<STR_LIT>" ) + completeBehind . length ( ) - <NUM_LIT:1> ; String expectedCompletionNodeToString = "<STR_LIT>" ; String expectedParentNodeToString = "<STR_LIT>" ; String completionIdentifier = "<STR_LIT>" ; String expectedReplacedSource = "<STR_LIT>" ; String expectedUnitDisplayString = "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" ; checkDietParse ( str . toCharArray ( ) , cursorLocation , expectedCompletionNodeToString , expectedParentNodeToString , expectedUnitDisplayString , completionIdentifier , expectedReplacedSource , "<STR_LIT>" ) ; } public void test0110_Method ( ) { String str = "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" ; String completeBehind = "<STR_LIT>" ; int cursorLocation = str . indexOf ( "<STR_LIT>" ) + completeBehind . length ( ) - <NUM_LIT:1> ; String expectedCompletionNodeToString = "<STR_LIT>" ; String expectedParentNodeToString = "<STR_LIT>" ; String completionIdentifier = "<STR_LIT>" ; String expectedReplacedSource = "<STR_LIT>" ; String expectedUnitDisplayString = "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" ; checkMethodParse ( str . toCharArray ( ) , cursorLocation , expectedCompletionNodeToString , expectedParentNodeToString , expectedUnitDisplayString , completionIdentifier , expectedReplacedSource , "<STR_LIT>" ) ; } public void test0111_Diet ( ) { String str = "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" ; String completeBehind = "<STR_LIT>" ; int cursorLocation = str . indexOf ( "<STR_LIT>" ) + completeBehind . length ( ) - <NUM_LIT:1> ; String expectedCompletionNodeToString = "<STR_LIT>" ; String expectedParentNodeToString = "<STR_LIT>" ; String completionIdentifier = "<STR_LIT>" ; String expectedReplacedSource = "<STR_LIT>" ; String expectedUnitDisplayString = "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" ; checkDietParse ( str . toCharArray ( ) , cursorLocation , expectedCompletionNodeToString , expectedParentNodeToString , expectedUnitDisplayString , completionIdentifier , expectedReplacedSource , "<STR_LIT>" ) ; } public void test0111_Method ( ) { String str = "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" ; String completeBehind = "<STR_LIT>" ; int cursorLocation = str . indexOf ( "<STR_LIT>" ) + completeBehind . length ( ) - <NUM_LIT:1> ; String expectedCompletionNodeToString = "<STR_LIT>" ; String expectedParentNodeToString = "<STR_LIT>" ; String completionIdentifier = "<STR_LIT>" ; String expectedReplacedSource = "<STR_LIT>" ; String expectedUnitDisplayString = "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" ; checkMethodParse ( str . toCharArray ( ) , cursorLocation , expectedCompletionNodeToString , expectedParentNodeToString , expectedUnitDisplayString , completionIdentifier , expectedReplacedSource , "<STR_LIT>" ) ; } public void test0112_Diet ( ) { String str = "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" ; String completeBehind = "<STR_LIT>" ; int cursorLocation = str . indexOf ( "<STR_LIT>" ) + completeBehind . length ( ) - <NUM_LIT:1> ; String expectedCompletionNodeToString = "<STR_LIT>" ; String expectedParentNodeToString = "<STR_LIT>" ; String completionIdentifier = "<STR_LIT>" ; String expectedReplacedSource = "<STR_LIT>" ; String expectedUnitDisplayString = "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" ; checkDietParse ( str . toCharArray ( ) , cursorLocation , expectedCompletionNodeToString , expectedParentNodeToString , expectedUnitDisplayString , completionIdentifier , expectedReplacedSource , "<STR_LIT>" ) ; } public void test0112_Method ( ) { String str = "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" ; String completeBehind = "<STR_LIT>" ; int cursorLocation = str . indexOf ( "<STR_LIT>" ) + completeBehind . length ( ) - <NUM_LIT:1> ; String expectedCompletionNodeToString = "<STR_LIT>" ; String expectedParentNodeToString = "<STR_LIT>" ; String completionIdentifier = "<STR_LIT>" ; String expectedReplacedSource = "<STR_LIT>" ; String expectedUnitDisplayString = "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" ; checkMethodParse ( str . toCharArray ( ) , cursorLocation , expectedCompletionNodeToString , expectedParentNodeToString , expectedUnitDisplayString , completionIdentifier , expectedReplacedSource , "<STR_LIT>" ) ; } public void test0113_Diet ( ) { String str = "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" ; String completeBehind = "<STR_LIT>" ; int cursorLocation = str . indexOf ( "<STR_LIT>" ) + completeBehind . length ( ) - <NUM_LIT:1> ; String expectedCompletionNodeToString = "<STR_LIT>" ; String expectedParentNodeToString = "<STR_LIT>" ; String completionIdentifier = "<STR_LIT>" ; String expectedReplacedSource = "<STR_LIT>" ; String expectedUnitDisplayString = "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" ; checkDietParse ( str . toCharArray ( ) , cursorLocation , expectedCompletionNodeToString , expectedParentNodeToString , expectedUnitDisplayString , completionIdentifier , expectedReplacedSource , "<STR_LIT>" ) ; } public void test0113_Method ( ) { String str = "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" ; String completeBehind = "<STR_LIT>" ; int cursorLocation = str . indexOf ( "<STR_LIT>" ) + completeBehind . length ( ) - <NUM_LIT:1> ; String expectedCompletionNodeToString = "<STR_LIT>" ; String expectedParentNodeToString = "<STR_LIT>" ; String completionIdentifier = "<STR_LIT>" ; String expectedReplacedSource = "<STR_LIT>" ; String expectedUnitDisplayString = "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" ; checkMethodParse ( str . toCharArray ( ) , cursorLocation , expectedCompletionNodeToString , expectedParentNodeToString , expectedUnitDisplayString , completionIdentifier , expectedReplacedSource , "<STR_LIT>" ) ; } public void test0114_Diet ( ) { String str = "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" ; String completeBehind = "<STR_LIT>" ; int cursorLocation = str . indexOf ( "<STR_LIT>" ) + completeBehind . length ( ) - <NUM_LIT:1> ; String expectedCompletionNodeToString = "<STR_LIT>" ; String expectedParentNodeToString = "<STR_LIT>" ; String completionIdentifier = "<STR_LIT>" ; String expectedReplacedSource = "<STR_LIT>" ; String expectedUnitDisplayString = "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" ; checkDietParse ( str . toCharArray ( ) , cursorLocation , expectedCompletionNodeToString , expectedParentNodeToString , expectedUnitDisplayString , completionIdentifier , expectedReplacedSource , "<STR_LIT>" ) ; } public void test0114_Method ( ) { String str = "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" ; String completeBehind = "<STR_LIT>" ; int cursorLocation = str . indexOf ( "<STR_LIT>" ) + completeBehind . length ( ) - <NUM_LIT:1> ; String expectedCompletionNodeToString = "<STR_LIT>" ; String expectedParentNodeToString = "<STR_LIT>" ; String completionIdentifier = "<STR_LIT>" ; String expectedReplacedSource = "<STR_LIT>" ; String expectedUnitDisplayString = "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" ; checkMethodParse ( str . toCharArray ( ) , cursorLocation , expectedCompletionNodeToString , expectedParentNodeToString , expectedUnitDisplayString , completionIdentifier , expectedReplacedSource , "<STR_LIT>" ) ; } public void test0115_Diet ( ) { String str = "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" ; String completeBehind = "<STR_LIT>" ; int cursorLocation = str . indexOf ( "<STR_LIT>" ) + completeBehind . length ( ) - <NUM_LIT:1> ; String expectedCompletionNodeToString = "<STR_LIT>" ; String expectedParentNodeToString = "<STR_LIT>" ; String completionIdentifier = "<STR_LIT>" ; String expectedReplacedSource = "<STR_LIT>" ; String expectedUnitDisplayString = "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" ; checkDietParse ( str . toCharArray ( ) , cursorLocation , expectedCompletionNodeToString , expectedParentNodeToString , expectedUnitDisplayString , completionIdentifier , expectedReplacedSource , "<STR_LIT>" ) ; } public void test0115_Method ( ) { String str = "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" ; String completeBehind = "<STR_LIT>" ; int cursorLocation = str . indexOf ( "<STR_LIT>" ) + completeBehind . length ( ) - <NUM_LIT:1> ; String expectedCompletionNodeToString = "<STR_LIT>" ; String expectedParentNodeToString = "<STR_LIT>" ; String completionIdentifier = "<STR_LIT>" ; String expectedReplacedSource = "<STR_LIT>" ; String expectedUnitDisplayString = "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" ; checkMethodParse ( str . toCharArray ( ) , cursorLocation , expectedCompletionNodeToString , expectedParentNodeToString , expectedUnitDisplayString , completionIdentifier , expectedReplacedSource , "<STR_LIT>" ) ; } public void test0116_Diet ( ) { String str = "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" ; String completeBehind = "<STR_LIT>" ; int cursorLocation = str . indexOf ( "<STR_LIT>" ) + completeBehind . length ( ) - <NUM_LIT:1> ; String expectedCompletionNodeToString = "<STR_LIT>" ; String expectedParentNodeToString = "<STR_LIT>" ; String completionIdentifier = "<STR_LIT>" ; String expectedReplacedSource = "<STR_LIT>" ; String expectedUnitDisplayString = "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" ; checkDietParse ( str . toCharArray ( ) , cursorLocation , expectedCompletionNodeToString , expectedParentNodeToString , expectedUnitDisplayString , completionIdentifier , expectedReplacedSource , "<STR_LIT>" ) ; } public void test0116_Method ( ) { String str = "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" ; String completeBehind = "<STR_LIT>" ; int cursorLocation = str . indexOf ( "<STR_LIT>" ) + completeBehind . length ( ) - <NUM_LIT:1> ; String expectedCompletionNodeToString = "<STR_LIT>" ; String expectedParentNodeToString = "<STR_LIT>" ; String completionIdentifier = "<STR_LIT>" ; String expectedReplacedSource = "<STR_LIT>" ; String expectedUnitDisplayString = "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" ; checkMethodParse ( str . toCharArray ( ) , cursorLocation , expectedCompletionNodeToString , expectedParentNodeToString , expectedUnitDisplayString , completionIdentifier , expectedReplacedSource , "<STR_LIT>" ) ; } public void test0117_Diet ( ) { String str = "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" ; String completeBehind = "<STR_LIT>" ; int cursorLocation = str . indexOf ( "<STR_LIT>" ) + completeBehind . length ( ) - <NUM_LIT:1> ; String expectedCompletionNodeToString = "<STR_LIT>" ; String expectedParentNodeToString = "<STR_LIT>" ; String completionIdentifier = "<STR_LIT>" ; String expectedReplacedSource = "<STR_LIT>" ; String expectedUnitDisplayString = "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" ; checkDietParse ( str . toCharArray ( ) , cursorLocation , expectedCompletionNodeToString , expectedParentNodeToString , expectedUnitDisplayString , completionIdentifier , expectedReplacedSource , "<STR_LIT>" ) ; } public void test0117_Method ( ) { String str = "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" ; String completeBehind = "<STR_LIT>" ; int cursorLocation = str . indexOf ( "<STR_LIT>" ) + completeBehind . length ( ) - <NUM_LIT:1> ; String expectedCompletionNodeToString = "<STR_LIT>" ; String expectedParentNodeToString = "<STR_LIT>" ; String completionIdentifier = "<STR_LIT>" ; String expectedReplacedSource = "<STR_LIT>" ; String expectedUnitDisplayString = "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" ; checkMethodParse ( str . toCharArray ( ) , cursorLocation , expectedCompletionNodeToString , expectedParentNodeToString , expectedUnitDisplayString , completionIdentifier , expectedReplacedSource , "<STR_LIT>" ) ; } public void test0118_Diet ( ) { String str = "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" ; String completeBehind = "<STR_LIT>" ; int cursorLocation = str . indexOf ( "<STR_LIT>" ) + completeBehind . length ( ) - <NUM_LIT:1> ; String expectedCompletionNodeToString = "<STR_LIT>" ; String expectedParentNodeToString = "<STR_LIT>" ; String completionIdentifier = "<STR_LIT>" ; String expectedReplacedSource = "<STR_LIT>" ; String expectedUnitDisplayString = "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" ; checkDietParse ( str . toCharArray ( ) , cursorLocation , expectedCompletionNodeToString , expectedParentNodeToString , expectedUnitDisplayString , completionIdentifier , expectedReplacedSource , "<STR_LIT>" ) ; } public void test0118_Method ( ) { String str = "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" ; String completeBehind = "<STR_LIT>" ; int cursorLocation = str . indexOf ( "<STR_LIT>" ) + completeBehind . length ( ) - <NUM_LIT:1> ; String expectedCompletionNodeToString = "<STR_LIT>" ; String expectedParentNodeToString = "<STR_LIT>" ; String completionIdentifier = "<STR_LIT>" ; String expectedReplacedSource = "<STR_LIT>" ; String expectedUnitDisplayString = "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" ; checkMethodParse ( str . toCharArray ( ) , cursorLocation , expectedCompletionNodeToString , expectedParentNodeToString , expectedUnitDisplayString , completionIdentifier , expectedReplacedSource , "<STR_LIT>" ) ; } public void test0119_Diet ( ) { String str = "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" ; String completeBehind = "<STR_LIT>" ; int cursorLocation = str . indexOf ( "<STR_LIT>" ) + completeBehind . length ( ) - <NUM_LIT:1> ; String expectedCompletionNodeToString = "<STR_LIT>" ; String expectedParentNodeToString = "<STR_LIT>" ; String completionIdentifier = "<STR_LIT>" ; String expectedReplacedSource = "<STR_LIT>" ; String expectedUnitDisplayString = "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" ; checkDietParse ( str . toCharArray ( ) , cursorLocation , expectedCompletionNodeToString , expectedParentNodeToString , expectedUnitDisplayString , completionIdentifier , expectedReplacedSource , "<STR_LIT>" ) ; } public void test0119_Method ( ) { String str = "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" ; String completeBehind = "<STR_LIT>" ; int cursorLocation = str . indexOf ( "<STR_LIT>" ) + completeBehind . length ( ) - <NUM_LIT:1> ; String expectedCompletionNodeToString = "<STR_LIT>" ; String expectedParentNodeToString = "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT:}>" ; String completionIdentifier = "<STR_LIT>" ; String expectedReplacedSource = "<STR_LIT>" ; String expectedUnitDisplayString = "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" ; checkMethodParse ( str . toCharArray ( ) , cursorLocation , expectedCompletionNodeToString , expectedParentNodeToString , expectedUnitDisplayString , completionIdentifier , expectedReplacedSource , "<STR_LIT>" ) ; } public void test0120_Diet ( ) { String str = "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" ; String completeBehind = "<STR_LIT>" ; int cursorLocation = str . indexOf ( "<STR_LIT>" ) + completeBehind . length ( ) - <NUM_LIT:1> ; String expectedCompletionNodeToString = "<STR_LIT>" ; String expectedParentNodeToString = "<STR_LIT>" ; String completionIdentifier = "<STR_LIT>" ; String expectedReplacedSource = "<STR_LIT>" ; String expectedUnitDisplayString = "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" ; checkDietParse ( str . toCharArray ( ) , cursorLocation , expectedCompletionNodeToString , expectedParentNodeToString , expectedUnitDisplayString , completionIdentifier , expectedReplacedSource , "<STR_LIT>" ) ; } public void test0120_Method ( ) { String str = "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" ; String completeBehind = "<STR_LIT>" ; int cursorLocation = str . indexOf ( "<STR_LIT>" ) + completeBehind . length ( ) - <NUM_LIT:1> ; String expectedCompletionNodeToString = "<STR_LIT>" ; String expectedParentNodeToString = "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT:}>" ; String completionIdentifier = "<STR_LIT>" ; String expectedReplacedSource = "<STR_LIT>" ; String expectedUnitDisplayString = "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" ; checkMethodParse ( str . toCharArray ( ) , cursorLocation , expectedCompletionNodeToString , expectedParentNodeToString , expectedUnitDisplayString , completionIdentifier , expectedReplacedSource , "<STR_LIT>" ) ; } public void test0121_Diet ( ) { String str = "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" ; String completeBehind = "<STR_LIT>" ; int cursorLocation = str . indexOf ( "<STR_LIT>" ) + completeBehind . length ( ) - <NUM_LIT:1> ; String expectedCompletionNodeToString = "<STR_LIT>" ; String expectedParentNodeToString = "<STR_LIT>" ; String completionIdentifier = "<STR_LIT>" ; String expectedReplacedSource = "<STR_LIT>" ; String expectedUnitDisplayString = "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" ; checkDietParse ( str . toCharArray ( ) , cursorLocation , expectedCompletionNodeToString , expectedParentNodeToString , expectedUnitDisplayString , completionIdentifier , expectedReplacedSource , "<STR_LIT>" ) ; } public void test0121_Method ( ) { String str = "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" ; String completeBehind = "<STR_LIT>" ; int cursorLocation = str . indexOf ( "<STR_LIT>" ) + completeBehind . length ( ) - <NUM_LIT:1> ; String expectedCompletionNodeToString = "<STR_LIT>" ; String expectedParentNodeToString = "<STR_LIT>" ; String completionIdentifier = "<STR_LIT>" ; String expectedReplacedSource = "<STR_LIT>" ; String expectedUnitDisplayString = "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" ; checkMethodParse ( str . toCharArray ( ) , cursorLocation , expectedCompletionNodeToString , expectedParentNodeToString , expectedUnitDisplayString , completionIdentifier , expectedReplacedSource , "<STR_LIT>" ) ; } public void test0122_Diet ( ) { String str = "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" ; String completeBehind = "<STR_LIT>" ; int cursorLocation = str . indexOf ( "<STR_LIT>" ) + completeBehind . length ( ) - <NUM_LIT:1> ; String expectedCompletionNodeToString = "<STR_LIT>" ; String expectedParentNodeToString = "<STR_LIT>" ; String completionIdentifier = "<STR_LIT>" ; String expectedReplacedSource = "<STR_LIT>" ; String expectedUnitDisplayString = "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" ; checkDietParse ( str . toCharArray ( ) , cursorLocation , expectedCompletionNodeToString , expectedParentNodeToString , expectedUnitDisplayString , completionIdentifier , expectedReplacedSource , "<STR_LIT>" ) ; } public void test0122_Method ( ) { String str = "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" ; String completeBehind = "<STR_LIT>" ; int cursorLocation = str . indexOf ( "<STR_LIT>" ) + completeBehind . length ( ) - <NUM_LIT:1> ; String expectedCompletionNodeToString = "<STR_LIT>" ; String expectedParentNodeToString = "<STR_LIT>" ; String completionIdentifier = "<STR_LIT>" ; String expectedReplacedSource = "<STR_LIT>" ; String expectedUnitDisplayString = "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" ; checkMethodParse ( str . toCharArray ( ) , cursorLocation , expectedCompletionNodeToString , expectedParentNodeToString , expectedUnitDisplayString , completionIdentifier , expectedReplacedSource , "<STR_LIT>" ) ; } public void test0123_Diet ( ) { String str = "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" ; String completeBehind = "<STR_LIT>" ; int cursorLocation = str . indexOf ( "<STR_LIT>" ) + completeBehind . length ( ) - <NUM_LIT:1> ; String expectedCompletionNodeToString = "<STR_LIT>" ; String expectedParentNodeToString = "<STR_LIT>" ; String completionIdentifier = "<STR_LIT>" ; String expectedReplacedSource = "<STR_LIT>" ; String expectedUnitDisplayString = "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" ; checkDietParse ( str . toCharArray ( ) , cursorLocation , expectedCompletionNodeToString , expectedParentNodeToString , expectedUnitDisplayString , completionIdentifier , expectedReplacedSource , "<STR_LIT>" ) ; } public void test0123_Method ( ) { String str = "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" ; String completeBehind = "<STR_LIT>" ; int cursorLocation = str . indexOf ( "<STR_LIT>" ) + completeBehind . length ( ) - <NUM_LIT:1> ; String expectedCompletionNodeToString = "<STR_LIT>" ; String expectedParentNodeToString = "<STR_LIT>" ; String completionIdentifier = "<STR_LIT>" ; String expectedReplacedSource = "<STR_LIT>" ; String expectedUnitDisplayString = "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" ; checkMethodParse ( str . toCharArray ( ) , cursorLocation , expectedCompletionNodeToString , expectedParentNodeToString , expectedUnitDisplayString , completionIdentifier , expectedReplacedSource , "<STR_LIT>" ) ; } public void test0124_Diet ( ) { String str = "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" ; String completeBehind = "<STR_LIT>" ; int cursorLocation = str . indexOf ( "<STR_LIT>" ) + completeBehind . length ( ) - <NUM_LIT:1> ; String expectedCompletionNodeToString = "<STR_LIT>" ; String expectedParentNodeToString = "<STR_LIT>" ; String completionIdentifier = "<STR_LIT>" ; String expectedReplacedSource = "<STR_LIT>" ; String expectedUnitDisplayString = "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" ; checkDietParse ( str . toCharArray ( ) , cursorLocation , expectedCompletionNodeToString , expectedParentNodeToString , expectedUnitDisplayString , completionIdentifier , expectedReplacedSource , "<STR_LIT>" ) ; } public void test0124_Method ( ) { String str = "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" ; String completeBehind = "<STR_LIT>" ; int cursorLocation = str . indexOf ( "<STR_LIT>" ) + completeBehind . length ( ) - <NUM_LIT:1> ; String expectedCompletionNodeToString = "<STR_LIT>" ; String expectedParentNodeToString = "<STR_LIT>" ; String completionIdentifier = "<STR_LIT>" ; String expectedReplacedSource = "<STR_LIT>" ; String expectedUnitDisplayString = "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" ; checkMethodParse ( str . toCharArray ( ) , cursorLocation , expectedCompletionNodeToString , expectedParentNodeToString , expectedUnitDisplayString , completionIdentifier , expectedReplacedSource , "<STR_LIT>" ) ; } public void test0125_Diet ( ) { String str = "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" ; String completeBehind = "<STR_LIT>" ; int cursorLocation = str . indexOf ( "<STR_LIT>" ) + completeBehind . length ( ) - <NUM_LIT:1> ; String expectedCompletionNodeToString = "<STR_LIT>" ; String expectedParentNodeToString = "<STR_LIT>" ; String completionIdentifier = "<STR_LIT>" ; String expectedReplacedSource = "<STR_LIT>" ; String expectedUnitDisplayString = "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" ; checkDietParse ( str . toCharArray ( ) , cursorLocation , expectedCompletionNodeToString , expectedParentNodeToString , expectedUnitDisplayString , completionIdentifier , expectedReplacedSource , "<STR_LIT>" ) ; } public void test0125_Method ( ) { String str = "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" ; String completeBehind = "<STR_LIT>" ; int cursorLocation = str . indexOf ( "<STR_LIT>" ) + completeBehind . length ( ) - <NUM_LIT:1> ; String expectedCompletionNodeToString = "<STR_LIT>" ; String expectedParentNodeToString = "<STR_LIT>" ; String completionIdentifier = "<STR_LIT>" ; String expectedReplacedSource = "<STR_LIT>" ; String expectedUnitDisplayString = "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" ; checkMethodParse ( str . toCharArray ( ) , cursorLocation , expectedCompletionNodeToString , expectedParentNodeToString , expectedUnitDisplayString , completionIdentifier , expectedReplacedSource , "<STR_LIT>" ) ; } public void test0126_Diet ( ) { String str = "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" ; String completeBehind = "<STR_LIT>" ; int cursorLocation = str . indexOf ( "<STR_LIT>" ) + completeBehind . length ( ) - <NUM_LIT:1> ; String expectedCompletionNodeToString = "<STR_LIT>" ; String expectedParentNodeToString = "<STR_LIT>" ; String completionIdentifier = "<STR_LIT>" ; String expectedReplacedSource = "<STR_LIT>" ; String expectedUnitDisplayString = "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" ; checkDietParse ( str . toCharArray ( ) , cursorLocation , expectedCompletionNodeToString , expectedParentNodeToString , expectedUnitDisplayString , completionIdentifier , expectedReplacedSource , "<STR_LIT>" ) ; } public void test0126_Method ( ) { String str = "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" ; String completeBehind = "<STR_LIT>" ; int cursorLocation = str . indexOf ( "<STR_LIT>" ) + completeBehind . length ( ) - <NUM_LIT:1> ; String expectedCompletionNodeToString = "<STR_LIT>" ; String expectedParentNodeToString = "<STR_LIT>" ; String completionIdentifier = "<STR_LIT>" ; String expectedReplacedSource = "<STR_LIT>" ; String expectedUnitDisplayString = "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" ; checkMethodParse ( str . toCharArray ( ) , cursorLocation , expectedCompletionNodeToString , expectedParentNodeToString , expectedUnitDisplayString , completionIdentifier , expectedReplacedSource , "<STR_LIT>" ) ; } public void test0127 ( ) { String str = "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" ; String completeBehind = "<STR_LIT>" ; int cursorLocation = str . lastIndexOf ( "<STR_LIT>" ) + completeBehind . length ( ) - <NUM_LIT:1> ; String expectedCompletionNodeToString = "<STR_LIT>" ; String expectedParentNodeToString = "<STR_LIT>" ; String completionIdentifier = "<STR_LIT>" ; String expectedReplacedSource = "<STR_LIT>" ; String expectedUnitDisplayString = "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" ; checkDietParse ( str . toCharArray ( ) , cursorLocation , expectedCompletionNodeToString , expectedParentNodeToString , expectedUnitDisplayString , completionIdentifier , expectedReplacedSource , "<STR_LIT>" ) ; } public void test0128_Diet ( ) { String str = "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" ; String completeBehind = "<STR_LIT>" ; int cursorLocation = str . indexOf ( "<STR_LIT>" ) + completeBehind . length ( ) - <NUM_LIT:1> ; String expectedCompletionNodeToString = "<STR_LIT>" ; String expectedParentNodeToString = "<STR_LIT>" ; String completionIdentifier = "<STR_LIT>" ; String expectedReplacedSource = "<STR_LIT>" ; String expectedUnitDisplayString = "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" ; checkDietParse ( str . toCharArray ( ) , cursorLocation , expectedCompletionNodeToString , expectedParentNodeToString , expectedUnitDisplayString , completionIdentifier , expectedReplacedSource , "<STR_LIT>" ) ; } public void test0128_Method ( ) { String str = "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" ; String completeBehind = "<STR_LIT>" ; int cursorLocation = str . indexOf ( "<STR_LIT>" ) + completeBehind . length ( ) - <NUM_LIT:1> ; String expectedCompletionNodeToString = "<STR_LIT>" ; String expectedParentNodeToString = "<STR_LIT>" ; String completionIdentifier = "<STR_LIT>" ; String expectedReplacedSource = "<STR_LIT>" ; String expectedUnitDisplayString = "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" ; checkMethodParse ( str . toCharArray ( ) , cursorLocation , expectedCompletionNodeToString , expectedParentNodeToString , expectedUnitDisplayString , completionIdentifier , expectedReplacedSource , "<STR_LIT>" ) ; } public void test0129_Diet ( ) { String str = "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" ; String completeBehind = "<STR_LIT>" ; int cursorLocation = str . indexOf ( "<STR_LIT>" ) + completeBehind . length ( ) - <NUM_LIT:1> ; String expectedCompletionNodeToString = "<STR_LIT>" ; String expectedParentNodeToString = "<STR_LIT>" ; String completionIdentifier = "<STR_LIT>" ; String expectedReplacedSource = "<STR_LIT>" ; String expectedUnitDisplayString = "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" ; checkDietParse ( str . toCharArray ( ) , cursorLocation , expectedCompletionNodeToString , expectedParentNodeToString , expectedUnitDisplayString , completionIdentifier , expectedReplacedSource , "<STR_LIT>" ) ; } public void test0129_Method ( ) { String str = "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" ; String completeBehind = "<STR_LIT>" ; int cursorLocation = str . indexOf ( "<STR_LIT>" ) + completeBehind . length ( ) - <NUM_LIT:1> ; String expectedCompletionNodeToString = "<STR_LIT>" ; String expectedParentNodeToString = "<STR_LIT>" ; String completionIdentifier = "<STR_LIT>" ; String expectedReplacedSource = "<STR_LIT>" ; String expectedUnitDisplayString = "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" ; checkMethodParse ( str . toCharArray ( ) , cursorLocation , expectedCompletionNodeToString , expectedParentNodeToString , expectedUnitDisplayString , completionIdentifier , expectedReplacedSource , "<STR_LIT>" ) ; } public void test0130_Diet ( ) { String str = "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" ; String completeBehind = "<STR_LIT>" ; int cursorLocation = str . indexOf ( "<STR_LIT>" ) + completeBehind . length ( ) - <NUM_LIT:1> ; String expectedCompletionNodeToString = "<STR_LIT>" ; String expectedParentNodeToString = "<STR_LIT>" ; String completionIdentifier = "<STR_LIT>" ; String expectedReplacedSource = "<STR_LIT>" ; String expectedUnitDisplayString = "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" ; checkDietParse ( str . toCharArray ( ) , cursorLocation , expectedCompletionNodeToString , expectedParentNodeToString , expectedUnitDisplayString , completionIdentifier , expectedReplacedSource , "<STR_LIT>" ) ; } public void test0130_Method ( ) { String str = "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" ; String completeBehind = "<STR_LIT>" ; int cursorLocation = str . indexOf ( "<STR_LIT>" ) + completeBehind . length ( ) - <NUM_LIT:1> ; String expectedCompletionNodeToString = "<STR_LIT>" ; String expectedParentNodeToString = "<STR_LIT>" ; String completionIdentifier = "<STR_LIT>" ; String expectedReplacedSource = "<STR_LIT>" ; String expectedUnitDisplayString = "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" ; checkMethodParse ( str . toCharArray ( ) , cursorLocation , expectedCompletionNodeToString , expectedParentNodeToString , expectedUnitDisplayString , completionIdentifier , expectedReplacedSource , "<STR_LIT>" ) ; } public void test0131_Diet ( ) { String str = "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" ; String completeBehind = "<STR_LIT>" ; int cursorLocation = str . indexOf ( "<STR_LIT>" ) + completeBehind . length ( ) - <NUM_LIT:1> ; String expectedCompletionNodeToString = "<STR_LIT>" ; String expectedParentNodeToString = "<STR_LIT>" ; String completionIdentifier = "<STR_LIT>" ; String expectedReplacedSource = "<STR_LIT>" ; String expectedUnitDisplayString = "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" ; checkDietParse ( str . toCharArray ( ) , cursorLocation , expectedCompletionNodeToString , expectedParentNodeToString , expectedUnitDisplayString , completionIdentifier , expectedReplacedSource , "<STR_LIT>" ) ; } public void test0131_Method ( ) { String str = "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" ; String completeBehind = "<STR_LIT>" ; int cursorLocation = str . indexOf ( "<STR_LIT>" ) + completeBehind . length ( ) - <NUM_LIT:1> ; String expectedCompletionNodeToString = "<STR_LIT>" ; String expectedParentNodeToString = "<STR_LIT>" ; String completionIdentifier = "<STR_LIT>" ; String expectedReplacedSource = "<STR_LIT>" ; String expectedUnitDisplayString = "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" ; checkMethodParse ( str . toCharArray ( ) , cursorLocation , expectedCompletionNodeToString , expectedParentNodeToString , expectedUnitDisplayString , completionIdentifier , expectedReplacedSource , "<STR_LIT>" ) ; } public void test0132_Diet ( ) { String str = "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" ; String completeBehind = "<STR_LIT>" ; int cursorLocation = str . indexOf ( "<STR_LIT>" ) + completeBehind . length ( ) - <NUM_LIT:1> ; String expectedCompletionNodeToString = "<STR_LIT>" ; String expectedParentNodeToString = "<STR_LIT>" ; String completionIdentifier = "<STR_LIT>" ; String expectedReplacedSource = "<STR_LIT>" ; String expectedUnitDisplayString = "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" ; checkDietParse ( str . toCharArray ( ) , cursorLocation , expectedCompletionNodeToString , expectedParentNodeToString , expectedUnitDisplayString , completionIdentifier , expectedReplacedSource , "<STR_LIT>" ) ; } public void test0132_Method ( ) { String str = "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" ; String completeBehind = "<STR_LIT>" ; int cursorLocation = str . indexOf ( "<STR_LIT>" ) + completeBehind . length ( ) - <NUM_LIT:1> ; String expectedCompletionNodeToString = "<STR_LIT>" ; String expectedParentNodeToString = "<STR_LIT>" ; String completionIdentifier = "<STR_LIT>" ; String expectedReplacedSource = "<STR_LIT>" ; String expectedUnitDisplayString = "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" ; checkMethodParse ( str . toCharArray ( ) , cursorLocation , expectedCompletionNodeToString , expectedParentNodeToString , expectedUnitDisplayString , completionIdentifier , expectedReplacedSource , "<STR_LIT>" ) ; } public void test0133_Diet ( ) { String str = "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" ; String completeBehind = "<STR_LIT:bar>" ; int cursorLocation = str . indexOf ( "<STR_LIT:bar>" ) + completeBehind . length ( ) - <NUM_LIT:1> ; String expectedCompletionNodeToString = "<STR_LIT>" ; String expectedParentNodeToString = "<STR_LIT>" ; String completionIdentifier = "<STR_LIT>" ; String expectedReplacedSource = "<STR_LIT>" ; String expectedUnitDisplayString = "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" ; checkDietParse ( str . toCharArray ( ) , cursorLocation , expectedCompletionNodeToString , expectedParentNodeToString , expectedUnitDisplayString , completionIdentifier , expectedReplacedSource , "<STR_LIT>" ) ; } public void test0133_Method ( ) { String str = "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" ; String completeBehind = "<STR_LIT:bar>" ; int cursorLocation = str . indexOf ( "<STR_LIT:bar>" ) + completeBehind . length ( ) - <NUM_LIT:1> ; String expectedCompletionNodeToString = "<STR_LIT>" ; String expectedParentNodeToString = "<STR_LIT>" ; String completionIdentifier = "<STR_LIT:bar>" ; String expectedReplacedSource = "<STR_LIT:bar>" ; String expectedUnitDisplayString = "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" ; checkMethodParse ( str . toCharArray ( ) , cursorLocation , expectedCompletionNodeToString , expectedParentNodeToString , expectedUnitDisplayString , completionIdentifier , expectedReplacedSource , "<STR_LIT>" ) ; } public void test0134 ( ) { String str = "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" ; String completeBehind = "<STR_LIT>" ; int cursorLocation = str . indexOf ( "<STR_LIT>" ) + completeBehind . length ( ) - <NUM_LIT:1> ; String expectedCompletionNodeToString = "<STR_LIT>" ; String expectedParentNodeToString = "<STR_LIT>" ; String completionIdentifier = "<STR_LIT>" ; String expectedReplacedSource = "<STR_LIT>" ; String expectedUnitDisplayString = "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" ; checkDietParse ( str . toCharArray ( ) , cursorLocation , expectedCompletionNodeToString , expectedParentNodeToString , expectedUnitDisplayString , completionIdentifier , expectedReplacedSource , "<STR_LIT>" ) ; } public void test0135_Diet ( ) { String str = "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" ; String completeBehind = "<STR_LIT>" ; int cursorLocation = str . indexOf ( "<STR_LIT>" ) + completeBehind . length ( ) - <NUM_LIT:1> ; String expectedCompletionNodeToString = "<STR_LIT>" ; String expectedParentNodeToString = "<STR_LIT>" ; String completionIdentifier = "<STR_LIT>" ; String expectedReplacedSource = "<STR_LIT>" ; String expectedUnitDisplayString = "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" ; checkDietParse ( str . toCharArray ( ) , cursorLocation , expectedCompletionNodeToString , expectedParentNodeToString , expectedUnitDisplayString , completionIdentifier , expectedReplacedSource , "<STR_LIT>" ) ; } public void test0135_Method ( ) { String str = "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" ; String completeBehind = "<STR_LIT>" ; int cursorLocation = str . indexOf ( "<STR_LIT>" ) + completeBehind . length ( ) - <NUM_LIT:1> ; String expectedCompletionNodeToString = "<STR_LIT>" ; String expectedParentNodeToString = "<STR_LIT>" ; String completionIdentifier = "<STR_LIT>" ; String expectedReplacedSource = "<STR_LIT>" ; String expectedUnitDisplayString = "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" ; checkMethodParse ( str . toCharArray ( ) , cursorLocation , expectedCompletionNodeToString , expectedParentNodeToString , expectedUnitDisplayString , completionIdentifier , expectedReplacedSource , "<STR_LIT>" ) ; } public void test0136 ( ) { String str = "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" ; String completeBehind = "<STR_LIT>" ; int cursorLocation = str . indexOf ( "<STR_LIT>" ) + completeBehind . length ( ) - <NUM_LIT:1> ; String expectedCompletionNodeToString = "<STR_LIT>" ; String expectedParentNodeToString = "<STR_LIT>" ; String completionIdentifier = "<STR_LIT>" ; String expectedReplacedSource = "<STR_LIT>" ; String expectedUnitDisplayString = "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" ; checkDietParse ( str . toCharArray ( ) , cursorLocation , expectedCompletionNodeToString , expectedParentNodeToString , expectedUnitDisplayString , completionIdentifier , expectedReplacedSource , "<STR_LIT>" ) ; } public void test0137_Diet ( ) { String str = "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" ; String completeBehind = "<STR_LIT>" ; int cursorLocation = str . indexOf ( "<STR_LIT>" ) + completeBehind . length ( ) - <NUM_LIT:1> ; String expectedCompletionNodeToString = "<STR_LIT>" ; String expectedParentNodeToString = "<STR_LIT>" ; String completionIdentifier = "<STR_LIT>" ; String expectedReplacedSource = "<STR_LIT>" ; String expectedUnitDisplayString = "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" ; checkDietParse ( str . toCharArray ( ) , cursorLocation , expectedCompletionNodeToString , expectedParentNodeToString , expectedUnitDisplayString , completionIdentifier , expectedReplacedSource , "<STR_LIT>" ) ; } public void test0137_Method ( ) { String str = "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" ; String completeBehind = "<STR_LIT>" ; int cursorLocation = str . indexOf ( "<STR_LIT>" ) + completeBehind . length ( ) - <NUM_LIT:1> ; String expectedCompletionNodeToString = "<STR_LIT>" ; String expectedParentNodeToString = "<STR_LIT>" ; String completionIdentifier = "<STR_LIT>" ; String expectedReplacedSource = "<STR_LIT>" ; String expectedUnitDisplayString = "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" ; checkMethodParse ( str . toCharArray ( ) , cursorLocation , expectedCompletionNodeToString , expectedParentNodeToString , expectedUnitDisplayString , completionIdentifier , expectedReplacedSource , "<STR_LIT>" ) ; } public void test0138_Diet ( ) { String str = "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT:n>" ; String completeBehind = "<STR_LIT>" ; int cursorLocation = str . indexOf ( "<STR_LIT>" ) + completeBehind . length ( ) - <NUM_LIT:1> ; String expectedCompletionNodeToString = "<STR_LIT>" ; String expectedParentNodeToString = "<STR_LIT>" ; String completionIdentifier = "<STR_LIT>" ; String expectedReplacedSource = "<STR_LIT>" ; String expectedUnitDisplayString = "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" ; checkDietParse ( str . toCharArray ( ) , cursorLocation , expectedCompletionNodeToString , expectedParentNodeToString , expectedUnitDisplayString , completionIdentifier , expectedReplacedSource , "<STR_LIT>" ) ; } public void test0138_Method ( ) { String str = "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT:n>" ; String completeBehind = "<STR_LIT>" ; int cursorLocation = str . indexOf ( "<STR_LIT>" ) + completeBehind . length ( ) - <NUM_LIT:1> ; String expectedCompletionNodeToString = "<STR_LIT>" ; String expectedParentNodeToString = "<STR_LIT>" ; String completionIdentifier = "<STR_LIT>" ; String expectedReplacedSource = "<STR_LIT>" ; String expectedUnitDisplayString = "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" ; checkMethodParse ( str . toCharArray ( ) , cursorLocation , expectedCompletionNodeToString , expectedParentNodeToString , expectedUnitDisplayString , completionIdentifier , expectedReplacedSource , "<STR_LIT>" ) ; } public void test0139 ( ) { String str = "<STR_LIT>" + "<STR_LIT:}>" ; String completeBehind = "<STR_LIT>" ; int cursorLocation = str . indexOf ( "<STR_LIT>" ) + completeBehind . length ( ) - <NUM_LIT:1> ; String expectedCompletionNodeToString = "<STR_LIT>" ; String expectedParentNodeToString = "<STR_LIT>" ; String completionIdentifier = "<STR_LIT>" ; String expectedReplacedSource = "<STR_LIT>" ; String expectedUnitDisplayString = "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" ; checkDietParse ( str . toCharArray ( ) , cursorLocation , expectedCompletionNodeToString , expectedParentNodeToString , expectedUnitDisplayString , completionIdentifier , expectedReplacedSource , "<STR_LIT>" ) ; } public void test0140 ( ) { String str = "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT:}>" ; String completeBehind = "<STR_LIT>" ; int cursorLocation = str . indexOf ( "<STR_LIT>" ) + completeBehind . length ( ) - <NUM_LIT:1> ; String expectedCompletionNodeToString = "<STR_LIT>" ; String expectedParentNodeToString = "<STR_LIT>" ; String completionIdentifier = "<STR_LIT>" ; String expectedReplacedSource = "<STR_LIT>" ; String expectedUnitDisplayString = "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" ; checkDietParse ( str . toCharArray ( ) , cursorLocation , expectedCompletionNodeToString , expectedParentNodeToString , expectedUnitDisplayString , completionIdentifier , expectedReplacedSource , "<STR_LIT>" ) ; } public void test0141 ( ) { String str = "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT:}>" ; String completeBehind = "<STR_LIT>" ; int cursorLocation = str . indexOf ( "<STR_LIT>" ) + completeBehind . length ( ) - <NUM_LIT:1> ; String expectedCompletionNodeToString = "<STR_LIT>" ; String expectedParentNodeToString = "<STR_LIT>" ; String completionIdentifier = "<STR_LIT>" ; String expectedReplacedSource = "<STR_LIT>" ; String expectedUnitDisplayString = "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" ; checkDietParse ( str . toCharArray ( ) , cursorLocation , expectedCompletionNodeToString , expectedParentNodeToString , expectedUnitDisplayString , completionIdentifier , expectedReplacedSource , "<STR_LIT>" ) ; } public void test0142_Diet ( ) { String str = "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT:n>" ; String completeBehind = "<STR_LIT>" ; int cursorLocation = str . indexOf ( "<STR_LIT>" ) + completeBehind . length ( ) - <NUM_LIT:1> ; String expectedCompletionNodeToString = "<STR_LIT>" ; String expectedParentNodeToString = "<STR_LIT>" ; String completionIdentifier = "<STR_LIT>" ; String expectedReplacedSource = "<STR_LIT>" ; String expectedUnitDisplayString = "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" ; checkDietParse ( str . toCharArray ( ) , cursorLocation , expectedCompletionNodeToString , expectedParentNodeToString , expectedUnitDisplayString , completionIdentifier , expectedReplacedSource , "<STR_LIT>" ) ; } public void test0142_Method ( ) { String str = "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT:n>" ; String completeBehind = "<STR_LIT>" ; int cursorLocation = str . indexOf ( "<STR_LIT>" ) + completeBehind . length ( ) - <NUM_LIT:1> ; String expectedCompletionNodeToString = "<STR_LIT>" ; String expectedParentNodeToString = "<STR_LIT>" ; String completionIdentifier = "<STR_LIT>" ; String expectedReplacedSource = "<STR_LIT>" ; String expectedUnitDisplayString = "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" ; checkMethodParse ( str . toCharArray ( ) , cursorLocation , expectedCompletionNodeToString , expectedParentNodeToString , expectedUnitDisplayString , completionIdentifier , expectedReplacedSource , "<STR_LIT>" ) ; } public void test0143_Diet ( ) { String str = "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT:n>" ; String completeBehind = "<STR_LIT:bar>" ; int cursorLocation = str . indexOf ( "<STR_LIT:bar>" ) + completeBehind . length ( ) - <NUM_LIT:1> ; String expectedCompletionNodeToString = "<STR_LIT>" ; String expectedParentNodeToString = "<STR_LIT>" ; String completionIdentifier = "<STR_LIT>" ; String expectedReplacedSource = "<STR_LIT>" ; String expectedUnitDisplayString = "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" ; checkDietParse ( str . toCharArray ( ) , cursorLocation , expectedCompletionNodeToString , expectedParentNodeToString , expectedUnitDisplayString , completionIdentifier , expectedReplacedSource , "<STR_LIT>" ) ; } public void test0143_Method ( ) { String str = "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT:n>" ; String completeBehind = "<STR_LIT:bar>" ; int cursorLocation = str . indexOf ( "<STR_LIT:bar>" ) + completeBehind . length ( ) - <NUM_LIT:1> ; String expectedCompletionNodeToString = "<STR_LIT>" ; String expectedParentNodeToString = "<STR_LIT>" ; String completionIdentifier = "<STR_LIT:bar>" ; String expectedReplacedSource = "<STR_LIT:bar>" ; String expectedUnitDisplayString = "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" ; checkMethodParse ( str . toCharArray ( ) , cursorLocation , expectedCompletionNodeToString , expectedParentNodeToString , expectedUnitDisplayString , completionIdentifier , expectedReplacedSource , "<STR_LIT>" ) ; } public void test0144_Diet ( ) { String str = "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT:n>" ; String completeBehind = "<STR_LIT:bar>" ; int cursorLocation = str . indexOf ( "<STR_LIT:bar>" ) + completeBehind . length ( ) - <NUM_LIT:1> ; String expectedCompletionNodeToString = "<STR_LIT>" ; String expectedParentNodeToString = "<STR_LIT>" ; String completionIdentifier = "<STR_LIT>" ; String expectedReplacedSource = "<STR_LIT>" ; String expectedUnitDisplayString = "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" ; checkDietParse ( str . toCharArray ( ) , cursorLocation , expectedCompletionNodeToString , expectedParentNodeToString , expectedUnitDisplayString , completionIdentifier , expectedReplacedSource , "<STR_LIT>" ) ; } public void test0144_Method ( ) { String str = "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT:n>" ; String completeBehind = "<STR_LIT:bar>" ; int cursorLocation = str . indexOf ( "<STR_LIT:bar>" ) + completeBehind . length ( ) - <NUM_LIT:1> ; String expectedCompletionNodeToString = "<STR_LIT>" ; String expectedParentNodeToString = "<STR_LIT>" ; String completionIdentifier = "<STR_LIT:bar>" ; String expectedReplacedSource = "<STR_LIT:bar>" ; String expectedUnitDisplayString = "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" ; checkMethodParse ( str . toCharArray ( ) , cursorLocation , expectedCompletionNodeToString , expectedParentNodeToString , expectedUnitDisplayString , completionIdentifier , expectedReplacedSource , "<STR_LIT>" ) ; } public void test0145_Diet ( ) { String str = "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT:n>" ; String completeBehind = "<STR_LIT:bar>" ; int cursorLocation = str . indexOf ( "<STR_LIT:bar>" ) + completeBehind . length ( ) - <NUM_LIT:1> ; String expectedCompletionNodeToString = "<STR_LIT>" ; String expectedParentNodeToString = "<STR_LIT>" ; String completionIdentifier = "<STR_LIT>" ; String expectedReplacedSource = "<STR_LIT>" ; String expectedUnitDisplayString = "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" ; checkDietParse ( str . toCharArray ( ) , cursorLocation , expectedCompletionNodeToString , expectedParentNodeToString , expectedUnitDisplayString , completionIdentifier , expectedReplacedSource , "<STR_LIT>" ) ; } public void test0145_Method ( ) { String str = "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT:n>" ; String completeBehind = "<STR_LIT:bar>" ; int cursorLocation = str . indexOf ( "<STR_LIT:bar>" ) + completeBehind . length ( ) - <NUM_LIT:1> ; String expectedCompletionNodeToString = "<STR_LIT>" ; String expectedParentNodeToString = "<STR_LIT>" ; String completionIdentifier = "<STR_LIT:bar>" ; String expectedReplacedSource = "<STR_LIT:bar>" ; String expectedUnitDisplayString = "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" ; checkMethodParse ( str . toCharArray ( ) , cursorLocation , expectedCompletionNodeToString , expectedParentNodeToString , expectedUnitDisplayString , completionIdentifier , expectedReplacedSource , "<STR_LIT>" ) ; } public void test0146_Diet ( ) { String str = "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT:n>" ; String completeBehind = "<STR_LIT:bar>" ; int cursorLocation = str . indexOf ( "<STR_LIT:bar>" ) + completeBehind . length ( ) - <NUM_LIT:1> ; String expectedCompletionNodeToString = "<STR_LIT>" ; String expectedParentNodeToString = "<STR_LIT>" ; String completionIdentifier = "<STR_LIT>" ; String expectedReplacedSource = "<STR_LIT>" ; String expectedUnitDisplayString = "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" ; checkDietParse ( str . toCharArray ( ) , cursorLocation , expectedCompletionNodeToString , expectedParentNodeToString , expectedUnitDisplayString , completionIdentifier , expectedReplacedSource , "<STR_LIT>" ) ; } public void test0146_Method ( ) { String str = "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT:n>" ; String completeBehind = "<STR_LIT:bar>" ; int cursorLocation = str . indexOf ( "<STR_LIT:bar>" ) + completeBehind . length ( ) - <NUM_LIT:1> ; String expectedCompletionNodeToString = "<STR_LIT>" ; String expectedParentNodeToString = "<STR_LIT>" ; String completionIdentifier = "<STR_LIT:bar>" ; String expectedReplacedSource = "<STR_LIT:bar>" ; String expectedUnitDisplayString = "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" ; checkMethodParse ( str . toCharArray ( ) , cursorLocation , expectedCompletionNodeToString , expectedParentNodeToString , expectedUnitDisplayString , completionIdentifier , expectedReplacedSource , "<STR_LIT>" ) ; } public void test0147 ( ) { String str = "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT:U+0020U+0020}>" ; String completeBehind = "<STR_LIT>" ; int cursorLocation = str . indexOf ( "<STR_LIT>" ) + completeBehind . length ( ) - <NUM_LIT:1> ; String expectedCompletionNodeToString = "<STR_LIT>" ; String expectedParentNodeToString = "<STR_LIT>" ; String completionIdentifier = "<STR_LIT>" ; String expectedReplacedSource = "<STR_LIT>" ; String expectedUnitDisplayString = "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" ; checkDietParse ( str . toCharArray ( ) , cursorLocation , expectedCompletionNodeToString , expectedParentNodeToString , expectedUnitDisplayString , completionIdentifier , expectedReplacedSource , "<STR_LIT>" ) ; } public void test0148 ( ) { String str = "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" ; String completeBehind = "<STR_LIT>" ; int cursorLocation = str . indexOf ( "<STR_LIT>" ) + completeBehind . length ( ) - <NUM_LIT:1> ; String expectedCompletionNodeToString = "<STR_LIT>" ; String expectedParentNodeToString = "<STR_LIT>" ; String completionIdentifier = "<STR_LIT>" ; String expectedReplacedSource = "<STR_LIT>" ; String expectedUnitDisplayString = "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" ; checkDietParse ( str . toCharArray ( ) , cursorLocation , expectedCompletionNodeToString , expectedParentNodeToString , expectedUnitDisplayString , completionIdentifier , expectedReplacedSource , "<STR_LIT>" ) ; } public void test0149_Diet ( ) { String str = "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT:n>" ; String completeBehind = "<STR_LIT>" ; int cursorLocation = str . indexOf ( "<STR_LIT>" ) + completeBehind . length ( ) - <NUM_LIT:1> ; String expectedCompletionNodeToString = "<STR_LIT>" ; String expectedParentNodeToString = "<STR_LIT>" ; String completionIdentifier = "<STR_LIT>" ; String expectedReplacedSource = "<STR_LIT>" ; String expectedUnitDisplayString = "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" ; checkDietParse ( str . toCharArray ( ) , cursorLocation , expectedCompletionNodeToString , expectedParentNodeToString , expectedUnitDisplayString , completionIdentifier , expectedReplacedSource , "<STR_LIT>" ) ; } public void test0149_Method ( ) { String str = "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT:n>" ; String completeBehind = "<STR_LIT>" ; int cursorLocation = str . indexOf ( "<STR_LIT>" ) + completeBehind . length ( ) - <NUM_LIT:1> ; String expectedCompletionNodeToString = "<STR_LIT>" ; String expectedParentNodeToString = "<STR_LIT>" ; String completionIdentifier = "<STR_LIT>" ; String expectedReplacedSource = "<STR_LIT>" ; String expectedUnitDisplayString = "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" ; checkMethodParse ( str . toCharArray ( ) , cursorLocation , expectedCompletionNodeToString , expectedParentNodeToString , expectedUnitDisplayString , completionIdentifier , expectedReplacedSource , "<STR_LIT>" ) ; } public void test0150_Diet ( ) { String str = "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT:n>" ; String completeBehind = "<STR_LIT>" ; int cursorLocation = str . indexOf ( "<STR_LIT>" ) + completeBehind . length ( ) - <NUM_LIT:1> ; String expectedCompletionNodeToString = "<STR_LIT>" ; String expectedParentNodeToString = "<STR_LIT>" ; String completionIdentifier = "<STR_LIT>" ; String expectedReplacedSource = "<STR_LIT>" ; String expectedUnitDisplayString = "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" ; checkDietParse ( str . toCharArray ( ) , cursorLocation , expectedCompletionNodeToString , expectedParentNodeToString , expectedUnitDisplayString , completionIdentifier , expectedReplacedSource , "<STR_LIT>" ) ; } public void test0150_Method ( ) { String str = "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT:n>" ; String completeBehind = "<STR_LIT>" ; int cursorLocation = str . indexOf ( "<STR_LIT>" ) + completeBehind . length ( ) - <NUM_LIT:1> ; String expectedCompletionNodeToString = "<STR_LIT>" ; String expectedParentNodeToString = "<STR_LIT>" ; String completionIdentifier = "<STR_LIT>" ; String expectedReplacedSource = "<STR_LIT>" ; String expectedUnitDisplayString = "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" ; checkMethodParse ( str . toCharArray ( ) , cursorLocation , expectedCompletionNodeToString , expectedParentNodeToString , expectedUnitDisplayString , completionIdentifier , expectedReplacedSource , "<STR_LIT>" ) ; } public void test0151_Diet ( ) { String str = "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" ; String completeBehind = "<STR_LIT>" ; int cursorLocation = str . indexOf ( "<STR_LIT>" ) + completeBehind . length ( ) - <NUM_LIT:1> ; String expectedCompletionNodeToString = "<STR_LIT>" ; String expectedParentNodeToString = "<STR_LIT>" ; String completionIdentifier = "<STR_LIT>" ; String expectedReplacedSource = "<STR_LIT>" ; String expectedUnitDisplayString = "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" ; checkDietParse ( str . toCharArray ( ) , cursorLocation , expectedCompletionNodeToString , expectedParentNodeToString , expectedUnitDisplayString , completionIdentifier , expectedReplacedSource , "<STR_LIT>" ) ; } public void test0151_Method ( ) { String str = "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" ; String completeBehind = "<STR_LIT>" ; int cursorLocation = str . indexOf ( "<STR_LIT>" ) + completeBehind . length ( ) - <NUM_LIT:1> ; String expectedCompletionNodeToString = "<STR_LIT>" ; String expectedParentNodeToString = "<STR_LIT>" ; String completionIdentifier = "<STR_LIT>" ; String expectedReplacedSource = "<STR_LIT>" ; String expectedUnitDisplayString = "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" ; checkMethodParse ( str . toCharArray ( ) , cursorLocation , expectedCompletionNodeToString , expectedParentNodeToString , expectedUnitDisplayString , completionIdentifier , expectedReplacedSource , "<STR_LIT>" ) ; } public void test0152 ( ) { String str = "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" ; String completeBehind = "<STR_LIT>" ; int cursorLocation = str . indexOf ( "<STR_LIT>" ) + completeBehind . length ( ) - <NUM_LIT:1> ; String expectedCompletionNodeToString = "<STR_LIT>" ; String expectedParentNodeToString = "<STR_LIT>" ; String completionIdentifier = "<STR_LIT>" ; String expectedReplacedSource = "<STR_LIT>" ; String expectedUnitDisplayString = "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" ; checkDietParse ( str . toCharArray ( ) , cursorLocation , expectedCompletionNodeToString , expectedParentNodeToString , expectedUnitDisplayString , completionIdentifier , expectedReplacedSource , "<STR_LIT>" ) ; } public void test0153_Diet ( ) { String str = "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" ; String completeBehind = "<STR_LIT>" ; int cursorLocation = str . lastIndexOf ( "<STR_LIT>" ) + completeBehind . length ( ) - <NUM_LIT:1> ; String expectedCompletionNodeToString = "<STR_LIT>" ; String expectedParentNodeToString = "<STR_LIT>" ; String completionIdentifier = "<STR_LIT>" ; String expectedReplacedSource = "<STR_LIT>" ; String expectedUnitDisplayString = "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" ; checkDietParse ( str . toCharArray ( ) , cursorLocation , expectedCompletionNodeToString , expectedParentNodeToString , expectedUnitDisplayString , completionIdentifier , expectedReplacedSource , "<STR_LIT>" ) ; } public void test0153_Method ( ) { String str = "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" ; String completeBehind = "<STR_LIT>" ; int cursorLocation = str . lastIndexOf ( "<STR_LIT>" ) + completeBehind . length ( ) - <NUM_LIT:1> ; String expectedCompletionNodeToString = "<STR_LIT>" ; String expectedParentNodeToString = "<STR_LIT>" ; String completionIdentifier = "<STR_LIT>" ; String expectedReplacedSource = "<STR_LIT>" ; String expectedUnitDisplayString = "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" ; checkMethodParse ( str . toCharArray ( ) , cursorLocation , expectedCompletionNodeToString , expectedParentNodeToString , expectedUnitDisplayString , completionIdentifier , expectedReplacedSource , "<STR_LIT>" ) ; } public void test0154_Diet ( ) { String str = "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" ; String completeBehind = "<STR_LIT>" ; int cursorLocation = str . lastIndexOf ( "<STR_LIT>" ) + completeBehind . length ( ) - <NUM_LIT:1> ; String expectedCompletionNodeToString = "<STR_LIT>" ; String expectedParentNodeToString = "<STR_LIT>" ; String completionIdentifier = "<STR_LIT>" ; String expectedReplacedSource = "<STR_LIT>" ; String expectedUnitDisplayString = "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" ; checkDietParse ( str . toCharArray ( ) , cursorLocation , expectedCompletionNodeToString , expectedParentNodeToString , expectedUnitDisplayString , completionIdentifier , expectedReplacedSource , "<STR_LIT>" ) ; } public void test0154_Method ( ) { String str = "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" ; String completeBehind = "<STR_LIT>" ; int cursorLocation = str . lastIndexOf ( "<STR_LIT>" ) + completeBehind . length ( ) - <NUM_LIT:1> ; String expectedCompletionNodeToString = "<STR_LIT>" ; String expectedParentNodeToString = "<STR_LIT>" ; String completionIdentifier = "<STR_LIT>" ; String expectedReplacedSource = "<STR_LIT>" ; String expectedUnitDisplayString = "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" ; checkMethodParse ( str . toCharArray ( ) , cursorLocation , expectedCompletionNodeToString , expectedParentNodeToString , expectedUnitDisplayString , completionIdentifier , expectedReplacedSource , "<STR_LIT>" ) ; } public void test0155_Diet ( ) { String str = "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" ; String completeBehind = "<STR_LIT>" ; int cursorLocation = str . lastIndexOf ( "<STR_LIT>" ) + completeBehind . length ( ) - <NUM_LIT:1> ; String expectedCompletionNodeToString = "<STR_LIT>" ; String expectedParentNodeToString = "<STR_LIT>" ; String completionIdentifier = "<STR_LIT>" ; String expectedReplacedSource = "<STR_LIT>" ; String expectedUnitDisplayString = "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" ; checkDietParse ( str . toCharArray ( ) , cursorLocation , expectedCompletionNodeToString , expectedParentNodeToString , expectedUnitDisplayString , completionIdentifier , expectedReplacedSource , "<STR_LIT>" ) ; } public void test0155_Method ( ) { String str = "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" ; String completeBehind = "<STR_LIT>" ; int cursorLocation = str . lastIndexOf ( "<STR_LIT>" ) + completeBehind . length ( ) - <NUM_LIT:1> ; String expectedCompletionNodeToString = "<STR_LIT>" ; String expectedParentNodeToString = "<STR_LIT>" ; String completionIdentifier = "<STR_LIT>" ; String expectedReplacedSource = "<STR_LIT>" ; String expectedUnitDisplayString = "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" ; checkMethodParse ( str . toCharArray ( ) , cursorLocation , expectedCompletionNodeToString , expectedParentNodeToString , expectedUnitDisplayString , completionIdentifier , expectedReplacedSource , "<STR_LIT>" ) ; } public void test0156_Diet ( ) { String str = "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" ; String completeBehind = "<STR_LIT>" ; int cursorLocation = str . lastIndexOf ( "<STR_LIT>" ) + completeBehind . length ( ) - <NUM_LIT:1> ; String expectedCompletionNodeToString = "<STR_LIT>" ; String expectedParentNodeToString = "<STR_LIT>" ; String completionIdentifier = "<STR_LIT>" ; String expectedReplacedSource = "<STR_LIT>" ; String expectedUnitDisplayString = "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" ; checkDietParse ( str . toCharArray ( ) , cursorLocation , expectedCompletionNodeToString , expectedParentNodeToString , expectedUnitDisplayString , completionIdentifier , expectedReplacedSource , "<STR_LIT>" ) ; } public void test0156_Method ( ) { String str = "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" ; String completeBehind = "<STR_LIT>" ; int cursorLocation = str . lastIndexOf ( "<STR_LIT>" ) + completeBehind . length ( ) - <NUM_LIT:1> ; String expectedCompletionNodeToString = "<STR_LIT>" ; String expectedParentNodeToString = "<STR_LIT>" ; String completionIdentifier = "<STR_LIT>" ; String expectedReplacedSource = "<STR_LIT>" ; String expectedUnitDisplayString = "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" ; checkMethodParse ( str . toCharArray ( ) , cursorLocation , expectedCompletionNodeToString , expectedParentNodeToString , expectedUnitDisplayString , completionIdentifier , expectedReplacedSource , "<STR_LIT>" ) ; } public void test0157_Diet ( ) { String str = "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" ; String completeBehind = "<STR_LIT>" ; int cursorLocation = str . lastIndexOf ( "<STR_LIT>" ) + completeBehind . length ( ) - <NUM_LIT:1> ; String expectedCompletionNodeToString = "<STR_LIT>" ; String expectedParentNodeToString = "<STR_LIT>" ; String completionIdentifier = "<STR_LIT>" ; String expectedReplacedSource = "<STR_LIT>" ; String expectedUnitDisplayString = "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" ; checkDietParse ( str . toCharArray ( ) , cursorLocation , expectedCompletionNodeToString , expectedParentNodeToString , expectedUnitDisplayString , completionIdentifier , expectedReplacedSource , "<STR_LIT>" ) ; } public void test0157_Method ( ) { String str = "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" ; String completeBehind = "<STR_LIT>" ; int cursorLocation = str . lastIndexOf ( "<STR_LIT>" ) + completeBehind . length ( ) - <NUM_LIT:1> ; String expectedCompletionNodeToString = "<STR_LIT>" ; String expectedParentNodeToString = "<STR_LIT>" ; String completionIdentifier = "<STR_LIT>" ; String expectedReplacedSource = "<STR_LIT>" ; String expectedUnitDisplayString = "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" ; checkMethodParse ( str . toCharArray ( ) , cursorLocation , expectedCompletionNodeToString , expectedParentNodeToString , expectedUnitDisplayString , completionIdentifier , expectedReplacedSource , "<STR_LIT>" ) ; } public void test0158_Diet ( ) { String str = "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" ; String completeBehind = "<STR_LIT>" ; int cursorLocation = str . lastIndexOf ( "<STR_LIT>" ) + completeBehind . length ( ) - <NUM_LIT:1> ; String expectedCompletionNodeToString = "<STR_LIT>" ; String expectedParentNodeToString = "<STR_LIT>" ; String completionIdentifier = "<STR_LIT>" ; String expectedReplacedSource = "<STR_LIT>" ; String expectedUnitDisplayString = "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" ; checkDietParse ( str . toCharArray ( ) , cursorLocation , expectedCompletionNodeToString , expectedParentNodeToString , expectedUnitDisplayString , completionIdentifier , expectedReplacedSource , "<STR_LIT>" ) ; } public void test0158_Method ( ) { String str = "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" ; String completeBehind = "<STR_LIT>" ; int cursorLocation = str . lastIndexOf ( "<STR_LIT>" ) + completeBehind . length ( ) - <NUM_LIT:1> ; String expectedCompletionNodeToString = "<STR_LIT>" ; String expectedParentNodeToString = "<STR_LIT>" ; String completionIdentifier = "<STR_LIT>" ; String expectedReplacedSource = "<STR_LIT>" ; String expectedUnitDisplayString = "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" ; checkMethodParse ( str . toCharArray ( ) , cursorLocation , expectedCompletionNodeToString , expectedParentNodeToString , expectedUnitDisplayString , completionIdentifier , expectedReplacedSource , "<STR_LIT>" ) ; } public void test0159 ( ) { String str = "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" ; String completeBehind = "<STR_LIT>" ; String expectedCompletionNodeToString = "<STR_LIT>" ; String completionIdentifier = "<STR_LIT>" ; String expectedUnitDisplayString = "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" ; String expectedReplacedSource = "<STR_LIT>" ; String testName = "<STR_LIT>" ; int cursorLocation = str . indexOf ( completeBehind ) + completeBehind . length ( ) - <NUM_LIT:1> ; this . checkDietParse ( str . toCharArray ( ) , cursorLocation , expectedCompletionNodeToString , expectedUnitDisplayString , completionIdentifier , expectedReplacedSource , testName ) ; } public void test0160 ( ) { String str = "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" ; String completeBehind = "<STR_LIT>" ; String expectedCompletionNodeToString = "<STR_LIT>" ; String completionIdentifier = "<STR_LIT>" ; String expectedUnitDisplayString = "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" ; String expectedReplacedSource = "<STR_LIT>" ; String testName = "<STR_LIT>" ; int cursorLocation = str . indexOf ( completeBehind ) + completeBehind . length ( ) - <NUM_LIT:1> ; this . checkDietParse ( str . toCharArray ( ) , cursorLocation , expectedCompletionNodeToString , expectedUnitDisplayString , completionIdentifier , expectedReplacedSource , testName ) ; } public void test0161 ( ) { String str = "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" ; String completeBehind = "<STR_LIT>" ; String expectedCompletionNodeToString = "<STR_LIT>" ; String completionIdentifier = "<STR_LIT>" ; String expectedUnitDisplayString = "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" ; String expectedReplacedSource = "<STR_LIT>" ; String testName = "<STR_LIT>" ; int cursorLocation = str . indexOf ( completeBehind ) + completeBehind . length ( ) - <NUM_LIT:1> ; this . checkDietParse ( str . toCharArray ( ) , cursorLocation , expectedCompletionNodeToString , expectedUnitDisplayString , completionIdentifier , expectedReplacedSource , testName ) ; } public void test0162 ( ) { String str = "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" ; String completeBehind = "<STR_LIT>" ; String expectedCompletionNodeToString = "<STR_LIT>" ; String completionIdentifier = "<STR_LIT>" ; String expectedUnitDisplayString = "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" ; String expectedReplacedSource = "<STR_LIT>" ; String testName = "<STR_LIT>" ; int cursorLocation = str . indexOf ( completeBehind ) + completeBehind . length ( ) - <NUM_LIT:1> ; this . checkDietParse ( str . toCharArray ( ) , cursorLocation , expectedCompletionNodeToString , expectedUnitDisplayString , completionIdentifier , expectedReplacedSource , testName ) ; } public void test0163 ( ) { String str = "<STR_LIT>" + "<STR_LIT>" ; String completeBehind = "<STR_LIT>" ; String expectedCompletionNodeToString = "<STR_LIT>" ; String completionIdentifier = "<STR_LIT>" ; String expectedUnitDisplayString = "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" ; String expectedReplacedSource = "<STR_LIT>" ; String testName = "<STR_LIT>" ; int cursorLocation = str . indexOf ( completeBehind ) + completeBehind . length ( ) - <NUM_LIT:1> ; this . checkDietParse ( str . toCharArray ( ) , cursorLocation , expectedCompletionNodeToString , expectedUnitDisplayString , completionIdentifier , expectedReplacedSource , testName ) ; } public void test0164 ( ) { String str = "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" ; String completeBehind = "<STR_LIT>" ; String expectedCompletionNodeToString = "<STR_LIT>" ; String completionIdentifier = "<STR_LIT>" ; String expectedUnitDisplayString = "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" ; String expectedReplacedSource = "<STR_LIT>" ; String testName = "<STR_LIT>" ; int cursorLocation = str . indexOf ( completeBehind ) + completeBehind . length ( ) - <NUM_LIT:1> ; this . checkDietParse ( str . toCharArray ( ) , cursorLocation , expectedCompletionNodeToString , expectedUnitDisplayString , completionIdentifier , expectedReplacedSource , testName ) ; } public void test0165_Diet ( ) { String str = "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" ; String completeBehind = "<STR_LIT>" ; int cursorLocation = str . lastIndexOf ( "<STR_LIT>" ) + completeBehind . length ( ) - <NUM_LIT:1> ; String expectedCompletionNodeToString = "<STR_LIT>" ; String expectedParentNodeToString = "<STR_LIT>" ; String completionIdentifier = "<STR_LIT>" ; String expectedReplacedSource = "<STR_LIT>" ; String expectedUnitDisplayString = "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" ; checkDietParse ( str . toCharArray ( ) , cursorLocation , expectedCompletionNodeToString , expectedParentNodeToString , expectedUnitDisplayString , completionIdentifier , expectedReplacedSource , "<STR_LIT>" ) ; } public void test0165_Method ( ) { String str = "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" ; String completeBehind = "<STR_LIT>" ; int cursorLocation = str . lastIndexOf ( "<STR_LIT>" ) + completeBehind . length ( ) - <NUM_LIT:1> ; String expectedCompletionNodeToString = "<STR_LIT>" ; String expectedParentNodeToString = "<STR_LIT>" ; String completionIdentifier = "<STR_LIT>" ; String expectedReplacedSource = "<STR_LIT>" ; String expectedUnitDisplayString = "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" ; checkMethodParse ( str . toCharArray ( ) , cursorLocation , expectedCompletionNodeToString , expectedParentNodeToString , expectedUnitDisplayString , completionIdentifier , expectedReplacedSource , "<STR_LIT>" ) ; } public void test0166_Diet ( ) { String str = "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" ; String completeBehind = "<STR_LIT>" ; int cursorLocation = str . lastIndexOf ( "<STR_LIT>" ) + completeBehind . length ( ) - <NUM_LIT:1> ; String expectedCompletionNodeToString = "<STR_LIT>" ; String expectedParentNodeToString = "<STR_LIT>" ; String completionIdentifier = "<STR_LIT>" ; String expectedReplacedSource = "<STR_LIT>" ; String expectedUnitDisplayString = "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" ; checkDietParse ( str . toCharArray ( ) , cursorLocation , expectedCompletionNodeToString , expectedParentNodeToString , expectedUnitDisplayString , completionIdentifier , expectedReplacedSource , "<STR_LIT>" ) ; } public void test0166_Method ( ) { String str = "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" ; String completeBehind = "<STR_LIT>" ; int cursorLocation = str . lastIndexOf ( "<STR_LIT>" ) + completeBehind . length ( ) - <NUM_LIT:1> ; String expectedCompletionNodeToString = "<STR_LIT>" ; String expectedParentNodeToString = "<STR_LIT>" ; String completionIdentifier = "<STR_LIT>" ; String expectedReplacedSource = "<STR_LIT>" ; String expectedUnitDisplayString = "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" ; checkMethodParse ( str . toCharArray ( ) , cursorLocation , expectedCompletionNodeToString , expectedParentNodeToString , expectedUnitDisplayString , completionIdentifier , expectedReplacedSource , "<STR_LIT>" ) ; } public void test0167_Diet ( ) { String str = "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" ; String completeBehind = "<STR_LIT>" ; int cursorLocation = str . lastIndexOf ( "<STR_LIT>" ) + completeBehind . length ( ) - <NUM_LIT:1> ; String expectedCompletionNodeToString = "<STR_LIT>" ; String expectedParentNodeToString = "<STR_LIT>" ; String completionIdentifier = "<STR_LIT>" ; String expectedReplacedSource = "<STR_LIT>" ; String expectedUnitDisplayString = "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" ; checkDietParse ( str . toCharArray ( ) , cursorLocation , expectedCompletionNodeToString , expectedParentNodeToString , expectedUnitDisplayString , completionIdentifier , expectedReplacedSource , "<STR_LIT>" ) ; } public void test0167_Method ( ) { String str = "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" ; String completeBehind = "<STR_LIT>" ; int cursorLocation = str . lastIndexOf ( "<STR_LIT>" ) + completeBehind . length ( ) - <NUM_LIT:1> ; String expectedCompletionNodeToString = "<STR_LIT>" ; String expectedParentNodeToString = "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT:U+0020U+0020}>" ; String completionIdentifier = "<STR_LIT>" ; String expectedReplacedSource = "<STR_LIT>" ; String expectedUnitDisplayString = "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" ; checkMethodParse ( str . toCharArray ( ) , cursorLocation , expectedCompletionNodeToString , expectedParentNodeToString , expectedUnitDisplayString , completionIdentifier , expectedReplacedSource , "<STR_LIT>" ) ; } public void test0168_Diet ( ) { String str = "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" ; String completeBehind = "<STR_LIT>" ; int cursorLocation = str . lastIndexOf ( "<STR_LIT>" ) + completeBehind . length ( ) - <NUM_LIT:1> ; String expectedCompletionNodeToString = "<STR_LIT>" ; String expectedParentNodeToString = "<STR_LIT>" ; String completionIdentifier = "<STR_LIT>" ; String expectedReplacedSource = "<STR_LIT>" ; String expectedUnitDisplayString = "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" ; checkDietParse ( str . toCharArray ( ) , cursorLocation , expectedCompletionNodeToString , expectedParentNodeToString , expectedUnitDisplayString , completionIdentifier , expectedReplacedSource , "<STR_LIT>" ) ; } public void test0168_Method ( ) { String str = "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" ; String completeBehind = "<STR_LIT>" ; int cursorLocation = str . lastIndexOf ( "<STR_LIT>" ) + completeBehind . length ( ) - <NUM_LIT:1> ; String expectedCompletionNodeToString = "<STR_LIT>" ; String expectedParentNodeToString = "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT:U+0020U+0020}>" ; String completionIdentifier = "<STR_LIT>" ; String expectedReplacedSource = "<STR_LIT>" ; String expectedUnitDisplayString = "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" ; checkMethodParse ( str . toCharArray ( ) , cursorLocation , expectedCompletionNodeToString , expectedParentNodeToString , expectedUnitDisplayString , completionIdentifier , expectedReplacedSource , "<STR_LIT>" ) ; } public void test0169_Diet ( ) { String str = "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" ; String completeBehind = "<STR_LIT>" ; int cursorLocation = str . lastIndexOf ( "<STR_LIT>" ) + completeBehind . length ( ) - <NUM_LIT:1> ; String expectedCompletionNodeToString = "<STR_LIT>" ; String expectedParentNodeToString = "<STR_LIT>" ; String completionIdentifier = "<STR_LIT>" ; String expectedReplacedSource = "<STR_LIT>" ; String expectedUnitDisplayString = "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" ; checkDietParse ( str . toCharArray ( ) , cursorLocation , expectedCompletionNodeToString , expectedParentNodeToString , expectedUnitDisplayString , completionIdentifier , expectedReplacedSource , "<STR_LIT>" ) ; } public void test0169_Method ( ) { String str = "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" ; String completeBehind = "<STR_LIT>" ; int cursorLocation = str . lastIndexOf ( "<STR_LIT>" ) + completeBehind . length ( ) - <NUM_LIT:1> ; String expectedCompletionNodeToString = "<STR_LIT>" ; String expectedParentNodeToString = "<STR_LIT>" ; String completionIdentifier = "<STR_LIT>" ; String expectedReplacedSource = "<STR_LIT>" ; String expectedUnitDisplayString = "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" ; checkMethodParse ( str . toCharArray ( ) , cursorLocation , expectedCompletionNodeToString , expectedParentNodeToString , expectedUnitDisplayString , completionIdentifier , expectedReplacedSource , "<STR_LIT>" ) ; } public void test0170_Diet ( ) { String str = "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" ; String completeBehind = "<STR_LIT>" ; int cursorLocation = str . lastIndexOf ( "<STR_LIT>" ) + completeBehind . length ( ) - <NUM_LIT:1> ; String expectedCompletionNodeToString = "<STR_LIT>" ; String expectedParentNodeToString = "<STR_LIT>" ; String completionIdentifier = "<STR_LIT>" ; String expectedReplacedSource = "<STR_LIT>" ; String expectedUnitDisplayString = "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" ; checkDietParse ( str . toCharArray ( ) , cursorLocation , expectedCompletionNodeToString , expectedParentNodeToString , expectedUnitDisplayString , completionIdentifier , expectedReplacedSource , "<STR_LIT>" ) ; } public void test0170_Method ( ) { String str = "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" ; String completeBehind = "<STR_LIT>" ; int cursorLocation = str . lastIndexOf ( "<STR_LIT>" ) + completeBehind . length ( ) - <NUM_LIT:1> ; String expectedCompletionNodeToString = "<STR_LIT>" ; String expectedParentNodeToString = "<STR_LIT>" ; String completionIdentifier = "<STR_LIT>" ; String expectedReplacedSource = "<STR_LIT>" ; String expectedUnitDisplayString = "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" ; checkMethodParse ( str . toCharArray ( ) , cursorLocation , expectedCompletionNodeToString , expectedParentNodeToString , expectedUnitDisplayString , completionIdentifier , expectedReplacedSource , "<STR_LIT>" ) ; } public void test0171_Diet ( ) { String str = "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" ; String completeBehind = "<STR_LIT>" ; int cursorLocation = str . lastIndexOf ( "<STR_LIT>" ) + completeBehind . length ( ) - <NUM_LIT:1> ; String expectedCompletionNodeToString = "<STR_LIT>" ; String expectedParentNodeToString = "<STR_LIT>" ; String completionIdentifier = "<STR_LIT>" ; String expectedReplacedSource = "<STR_LIT>" ; String expectedUnitDisplayString = "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" ; checkDietParse ( str . toCharArray ( ) , cursorLocation , expectedCompletionNodeToString , expectedParentNodeToString , expectedUnitDisplayString , completionIdentifier , expectedReplacedSource , "<STR_LIT>" ) ; } public void test0171_Method ( ) { String str = "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" ; String completeBehind = "<STR_LIT>" ; int cursorLocation = str . lastIndexOf ( "<STR_LIT>" ) + completeBehind . length ( ) - <NUM_LIT:1> ; String expectedCompletionNodeToString = "<STR_LIT>" ; String expectedParentNodeToString = "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT:U+0020U+0020}>" ; String completionIdentifier = "<STR_LIT>" ; String expectedReplacedSource = "<STR_LIT>" ; String expectedUnitDisplayString = "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" ; checkMethodParse ( str . toCharArray ( ) , cursorLocation , expectedCompletionNodeToString , expectedParentNodeToString , expectedUnitDisplayString , completionIdentifier , expectedReplacedSource , "<STR_LIT>" ) ; } public void test0172 ( ) { String str = "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT:n>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT:n>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT:n>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" ; String completeBehind = "<STR_LIT>" ; int cursorLocation = str . lastIndexOf ( "<STR_LIT>" ) + completeBehind . length ( ) - <NUM_LIT:1> ; String expectedCompletionNodeToString = "<STR_LIT>" ; String expectedParentNodeToString = "<STR_LIT>" ; String completionIdentifier = "<STR_LIT>" ; String expectedReplacedSource = "<STR_LIT>" ; String expectedUnitDisplayString = "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" ; checkDietParse ( str . toCharArray ( ) , cursorLocation , expectedCompletionNodeToString , expectedParentNodeToString , expectedUnitDisplayString , completionIdentifier , expectedReplacedSource , "<STR_LIT>" ) ; } public void test0173_Diet ( ) { String str = "<STR_LIT>" + "<STR_LIT:n>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" ; String completeBehind = "<STR_LIT>" ; int cursorLocation = str . lastIndexOf ( "<STR_LIT>" ) + completeBehind . length ( ) - <NUM_LIT:1> ; String expectedCompletionNodeToString = "<STR_LIT>" ; String expectedParentNodeToString = "<STR_LIT>" ; String completionIdentifier = "<STR_LIT>" ; String expectedReplacedSource = "<STR_LIT>" ; String expectedUnitDisplayString = "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" ; checkDietParse ( str . toCharArray ( ) , cursorLocation , expectedCompletionNodeToString , expectedParentNodeToString , expectedUnitDisplayString , completionIdentifier , expectedReplacedSource , "<STR_LIT>" ) ; } public void test0173_Method ( ) { String str = "<STR_LIT>" + "<STR_LIT:n>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" ; String completeBehind = "<STR_LIT>" ; int cursorLocation = str . lastIndexOf ( "<STR_LIT>" ) + completeBehind . length ( ) - <NUM_LIT:1> ; String expectedCompletionNodeToString = "<STR_LIT>" ; String expectedParentNodeToString = "<STR_LIT>" ; String completionIdentifier = "<STR_LIT>" ; String expectedReplacedSource = "<STR_LIT>" ; String expectedUnitDisplayString = "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" ; checkMethodParse ( str . toCharArray ( ) , cursorLocation , expectedCompletionNodeToString , expectedParentNodeToString , expectedUnitDisplayString , completionIdentifier , expectedReplacedSource , "<STR_LIT>" ) ; } public void test0174_Diet ( ) { String str = "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" ; String completeBehind = "<STR_LIT>" ; int cursorLocation = str . lastIndexOf ( "<STR_LIT>" ) + completeBehind . length ( ) - <NUM_LIT:1> ; String expectedCompletionNodeToString = "<STR_LIT>" ; String expectedParentNodeToString = "<STR_LIT>" ; String completionIdentifier = "<STR_LIT>" ; String expectedReplacedSource = "<STR_LIT>" ; String expectedUnitDisplayString = "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" ; checkDietParse ( str . toCharArray ( ) , cursorLocation , expectedCompletionNodeToString , expectedParentNodeToString , expectedUnitDisplayString , completionIdentifier , expectedReplacedSource , "<STR_LIT>" ) ; } public void test0175_Diet ( ) { String str = "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" ; String completeBehind = "<STR_LIT>" ; int cursorLocation = str . lastIndexOf ( "<STR_LIT>" ) + completeBehind . length ( ) - <NUM_LIT:1> ; String expectedCompletionNodeToString = "<STR_LIT>" ; String expectedParentNodeToString = "<STR_LIT>" ; String completionIdentifier = "<STR_LIT>" ; String expectedReplacedSource = "<STR_LIT>" ; String expectedUnitDisplayString = "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" ; checkDietParse ( str . toCharArray ( ) , cursorLocation , expectedCompletionNodeToString , expectedParentNodeToString , expectedUnitDisplayString , completionIdentifier , expectedReplacedSource , "<STR_LIT>" ) ; } public void test0176_Diet ( ) { String str = "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" ; String completeBehind = "<STR_LIT>" ; int cursorLocation = str . lastIndexOf ( "<STR_LIT>" ) + completeBehind . length ( ) - <NUM_LIT:1> ; String expectedCompletionNodeToString = "<STR_LIT>" ; String expectedParentNodeToString = "<STR_LIT>" ; String completionIdentifier = "<STR_LIT>" ; String expectedReplacedSource = "<STR_LIT>" ; String expectedUnitDisplayString = "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" ; checkDietParse ( str . toCharArray ( ) , cursorLocation , expectedCompletionNodeToString , expectedParentNodeToString , expectedUnitDisplayString , completionIdentifier , expectedReplacedSource , "<STR_LIT>" ) ; } public void test0177_Diet ( ) { String str = "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" ; String completeBehind = "<STR_LIT>" ; int cursorLocation = str . lastIndexOf ( "<STR_LIT>" ) + completeBehind . length ( ) - <NUM_LIT:1> ; String expectedCompletionNodeToString = "<STR_LIT>" ; String expectedParentNodeToString = "<STR_LIT>" ; String completionIdentifier = "<STR_LIT>" ; String expectedReplacedSource = "<STR_LIT>" ; String expectedUnitDisplayString = "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" ; checkDietParse ( str . toCharArray ( ) , cursorLocation , expectedCompletionNodeToString , expectedParentNodeToString , expectedUnitDisplayString , completionIdentifier , expectedReplacedSource , "<STR_LIT>" ) ; } public void test0178_Method ( ) { String str = "<STR_LIT>" + "<STR_LIT:n>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" ; String completeBehind = "<STR_LIT>" ; int cursorLocation = str . lastIndexOf ( "<STR_LIT>" ) + completeBehind . length ( ) - <NUM_LIT:1> ; String expectedCompletionNodeToString = "<STR_LIT>" ; String expectedParentNodeToString = "<STR_LIT>" ; String completionIdentifier = "<STR_LIT>" ; String expectedReplacedSource = "<STR_LIT>" ; String expectedUnitDisplayString = "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" ; checkMethodParse ( str . toCharArray ( ) , cursorLocation , expectedCompletionNodeToString , expectedParentNodeToString , expectedUnitDisplayString , completionIdentifier , expectedReplacedSource , "<STR_LIT>" ) ; } } </s>
|
<s> package org . eclipse . jdt . core . tests . compiler . parser ; import java . util . Hashtable ; import java . util . Map ; import org . eclipse . jdt . core . tests . compiler . regression . AbstractRegressionTest ; import org . eclipse . jdt . internal . compiler . impl . CompilerOptions ; public class ParserTest extends AbstractRegressionTest { static { } public ParserTest ( String name ) { super ( name ) ; } public void test001 ( ) { this . runNegativeTest ( new String [ ] { "<STR_LIT>" , "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" } , "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" ) ; } public void test002 ( ) { this . runNegativeTest ( new String [ ] { "<STR_LIT>" , "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" } , "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" ) ; } public void test003 ( ) { this . runNegativeTest ( new String [ ] { "<STR_LIT>" , "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" } , "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" ) ; } public void test004 ( ) { this . runNegativeTest ( new String [ ] { "<STR_LIT>" , "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" } , "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" ) ; } public void test005 ( ) { this . runNegativeTest ( new String [ ] { "<STR_LIT>" , "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" } , "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" ) ; } public void test006 ( ) { this . runNegativeTest ( new String [ ] { "<STR_LIT>" , "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" } , "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" ) ; } public void test007 ( ) { this . runNegativeTest ( new String [ ] { "<STR_LIT>" , "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" } , "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" ) ; } public void test008 ( ) { this . runNegativeTest ( new String [ ] { "<STR_LIT>" , "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" } , "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" ) ; } public void test009 ( ) { this . runNegativeTest ( new String [ ] { "<STR_LIT>" , "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" } , "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" ) ; } public void test010 ( ) { this . runNegativeTest ( new String [ ] { "<STR_LIT>" , "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" } , "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" ) ; } public void test011 ( ) { this . runNegativeTest ( new String [ ] { "<STR_LIT>" , "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" } , "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" ) ; } public void test012 ( ) { Hashtable nls = new Hashtable ( ) ; nls . put ( CompilerOptions . OPTION_ReportNonExternalizedStringLiteral , CompilerOptions . ERROR ) ; runNegativeTest ( true , new String [ ] { "<STR_LIT>" , "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" } , null , nls , "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" , JavacTestOptions . Excuse . EclipseWarningConfiguredAsError ) ; } public void test013 ( ) { Hashtable nls = new Hashtable ( ) ; nls . put ( CompilerOptions . OPTION_ReportNonExternalizedStringLiteral , CompilerOptions . ERROR ) ; runNegativeTest ( true , new String [ ] { "<STR_LIT>" , "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" } , null , nls , "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" , JavacTestOptions . Excuse . EclipseWarningConfiguredAsError ) ; } public void test014 ( ) { this . runNegativeTest ( new String [ ] { "<STR_LIT>" , "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" } , "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" ) ; } public void test015 ( ) { this . runNegativeTest ( new String [ ] { "<STR_LIT>" , "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" } , "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT:n>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" ) ; } public void test016 ( ) { this . runNegativeTest ( new String [ ] { "<STR_LIT>" , "<STR_LIT>" + "<STR_LIT>" } , "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" ) ; } public void test017 ( ) { this . runNegativeTest ( new String [ ] { "<STR_LIT>" , "<STR_LIT>" + "<STR_LIT>" } , "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" ) ; } public void test018 ( ) { this . runNegativeTest ( new String [ ] { "<STR_LIT>" , "<STR_LIT>" + "<STR_LIT>" } , "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" ) ; } public void test019 ( ) { this . runNegativeTest ( new String [ ] { "<STR_LIT>" , "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT:}>" } , "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" ) ; } public void test020 ( ) { this . runNegativeTest ( new String [ ] { "<STR_LIT>" , "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT:}>" } , "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" ) ; } public void test021 ( ) { StringBuffer buffer = new StringBuffer ( ) ; buffer . append ( "<STR_LIT>" ) ; for ( int i = <NUM_LIT:0> ; i < <NUM_LIT:1000> ; i ++ ) { buffer . append ( "<STR_LIT>" + i + "<STR_LIT>" ) ; } for ( int i = <NUM_LIT:0> ; i < <NUM_LIT:1000> ; i ++ ) { if ( i == <NUM_LIT:0> ) buffer . append ( "<STR_LIT>" + i + "<STR_LIT>" ) ; else buffer . append ( "<STR_LIT>" + i + "<STR_LIT>" + ( i - <NUM_LIT:1> ) + "<STR_LIT>" ) ; } buffer . append ( "<STR_LIT>" ) ; Hashtable options = new Hashtable ( ) ; options . put ( CompilerOptions . OPTION_MaxProblemPerUnit , "<STR_LIT:10>" ) ; this . runNegativeTest ( new String [ ] { "<STR_LIT>" , buffer . toString ( ) } , "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" , null , true , options ) ; } public void test022 ( ) { Map options = getCompilerOptions ( ) ; options . put ( CompilerOptions . OPTION_ReportEmptyStatement , CompilerOptions . ERROR ) ; runNegativeTest ( true , new String [ ] { "<STR_LIT>" , "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT:}>" } , null , options , "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" , JavacTestOptions . Excuse . EclipseWarningConfiguredAsError ) ; } public void test023 ( ) { Map options = getCompilerOptions ( ) ; options . put ( CompilerOptions . OPTION_ReportEmptyStatement , CompilerOptions . ERROR ) ; runNegativeTest ( true , new String [ ] { "<STR_LIT>" , "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT:}>" } , null , options , "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" , JavacTestOptions . Excuse . EclipseWarningConfiguredAsError ) ; } public void test024 ( ) { Map options = getCompilerOptions ( ) ; options . put ( CompilerOptions . OPTION_ReportEmptyStatement , CompilerOptions . ERROR ) ; runNegativeTest ( true , new String [ ] { "<STR_LIT>" , "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT:}>" } , null , options , "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" , JavacTestOptions . Excuse . EclipseWarningConfiguredAsError ) ; } public void test025 ( ) { Map options = getCompilerOptions ( ) ; options . put ( CompilerOptions . OPTION_ReportUndocumentedEmptyBlock , CompilerOptions . ERROR ) ; runNegativeTest ( true , new String [ ] { "<STR_LIT>" , "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT:}>" } , null , options , "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" , JavacTestOptions . Excuse . EclipseWarningConfiguredAsError ) ; } public void test026 ( ) { Map options = getCompilerOptions ( ) ; options . put ( CompilerOptions . OPTION_ReportUndocumentedEmptyBlock , CompilerOptions . ERROR ) ; runNegativeTest ( true , new String [ ] { "<STR_LIT>" , "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT:}>" } , null , options , "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" , JavacTestOptions . Excuse . EclipseWarningConfiguredAsError ) ; } public void test027 ( ) { this . runNegativeTest ( new String [ ] { "<STR_LIT>" , "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT:n>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT:n>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT:n>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT:n>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" } , "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" ) ; } public void test028 ( ) { Map options = getCompilerOptions ( ) ; options . put ( CompilerOptions . OPTION_ReportNonExternalizedStringLiteral , CompilerOptions . ERROR ) ; runNegativeTest ( new String [ ] { "<STR_LIT>" , "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT:}>" } , "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" , null , true , options ) ; } } </s>
|
<s> package org . eclipse . jdt . core . tests . compiler . parser ; import junit . framework . Test ; import org . eclipse . jdt . internal . codeassist . complete . InvalidCursorLocation ; public class DietCompletionTest extends AbstractCompletionTest { public DietCompletionTest ( String testName ) { super ( testName ) ; } public static Test suite ( ) { return buildAllCompliancesTestSuite ( DietCompletionTest . class ) ; } public void test01 ( ) { String str = "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" ; String completeBehind = "<STR_LIT>" ; String expectedCompletionNodeToString = "<STR_LIT>" ; String completionIdentifier = "<STR_LIT>" ; String expectedUnitDisplayString = "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" ; String expectedReplacedSource = "<STR_LIT>" ; String testName = "<STR_LIT>" ; int cursorLocation = str . indexOf ( completeBehind ) + completeBehind . length ( ) - <NUM_LIT:1> ; this . checkDietParse ( str . toCharArray ( ) , cursorLocation , expectedCompletionNodeToString , expectedUnitDisplayString , completionIdentifier , expectedReplacedSource , testName ) ; } public void test02 ( ) { String str = "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" ; String completeBehind = "<STR_LIT>" ; String expectedCompletionNodeToString = "<STR_LIT>" ; String completionIdentifier = "<STR_LIT>" ; String expectedUnitDisplayString = "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" ; String expectedReplacedSource = "<STR_LIT>" ; String testName = "<STR_LIT>" ; int cursorLocation = str . indexOf ( completeBehind ) + completeBehind . length ( ) - <NUM_LIT:1> ; this . checkDietParse ( str . toCharArray ( ) , cursorLocation , expectedCompletionNodeToString , expectedUnitDisplayString , completionIdentifier , expectedReplacedSource , testName ) ; } public void test03 ( ) { String str = "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" ; String completeBehind = "<STR_LIT>" ; String expectedCompletionNodeToString = "<STR_LIT>" ; String completionIdentifier = "<STR_LIT>" ; String expectedUnitDisplayString = "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" ; String expectedReplacedSource = "<STR_LIT>" ; String testName = "<STR_LIT>" ; int cursorLocation = str . indexOf ( completeBehind ) + completeBehind . length ( ) - <NUM_LIT:1> ; this . checkDietParse ( str . toCharArray ( ) , cursorLocation , expectedCompletionNodeToString , expectedUnitDisplayString , completionIdentifier , expectedReplacedSource , testName ) ; } public void test04 ( ) { String str = "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" ; String completeBehind = "<STR_LIT>" ; String expectedCompletionNodeToString = "<STR_LIT>" ; String completionIdentifier = "<STR_LIT>" ; String expectedUnitDisplayString = "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" ; String expectedReplacedSource = "<STR_LIT>" ; String testName = "<STR_LIT>" ; int cursorLocation = str . indexOf ( completeBehind ) + completeBehind . length ( ) - <NUM_LIT:1> ; this . checkDietParse ( str . toCharArray ( ) , cursorLocation , expectedCompletionNodeToString , expectedUnitDisplayString , completionIdentifier , expectedReplacedSource , testName ) ; } public void test05 ( ) { String str = "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" ; String completeBehind = "<STR_LIT>" ; String expectedCompletionNodeToString = "<STR_LIT>" ; String completionIdentifier = "<STR_LIT>" ; String expectedUnitDisplayString = "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" ; String expectedReplacedSource = "<STR_LIT>" ; String testName = "<STR_LIT>" ; int cursorLocation = str . indexOf ( completeBehind ) + completeBehind . length ( ) - <NUM_LIT:1> ; this . checkDietParse ( str . toCharArray ( ) , cursorLocation , expectedCompletionNodeToString , expectedUnitDisplayString , completionIdentifier , expectedReplacedSource , testName ) ; } public void test06 ( ) { String str = "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" ; String completeBehind = "<STR_LIT>" ; String expectedCompletionNodeToString = "<STR_LIT>" ; String completionIdentifier = "<STR_LIT>" ; String expectedUnitDisplayString = "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" ; String expectedReplacedSource = "<STR_LIT>" ; String testName = "<STR_LIT>" ; int cursorLocation = str . indexOf ( completeBehind ) + completeBehind . length ( ) - <NUM_LIT:1> ; this . checkDietParse ( str . toCharArray ( ) , cursorLocation , expectedCompletionNodeToString , expectedUnitDisplayString , completionIdentifier , expectedReplacedSource , testName ) ; } public void test07 ( ) { String str = "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" ; String completeBehind = "<STR_LIT>" ; String expectedCompletionNodeToString = "<STR_LIT>" ; String completionIdentifier = "<STR_LIT>" ; String expectedUnitDisplayString = "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" ; String expectedReplacedSource = "<STR_LIT>" ; String testName = "<STR_LIT>" ; int cursorLocation = str . indexOf ( completeBehind ) + completeBehind . length ( ) - <NUM_LIT:1> ; this . checkDietParse ( str . toCharArray ( ) , cursorLocation , expectedCompletionNodeToString , expectedUnitDisplayString , completionIdentifier , expectedReplacedSource , testName ) ; } public void test08 ( ) { String str = "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" ; String completeBehind = "<STR_LIT>" ; String expectedCompletionNodeToString = "<STR_LIT>" ; String completionIdentifier = "<STR_LIT>" ; String expectedUnitDisplayString = "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" ; String expectedReplacedSource = "<STR_LIT>" ; String testName = "<STR_LIT>" ; int cursorLocation = str . indexOf ( completeBehind ) + completeBehind . length ( ) - <NUM_LIT:1> ; this . checkDietParse ( str . toCharArray ( ) , cursorLocation , expectedCompletionNodeToString , expectedUnitDisplayString , completionIdentifier , expectedReplacedSource , testName ) ; } public void test09 ( ) { String str = "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" ; String completeBehind = "<STR_LIT>" ; String expectedCompletionNodeToString = "<STR_LIT>" ; String completionIdentifier = "<STR_LIT>" ; String expectedUnitDisplayString = "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" ; String expectedReplacedSource = "<STR_LIT>" ; String testName = "<STR_LIT>" ; int cursorLocation = str . indexOf ( completeBehind ) + completeBehind . length ( ) - <NUM_LIT:1> ; this . checkDietParse ( str . toCharArray ( ) , cursorLocation , expectedCompletionNodeToString , expectedUnitDisplayString , completionIdentifier , expectedReplacedSource , testName ) ; } public void test10 ( ) { String str = "<STR_LIT>" + "<STR_LIT>" ; String completeBehind = "<STR_LIT>" ; String expectedCompletionNodeToString = "<STR_LIT>" ; String completionIdentifier = "<STR_LIT>" ; String expectedUnitDisplayString = "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" ; String expectedReplacedSource = "<STR_LIT>" ; String testName = "<STR_LIT>" ; int cursorLocation = str . indexOf ( completeBehind ) + completeBehind . length ( ) - <NUM_LIT:1> ; this . checkDietParse ( str . toCharArray ( ) , cursorLocation , expectedCompletionNodeToString , expectedUnitDisplayString , completionIdentifier , expectedReplacedSource , testName ) ; } public void test11 ( ) { String str = "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" ; String completeBehind = "<STR_LIT>" ; String expectedCompletionNodeToString = "<STR_LIT>" ; String completionIdentifier = "<STR_LIT>" ; String expectedUnitDisplayString = "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" ; String expectedReplacedSource = "<STR_LIT>" ; String testName = "<STR_LIT>" ; int cursorLocation = str . indexOf ( completeBehind ) + completeBehind . length ( ) - <NUM_LIT:1> ; this . checkDietParse ( str . toCharArray ( ) , cursorLocation , expectedCompletionNodeToString , expectedUnitDisplayString , completionIdentifier , expectedReplacedSource , testName ) ; } public void test12 ( ) { String str = "<STR_LIT>" + "<STR_LIT>" ; String completeBehind = "<STR_LIT>" ; String expectedCompletionNodeToString = "<STR_LIT>" ; String completionIdentifier = "<STR_LIT>" ; String expectedUnitDisplayString = "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" ; String expectedReplacedSource = "<STR_LIT>" ; String testName = "<STR_LIT>" ; int cursorLocation = str . indexOf ( completeBehind ) + completeBehind . length ( ) - <NUM_LIT:1> ; this . checkDietParse ( str . toCharArray ( ) , cursorLocation , expectedCompletionNodeToString , expectedUnitDisplayString , completionIdentifier , expectedReplacedSource , testName ) ; } public void test13 ( ) { String str = "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" ; String completeBehind = "<STR_LIT>" ; String expectedCompletionNodeToString = "<STR_LIT>" ; String completionIdentifier = "<STR_LIT>" ; String expectedUnitDisplayString = "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" ; String expectedReplacedSource = "<STR_LIT>" ; String testName = "<STR_LIT>" ; int cursorLocation = str . indexOf ( completeBehind ) + completeBehind . length ( ) - <NUM_LIT:1> ; this . checkDietParse ( str . toCharArray ( ) , cursorLocation , expectedCompletionNodeToString , expectedUnitDisplayString , completionIdentifier , expectedReplacedSource , testName ) ; } public void test14 ( ) { String str = "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" ; String completeBehind = "<STR_LIT>" ; String expectedCompletionNodeToString = "<STR_LIT>" ; String completionIdentifier = "<STR_LIT>" ; String expectedUnitDisplayString = "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" ; String expectedReplacedSource = "<STR_LIT>" ; String testName = "<STR_LIT>" ; int cursorLocation = str . indexOf ( completeBehind ) + completeBehind . length ( ) - <NUM_LIT:1> ; this . checkDietParse ( str . toCharArray ( ) , cursorLocation , expectedCompletionNodeToString , expectedUnitDisplayString , completionIdentifier , expectedReplacedSource , testName ) ; } public void test15 ( ) { String str = "<STR_LIT>" + "<STR_LIT>" ; String completeBehind = "<STR_LIT>" ; String expectedCompletionNodeToString = "<STR_LIT>" ; String completionIdentifier = "<STR_LIT>" ; String expectedUnitDisplayString = "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" ; String expectedReplacedSource = "<STR_LIT>" ; String testName = "<STR_LIT>" ; int cursorLocation = str . indexOf ( completeBehind ) + completeBehind . length ( ) - <NUM_LIT:1> ; this . checkDietParse ( str . toCharArray ( ) , cursorLocation , expectedCompletionNodeToString , expectedUnitDisplayString , completionIdentifier , expectedReplacedSource , testName ) ; } public void test16 ( ) { String str = "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" ; String completeBehind = "<STR_LIT>" ; String expectedCompletionNodeToString = "<STR_LIT>" ; String completionIdentifier = "<STR_LIT>" ; String expectedUnitDisplayString = "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" ; String expectedReplacedSource = "<STR_LIT>" ; String testName = "<STR_LIT>" ; int cursorLocation = str . indexOf ( completeBehind ) + completeBehind . length ( ) - <NUM_LIT:1> ; this . checkDietParse ( str . toCharArray ( ) , cursorLocation , expectedCompletionNodeToString , expectedUnitDisplayString , completionIdentifier , expectedReplacedSource , testName ) ; } public void test17 ( ) { String str = "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" ; String completeBehind = "<STR_LIT>" ; String expectedCompletionNodeToString = "<STR_LIT>" ; String completionIdentifier = "<STR_LIT>" ; String expectedUnitDisplayString = "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" ; String expectedReplacedSource = "<STR_LIT>" ; String testName = "<STR_LIT>" ; int cursorLocation = str . indexOf ( completeBehind ) + completeBehind . length ( ) - <NUM_LIT:1> ; this . checkDietParse ( str . toCharArray ( ) , cursorLocation , expectedCompletionNodeToString , expectedUnitDisplayString , completionIdentifier , expectedReplacedSource , testName ) ; } public void test18 ( ) { String str = "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" ; String completeBehind = "<STR_LIT>" ; String expectedCompletionNodeToString = "<STR_LIT>" ; String completionIdentifier = "<STR_LIT>" ; String expectedUnitDisplayString = "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" ; String expectedReplacedSource = "<STR_LIT>" ; String testName = "<STR_LIT>" ; int cursorLocation = str . indexOf ( completeBehind ) + completeBehind . length ( ) - <NUM_LIT:1> ; this . checkDietParse ( str . toCharArray ( ) , cursorLocation , expectedCompletionNodeToString , expectedUnitDisplayString , completionIdentifier , expectedReplacedSource , testName ) ; } public void test19 ( ) { String str = "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" ; String completeBehind = "<STR_LIT>" ; String expectedCompletionNodeToString = "<STR_LIT>" ; String completionIdentifier = "<STR_LIT>" ; String expectedUnitDisplayString = "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" ; String expectedReplacedSource = "<STR_LIT>" ; String testName = "<STR_LIT>" ; int cursorLocation = str . indexOf ( completeBehind ) + completeBehind . length ( ) - <NUM_LIT:1> ; this . checkDietParse ( str . toCharArray ( ) , cursorLocation , expectedCompletionNodeToString , expectedUnitDisplayString , completionIdentifier , expectedReplacedSource , testName ) ; } public void test20 ( ) { String str = "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" ; String completeBehind = "<STR_LIT>" ; String expectedCompletionNodeToString = "<STR_LIT>" ; String completionIdentifier = "<STR_LIT>" ; String expectedUnitDisplayString = "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" ; String expectedReplacedSource = "<STR_LIT>" ; String testName = "<STR_LIT>" ; int cursorLocation = str . indexOf ( completeBehind ) + completeBehind . length ( ) - <NUM_LIT:1> ; this . checkDietParse ( str . toCharArray ( ) , cursorLocation , expectedCompletionNodeToString , expectedUnitDisplayString , completionIdentifier , expectedReplacedSource , testName ) ; } public void test21 ( ) { String str = "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" ; String completeBehind = "<STR_LIT>" ; String expectedCompletionNodeToString = "<STR_LIT>" ; String completionIdentifier = "<STR_LIT>" ; String expectedUnitDisplayString = "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" ; String expectedReplacedSource = "<STR_LIT>" ; String testName = "<STR_LIT>" ; int cursorLocation = str . indexOf ( completeBehind ) + completeBehind . length ( ) - <NUM_LIT:1> ; this . checkDietParse ( str . toCharArray ( ) , cursorLocation , expectedCompletionNodeToString , expectedUnitDisplayString , completionIdentifier , expectedReplacedSource , testName ) ; } public void test22 ( ) { String str = "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" ; String completeBehind = "<STR_LIT>" ; String expectedCompletionNodeToString = "<STR_LIT>" ; String completionIdentifier = "<STR_LIT>" ; String expectedUnitDisplayString = "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" ; String expectedReplacedSource = "<STR_LIT>" ; String testName = "<STR_LIT>" ; int cursorLocation = str . indexOf ( completeBehind ) + completeBehind . length ( ) - <NUM_LIT:1> ; this . checkDietParse ( str . toCharArray ( ) , cursorLocation , expectedCompletionNodeToString , expectedUnitDisplayString , completionIdentifier , expectedReplacedSource , testName ) ; } public void test23 ( ) { String str = "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" ; String completeBehind = "<STR_LIT>" ; String expectedCompletionNodeToString = "<STR_LIT>" ; String completionIdentifier = "<STR_LIT>" ; String expectedUnitDisplayString = "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" ; String expectedReplacedSource = "<STR_LIT>" ; String testName = "<STR_LIT>" ; int cursorLocation = str . indexOf ( completeBehind ) + completeBehind . length ( ) - <NUM_LIT:1> ; this . checkDietParse ( str . toCharArray ( ) , cursorLocation , expectedCompletionNodeToString , expectedUnitDisplayString , completionIdentifier , expectedReplacedSource , testName ) ; } public void test24 ( ) { String str = "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" ; String completeBehind = "<STR_LIT>" ; String expectedCompletionNodeToString = "<STR_LIT>" ; String completionIdentifier = "<STR_LIT>" ; String expectedUnitDisplayString = "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" ; String expectedReplacedSource = "<STR_LIT>" ; String testName = "<STR_LIT>" ; int cursorLocation = str . indexOf ( completeBehind ) + completeBehind . length ( ) - <NUM_LIT:1> ; this . checkDietParse ( str . toCharArray ( ) , cursorLocation , expectedCompletionNodeToString , expectedUnitDisplayString , completionIdentifier , expectedReplacedSource , testName ) ; } public void test25 ( ) { String str = "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" ; String completeBehind = "<STR_LIT>" ; String expectedCompletionNodeToString = "<STR_LIT>" ; String completionIdentifier = "<STR_LIT>" ; String expectedUnitDisplayString = "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" ; String expectedReplacedSource = "<STR_LIT>" ; String testName = "<STR_LIT>" ; int cursorLocation = str . indexOf ( completeBehind ) + completeBehind . length ( ) - <NUM_LIT:1> ; this . checkDietParse ( str . toCharArray ( ) , cursorLocation , expectedCompletionNodeToString , expectedUnitDisplayString , completionIdentifier , expectedReplacedSource , testName ) ; } public void test26 ( ) { String str = "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" ; String completeBehind = "<STR_LIT>" ; String expectedCompletionNodeToString = "<STR_LIT>" ; String completionIdentifier = "<STR_LIT>" ; String expectedUnitDisplayString = "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" ; String expectedReplacedSource = "<STR_LIT>" ; String testName = "<STR_LIT>" ; int cursorLocation = str . indexOf ( completeBehind ) + completeBehind . length ( ) - <NUM_LIT:1> ; this . checkDietParse ( str . toCharArray ( ) , cursorLocation , expectedCompletionNodeToString , expectedUnitDisplayString , completionIdentifier , expectedReplacedSource , testName ) ; } public void test27 ( ) { String str = "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" ; String completeBehind = "<STR_LIT>" ; String expectedCompletionNodeToString = "<STR_LIT>" ; String completionIdentifier = "<STR_LIT>" ; String expectedUnitDisplayString = "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" ; String expectedReplacedSource = "<STR_LIT>" ; String testName = "<STR_LIT>" ; int cursorLocation = str . indexOf ( completeBehind ) + completeBehind . length ( ) - <NUM_LIT:1> ; this . checkDietParse ( str . toCharArray ( ) , cursorLocation , expectedCompletionNodeToString , expectedUnitDisplayString , completionIdentifier , expectedReplacedSource , testName ) ; } public void test28 ( ) { String str = "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" ; String completeBehind = "<STR_LIT>" ; String expectedCompletionNodeToString = "<STR_LIT>" ; String completionIdentifier = "<STR_LIT>" ; String expectedUnitDisplayString = "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" ; String expectedReplacedSource = "<STR_LIT>" ; String testName = "<STR_LIT>" ; int cursorLocation = str . indexOf ( completeBehind ) + completeBehind . length ( ) - <NUM_LIT:1> ; this . checkDietParse ( str . toCharArray ( ) , cursorLocation , expectedCompletionNodeToString , expectedUnitDisplayString , completionIdentifier , expectedReplacedSource , testName ) ; } public void test29 ( ) { String str = "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" ; String completeBehind = "<STR_LIT>" ; String expectedCompletionNodeToString = "<STR_LIT>" ; String completionIdentifier = "<STR_LIT>" ; String expectedUnitDisplayString = "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" ; String expectedReplacedSource = "<STR_LIT>" ; String testName = "<STR_LIT>" ; int cursorLocation = str . indexOf ( completeBehind ) + completeBehind . length ( ) - <NUM_LIT:1> ; this . checkDietParse ( str . toCharArray ( ) , cursorLocation , expectedCompletionNodeToString , expectedUnitDisplayString , completionIdentifier , expectedReplacedSource , testName ) ; } public void test30 ( ) { String str = "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" ; String completeBehind = "<STR_LIT>" ; String expectedCompletionNodeToString = "<STR_LIT>" ; String completionIdentifier = "<STR_LIT>" ; String expectedUnitDisplayString = "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" ; String expectedReplacedSource = "<STR_LIT>" ; String testName = "<STR_LIT>" ; int cursorLocation = str . indexOf ( completeBehind ) + completeBehind . length ( ) - <NUM_LIT:1> ; this . checkDietParse ( str . toCharArray ( ) , cursorLocation , expectedCompletionNodeToString , expectedUnitDisplayString , completionIdentifier , expectedReplacedSource , testName ) ; } public void test31 ( ) { String str = "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" ; String completeBehind = "<STR_LIT>" ; String expectedCompletionNodeToString = NONE ; String completionIdentifier = NONE ; String expectedUnitDisplayString = "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" ; String expectedReplacedSource = null ; String testName = "<STR_LIT>" ; int cursorLocation = str . indexOf ( completeBehind ) + completeBehind . length ( ) - <NUM_LIT:1> ; this . checkDietParse ( str . toCharArray ( ) , cursorLocation , expectedCompletionNodeToString , expectedUnitDisplayString , completionIdentifier , expectedReplacedSource , testName ) ; } public void test32 ( ) { String str = "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" ; String completeBehind = "<STR_LIT>" ; String expectedCompletionNodeToString = "<STR_LIT>" ; String completionIdentifier = "<STR_LIT>" ; String expectedUnitDisplayString = "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" ; String expectedReplacedSource = "<STR_LIT>" ; String testName = "<STR_LIT>" ; int cursorLocation = str . indexOf ( completeBehind ) + completeBehind . length ( ) - <NUM_LIT:1> ; this . checkDietParse ( str . toCharArray ( ) , cursorLocation , expectedCompletionNodeToString , expectedUnitDisplayString , completionIdentifier , expectedReplacedSource , testName ) ; } public void test33 ( ) { String str = "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" ; String completeBehind = "<STR_LIT>" ; String expectedCompletionNodeToString = "<STR_LIT>" ; String completionIdentifier = "<STR_LIT>" ; String expectedUnitDisplayString = "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" ; String expectedReplacedSource = "<STR_LIT>" ; String testName = "<STR_LIT>" ; int cursorLocation = str . indexOf ( completeBehind ) + completeBehind . length ( ) - <NUM_LIT:1> ; this . checkDietParse ( str . toCharArray ( ) , cursorLocation , expectedCompletionNodeToString , expectedUnitDisplayString , completionIdentifier , expectedReplacedSource , testName ) ; } public void test34 ( ) { String str = "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" ; String completeBehind = "<STR_LIT>" ; String expectedCompletionNodeToString = "<STR_LIT>" ; String completionIdentifier = "<STR_LIT>" ; String expectedUnitDisplayString = "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" ; String expectedReplacedSource = "<STR_LIT>" ; String testName = "<STR_LIT>" ; int cursorLocation = str . indexOf ( completeBehind ) + completeBehind . length ( ) - <NUM_LIT:1> ; this . checkDietParse ( str . toCharArray ( ) , cursorLocation , expectedCompletionNodeToString , expectedUnitDisplayString , completionIdentifier , expectedReplacedSource , testName ) ; } public void test34a ( ) { String str = "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" ; String completeBehind = "<STR_LIT>" ; String expectedCompletionNodeToString = "<STR_LIT>" ; String completionIdentifier = "<STR_LIT>" ; String expectedUnitDisplayString = "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" ; String expectedReplacedSource = "<STR_LIT>" ; String testName = "<STR_LIT>" ; int cursorLocation = str . indexOf ( completeBehind ) + completeBehind . length ( ) - <NUM_LIT:1> ; this . checkDietParse ( str . toCharArray ( ) , cursorLocation , expectedCompletionNodeToString , expectedUnitDisplayString , completionIdentifier , expectedReplacedSource , testName ) ; } public void test34b ( ) { String str = "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" ; String completeBehind = "<STR_LIT>" ; String expectedCompletionNodeToString = "<STR_LIT>" ; String completionIdentifier = "<STR_LIT>" ; String expectedUnitDisplayString = "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" ; String expectedReplacedSource = "<STR_LIT>" ; String testName = "<STR_LIT>" ; int cursorLocation = str . indexOf ( completeBehind ) + completeBehind . length ( ) - <NUM_LIT:1> ; this . checkDietParse ( str . toCharArray ( ) , cursorLocation , expectedCompletionNodeToString , expectedUnitDisplayString , completionIdentifier , expectedReplacedSource , testName ) ; } public void test34c ( ) { String str = "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" ; String completeBehind = "<STR_LIT>" ; String expectedCompletionNodeToString = "<STR_LIT>" ; String completionIdentifier = "<STR_LIT>" ; String expectedUnitDisplayString = "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" ; String expectedReplacedSource = "<STR_LIT>" ; String testName = "<STR_LIT>" ; int cursorLocation = str . indexOf ( completeBehind ) + completeBehind . length ( ) - <NUM_LIT:1> ; this . checkDietParse ( str . toCharArray ( ) , cursorLocation , expectedCompletionNodeToString , expectedUnitDisplayString , completionIdentifier , expectedReplacedSource , testName ) ; } public void test35 ( ) { String str = "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" ; String completeBehind = "<STR_LIT>" ; String expectedCompletionNodeToString = NONE ; String completionIdentifier = NONE ; String expectedUnitDisplayString = "<STR_LIT>" ; String expectedReplacedSource = NONE ; String testName = "<STR_LIT>" ; try { int cursorLocation = str . indexOf ( completeBehind ) + completeBehind . length ( ) - <NUM_LIT:1> ; this . checkDietParse ( str . toCharArray ( ) , cursorLocation , expectedCompletionNodeToString , expectedUnitDisplayString , completionIdentifier , expectedReplacedSource , testName ) ; assertTrue ( "<STR_LIT>" , false ) ; } catch ( InvalidCursorLocation e ) { assertEquals ( "<STR_LIT>" , e . irritant , InvalidCursorLocation . NO_COMPLETION_INSIDE_UNICODE ) ; } } public void test36 ( ) { String str = "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" ; String completeBehind = "<STR_LIT>" ; String expectedCompletionNodeToString = NONE ; String completionIdentifier = NONE ; String expectedUnitDisplayString = "<STR_LIT>" ; String expectedReplacedSource = NONE ; String testName = "<STR_LIT>" ; int cursorLocation = str . indexOf ( completeBehind ) + completeBehind . length ( ) - <NUM_LIT:1> ; try { this . checkDietParse ( str . toCharArray ( ) , cursorLocation , expectedCompletionNodeToString , expectedUnitDisplayString , completionIdentifier , expectedReplacedSource , testName ) ; assertTrue ( "<STR_LIT>" , false ) ; } catch ( InvalidCursorLocation e ) { assertEquals ( "<STR_LIT>" , e . irritant , InvalidCursorLocation . NO_COMPLETION_INSIDE_COMMENT ) ; } } public void test37 ( ) { String str = "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" ; String completeBehind = "<STR_LIT>" ; String expectedCompletionNodeToString = "<STR_LIT>" ; String completionIdentifier = "<STR_LIT>" ; String expectedUnitDisplayString = "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" ; String expectedReplacedSource = "<STR_LIT>" ; String testName = "<STR_LIT>" ; int cursorLocation = str . indexOf ( completeBehind ) + completeBehind . length ( ) - <NUM_LIT:1> ; this . checkDietParse ( str . toCharArray ( ) , cursorLocation , expectedCompletionNodeToString , expectedUnitDisplayString , completionIdentifier , expectedReplacedSource , testName ) ; } public void test38 ( ) { String str = "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" ; String completeBehind = "<STR_LIT>" ; String expectedCompletionNodeToString = NONE ; String completionIdentifier = NONE ; String expectedUnitDisplayString = "<STR_LIT>" ; String expectedReplacedSource = NONE ; String testName = "<STR_LIT>" ; int cursorLocation = str . indexOf ( completeBehind ) + completeBehind . length ( ) - <NUM_LIT:1> ; try { this . checkDietParse ( str . toCharArray ( ) , cursorLocation , expectedCompletionNodeToString , expectedUnitDisplayString , completionIdentifier , expectedReplacedSource , testName ) ; assertTrue ( "<STR_LIT>" , false ) ; } catch ( InvalidCursorLocation e ) { assertEquals ( "<STR_LIT>" , e . irritant , InvalidCursorLocation . NO_COMPLETION_INSIDE_NUMBER ) ; } } public void test39 ( ) { String str = "<STR_LIT>" + "<STR_LIT>" ; String completeBehind = "<STR_LIT>" ; String expectedCompletionNodeToString = "<STR_LIT>" ; String completionIdentifier = "<STR_LIT>" ; String expectedUnitDisplayString = "<STR_LIT>" + "<STR_LIT>" ; String expectedReplacedSource = "<STR_LIT>" ; String testName = "<STR_LIT>" ; int cursorLocation = str . indexOf ( completeBehind ) + completeBehind . length ( ) - <NUM_LIT:1> ; this . checkDietParse ( str . toCharArray ( ) , cursorLocation , expectedCompletionNodeToString , expectedUnitDisplayString , completionIdentifier , expectedReplacedSource , testName ) ; } public void test40 ( ) { String str = "<STR_LIT>" + "<STR_LIT>" ; String completeBehind = "<STR_LIT>" ; String expectedCompletionNodeToString = "<STR_LIT>" ; String completionIdentifier = "<STR_LIT>" ; String expectedUnitDisplayString = "<STR_LIT>" + "<STR_LIT>" ; String expectedReplacedSource = "<STR_LIT>" ; String testName = "<STR_LIT>" ; int cursorLocation = str . indexOf ( completeBehind ) + completeBehind . length ( ) - <NUM_LIT:1> ; this . checkDietParse ( str . toCharArray ( ) , cursorLocation , expectedCompletionNodeToString , expectedUnitDisplayString , completionIdentifier , expectedReplacedSource , testName ) ; } public void test41 ( ) { String str = "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" ; String completeBehind = "<STR_LIT>" ; String expectedCompletionNodeToString = NONE ; String completionIdentifier = "<STR_LIT>" ; String expectedUnitDisplayString = "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" ; String expectedReplacedSource = "<STR_LIT>" ; String testName = "<STR_LIT>" ; int cursorLocation = str . indexOf ( completeBehind ) + completeBehind . length ( ) - <NUM_LIT:1> ; this . checkDietParse ( str . toCharArray ( ) , cursorLocation , expectedCompletionNodeToString , expectedUnitDisplayString , completionIdentifier , expectedReplacedSource , testName ) ; } public void test42 ( ) { String str = "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" ; String completeBehind = "<STR_LIT:int>" ; String expectedCompletionNodeToString = "<STR_LIT>" ; String completionIdentifier = "<STR_LIT:int>" ; String expectedUnitDisplayString = "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" ; String expectedReplacedSource = "<STR_LIT:int>" ; String testName = "<STR_LIT>" ; int cursorLocation = str . indexOf ( completeBehind ) + completeBehind . length ( ) - <NUM_LIT:1> ; this . checkDietParse ( str . toCharArray ( ) , cursorLocation , expectedCompletionNodeToString , expectedUnitDisplayString , completionIdentifier , expectedReplacedSource , testName ) ; } public void test43 ( ) { String str = "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" ; String completeBehind = "<STR_LIT:int>" ; String expectedCompletionNodeToString = "<STR_LIT>" ; String completionIdentifier = "<STR_LIT:int>" ; String expectedUnitDisplayString = "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" ; String expectedReplacedSource = "<STR_LIT:int>" ; String testName = "<STR_LIT>" ; int cursorLocation = str . indexOf ( completeBehind ) + completeBehind . length ( ) - <NUM_LIT:1> ; this . checkDietParse ( str . toCharArray ( ) , cursorLocation , expectedCompletionNodeToString , expectedUnitDisplayString , completionIdentifier , expectedReplacedSource , testName ) ; } public void test44 ( ) { String str = "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" ; String completeBehind = "<STR_LIT>" ; String expectedCompletionNodeToString = "<STR_LIT>" ; String completionIdentifier = "<STR_LIT>" ; String expectedUnitDisplayString = "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" ; String expectedReplacedSource = "<STR_LIT>" ; String testName = "<STR_LIT>" ; int cursorLocation = str . indexOf ( completeBehind ) + completeBehind . length ( ) - <NUM_LIT:1> ; this . checkDietParse ( str . toCharArray ( ) , cursorLocation , expectedCompletionNodeToString , expectedUnitDisplayString , completionIdentifier , expectedReplacedSource , testName ) ; } public void test45 ( ) { String str = "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" ; String completeBehind = "<STR_LIT>" ; String expectedCompletionNodeToString = "<STR_LIT>" ; String completionIdentifier = "<STR_LIT>" ; String expectedUnitDisplayString = "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" ; String expectedReplacedSource = "<STR_LIT>" ; String testName = "<STR_LIT>" ; int cursorLocation = str . indexOf ( completeBehind ) + completeBehind . length ( ) - <NUM_LIT:1> ; this . checkDietParse ( str . toCharArray ( ) , cursorLocation , expectedCompletionNodeToString , expectedUnitDisplayString , completionIdentifier , expectedReplacedSource , testName ) ; } public void test46 ( ) { String str = "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" ; String completeBehind = "<STR_LIT>" ; String expectedCompletionNodeToString = "<STR_LIT>" ; String completionIdentifier = "<STR_LIT:s>" ; String expectedUnitDisplayString = "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" ; String expectedReplacedSource = "<STR_LIT:s>" ; String testName = "<STR_LIT>" ; int cursorLocation = str . indexOf ( completeBehind ) + completeBehind . length ( ) - <NUM_LIT:1> ; this . checkDietParse ( str . toCharArray ( ) , cursorLocation , expectedCompletionNodeToString , expectedUnitDisplayString , completionIdentifier , expectedReplacedSource , testName ) ; } public void test47 ( ) { String str = "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" ; String completeBehind = "<STR_LIT>" ; String expectedCompletionNodeToString = "<STR_LIT>" ; String completionIdentifier = "<STR_LIT:foo>" ; String expectedUnitDisplayString = "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" ; String expectedReplacedSource = "<STR_LIT>" ; String testName = "<STR_LIT>" ; int cursorLocation = str . indexOf ( completeBehind ) + completeBehind . length ( ) - <NUM_LIT:1> ; this . checkDietParse ( str . toCharArray ( ) , cursorLocation , expectedCompletionNodeToString , expectedUnitDisplayString , completionIdentifier , expectedReplacedSource , testName ) ; } public void test48 ( ) { String str = "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" ; String completeBehind = "<STR_LIT>" ; String expectedCompletionNodeToString = NONE ; String completionIdentifier = "<STR_LIT:f>" ; String expectedUnitDisplayString = "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" ; String expectedReplacedSource = "<STR_LIT:f>" ; String testName = "<STR_LIT>" ; int cursorLocation = str . indexOf ( completeBehind ) + completeBehind . length ( ) - <NUM_LIT:1> ; this . checkDietParse ( str . toCharArray ( ) , cursorLocation , expectedCompletionNodeToString , expectedUnitDisplayString , completionIdentifier , expectedReplacedSource , testName ) ; } public void test49 ( ) { String str = "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" ; String completeBehind = "<STR_LIT>" ; String expectedCompletionNodeToString = "<STR_LIT>" ; String completionIdentifier = "<STR_LIT>" ; String expectedUnitDisplayString = "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" ; String expectedReplacedSource = "<STR_LIT>" ; String testName = "<STR_LIT>" ; int cursorLocation = str . indexOf ( completeBehind ) + completeBehind . length ( ) - <NUM_LIT:1> ; this . checkDietParse ( str . toCharArray ( ) , cursorLocation , expectedCompletionNodeToString , expectedUnitDisplayString , completionIdentifier , expectedReplacedSource , testName ) ; } public void test50 ( ) { String str = "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" ; String completeBehind = "<STR_LIT>" ; String expectedCompletionNodeToString = "<STR_LIT>" ; String completionIdentifier = "<STR_LIT:X>" ; String expectedUnitDisplayString = "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" ; String expectedReplacedSource = "<STR_LIT>" ; String testName = "<STR_LIT>" ; int cursorLocation = str . indexOf ( completeBehind ) + completeBehind . length ( ) - <NUM_LIT:1> ; this . checkDietParse ( str . toCharArray ( ) , cursorLocation , expectedCompletionNodeToString , expectedUnitDisplayString , completionIdentifier , expectedReplacedSource , testName ) ; } public void test51 ( ) { String str = "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" ; String completeBehind = "<STR_LIT>" ; String expectedCompletionNodeToString = "<STR_LIT>" ; String completionIdentifier = "<STR_LIT:x>" ; String expectedUnitDisplayString = "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" ; String expectedReplacedSource = "<STR_LIT>" ; String testName = "<STR_LIT>" ; int cursorLocation = str . indexOf ( completeBehind ) + completeBehind . length ( ) - <NUM_LIT:1> ; this . checkDietParse ( str . toCharArray ( ) , cursorLocation , expectedCompletionNodeToString , expectedUnitDisplayString , completionIdentifier , expectedReplacedSource , testName ) ; } public void test52 ( ) { String str = "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" ; String completeBehind = "<STR_LIT>" ; String expectedCompletionNodeToString = "<STR_LIT>" ; String completionIdentifier = "<STR_LIT:c>" ; String expectedUnitDisplayString = "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" ; String expectedReplacedSource = "<STR_LIT>" ; String testName = "<STR_LIT>" ; int cursorLocation = str . indexOf ( completeBehind ) + completeBehind . length ( ) - <NUM_LIT:1> ; this . checkDietParse ( str . toCharArray ( ) , cursorLocation , expectedCompletionNodeToString , expectedUnitDisplayString , completionIdentifier , expectedReplacedSource , testName ) ; } public void test53 ( ) { String str = "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" ; String completeBehind = "<STR_LIT>" ; String expectedCompletionNodeToString = "<STR_LIT>" ; String completionIdentifier = "<STR_LIT>" ; String expectedUnitDisplayString = "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" ; String expectedReplacedSource = "<STR_LIT>" ; String testName = "<STR_LIT>" ; int cursorLocation = str . indexOf ( completeBehind ) + completeBehind . length ( ) - <NUM_LIT:1> ; this . checkDietParse ( str . toCharArray ( ) , cursorLocation , expectedCompletionNodeToString , expectedUnitDisplayString , completionIdentifier , expectedReplacedSource , testName ) ; } public void test54 ( ) { String str = "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" ; String completeBehind = "<STR_LIT>" ; String expectedCompletionNodeToString = NONE ; String completionIdentifier = "<STR_LIT:f>" ; String expectedUnitDisplayString = "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" ; String expectedReplacedSource = "<STR_LIT:f>" ; String testName = "<STR_LIT>" ; int cursorLocation = str . indexOf ( completeBehind ) + completeBehind . length ( ) - <NUM_LIT:1> ; this . checkDietParse ( str . toCharArray ( ) , cursorLocation , expectedCompletionNodeToString , expectedUnitDisplayString , completionIdentifier , expectedReplacedSource , testName ) ; } public void test55 ( ) { String str = "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" ; String completeBehind = "<STR_LIT>" ; String expectedCompletionNodeToString = "<STR_LIT>" ; String completionIdentifier = "<STR_LIT:index>" ; String expectedUnitDisplayString = "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" ; String expectedReplacedSource = "<STR_LIT>" ; String testName = "<STR_LIT>" ; int cursorLocation = str . indexOf ( completeBehind ) + completeBehind . length ( ) - <NUM_LIT:1> ; this . checkDietParse ( str . toCharArray ( ) , cursorLocation , expectedCompletionNodeToString , expectedUnitDisplayString , completionIdentifier , expectedReplacedSource , testName ) ; } } </s>
|
<s> package org . eclipse . jdt . core . tests . compiler . parser ; public class SourceImport { int declarationSourceStart ; int declarationSourceEnd ; char [ ] name ; boolean onDemand ; int modifiers ; char [ ] source ; public SourceImport ( int declarationSourceStart , int declarationSourceEnd , char [ ] name , boolean onDemand , int modifiers , char [ ] source ) { this . declarationSourceStart = declarationSourceStart ; this . declarationSourceEnd = declarationSourceEnd ; this . name = name ; this . onDemand = onDemand ; this . modifiers = modifiers ; this . source = source ; } public String toString ( ) { StringBuffer buffer = new StringBuffer ( ) ; buffer . append ( source , declarationSourceStart , declarationSourceEnd - declarationSourceStart + <NUM_LIT:1> ) . append ( "<STR_LIT:n>" ) ; return buffer . toString ( ) ; } } </s>
|
<s> package org . eclipse . jdt . core . tests . compiler . parser ; import org . eclipse . jdt . internal . compiler . classfmt . ClassFileConstants ; public final class SourceType { private int modifiers ; private int declarationStart ; private int declarationEnd ; private char [ ] fileName ; private SourcePackage packageName ; private SourceImport [ ] imports ; private char [ ] enclosingTypeName ; private char [ ] name ; private int nameSourceStart ; private int nameSourceEnd ; private char [ ] superclassName ; private char [ ] [ ] interfaceNames ; private SourceType [ ] memberTypes ; private int numberOfMemberTypes ; private SourceMethod [ ] methods ; private int numberOfMethods ; private SourceField [ ] fields ; private int numberOfFields ; private char [ ] source ; SourceType parent ; private char [ ] qualifiedName ; private String defaultConstructor ; public SourceType ( char [ ] enclosingTypeName , int declarationStart , int modifiers , char [ ] name , int nameSourceStart , int nameSourceEnd , char [ ] superclassName , char [ ] [ ] interfaceNames , char [ ] source ) { this . enclosingTypeName = enclosingTypeName ; this . declarationStart = declarationStart ; this . modifiers = modifiers ; this . name = name ; this . nameSourceStart = nameSourceStart ; this . nameSourceEnd = nameSourceEnd ; this . superclassName = superclassName ; this . interfaceNames = interfaceNames ; this . source = source ; } protected void addField ( SourceField sourceField ) { if ( fields == null ) { fields = new SourceField [ <NUM_LIT:4> ] ; } if ( numberOfFields == fields . length ) { System . arraycopy ( fields , <NUM_LIT:0> , fields = new SourceField [ numberOfFields * <NUM_LIT:2> ] , <NUM_LIT:0> , numberOfFields ) ; } fields [ numberOfFields ++ ] = sourceField ; } protected void addMemberType ( SourceType sourceMemberType ) { if ( memberTypes == null ) { memberTypes = new SourceType [ <NUM_LIT:4> ] ; } if ( numberOfMemberTypes == memberTypes . length ) { System . arraycopy ( memberTypes , <NUM_LIT:0> , memberTypes = new SourceType [ numberOfMemberTypes * <NUM_LIT:2> ] , <NUM_LIT:0> , numberOfMemberTypes ) ; } memberTypes [ numberOfMemberTypes ++ ] = sourceMemberType ; } protected void addMethod ( SourceMethod sourceMethod ) { if ( methods == null ) { methods = new SourceMethod [ <NUM_LIT:4> ] ; } if ( numberOfMethods == methods . length ) { System . arraycopy ( methods , <NUM_LIT:0> , methods = new SourceMethod [ numberOfMethods * <NUM_LIT:2> ] , <NUM_LIT:0> , numberOfMethods ) ; } methods [ numberOfMethods ++ ] = sourceMethod ; } public String displayModifiers ( ) { StringBuffer buffer = new StringBuffer ( ) ; if ( this . modifiers == <NUM_LIT:0> ) return null ; if ( ( this . modifiers & ClassFileConstants . AccPublic ) != <NUM_LIT:0> ) buffer . append ( "<STR_LIT>" ) ; if ( ( this . modifiers & ClassFileConstants . AccProtected ) != <NUM_LIT:0> ) buffer . append ( "<STR_LIT>" ) ; if ( ( this . modifiers & ClassFileConstants . AccPrivate ) != <NUM_LIT:0> ) buffer . append ( "<STR_LIT>" ) ; if ( ( this . modifiers & ClassFileConstants . AccFinal ) != <NUM_LIT:0> ) buffer . append ( "<STR_LIT>" ) ; if ( ( this . modifiers & ClassFileConstants . AccStatic ) != <NUM_LIT:0> ) buffer . append ( "<STR_LIT>" ) ; if ( ( this . modifiers & ClassFileConstants . AccAbstract ) != <NUM_LIT:0> ) buffer . append ( "<STR_LIT>" ) ; if ( ( this . modifiers & ClassFileConstants . AccNative ) != <NUM_LIT:0> ) buffer . append ( "<STR_LIT>" ) ; if ( ( this . modifiers & ClassFileConstants . AccSynchronized ) != <NUM_LIT:0> ) buffer . append ( "<STR_LIT>" ) ; return buffer . toString ( ) . trim ( ) ; } public String getActualName ( ) { StringBuffer buffer = new StringBuffer ( ) ; buffer . append ( source , nameSourceStart , nameSourceEnd - nameSourceStart + <NUM_LIT:1> ) ; return buffer . toString ( ) ; } public int getDeclarationSourceEnd ( ) { return declarationEnd ; } public int getDeclarationSourceStart ( ) { return declarationStart ; } public char [ ] getEnclosingTypeName ( ) { return enclosingTypeName ; } public SourceField [ ] getFields ( ) { if ( fields != null && fields . length != numberOfFields ) { System . arraycopy ( fields , <NUM_LIT:0> , fields = new SourceField [ numberOfFields ] , <NUM_LIT:0> , numberOfFields ) ; } return fields ; } public char [ ] getFileName ( ) { return fileName ; } public char [ ] [ ] getImports ( ) { if ( imports == null ) return null ; int importLength = imports . length ; char [ ] [ ] importNames = new char [ importLength ] [ ] ; for ( int i = <NUM_LIT:0> , max = importLength ; i < max ; i ++ ) { importNames [ i ] = imports [ i ] . name ; } return importNames ; } public char [ ] [ ] getInterfaceNames ( ) { return interfaceNames ; } public SourceType [ ] getMemberTypes ( ) { if ( memberTypes != null && memberTypes . length != numberOfMemberTypes ) { System . arraycopy ( memberTypes , <NUM_LIT:0> , memberTypes = new SourceType [ numberOfMemberTypes ] , <NUM_LIT:0> , numberOfMemberTypes ) ; } return memberTypes ; } public SourceMethod [ ] getMethods ( ) { if ( methods != null && methods . length != numberOfMethods ) { System . arraycopy ( methods , <NUM_LIT:0> , methods = new SourceMethod [ numberOfMethods ] , <NUM_LIT:0> , numberOfMethods ) ; } return methods ; } public int getModifiers ( ) { return modifiers ; } public char [ ] getName ( ) { return name ; } public int getNameSourceEnd ( ) { return nameSourceEnd ; } public int getNameSourceStart ( ) { return nameSourceStart ; } public char [ ] getPackageName ( ) { return packageName . name ; } public char [ ] getQualifiedName ( ) { if ( qualifiedName == null ) { StringBuffer temp = new StringBuffer ( ) ; temp . append ( packageName ) ; temp . append ( '<CHAR_LIT:.>' ) ; temp . append ( name ) ; qualifiedName = temp . toString ( ) . toCharArray ( ) ; } return qualifiedName ; } public char [ ] getSuperclassName ( ) { return superclassName ; } public boolean isBinaryType ( ) { return false ; } public boolean isClass ( ) { return ( modifiers & ClassFileConstants . AccInterface ) == <NUM_LIT:0> ; } public boolean isInterface ( ) { return ( modifiers & ClassFileConstants . AccInterface ) == ClassFileConstants . AccInterface ; } public void setDeclarationSourceEnd ( int position ) { declarationEnd = position ; } public void setDefaultConstructor ( String s ) { this . defaultConstructor = s ; } public void setImports ( SourceImport [ ] imports ) { this . imports = imports ; } public void setPackage ( SourcePackage sourcePackage ) { packageName = sourcePackage ; } public void setSuperclass ( char [ ] superclassName ) { this . superclassName = superclassName ; } public void setSuperinterfaces ( char [ ] [ ] superinterfacesNames ) { this . interfaceNames = superinterfacesNames ; } public String tabString ( int tab ) { String s = "<STR_LIT>" ; for ( int i = tab ; i > <NUM_LIT:0> ; i -- ) s = s + "<STR_LIT:t>" ; return s ; } public String toString ( ) { return toString ( <NUM_LIT:0> ) ; } public String toString ( int tab ) { StringBuffer buffer = new StringBuffer ( ) ; if ( packageName != null ) { buffer . append ( tabString ( tab ) ) . append ( packageName ) ; } if ( imports != null ) { for ( int i = <NUM_LIT:0> , max = imports . length ; i < max ; i ++ ) { buffer . append ( tabString ( tab ) ) . append ( imports [ i ] ) ; } } buffer . append ( tabString ( tab ) ) ; String displayModifiers = displayModifiers ( ) ; if ( displayModifiers != null ) { buffer . append ( displayModifiers ) . append ( "<STR_LIT:U+0020>" ) ; } buffer . append ( isInterface ( ) ? "<STR_LIT>" : "<STR_LIT>" ) . append ( name ) . append ( "<STR_LIT:U+0020>" ) ; if ( superclassName != null ) { buffer . append ( "<STR_LIT>" ) . append ( superclassName ) . append ( "<STR_LIT:U+0020>" ) ; } if ( interfaceNames != null ) { buffer . append ( "<STR_LIT>" ) ; for ( int i = <NUM_LIT:0> , max = interfaceNames . length ; i < max ; i ++ ) { buffer . append ( interfaceNames [ i ] ) . append ( "<STR_LIT:U+002CU+0020>" ) ; } } buffer . append ( "<STR_LIT>" ) ; if ( memberTypes != null ) { for ( int i = <NUM_LIT:0> , max = numberOfMemberTypes ; i < max ; i ++ ) { buffer . append ( memberTypes [ i ] . toString ( tab + <NUM_LIT:1> ) ) . append ( "<STR_LIT:n>" ) ; } } if ( fields != null ) { for ( int i = <NUM_LIT:0> , max = numberOfFields ; i < max ; i ++ ) { buffer . append ( fields [ i ] . toString ( tab + <NUM_LIT:1> ) ) . append ( "<STR_LIT:n>" ) ; } } if ( defaultConstructor != null ) { buffer . append ( tabString ( tab + <NUM_LIT:1> ) ) . append ( defaultConstructor ) ; } if ( methods != null ) { for ( int i = <NUM_LIT:0> , max = numberOfMethods ; i < max ; i ++ ) { buffer . append ( methods [ i ] . toString ( tab + <NUM_LIT:1> ) ) . append ( "<STR_LIT:n>" ) ; } } buffer . append ( tabString ( tab ) ) . append ( "<STR_LIT:}>" ) ; return buffer . toString ( ) ; } } </s>
|
<s> package org . eclipse . jdt . core . tests . compiler . parser ; import org . eclipse . jdt . internal . compiler . classfmt . ClassFileConstants ; public class SourceInitializer extends SourceField { public SourceInitializer ( int declarationStart , int modifiers ) { super ( declarationStart , modifiers , null , null , - <NUM_LIT:1> , - <NUM_LIT:1> , null ) ; } public void setDeclarationSourceEnd ( int declarationSourceEnd ) { this . declarationEnd = declarationSourceEnd ; } public String toString ( int tab ) { if ( modifiers == ClassFileConstants . AccStatic ) { return tabString ( tab ) + "<STR_LIT>" ; } return tabString ( tab ) + "<STR_LIT:{}>" ; } } </s>
|
<s> package org . eclipse . jdt . core . tests . compiler . parser ; public class EnumSelectionTest extends AbstractSelectionTest { public EnumSelectionTest ( String testName ) { super ( testName ) ; } public void test0001 ( ) { String str = "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" ; String selectionStartBehind = "<STR_LIT>" ; String selectionEndBehind = "<STR_LIT:A>" ; String expectedCompletionNodeToString = "<STR_LIT>" ; String completionIdentifier = "<STR_LIT:A>" ; String expectedUnitDisplayString = "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" ; String expectedReplacedSource = "<STR_LIT:A>" ; String testName = "<STR_LIT>" ; int selectionStart = str . indexOf ( selectionStartBehind ) + selectionStartBehind . length ( ) ; int selectionEnd = str . indexOf ( selectionEndBehind ) + selectionEndBehind . length ( ) - <NUM_LIT:1> ; this . checkMethodParse ( str . toCharArray ( ) , selectionStart , selectionEnd , expectedCompletionNodeToString , expectedUnitDisplayString , completionIdentifier , expectedReplacedSource , testName ) ; } } </s>
|
<s> package org . eclipse . jdt . core . tests . compiler . parser ; import java . util . Locale ; import org . eclipse . jdt . internal . codeassist . select . SelectionParser ; import org . eclipse . jdt . internal . codeassist . select . SelectionScanner ; import org . eclipse . jdt . internal . compiler . CompilationResult ; import org . eclipse . jdt . internal . compiler . DefaultErrorHandlingPolicies ; import org . eclipse . jdt . internal . compiler . ast . AbstractMethodDeclaration ; import org . eclipse . jdt . internal . compiler . ast . ASTNode ; import org . eclipse . jdt . internal . compiler . ast . Block ; import org . eclipse . jdt . internal . compiler . ast . CompilationUnitDeclaration ; import org . eclipse . jdt . internal . compiler . ast . FieldDeclaration ; import org . eclipse . jdt . internal . compiler . ast . Initializer ; import org . eclipse . jdt . internal . compiler . ast . TypeDeclaration ; import org . eclipse . jdt . internal . compiler . batch . CompilationUnit ; import org . eclipse . jdt . internal . compiler . env . ICompilationUnit ; import org . eclipse . jdt . internal . compiler . impl . CompilerOptions ; import org . eclipse . jdt . internal . compiler . problem . DefaultProblemFactory ; import org . eclipse . jdt . internal . compiler . problem . ProblemReporter ; import org . eclipse . jdt . core . compiler . CharOperation ; import org . eclipse . jdt . core . tests . util . AbstractCompilerTest ; import org . eclipse . jdt . core . tests . util . Util ; public abstract class AbstractSelectionTest extends AbstractCompilerTest { public final static String NONE = "<STR_LIT>" ; public AbstractSelectionTest ( String testName ) { super ( testName ) ; } public void checkDietParse ( char [ ] source , int selectionStart , int selectionEnd , String expectedSelection , String expectedUnitToString , String expectedSelectionIdentifier , String expectedSelectedSource , String testName ) { CompilerOptions options = new CompilerOptions ( getCompilerOptions ( ) ) ; SelectionParser parser = new SelectionParser ( new ProblemReporter ( DefaultErrorHandlingPolicies . proceedWithAllProblems ( ) , options , new DefaultProblemFactory ( Locale . getDefault ( ) ) ) ) ; ICompilationUnit sourceUnit = new CompilationUnit ( source , testName , null ) ; CompilationResult compilationResult = new CompilationResult ( sourceUnit , <NUM_LIT:0> , <NUM_LIT:0> , <NUM_LIT:0> ) ; CompilationUnitDeclaration unit = parser . dietParse ( sourceUnit , compilationResult , selectionStart , selectionEnd ) ; String computedUnitToString = unit . toString ( ) ; String computedSelection = parser . assistNode == null ? NONE : parser . assistNode . toString ( ) ; assertEquals ( "<STR_LIT>" + testName , expectedSelection , computedSelection ) ; if ( ! expectedUnitToString . equals ( computedUnitToString ) ) { System . out . println ( Util . displayString ( computedUnitToString , <NUM_LIT:2> ) ) ; } assertEquals ( "<STR_LIT>" + testName , expectedUnitToString , computedUnitToString ) ; if ( expectedSelectionIdentifier != null ) { char [ ] chars = ( ( SelectionScanner ) parser . scanner ) . selectionIdentifier ; String computedSelectionIdentifier = chars == null ? NONE : new String ( chars ) ; assertEquals ( "<STR_LIT>" + testName , expectedSelectionIdentifier , computedSelectionIdentifier ) ; } if ( expectedSelectedSource != null ) { char [ ] chars = null ; if ( parser . assistNode != null ) { chars = CharOperation . subarray ( parser . scanner . source , parser . assistNode . sourceStart , parser . assistNode . sourceEnd + <NUM_LIT:1> ) ; } else { if ( parser . assistIdentifier ( ) != null ) { if ( ( ( SelectionScanner ) parser . scanner ) . selectionEnd >= ( ( SelectionScanner ) parser . scanner ) . selectionStart ) { chars = CharOperation . subarray ( parser . scanner . source , ( ( SelectionScanner ) parser . scanner ) . selectionStart , ( ( SelectionScanner ) parser . scanner ) . selectionEnd + <NUM_LIT:1> ) ; } } } String computedSelectedSource = chars == null ? NONE : new String ( chars ) ; assertEquals ( "<STR_LIT>" + testName , expectedSelectedSource , computedSelectedSource ) ; } } public void checkMethodParse ( char [ ] source , int selectionStart , int selectionEnd , String expectedSelection , String expectedUnitToString , String expectedSelectionIdentifier , String expectedSelectedSource , String [ ] expectedLabels , String testName ) { CompilerOptions options = new CompilerOptions ( getCompilerOptions ( ) ) ; SelectionParser parser = new SelectionParser ( new ProblemReporter ( DefaultErrorHandlingPolicies . proceedWithAllProblems ( ) , options , new DefaultProblemFactory ( Locale . getDefault ( ) ) ) ) ; ICompilationUnit sourceUnit = new CompilationUnit ( source , testName , null ) ; CompilationResult compilationResult = new CompilationResult ( sourceUnit , <NUM_LIT:0> , <NUM_LIT:0> , <NUM_LIT:0> ) ; CompilationUnitDeclaration unit = parser . dietParse ( sourceUnit , compilationResult , selectionStart , selectionEnd ) ; ASTNode foundMethod = null ; if ( unit . types != null ) { for ( int i = <NUM_LIT:0> ; i < unit . types . length ; i ++ ) { TypeDeclaration type = unit . types [ i ] ; ASTNode method = findMethod ( type , selectionStart ) ; if ( method != null ) { foundMethod = method ; break ; } } } assertTrue ( "<STR_LIT>" , foundMethod != null ) ; if ( foundMethod instanceof AbstractMethodDeclaration ) { parser . parseBlockStatements ( ( AbstractMethodDeclaration ) foundMethod , unit ) ; } else { TypeDeclaration type = ( TypeDeclaration ) foundMethod ; if ( type . fields != null ) { for ( int i = <NUM_LIT:0> ; i < type . fields . length ; i ++ ) { FieldDeclaration field = type . fields [ i ] ; if ( field instanceof Initializer && field . sourceStart <= selectionStart && selectionStart <= field . sourceEnd ) { parser . parseBlockStatements ( ( Initializer ) field , type , unit ) ; break ; } } } } String computedUnitToString = unit . toString ( ) ; String computedCompletion = parser . assistNode == null ? NONE : parser . assistNode . toString ( ) ; assertEquals ( "<STR_LIT>" + testName , expectedSelection , computedCompletion ) ; if ( ! expectedUnitToString . equals ( computedUnitToString ) ) { System . out . println ( Util . displayString ( computedUnitToString , <NUM_LIT:2> ) ) ; } assertEquals ( "<STR_LIT>" + testName , expectedUnitToString , computedUnitToString ) ; if ( expectedSelectionIdentifier != null ) { char [ ] chars = ( ( SelectionScanner ) parser . scanner ) . selectionIdentifier ; String computedSelectionIdentifier = chars == null ? NONE : new String ( chars ) ; assertEquals ( "<STR_LIT>" + testName , expectedSelectionIdentifier , computedSelectionIdentifier ) ; } if ( expectedSelectedSource != null ) { char [ ] chars = null ; if ( parser . assistNode != null ) { chars = CharOperation . subarray ( parser . scanner . source , parser . assistNode . sourceStart , parser . assistNode . sourceEnd + <NUM_LIT:1> ) ; } else { if ( parser . assistIdentifier ( ) != null ) { if ( ( ( SelectionScanner ) parser . scanner ) . selectionEnd >= ( ( SelectionScanner ) parser . scanner ) . selectionStart ) { chars = CharOperation . subarray ( parser . scanner . source , ( ( SelectionScanner ) parser . scanner ) . selectionStart , ( ( SelectionScanner ) parser . scanner ) . selectionEnd + <NUM_LIT:1> ) ; } } } String computedReplacedSource = chars == null ? NONE : new String ( chars ) ; assertEquals ( "<STR_LIT>" + testName , expectedSelectedSource , computedReplacedSource ) ; } if ( expectedLabels != null ) { } } public void checkMethodParse ( char [ ] source , int selectionStart , int selectionEnd , String expectedSelection , String expectedUnitToString , String expectedSelectionIdentifier , String expectedSelectedSource , String testName ) { this . checkMethodParse ( source , selectionStart , selectionEnd , expectedSelection , expectedUnitToString , expectedSelectionIdentifier , expectedSelectedSource , null , testName ) ; } protected ASTNode findMethod ( TypeDeclaration type , int cursorLocation ) { if ( type . methods != null ) { for ( int i = <NUM_LIT:0> ; i < type . methods . length ; i ++ ) { AbstractMethodDeclaration method = type . methods [ i ] ; if ( method . declarationSourceStart <= cursorLocation && ( cursorLocation <= method . declarationSourceEnd || method . declarationSourceEnd == <NUM_LIT:0> ) ) { return method ; } } } if ( type . memberTypes != null ) { for ( int i = <NUM_LIT:0> ; i < type . memberTypes . length ; i ++ ) { TypeDeclaration memberType = type . memberTypes [ i ] ; ASTNode method = findMethod ( memberType , cursorLocation ) ; if ( method != null ) { return method ; } } } if ( type . fields != null ) { for ( int i = <NUM_LIT:0> ; i < type . fields . length ; i ++ ) { FieldDeclaration field = type . fields [ i ] ; if ( field instanceof Initializer ) { Initializer initializer = ( Initializer ) field ; Block block = initializer . block ; if ( block != null && block . sourceStart <= cursorLocation && ( cursorLocation <= block . sourceEnd || block . sourceEnd == <NUM_LIT:0> ) ) { return type ; } } } } return null ; } protected void runTestCheckMethodParse ( String compilationUnit , String selectionStartBehind , String selectionEndBehind , String expectedSelectionNodeToString , String expectedUnitDisplayString , String expectedSelectionIdentifier , String expectedReplacedSource , String testName ) { int selectionStartBehindStart = compilationUnit . indexOf ( selectionStartBehind ) ; assertTrue ( "<STR_LIT>" , selectionStartBehindStart != - <NUM_LIT:1> ) ; int selectionStart = selectionStartBehindStart + selectionStartBehind . length ( ) ; int selectionEndBehindStart = compilationUnit . indexOf ( selectionEndBehind ) ; assertTrue ( "<STR_LIT>" , selectionEndBehindStart != - <NUM_LIT:1> ) ; int selectionEnd = selectionEndBehindStart + selectionEndBehind . length ( ) - <NUM_LIT:1> ; this . checkMethodParse ( compilationUnit . toCharArray ( ) , selectionStart , selectionEnd , expectedSelectionNodeToString , expectedUnitDisplayString , expectedSelectionIdentifier , expectedReplacedSource , testName ) ; } } </s>
|
<s> package org . eclipse . jdt . core . tests . compiler . parser ; import org . eclipse . jdt . internal . compiler . classfmt . ClassFileConstants ; import org . eclipse . jdt . internal . compiler . env . ISourceMethod ; public class SourceMethod implements ISourceMethod { private int modifiers ; private int declarationStart ; private int declarationEnd ; private char [ ] returnTypeName ; private char [ ] selector ; private int nameSourceStart ; private int nameSourceEnd ; private char [ ] [ ] argumentTypeNames ; private char [ ] [ ] argumentNames ; private char [ ] [ ] exceptionTypeNames ; private char [ ] source ; private String explicitConstructorCall ; char [ ] [ ] typeParameterNames ; char [ ] [ ] [ ] typeParameterBounds ; public SourceMethod ( int declarationStart , int modifiers , char [ ] returnTypeName , char [ ] selector , int nameSourceStart , int nameSourceEnd , char [ ] [ ] argumentTypeNames , char [ ] [ ] argumentNames , char [ ] [ ] exceptionTypeNames , char [ ] source ) { this . declarationStart = declarationStart ; this . modifiers = modifiers ; this . returnTypeName = returnTypeName ; this . selector = selector ; this . nameSourceStart = nameSourceStart ; this . nameSourceEnd = nameSourceEnd ; this . argumentTypeNames = argumentTypeNames ; this . argumentNames = argumentNames ; this . exceptionTypeNames = exceptionTypeNames ; this . source = source ; } public String displayModifiers ( ) { StringBuffer buffer = new StringBuffer ( ) ; if ( this . modifiers == <NUM_LIT:0> ) return null ; if ( ( this . modifiers & ClassFileConstants . AccPublic ) != <NUM_LIT:0> ) buffer . append ( "<STR_LIT>" ) ; if ( ( this . modifiers & ClassFileConstants . AccProtected ) != <NUM_LIT:0> ) buffer . append ( "<STR_LIT>" ) ; if ( ( this . modifiers & ClassFileConstants . AccPrivate ) != <NUM_LIT:0> ) buffer . append ( "<STR_LIT>" ) ; if ( ( this . modifiers & ClassFileConstants . AccFinal ) != <NUM_LIT:0> ) buffer . append ( "<STR_LIT>" ) ; if ( ( this . modifiers & ClassFileConstants . AccStatic ) != <NUM_LIT:0> ) buffer . append ( "<STR_LIT>" ) ; if ( ( this . modifiers & ClassFileConstants . AccAbstract ) != <NUM_LIT:0> ) buffer . append ( "<STR_LIT>" ) ; if ( ( this . modifiers & ClassFileConstants . AccNative ) != <NUM_LIT:0> ) buffer . append ( "<STR_LIT>" ) ; if ( ( this . modifiers & ClassFileConstants . AccSynchronized ) != <NUM_LIT:0> ) buffer . append ( "<STR_LIT>" ) ; if ( buffer . toString ( ) . trim ( ) . equals ( "<STR_LIT>" ) ) return null ; return buffer . toString ( ) . trim ( ) ; } public String getActualName ( ) { StringBuffer buffer = new StringBuffer ( ) ; buffer . append ( source , nameSourceStart , nameSourceEnd - nameSourceStart + <NUM_LIT:1> ) ; return buffer . toString ( ) ; } public char [ ] [ ] getArgumentNames ( ) { return argumentNames ; } public char [ ] [ ] getArgumentTypeNames ( ) { return argumentTypeNames ; } public int getDeclarationSourceEnd ( ) { return declarationEnd ; } public int getDeclarationSourceStart ( ) { return declarationStart ; } public char [ ] [ ] getExceptionTypeNames ( ) { return exceptionTypeNames ; } public int getModifiers ( ) { return modifiers ; } public int getNameSourceEnd ( ) { return nameSourceEnd ; } public int getNameSourceStart ( ) { return nameSourceStart ; } public char [ ] getReturnTypeName ( ) { return returnTypeName ; } public char [ ] getSelector ( ) { return selector ; } public char [ ] [ ] [ ] getTypeParameterBounds ( ) { return typeParameterBounds ; } public char [ ] [ ] getTypeParameterNames ( ) { return typeParameterNames ; } public boolean isConstructor ( ) { return returnTypeName == null ; } protected void setDeclarationSourceEnd ( int position ) { declarationEnd = position ; } protected void setExplicitConstructorCall ( String s ) { explicitConstructorCall = s ; } public String tabString ( int tab ) { String s = "<STR_LIT>" ; for ( int i = tab ; i > <NUM_LIT:0> ; i -- ) s = s + "<STR_LIT:t>" ; return s ; } public String toString ( ) { return toString ( <NUM_LIT:0> ) ; } public String toString ( int tab ) { StringBuffer buffer = new StringBuffer ( ) ; buffer . append ( tabString ( tab ) ) ; String displayModifiers = displayModifiers ( ) ; if ( displayModifiers != null ) { buffer . append ( displayModifiers ) . append ( "<STR_LIT:U+0020>" ) ; } if ( returnTypeName != null ) { buffer . append ( returnTypeName ) . append ( "<STR_LIT:U+0020>" ) ; } buffer . append ( selector ) . append ( "<STR_LIT:(>" ) ; if ( argumentTypeNames != null ) { for ( int i = <NUM_LIT:0> , max = argumentTypeNames . length ; i < max ; i ++ ) { buffer . append ( argumentTypeNames [ i ] ) . append ( "<STR_LIT:U+0020>" ) . append ( argumentNames [ i ] ) . append ( "<STR_LIT:U+002CU+0020>" ) ; } } buffer . append ( "<STR_LIT>" ) ; if ( exceptionTypeNames != null ) { buffer . append ( "<STR_LIT>" ) ; for ( int i = <NUM_LIT:0> , max = exceptionTypeNames . length ; i < max ; i ++ ) { buffer . append ( exceptionTypeNames [ i ] ) . append ( "<STR_LIT:U+002CU+0020>" ) ; } } if ( explicitConstructorCall != null ) { buffer . append ( "<STR_LIT>" ) . append ( tabString ( tab + <NUM_LIT:1> ) ) . append ( explicitConstructorCall ) . append ( tabString ( tab ) ) . append ( "<STR_LIT:}>" ) ; } else { buffer . append ( "<STR_LIT:{}>" ) ; } return buffer . toString ( ) ; } } </s>
|
<s> package org . eclipse . jdt . core . tests . compiler . parser ; public class GenericsSelectionTest extends AbstractSelectionTest { public GenericsSelectionTest ( String testName ) { super ( testName ) ; } public void test0001 ( ) { String str = "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" ; String selection = "<STR_LIT:Z>" ; String expectedCompletionNodeToString = "<STR_LIT>" ; String completionIdentifier = "<STR_LIT:Z>" ; String expectedUnitDisplayString = "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" ; String expectedReplacedSource = "<STR_LIT:Z>" ; String testName = "<STR_LIT>" ; int selectionStart = str . lastIndexOf ( selection ) ; int selectionEnd = str . lastIndexOf ( selection ) + selection . length ( ) - <NUM_LIT:1> ; this . checkDietParse ( str . toCharArray ( ) , selectionStart , selectionEnd , expectedCompletionNodeToString , expectedUnitDisplayString , completionIdentifier , expectedReplacedSource , testName ) ; } public void test0002 ( ) { String str = "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" ; String selection = "<STR_LIT:Z>" ; String expectedCompletionNodeToString = "<STR_LIT>" ; String completionIdentifier = "<STR_LIT:Z>" ; String expectedUnitDisplayString = "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" ; String expectedReplacedSource = "<STR_LIT:Z>" ; String testName = "<STR_LIT>" ; int selectionStart = str . lastIndexOf ( selection ) ; int selectionEnd = str . lastIndexOf ( selection ) + selection . length ( ) - <NUM_LIT:1> ; this . checkMethodParse ( str . toCharArray ( ) , selectionStart , selectionEnd , expectedCompletionNodeToString , expectedUnitDisplayString , completionIdentifier , expectedReplacedSource , testName ) ; } public void test0003 ( ) { String str = "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" ; String selection = "<STR_LIT:Z>" ; String expectedCompletionNodeToString = "<STR_LIT>" ; String completionIdentifier = "<STR_LIT:Z>" ; String expectedUnitDisplayString = "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" ; String expectedReplacedSource = "<STR_LIT>" ; String testName = "<STR_LIT>" ; int selectionStart = str . lastIndexOf ( selection ) ; int selectionEnd = str . lastIndexOf ( selection ) + selection . length ( ) - <NUM_LIT:1> ; this . checkDietParse ( str . toCharArray ( ) , selectionStart , selectionEnd , expectedCompletionNodeToString , expectedUnitDisplayString , completionIdentifier , expectedReplacedSource , testName ) ; } public void test0004 ( ) { String str = "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" ; String selection = "<STR_LIT:Z>" ; String expectedCompletionNodeToString = "<STR_LIT>" ; String completionIdentifier = "<STR_LIT:Z>" ; String expectedUnitDisplayString = "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" ; String expectedReplacedSource = "<STR_LIT>" ; String testName = "<STR_LIT>" ; int selectionStart = str . lastIndexOf ( selection ) ; int selectionEnd = str . lastIndexOf ( selection ) + selection . length ( ) - <NUM_LIT:1> ; this . checkMethodParse ( str . toCharArray ( ) , selectionStart , selectionEnd , expectedCompletionNodeToString , expectedUnitDisplayString , completionIdentifier , expectedReplacedSource , testName ) ; } public void test0005 ( ) { String str = "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" ; String selection = "<STR_LIT:Z>" ; String expectedCompletionNodeToString = "<STR_LIT>" ; String completionIdentifier = "<STR_LIT:Z>" ; String expectedUnitDisplayString = "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" ; String expectedReplacedSource = "<STR_LIT>" ; String testName = "<STR_LIT>" ; int selectionStart = str . lastIndexOf ( selection ) ; int selectionEnd = str . lastIndexOf ( selection ) + selection . length ( ) - <NUM_LIT:1> ; this . checkDietParse ( str . toCharArray ( ) , selectionStart , selectionEnd , expectedCompletionNodeToString , expectedUnitDisplayString , completionIdentifier , expectedReplacedSource , testName ) ; } public void test0006 ( ) { String str = "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" ; String selection = "<STR_LIT:Z>" ; String expectedCompletionNodeToString = "<STR_LIT>" ; String completionIdentifier = "<STR_LIT:Z>" ; String expectedUnitDisplayString = "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" ; String expectedReplacedSource = "<STR_LIT>" ; String testName = "<STR_LIT>" ; int selectionStart = str . lastIndexOf ( selection ) ; int selectionEnd = str . lastIndexOf ( selection ) + selection . length ( ) - <NUM_LIT:1> ; this . checkMethodParse ( str . toCharArray ( ) , selectionStart , selectionEnd , expectedCompletionNodeToString , expectedUnitDisplayString , completionIdentifier , expectedReplacedSource , testName ) ; } public void test0007 ( ) { String str = "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" ; String selection = "<STR_LIT:Z>" ; String expectedCompletionNodeToString = "<STR_LIT>" ; String completionIdentifier = "<STR_LIT:Z>" ; String expectedUnitDisplayString = "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" ; String expectedReplacedSource = "<STR_LIT>" ; String testName = "<STR_LIT>" ; int selectionStart = str . lastIndexOf ( selection ) ; int selectionEnd = str . lastIndexOf ( selection ) + selection . length ( ) - <NUM_LIT:1> ; this . checkDietParse ( str . toCharArray ( ) , selectionStart , selectionEnd , expectedCompletionNodeToString , expectedUnitDisplayString , completionIdentifier , expectedReplacedSource , testName ) ; } public void test0008 ( ) { String str = "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" ; String selection = "<STR_LIT:Z>" ; String expectedCompletionNodeToString = "<STR_LIT>" ; String completionIdentifier = "<STR_LIT:Z>" ; String expectedUnitDisplayString = "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" ; String expectedReplacedSource = "<STR_LIT>" ; String testName = "<STR_LIT>" ; int selectionStart = str . lastIndexOf ( selection ) ; int selectionEnd = str . lastIndexOf ( selection ) + selection . length ( ) - <NUM_LIT:1> ; this . checkMethodParse ( str . toCharArray ( ) , selectionStart , selectionEnd , expectedCompletionNodeToString , expectedUnitDisplayString , completionIdentifier , expectedReplacedSource , testName ) ; } public void test0009 ( ) { String str = "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" ; String selection = "<STR_LIT:Z>" ; String expectedCompletionNodeToString = "<STR_LIT>" ; String completionIdentifier = "<STR_LIT:Z>" ; String expectedUnitDisplayString = "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" ; String expectedReplacedSource = "<STR_LIT:Z>" ; String testName = "<STR_LIT>" ; int selectionStart = str . lastIndexOf ( selection ) ; int selectionEnd = str . lastIndexOf ( selection ) + selection . length ( ) - <NUM_LIT:1> ; this . checkDietParse ( str . toCharArray ( ) , selectionStart , selectionEnd , expectedCompletionNodeToString , expectedUnitDisplayString , completionIdentifier , expectedReplacedSource , testName ) ; } public void test0010 ( ) { String str = "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" ; String selection = "<STR_LIT:Z>" ; String expectedCompletionNodeToString = "<STR_LIT>" ; String completionIdentifier = "<STR_LIT:Z>" ; String expectedUnitDisplayString = "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" ; String expectedReplacedSource = "<STR_LIT:Z>" ; String testName = "<STR_LIT>" ; int selectionStart = str . lastIndexOf ( selection ) ; int selectionEnd = str . lastIndexOf ( selection ) + selection . length ( ) - <NUM_LIT:1> ; this . checkMethodParse ( str . toCharArray ( ) , selectionStart , selectionEnd , expectedCompletionNodeToString , expectedUnitDisplayString , completionIdentifier , expectedReplacedSource , testName ) ; } public void test0011 ( ) { String str = "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" ; String selection = "<STR_LIT:Z>" ; String expectedCompletionNodeToString = "<STR_LIT>" ; String completionIdentifier = "<STR_LIT:Z>" ; String expectedUnitDisplayString = "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" ; String expectedReplacedSource = "<STR_LIT>" ; String testName = "<STR_LIT>" ; int selectionStart = str . lastIndexOf ( selection ) ; int selectionEnd = str . lastIndexOf ( selection ) + selection . length ( ) - <NUM_LIT:1> ; this . checkDietParse ( str . toCharArray ( ) , selectionStart , selectionEnd , expectedCompletionNodeToString , expectedUnitDisplayString , completionIdentifier , expectedReplacedSource , testName ) ; } public void test0012 ( ) { String str = "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" ; String selection = "<STR_LIT:Z>" ; String expectedCompletionNodeToString = "<STR_LIT>" ; String completionIdentifier = "<STR_LIT:Z>" ; String expectedUnitDisplayString = "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" ; String expectedReplacedSource = "<STR_LIT>" ; String testName = "<STR_LIT>" ; int selectionStart = str . lastIndexOf ( selection ) ; int selectionEnd = str . lastIndexOf ( selection ) + selection . length ( ) - <NUM_LIT:1> ; this . checkMethodParse ( str . toCharArray ( ) , selectionStart , selectionEnd , expectedCompletionNodeToString , expectedUnitDisplayString , completionIdentifier , expectedReplacedSource , testName ) ; } public void test0013 ( ) { String str = "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" ; String selection = "<STR_LIT:Z>" ; String expectedCompletionNodeToString = "<STR_LIT>" ; String completionIdentifier = "<STR_LIT:Z>" ; String expectedUnitDisplayString = "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" ; String expectedReplacedSource = "<STR_LIT>" ; String testName = "<STR_LIT>" ; int selectionStart = str . lastIndexOf ( selection ) ; int selectionEnd = str . lastIndexOf ( selection ) + selection . length ( ) - <NUM_LIT:1> ; this . checkDietParse ( str . toCharArray ( ) , selectionStart , selectionEnd , expectedCompletionNodeToString , expectedUnitDisplayString , completionIdentifier , expectedReplacedSource , testName ) ; } public void test0014 ( ) { String str = "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" ; String selection = "<STR_LIT:Z>" ; String expectedCompletionNodeToString = "<STR_LIT>" ; String completionIdentifier = "<STR_LIT:Z>" ; String expectedUnitDisplayString = "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" ; String expectedReplacedSource = "<STR_LIT>" ; String testName = "<STR_LIT>" ; int selectionStart = str . lastIndexOf ( selection ) ; int selectionEnd = str . lastIndexOf ( selection ) + selection . length ( ) - <NUM_LIT:1> ; this . checkMethodParse ( str . toCharArray ( ) , selectionStart , selectionEnd , expectedCompletionNodeToString , expectedUnitDisplayString , completionIdentifier , expectedReplacedSource , testName ) ; } public void test0015 ( ) { String str = "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" ; String selection = "<STR_LIT:Z>" ; String expectedCompletionNodeToString = "<STR_LIT>" ; String completionIdentifier = "<STR_LIT:Z>" ; String expectedUnitDisplayString = "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" ; String expectedReplacedSource = "<STR_LIT>" ; String testName = "<STR_LIT>" ; int selectionStart = str . lastIndexOf ( selection ) ; int selectionEnd = str . lastIndexOf ( selection ) + selection . length ( ) - <NUM_LIT:1> ; this . checkDietParse ( str . toCharArray ( ) , selectionStart , selectionEnd , expectedCompletionNodeToString , expectedUnitDisplayString , completionIdentifier , expectedReplacedSource , testName ) ; } public void test0016 ( ) { String str = "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" ; String selection = "<STR_LIT:Z>" ; String expectedCompletionNodeToString = "<STR_LIT>" ; String completionIdentifier = "<STR_LIT:Z>" ; String expectedUnitDisplayString = "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" ; String expectedReplacedSource = "<STR_LIT>" ; String testName = "<STR_LIT>" ; int selectionStart = str . lastIndexOf ( selection ) ; int selectionEnd = str . lastIndexOf ( selection ) + selection . length ( ) - <NUM_LIT:1> ; this . checkMethodParse ( str . toCharArray ( ) , selectionStart , selectionEnd , expectedCompletionNodeToString , expectedUnitDisplayString , completionIdentifier , expectedReplacedSource , testName ) ; } public void test0017 ( ) { String str = "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" ; String selection = "<STR_LIT:X>" ; String expectedCompletionNodeToString = "<STR_LIT>" ; String completionIdentifier = "<STR_LIT:X>" ; String expectedUnitDisplayString = "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" ; String expectedReplacedSource = "<STR_LIT>" ; String testName = "<STR_LIT>" ; int selectionStart = str . lastIndexOf ( selection ) ; int selectionEnd = str . lastIndexOf ( selection ) + selection . length ( ) - <NUM_LIT:1> ; this . checkMethodParse ( str . toCharArray ( ) , selectionStart , selectionEnd , expectedCompletionNodeToString , expectedUnitDisplayString , completionIdentifier , expectedReplacedSource , testName ) ; } public void test0018 ( ) { String str = "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" ; String selection = "<STR_LIT:X>" ; String expectedCompletionNodeToString = "<STR_LIT>" ; String completionIdentifier = "<STR_LIT:X>" ; String expectedUnitDisplayString = "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" ; String expectedReplacedSource = "<STR_LIT>" ; String testName = "<STR_LIT>" ; int selectionStart = str . lastIndexOf ( selection ) ; int selectionEnd = str . lastIndexOf ( selection ) + selection . length ( ) - <NUM_LIT:1> ; this . checkMethodParse ( str . toCharArray ( ) , selectionStart , selectionEnd , expectedCompletionNodeToString , expectedUnitDisplayString , completionIdentifier , expectedReplacedSource , testName ) ; } public void test0019 ( ) { String str = "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" ; String selection = "<STR_LIT>" ; String expectedCompletionNodeToString = "<STR_LIT>" ; String completionIdentifier = "<STR_LIT>" ; String expectedUnitDisplayString = "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" ; String expectedReplacedSource = "<STR_LIT>" ; String testName = "<STR_LIT>" ; int selectionStart = str . lastIndexOf ( selection ) ; int selectionEnd = str . lastIndexOf ( selection ) + selection . length ( ) - <NUM_LIT:1> ; this . checkMethodParse ( str . toCharArray ( ) , selectionStart , selectionEnd , expectedCompletionNodeToString , expectedUnitDisplayString , completionIdentifier , expectedReplacedSource , testName ) ; } public void test0020 ( ) { String str = "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" ; String selection = "<STR_LIT>" ; String expectedCompletionNodeToString = "<STR_LIT>" ; String completionIdentifier = "<STR_LIT>" ; String expectedUnitDisplayString = "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" ; String expectedReplacedSource = "<STR_LIT>" ; String testName = "<STR_LIT>" ; int selectionStart = str . lastIndexOf ( selection ) ; int selectionEnd = str . lastIndexOf ( selection ) + selection . length ( ) - <NUM_LIT:1> ; this . checkMethodParse ( str . toCharArray ( ) , selectionStart , selectionEnd , expectedCompletionNodeToString , expectedUnitDisplayString , completionIdentifier , expectedReplacedSource , testName ) ; } public void test0021 ( ) { String str = "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" ; String selection = "<STR_LIT>" ; String expectedCompletionNodeToString = "<STR_LIT>" ; String completionIdentifier = "<STR_LIT>" ; String expectedUnitDisplayString = "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" ; String expectedReplacedSource = "<STR_LIT>" ; String testName = "<STR_LIT>" ; int selectionStart = str . lastIndexOf ( selection ) ; int selectionEnd = str . lastIndexOf ( selection ) + selection . length ( ) - <NUM_LIT:1> ; this . checkMethodParse ( str . toCharArray ( ) , selectionStart , selectionEnd , expectedCompletionNodeToString , expectedUnitDisplayString , completionIdentifier , expectedReplacedSource , testName ) ; } public void test0022 ( ) { String str = "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" ; String selection = "<STR_LIT:Z>" ; String expectedCompletionNodeToString = "<STR_LIT>" ; String completionIdentifier = "<STR_LIT:Z>" ; String expectedUnitDisplayString = "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" ; String expectedReplacedSource = "<STR_LIT>" ; String testName = "<STR_LIT>" ; int selectionStart = str . lastIndexOf ( selection ) ; int selectionEnd = str . lastIndexOf ( selection ) + selection . length ( ) - <NUM_LIT:1> ; this . checkDietParse ( str . toCharArray ( ) , selectionStart , selectionEnd , expectedCompletionNodeToString , expectedUnitDisplayString , completionIdentifier , expectedReplacedSource , testName ) ; } } </s>
|
<s> package org . eclipse . jdt . core . tests . compiler . parser ; import junit . framework . Test ; public class AllocationExpressionCompletionTest extends AbstractCompletionTest { public AllocationExpressionCompletionTest ( String testName ) { super ( testName ) ; } public static Test suite ( ) { return buildAllCompliancesTestSuite ( AllocationExpressionCompletionTest . class ) ; } public void testInIfStatement ( ) { this . runTestCheckMethodParse ( "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" , "<STR_LIT>" , "<STR_LIT>" , "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" , "<STR_LIT>" , "<STR_LIT>" , "<STR_LIT>" ) ; } public void testNoQualificationQualifiedTypeName ( ) { this . runTestCheckMethodParse ( "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" , "<STR_LIT>" , "<STR_LIT>" , "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" , "<STR_LIT>" , "<STR_LIT>" , "<STR_LIT>" ) ; } public void testNoQualificationSimpleTypeName ( ) { this . runTestCheckMethodParse ( "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" , "<STR_LIT>" , "<STR_LIT>" , "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" , "<STR_LIT>" , "<STR_LIT>" , "<STR_LIT>" ) ; } public void testQualifiedWithName ( ) { this . runTestCheckMethodParse ( "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" , "<STR_LIT>" , "<STR_LIT>" , "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" , "<STR_LIT>" , "<STR_LIT>" , "<STR_LIT>" ) ; } public void testQualifiedWithPrimary ( ) { this . runTestCheckMethodParse ( "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" , "<STR_LIT>" , "<STR_LIT>" , "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" , "<STR_LIT>" , "<STR_LIT>" , "<STR_LIT>" ) ; } } </s>
|
<s> package org . eclipse . jdt . core . tests . compiler . parser ; import junit . framework . Test ; public class FieldAccessCompletionTest extends AbstractCompletionTest { public FieldAccessCompletionTest ( String testName ) { super ( testName ) ; } public static Test suite ( ) { return buildAllCompliancesTestSuite ( FieldAccessCompletionTest . class ) ; } public void testAdditiveExpressionMinus ( ) { this . runTestCheckMethodParse ( "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" , "<STR_LIT:x>" , "<STR_LIT>" , "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" , "<STR_LIT:x>" , "<STR_LIT>" , "<STR_LIT>" ) ; } public void testAdditiveExpressionPlus ( ) { this . runTestCheckMethodParse ( "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" , "<STR_LIT:x>" , "<STR_LIT>" , "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" , "<STR_LIT:x>" , "<STR_LIT>" , "<STR_LIT>" ) ; } public void testAndExpression ( ) { this . runTestCheckMethodParse ( "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" , "<STR_LIT:x>" , "<STR_LIT>" , "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" , "<STR_LIT:x>" , "<STR_LIT>" , "<STR_LIT>" ) ; } public void testArgumentList ( ) { this . runTestCheckMethodParse ( "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" , "<STR_LIT:x>" , "<STR_LIT>" , "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" , "<STR_LIT:x>" , "<STR_LIT>" , "<STR_LIT>" ) ; } public void testArrayAccess ( ) { this . runTestCheckMethodParse ( "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" , "<STR_LIT:x>" , "<STR_LIT>" , "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" , "<STR_LIT:x>" , "<STR_LIT>" , "<STR_LIT>" ) ; } public void testArrayAccessPrimaryNoNewArray ( ) { this . runTestCheckMethodParse ( "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" , "<STR_LIT:x>" , "<STR_LIT>" , "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" , "<STR_LIT:x>" , "<STR_LIT>" , "<STR_LIT>" ) ; } public void testArrayInitializer ( ) { this . runTestCheckMethodParse ( "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" , "<STR_LIT:x>" , "<STR_LIT>" , "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" , "<STR_LIT:x>" , "<STR_LIT>" , "<STR_LIT>" ) ; } public void testArrayInitializerComma ( ) { this . runTestCheckMethodParse ( "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" , "<STR_LIT:x>" , "<STR_LIT>" , "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" , "<STR_LIT:x>" , "<STR_LIT>" , "<STR_LIT>" ) ; } public void testAssignment ( ) { this . runTestCheckMethodParse ( "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" , "<STR_LIT:x>" , "<STR_LIT>" , "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" , "<STR_LIT:x>" , "<STR_LIT>" , "<STR_LIT>" ) ; } public void testBlock ( ) { this . runTestCheckMethodParse ( "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" , "<STR_LIT:x>" , "<STR_LIT>" , "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" , "<STR_LIT:x>" , "<STR_LIT>" , "<STR_LIT>" ) ; } public void testBlockStatements ( ) { this . runTestCheckMethodParse ( "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" , "<STR_LIT:x>" , "<STR_LIT>" , "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" , "<STR_LIT:x>" , "<STR_LIT>" , "<STR_LIT>" ) ; } public void testBlockStatementsInConstructorBody ( ) { this . runTestCheckMethodParse ( "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" , "<STR_LIT:x>" , "<STR_LIT>" , "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" , "<STR_LIT:x>" , "<STR_LIT>" , "<STR_LIT>" ) ; } public void testBlockStatementsInInitializer ( ) { this . runTestCheckMethodParse ( "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" , "<STR_LIT:x>" , "<STR_LIT>" , "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" , "<STR_LIT:x>" , "<STR_LIT>" , "<STR_LIT>" ) ; } public void testBlockStatementsInStaticInitializer ( ) { this . runTestCheckMethodParse ( "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" , "<STR_LIT:x>" , "<STR_LIT>" , "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" , "<STR_LIT:x>" , "<STR_LIT>" , "<STR_LIT>" ) ; } public void testCastExpression ( ) { this . runTestCheckMethodParse ( "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" , "<STR_LIT:x>" , "<STR_LIT>" , "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" , "<STR_LIT:x>" , "<STR_LIT>" , "<STR_LIT>" ) ; } public void testCastExpressionUnaryExpression ( ) { this . runTestCheckMethodParse ( "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" , "<STR_LIT:x>" , "<STR_LIT>" , "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" , "<STR_LIT:x>" , "<STR_LIT>" , "<STR_LIT>" ) ; } public void testClassInstanceCreationExpression ( ) { this . runTestCheckMethodParse ( "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" , "<STR_LIT:x>" , "<STR_LIT>" , "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" , "<STR_LIT:x>" , "<STR_LIT>" , "<STR_LIT>" ) ; } public void testClassInstanceCreationExpressionName ( ) { this . runTestCheckMethodParse ( "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" , "<STR_LIT:x>" , "<STR_LIT>" , "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" , "<STR_LIT:x>" , "<STR_LIT>" , "<STR_LIT>" ) ; } public void testClassInstanceCreationExpressionPrimary ( ) { this . runTestCheckMethodParse ( "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" , "<STR_LIT:x>" , "<STR_LIT>" , "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" , "<STR_LIT:x>" , "<STR_LIT>" , "<STR_LIT>" ) ; } public void testConditionalAndExpression ( ) { this . runTestCheckMethodParse ( "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" , "<STR_LIT:x>" , "<STR_LIT>" , "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" , "<STR_LIT:x>" , "<STR_LIT>" , "<STR_LIT>" ) ; } public void testConditionalExpression ( ) { this . runTestCheckMethodParse ( "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" , "<STR_LIT:x>" , "<STR_LIT>" , "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" , "<STR_LIT:x>" , "<STR_LIT>" , "<STR_LIT>" ) ; } public void testConditionalExpressionConditionalExpression ( ) { this . runTestCheckMethodParse ( "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" , "<STR_LIT:x>" , "<STR_LIT>" , "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" , "<STR_LIT:x>" , "<STR_LIT>" , "<STR_LIT>" ) ; } public void testConditionalOrExpression ( ) { this . runTestCheckMethodParse ( "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" , "<STR_LIT:x>" , "<STR_LIT>" , "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" , "<STR_LIT:x>" , "<STR_LIT>" , "<STR_LIT>" ) ; } public void testConstructorBody ( ) { this . runTestCheckMethodParse ( "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" , "<STR_LIT:x>" , "<STR_LIT>" , "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" , "<STR_LIT:x>" , "<STR_LIT>" , "<STR_LIT>" ) ; } public void testDimWithOrWithOutExpr ( ) { this . runTestCheckMethodParse ( "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" , "<STR_LIT:x>" , "<STR_LIT>" , "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" , "<STR_LIT:x>" , "<STR_LIT>" , "<STR_LIT>" ) ; } public void testDoExpression ( ) { this . runTestCheckMethodParse ( "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" , "<STR_LIT:x>" , "<STR_LIT>" , "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" , "<STR_LIT:x>" , "<STR_LIT>" , "<STR_LIT>" ) ; } public void testDoStatement ( ) { this . runTestCheckMethodParse ( "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" , "<STR_LIT:x>" , "<STR_LIT>" , "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" , "<STR_LIT:x>" , "<STR_LIT>" , "<STR_LIT>" ) ; } public void testEqualityExpression ( ) { this . runTestCheckMethodParse ( "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" , "<STR_LIT:x>" , "<STR_LIT>" , "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" , "<STR_LIT:x>" , "<STR_LIT>" , "<STR_LIT>" ) ; } public void testEqualityExpressionNot ( ) { this . runTestCheckMethodParse ( "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" , "<STR_LIT:x>" , "<STR_LIT>" , "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" , "<STR_LIT:x>" , "<STR_LIT>" , "<STR_LIT>" ) ; } public void testExclusiveOrExpression ( ) { this . runTestCheckMethodParse ( "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" , "<STR_LIT:x>" , "<STR_LIT>" , "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" , "<STR_LIT:x>" , "<STR_LIT>" , "<STR_LIT>" ) ; } public void testExplicitConstructorInvocationInConstructorBody ( ) { this . runTestCheckMethodParse ( "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" , "<STR_LIT>" , "<STR_LIT>" , "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" , "<STR_LIT:x>" , "<STR_LIT>" , "<STR_LIT>" ) ; } public void testForInit ( ) { this . runTestCheckMethodParse ( "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" , "<STR_LIT:x>" , "<STR_LIT>" , "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" , "<STR_LIT:x>" , "<STR_LIT>" , "<STR_LIT>" ) ; } public void testForStatement ( ) { this . runTestCheckMethodParse ( "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" , "<STR_LIT:x>" , "<STR_LIT>" , "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" , "<STR_LIT:x>" , "<STR_LIT>" , "<STR_LIT>" ) ; } public void testForStatementExpression ( ) { this . runTestCheckMethodParse ( "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" , "<STR_LIT:x>" , "<STR_LIT>" , "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" , "<STR_LIT:x>" , "<STR_LIT>" , "<STR_LIT>" ) ; } public void testForUpdate ( ) { this . runTestCheckMethodParse ( "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" , "<STR_LIT:x>" , "<STR_LIT>" , "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" , "<STR_LIT:x>" , "<STR_LIT>" , "<STR_LIT>" ) ; } public void testIfExpresionThen ( ) { this . runTestCheckMethodParse ( "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" , "<STR_LIT:x>" , "<STR_LIT>" , "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" , "<STR_LIT:x>" , "<STR_LIT>" , "<STR_LIT>" ) ; } public void testIfExpresionThenElse ( ) { this . runTestCheckMethodParse ( "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" , "<STR_LIT:x>" , "<STR_LIT>" , "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" , "<STR_LIT:x>" , "<STR_LIT>" , "<STR_LIT>" ) ; } public void testIfThenElseStatement ( ) { this . runTestCheckMethodParse ( "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" , "<STR_LIT:x>" , "<STR_LIT>" , "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" , "<STR_LIT:x>" , "<STR_LIT>" , "<STR_LIT>" ) ; } public void testIfThenStatement ( ) { this . runTestCheckMethodParse ( "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" , "<STR_LIT:x>" , "<STR_LIT>" , "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" , "<STR_LIT:x>" , "<STR_LIT>" , "<STR_LIT>" ) ; } public void testIfThenStatementElse ( ) { this . runTestCheckMethodParse ( "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" , "<STR_LIT:x>" , "<STR_LIT>" , "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" , "<STR_LIT:x>" , "<STR_LIT>" , "<STR_LIT>" ) ; } public void testInclusiveOrExpression ( ) { this . runTestCheckMethodParse ( "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" , "<STR_LIT:x>" , "<STR_LIT>" , "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" , "<STR_LIT:x>" , "<STR_LIT>" , "<STR_LIT>" ) ; } public void testLabeledStatement ( ) { this . runTestCheckMethodParse ( "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" , "<STR_LIT:x>" , "<STR_LIT>" , "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" , "<STR_LIT:x>" , "<STR_LIT>" , new String [ ] { "<STR_LIT>" } , "<STR_LIT>" ) ; } public void testMethodBody ( ) { this . runTestCheckMethodParse ( "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" , "<STR_LIT:x>" , "<STR_LIT>" , "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" , "<STR_LIT:x>" , "<STR_LIT>" , "<STR_LIT>" ) ; } public void testMethodInvocation ( ) { this . runTestCheckMethodParse ( "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" , "<STR_LIT:x>" , "<STR_LIT>" , "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" , "<STR_LIT:x>" , "<STR_LIT>" , "<STR_LIT>" ) ; } public void testMethodInvocationPrimary ( ) { this . runTestCheckMethodParse ( "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" , "<STR_LIT:x>" , "<STR_LIT>" , "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" , "<STR_LIT:x>" , "<STR_LIT>" , "<STR_LIT>" ) ; } public void testMethodInvocationSuper ( ) { this . runTestCheckMethodParse ( "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" , "<STR_LIT:x>" , "<STR_LIT>" , "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" , "<STR_LIT:x>" , "<STR_LIT>" , "<STR_LIT>" ) ; } public void testMultiplicativeExpressiondDivision ( ) { this . runTestCheckMethodParse ( "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" , "<STR_LIT:x>" , "<STR_LIT>" , "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" , "<STR_LIT:x>" , "<STR_LIT>" , "<STR_LIT>" ) ; } public void testMultiplicativeExpressionMultiplication ( ) { this . runTestCheckMethodParse ( "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" , "<STR_LIT:x>" , "<STR_LIT>" , "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" , "<STR_LIT:x>" , "<STR_LIT>" , "<STR_LIT>" ) ; } public void testMultiplicativeExpressionRemainder ( ) { this . runTestCheckMethodParse ( "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" , "<STR_LIT:x>" , "<STR_LIT>" , "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" , "<STR_LIT:x>" , "<STR_LIT>" , "<STR_LIT>" ) ; } public void testPreIncrementExpressionMinusMinus ( ) { this . runTestCheckMethodParse ( "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" , "<STR_LIT:x>" , "<STR_LIT>" , "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" , "<STR_LIT:x>" , "<STR_LIT>" , "<STR_LIT>" ) ; } public void testPreIncrementExpressionPlusPlus ( ) { this . runTestCheckMethodParse ( "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" , "<STR_LIT:x>" , "<STR_LIT>" , "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" , "<STR_LIT:x>" , "<STR_LIT>" , "<STR_LIT>" ) ; } public void testPrimaryNoNewArray ( ) { this . runTestCheckMethodParse ( "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" , "<STR_LIT:x>" , "<STR_LIT>" , "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" , "<STR_LIT:x>" , "<STR_LIT>" , "<STR_LIT>" ) ; } public void testRelationalExpressionGreaterThan ( ) { this . runTestCheckMethodParse ( "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" , "<STR_LIT:x>" , "<STR_LIT>" , "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" , "<STR_LIT:x>" , "<STR_LIT>" , "<STR_LIT>" ) ; } public void testRelationalExpressionGreaterThanOrEquals ( ) { this . runTestCheckMethodParse ( "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" , "<STR_LIT:x>" , "<STR_LIT>" , "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" , "<STR_LIT:x>" , "<STR_LIT>" , "<STR_LIT>" ) ; } public void testRelationalExpressionLessThan ( ) { this . runTestCheckMethodParse ( "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" , "<STR_LIT:x>" , "<STR_LIT>" , "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" , "<STR_LIT:x>" , "<STR_LIT>" , "<STR_LIT>" ) ; } public void testRelationalExpressionLessThanOrEqual ( ) { this . runTestCheckMethodParse ( "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" , "<STR_LIT:x>" , "<STR_LIT>" , "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" , "<STR_LIT:x>" , "<STR_LIT>" , "<STR_LIT>" ) ; } public void testReturnStatement ( ) { this . runTestCheckMethodParse ( "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" , "<STR_LIT:x>" , "<STR_LIT>" , "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" , "<STR_LIT:x>" , "<STR_LIT>" , "<STR_LIT>" ) ; } public void testShiftExpressionLeft ( ) { this . runTestCheckMethodParse ( "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" , "<STR_LIT:x>" , "<STR_LIT>" , "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" , "<STR_LIT:x>" , "<STR_LIT>" , "<STR_LIT>" ) ; } public void testShiftExpressionRight ( ) { this . runTestCheckMethodParse ( "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" , "<STR_LIT:x>" , "<STR_LIT>" , "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" , "<STR_LIT:x>" , "<STR_LIT>" , "<STR_LIT>" ) ; } public void testShiftExpressionRightUnSigned ( ) { this . runTestCheckMethodParse ( "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" , "<STR_LIT:x>" , "<STR_LIT>" , "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" , "<STR_LIT:x>" , "<STR_LIT>" , "<STR_LIT>" ) ; } public void testStatementExpressionList ( ) { this . runTestCheckMethodParse ( "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" , "<STR_LIT:x>" , "<STR_LIT>" , "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" , "<STR_LIT:x>" , "<STR_LIT>" , "<STR_LIT>" ) ; } public void testSwitchBlockStatement ( ) { this . runTestCheckMethodParse ( "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" , "<STR_LIT:x>" , "<STR_LIT>" , "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" , "<STR_LIT:x>" , "<STR_LIT>" , "<STR_LIT>" ) ; } public void testSwitchExpression ( ) { this . runTestCheckMethodParse ( "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" , "<STR_LIT:x>" , "<STR_LIT>" , "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" , "<STR_LIT:x>" , "<STR_LIT>" , "<STR_LIT>" ) ; } public void testSwitchLabel ( ) { this . runTestCheckMethodParse ( "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" , "<STR_LIT:x>" , "<STR_LIT>" , "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" , "<STR_LIT:x>" , "<STR_LIT>" , "<STR_LIT>" ) ; } public void testSynchronizedStatement ( ) { this . runTestCheckMethodParse ( "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" , "<STR_LIT:x>" , "<STR_LIT>" , "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" , "<STR_LIT:x>" , "<STR_LIT>" , "<STR_LIT>" ) ; } public void testThrowExpression ( ) { this . runTestCheckMethodParse ( "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" , "<STR_LIT:x>" , "<STR_LIT>" , "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" , "<STR_LIT:x>" , "<STR_LIT>" , "<STR_LIT>" ) ; } public void testUnaryExpressionBitwiseComplement ( ) { this . runTestCheckMethodParse ( "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" , "<STR_LIT:x>" , "<STR_LIT>" , "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" , "<STR_LIT:x>" , "<STR_LIT>" , "<STR_LIT>" ) ; } public void testUnaryExpressionLogicalComplement ( ) { this . runTestCheckMethodParse ( "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" , "<STR_LIT:x>" , "<STR_LIT>" , "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" , "<STR_LIT:x>" , "<STR_LIT>" , "<STR_LIT>" ) ; } public void testUnaryExpressionMinus ( ) { this . runTestCheckMethodParse ( "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" , "<STR_LIT:x>" , "<STR_LIT>" , "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" , "<STR_LIT:x>" , "<STR_LIT>" , "<STR_LIT>" ) ; } public void testUnaryExpressionPlus ( ) { this . runTestCheckMethodParse ( "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" , "<STR_LIT:x>" , "<STR_LIT>" , "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" , "<STR_LIT:x>" , "<STR_LIT>" , "<STR_LIT>" ) ; } public void testVariableDeclarator ( ) { this . runTestCheckMethodParse ( "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" , "<STR_LIT:x>" , "<STR_LIT>" , "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" , "<STR_LIT:x>" , "<STR_LIT>" , "<STR_LIT>" ) ; } public void testVariableInitializers ( ) { this . runTestCheckMethodParse ( "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" , "<STR_LIT:x>" , "<STR_LIT>" , "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" , "<STR_LIT:x>" , "<STR_LIT>" , "<STR_LIT>" ) ; } public void testWhileExpression ( ) { this . runTestCheckMethodParse ( "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" , "<STR_LIT:x>" , "<STR_LIT>" , "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" , "<STR_LIT:x>" , "<STR_LIT>" , "<STR_LIT>" ) ; } public void testWhileStatement ( ) { this . runTestCheckMethodParse ( "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" , "<STR_LIT:x>" , "<STR_LIT>" , "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" , "<STR_LIT:x>" , "<STR_LIT>" , "<STR_LIT>" ) ; } } </s>
|
<s> package org . eclipse . jdt . core . tests . compiler . parser ; public class AnnotationSelectionTest extends AbstractSelectionTest { public AnnotationSelectionTest ( String testName ) { super ( testName ) ; } public void test0001 ( ) { String str = "<STR_LIT>" + "<STR_LIT>" ; String selection = "<STR_LIT>" ; String expectedCompletionNodeToString = "<STR_LIT>" ; String completionIdentifier = "<STR_LIT>" ; String expectedUnitDisplayString = "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" ; String expectedReplacedSource = "<STR_LIT>" ; String testName = "<STR_LIT>" ; int selectionStart = str . lastIndexOf ( selection ) ; int selectionEnd = str . lastIndexOf ( selection ) + selection . length ( ) - <NUM_LIT:1> ; this . checkDietParse ( str . toCharArray ( ) , selectionStart , selectionEnd , expectedCompletionNodeToString , expectedUnitDisplayString , completionIdentifier , expectedReplacedSource , testName ) ; } public void test0002 ( ) { String str = "<STR_LIT>" + "<STR_LIT>" ; String selection = "<STR_LIT>" ; String expectedCompletionNodeToString = "<STR_LIT>" ; String completionIdentifier = "<STR_LIT>" ; String expectedUnitDisplayString = "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" ; String expectedReplacedSource = "<STR_LIT>" ; String testName = "<STR_LIT>" ; int selectionStart = str . lastIndexOf ( selection ) ; int selectionEnd = str . lastIndexOf ( selection ) + selection . length ( ) - <NUM_LIT:1> ; this . checkDietParse ( str . toCharArray ( ) , selectionStart , selectionEnd , expectedCompletionNodeToString , expectedUnitDisplayString , completionIdentifier , expectedReplacedSource , testName ) ; } public void test0003 ( ) { String str = "<STR_LIT>" + "<STR_LIT>" ; String selection = "<STR_LIT>" ; String expectedCompletionNodeToString = "<STR_LIT>" ; String completionIdentifier = "<STR_LIT>" ; String expectedUnitDisplayString = "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" ; String expectedReplacedSource = "<STR_LIT>" ; String testName = "<STR_LIT>" ; int selectionStart = str . lastIndexOf ( selection ) ; int selectionEnd = str . lastIndexOf ( selection ) + selection . length ( ) - <NUM_LIT:1> ; this . checkDietParse ( str . toCharArray ( ) , selectionStart , selectionEnd , expectedCompletionNodeToString , expectedUnitDisplayString , completionIdentifier , expectedReplacedSource , testName ) ; } public void test0004 ( ) { String str = "<STR_LIT>" + "<STR_LIT>" ; String selection = "<STR_LIT>" ; String expectedCompletionNodeToString = "<STR_LIT>" ; String completionIdentifier = "<STR_LIT>" ; String expectedUnitDisplayString = "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" ; String expectedReplacedSource = "<STR_LIT>" ; String testName = "<STR_LIT>" ; int selectionStart = str . lastIndexOf ( selection ) ; int selectionEnd = str . lastIndexOf ( selection ) + selection . length ( ) - <NUM_LIT:1> ; this . checkDietParse ( str . toCharArray ( ) , selectionStart , selectionEnd , expectedCompletionNodeToString , expectedUnitDisplayString , completionIdentifier , expectedReplacedSource , testName ) ; } public void _test0005 ( ) { String str = "<STR_LIT>" + "<STR_LIT>" ; String selection = "<STR_LIT>" ; String expectedCompletionNodeToString = "<STR_LIT>" ; String completionIdentifier = "<STR_LIT>" ; String expectedUnitDisplayString = "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" ; String expectedReplacedSource = "<STR_LIT>" ; String testName = "<STR_LIT>" ; int selectionStart = str . lastIndexOf ( selection ) ; int selectionEnd = str . lastIndexOf ( selection ) + selection . length ( ) - <NUM_LIT:1> ; this . checkDietParse ( str . toCharArray ( ) , selectionStart , selectionEnd , expectedCompletionNodeToString , expectedUnitDisplayString , completionIdentifier , expectedReplacedSource , testName ) ; } public void test0006 ( ) { String str = "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT:U+0020U+0020}>" + "<STR_LIT>" ; String selection = "<STR_LIT>" ; String expectedCompletionNodeToString = "<STR_LIT>" ; String completionIdentifier = "<STR_LIT>" ; String expectedUnitDisplayString = "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" ; String expectedReplacedSource = "<STR_LIT>" ; String testName = "<STR_LIT>" ; int selectionStart = str . lastIndexOf ( selection ) ; int selectionEnd = str . lastIndexOf ( selection ) + selection . length ( ) - <NUM_LIT:1> ; this . checkDietParse ( str . toCharArray ( ) , selectionStart , selectionEnd , expectedCompletionNodeToString , expectedUnitDisplayString , completionIdentifier , expectedReplacedSource , testName ) ; } public void test0007 ( ) { String str = "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT:U+0020U+0020>" + "<STR_LIT>" ; String selection = "<STR_LIT>" ; String expectedCompletionNodeToString = "<STR_LIT>" ; String completionIdentifier = "<STR_LIT>" ; String expectedUnitDisplayString = "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" ; String expectedReplacedSource = "<STR_LIT>" ; String testName = "<STR_LIT>" ; int selectionStart = str . lastIndexOf ( selection ) ; int selectionEnd = str . lastIndexOf ( selection ) + selection . length ( ) - <NUM_LIT:1> ; this . checkDietParse ( str . toCharArray ( ) , selectionStart , selectionEnd , expectedCompletionNodeToString , expectedUnitDisplayString , completionIdentifier , expectedReplacedSource , testName ) ; } public void test0008 ( ) { String str = "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" ; String selection = "<STR_LIT>" ; String expectedCompletionNodeToString = "<STR_LIT>" ; String completionIdentifier = "<STR_LIT>" ; String expectedUnitDisplayString = "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" ; String expectedReplacedSource = "<STR_LIT>" ; String testName = "<STR_LIT>" ; int selectionStart = str . lastIndexOf ( selection ) ; int selectionEnd = str . lastIndexOf ( selection ) + selection . length ( ) - <NUM_LIT:1> ; this . checkDietParse ( str . toCharArray ( ) , selectionStart , selectionEnd , expectedCompletionNodeToString , expectedUnitDisplayString , completionIdentifier , expectedReplacedSource , testName ) ; } public void test0009 ( ) { String str = "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" ; String selection = "<STR_LIT>" ; String expectedCompletionNodeToString = "<STR_LIT>" ; String completionIdentifier = "<STR_LIT>" ; String expectedUnitDisplayString = "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" ; String expectedReplacedSource = "<STR_LIT>" ; String testName = "<STR_LIT>" ; int selectionStart = str . lastIndexOf ( selection ) ; int selectionEnd = str . lastIndexOf ( selection ) + selection . length ( ) - <NUM_LIT:1> ; this . checkDietParse ( str . toCharArray ( ) , selectionStart , selectionEnd , expectedCompletionNodeToString , expectedUnitDisplayString , completionIdentifier , expectedReplacedSource , testName ) ; } public void test0010 ( ) { String str = "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT:U+0020U+0020}>" + "<STR_LIT>" ; String selection = "<STR_LIT>" ; String expectedCompletionNodeToString = "<STR_LIT>" ; String completionIdentifier = "<STR_LIT>" ; String expectedUnitDisplayString = "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" ; String expectedReplacedSource = "<STR_LIT>" ; String testName = "<STR_LIT>" ; int selectionStart = str . lastIndexOf ( selection ) ; int selectionEnd = str . lastIndexOf ( selection ) + selection . length ( ) - <NUM_LIT:1> ; this . checkDietParse ( str . toCharArray ( ) , selectionStart , selectionEnd , expectedCompletionNodeToString , expectedUnitDisplayString , completionIdentifier , expectedReplacedSource , testName ) ; } public void test0011 ( ) { String str = "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT:U+0020U+0020}>" + "<STR_LIT>" ; String selection = "<STR_LIT>" ; String expectedCompletionNodeToString = "<STR_LIT>" ; String completionIdentifier = "<STR_LIT>" ; String expectedUnitDisplayString = "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" ; String expectedReplacedSource = "<STR_LIT>" ; String testName = "<STR_LIT>" ; int selectionStart = str . lastIndexOf ( selection ) ; int selectionEnd = str . lastIndexOf ( selection ) + selection . length ( ) - <NUM_LIT:1> ; this . checkDietParse ( str . toCharArray ( ) , selectionStart , selectionEnd , expectedCompletionNodeToString , expectedUnitDisplayString , completionIdentifier , expectedReplacedSource , testName ) ; } public void test0012 ( ) { String str = "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT:U+0020U+0020}>" + "<STR_LIT>" ; String selection = "<STR_LIT>" ; String expectedCompletionNodeToString = "<STR_LIT>" ; String completionIdentifier = "<STR_LIT>" ; String expectedUnitDisplayString = "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" ; String expectedReplacedSource = "<STR_LIT>" ; String testName = "<STR_LIT>" ; int selectionStart = str . lastIndexOf ( selection ) ; int selectionEnd = str . lastIndexOf ( selection ) + selection . length ( ) - <NUM_LIT:1> ; this . checkMethodParse ( str . toCharArray ( ) , selectionStart , selectionEnd , expectedCompletionNodeToString , expectedUnitDisplayString , completionIdentifier , expectedReplacedSource , testName ) ; } public void test0013 ( ) { String str = "<STR_LIT>" + "<STR_LIT>" ; String selection = "<STR_LIT>" ; String expectedCompletionNodeToString = "<STR_LIT>" ; String completionIdentifier = "<STR_LIT>" ; String expectedUnitDisplayString = "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" ; String expectedReplacedSource = "<STR_LIT>" ; String testName = "<STR_LIT>" ; int selectionStart = str . lastIndexOf ( selection ) ; int selectionEnd = str . lastIndexOf ( selection ) + selection . length ( ) - <NUM_LIT:1> ; this . checkDietParse ( str . toCharArray ( ) , selectionStart , selectionEnd , expectedCompletionNodeToString , expectedUnitDisplayString , completionIdentifier , expectedReplacedSource , testName ) ; } public void test0014 ( ) { String str = "<STR_LIT>" + "<STR_LIT>" ; String selection = "<STR_LIT>" ; String expectedCompletionNodeToString = "<STR_LIT>" ; String completionIdentifier = "<STR_LIT>" ; String expectedUnitDisplayString = "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" ; String expectedReplacedSource = "<STR_LIT>" ; String testName = "<STR_LIT>" ; int selectionStart = str . lastIndexOf ( selection ) ; int selectionEnd = str . lastIndexOf ( selection ) + selection . length ( ) - <NUM_LIT:1> ; this . checkDietParse ( str . toCharArray ( ) , selectionStart , selectionEnd , expectedCompletionNodeToString , expectedUnitDisplayString , completionIdentifier , expectedReplacedSource , testName ) ; } public void test0015 ( ) { String str = "<STR_LIT>" + "<STR_LIT>" ; String selection = "<STR_LIT>" ; String expectedCompletionNodeToString = "<STR_LIT>" ; String completionIdentifier = "<STR_LIT>" ; String expectedUnitDisplayString = "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" ; String expectedReplacedSource = "<STR_LIT>" ; String testName = "<STR_LIT>" ; int selectionStart = str . lastIndexOf ( selection ) ; int selectionEnd = str . lastIndexOf ( selection ) + selection . length ( ) - <NUM_LIT:1> ; this . checkDietParse ( str . toCharArray ( ) , selectionStart , selectionEnd , expectedCompletionNodeToString , expectedUnitDisplayString , completionIdentifier , expectedReplacedSource , testName ) ; } public void test0016 ( ) { String str = "<STR_LIT>" + "<STR_LIT>" ; String selection = "<STR_LIT>" ; String expectedCompletionNodeToString = "<STR_LIT>" ; String completionIdentifier = "<STR_LIT>" ; String expectedUnitDisplayString = "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" ; String expectedReplacedSource = "<STR_LIT>" ; String testName = "<STR_LIT>" ; int selectionStart = str . lastIndexOf ( selection ) ; int selectionEnd = str . lastIndexOf ( selection ) + selection . length ( ) - <NUM_LIT:1> ; this . checkDietParse ( str . toCharArray ( ) , selectionStart , selectionEnd , expectedCompletionNodeToString , expectedUnitDisplayString , completionIdentifier , expectedReplacedSource , testName ) ; } public void test0017 ( ) { String str = "<STR_LIT>" + "<STR_LIT>" ; String selection = "<STR_LIT:value1>" ; String expectedCompletionNodeToString = "<STR_LIT>" ; String completionIdentifier = "<STR_LIT:value1>" ; String expectedUnitDisplayString = "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" ; String expectedReplacedSource = "<STR_LIT:value1>" ; String testName = "<STR_LIT>" ; int selectionStart = str . lastIndexOf ( selection ) ; int selectionEnd = str . lastIndexOf ( selection ) + selection . length ( ) - <NUM_LIT:1> ; this . checkDietParse ( str . toCharArray ( ) , selectionStart , selectionEnd , expectedCompletionNodeToString , expectedUnitDisplayString , completionIdentifier , expectedReplacedSource , testName ) ; } } </s>
|
<s> package org . eclipse . jdt . core . tests . compiler . parser ; import junit . framework . Test ; public class LabelStatementCompletionTest extends AbstractCompletionTest { public LabelStatementCompletionTest ( String testName ) { super ( testName ) ; } public static Test suite ( ) { return buildAllCompliancesTestSuite ( LabelStatementCompletionTest . class ) ; } public void test1FTEO9L ( ) { String cu = "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" ; this . runTestCheckMethodParse ( cu , "<STR_LIT>" , "<STR_LIT>" , "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" , "<STR_LIT:n>" , "<STR_LIT>" , "<STR_LIT>" ) ; this . runTestCheckMethodParse ( cu , "<STR_LIT>" , "<STR_LIT>" , "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" , "<STR_LIT>" , "<STR_LIT>" , "<STR_LIT>" ) ; this . runTestCheckMethodParse ( cu , "<STR_LIT>" + "<STR_LIT>" , "<STR_LIT>" , "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" , "<STR_LIT:n>" , "<STR_LIT>" , "<STR_LIT>" ) ; this . runTestCheckMethodParse ( cu , "<STR_LIT>" + "<STR_LIT>" , "<STR_LIT>" , "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" , "<STR_LIT:M>" , "<STR_LIT:M>" , "<STR_LIT>" ) ; } public void testInCaseWithIdentifier ( ) { this . runTestCheckMethodParse ( "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" , "<STR_LIT:X>" , "<STR_LIT>" , "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" , "<STR_LIT:X>" , "<STR_LIT:X>" , new String [ ] { "<STR_LIT>" , "<STR_LIT>" } , "<STR_LIT>" ) ; } public void testInCaseWithNumberConstant ( ) { this . runTestCheckMethodParse ( "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" , "<STR_LIT:X>" , "<STR_LIT>" , "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" , "<STR_LIT:X>" , "<STR_LIT:X>" , new String [ ] { "<STR_LIT>" , "<STR_LIT>" } , "<STR_LIT>" ) ; } public void testInLabeledInnerClass ( ) { this . runTestCheckMethodParse ( "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" , "<STR_LIT:X>" , "<STR_LIT>" , "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" , "<STR_LIT:X>" , "<STR_LIT:X>" , new String [ ] { "<STR_LIT>" } , "<STR_LIT>" ) ; } public void testInLabeledInnerClassWithErrorBefore ( ) { this . runTestCheckMethodParse ( "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" , "<STR_LIT:X>" , "<STR_LIT>" , "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" , "<STR_LIT:X>" , "<STR_LIT:X>" , new String [ ] { "<STR_LIT>" } , "<STR_LIT>" ) ; } public void testOneLevelDeep ( ) { this . runTestCheckMethodParse ( "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" , "<STR_LIT:X>" , "<STR_LIT>" , "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" , "<STR_LIT:X>" , "<STR_LIT:X>" , new String [ ] { "<STR_LIT>" } , "<STR_LIT>" ) ; } public void testSecondLabel ( ) { this . runTestCheckMethodParse ( "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" , "<STR_LIT:X>" , "<STR_LIT>" , "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" , "<STR_LIT:X>" , "<STR_LIT:X>" , new String [ ] { "<STR_LIT>" } , "<STR_LIT>" ) ; } public void testTwoLevelDeep ( ) { this . runTestCheckMethodParse ( "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" , "<STR_LIT:X>" , "<STR_LIT>" , "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" , "<STR_LIT:X>" , "<STR_LIT:X>" , new String [ ] { "<STR_LIT>" , "<STR_LIT>" } , "<STR_LIT>" ) ; } } </s>
|
<s> package org . eclipse . jdt . core . tests . compiler . parser ; import java . util . Locale ; import junit . framework . Test ; import org . eclipse . jdt . core . tests . util . AbstractCompilerTest ; import org . eclipse . jdt . core . tests . util . Util ; import org . eclipse . jdt . internal . codeassist . complete . CompletionParser ; import org . eclipse . jdt . internal . compiler . CompilationResult ; import org . eclipse . jdt . internal . compiler . DefaultErrorHandlingPolicies ; import org . eclipse . jdt . internal . compiler . SourceElementParser ; import org . eclipse . jdt . internal . compiler . ast . CompilationUnitDeclaration ; import org . eclipse . jdt . internal . compiler . batch . CompilationUnit ; import org . eclipse . jdt . internal . compiler . classfmt . ClassFileConstants ; import org . eclipse . jdt . internal . compiler . env . ICompilationUnit ; import org . eclipse . jdt . internal . compiler . impl . CompilerOptions ; import org . eclipse . jdt . internal . compiler . parser . Parser ; import org . eclipse . jdt . internal . compiler . problem . DefaultProblemFactory ; import org . eclipse . jdt . internal . compiler . problem . ProblemReporter ; public class DietRecoveryTest extends AbstractCompilerTest { public static boolean optimizeStringLiterals = false ; public static long sourceLevel = ClassFileConstants . JDK1_3 ; static { } public static Test suite ( ) { return buildAllCompliancesTestSuite ( DietRecoveryTest . class ) ; } public DietRecoveryTest ( String testName ) { super ( testName ) ; } public void checkParse ( char [ ] source , String expectedDietUnitToString , String expectedDietPlusBodyUnitToString , String expectedDietPlusBodyPlusStatementsRecoveryUnitToString , String expectedFullUnitToString , String expectedCompletionDietUnitToString , String testName ) { { Parser parser = new Parser ( new ProblemReporter ( DefaultErrorHandlingPolicies . proceedWithAllProblems ( ) , new CompilerOptions ( getCompilerOptions ( ) ) , new DefaultProblemFactory ( Locale . getDefault ( ) ) ) , optimizeStringLiterals ) ; ICompilationUnit sourceUnit = new CompilationUnit ( source , testName , null ) ; CompilationResult compilationResult = new CompilationResult ( sourceUnit , <NUM_LIT:0> , <NUM_LIT:0> , <NUM_LIT:0> ) ; CompilationUnitDeclaration computedUnit = parser . dietParse ( sourceUnit , compilationResult ) ; String computedUnitToString = computedUnit . toString ( ) ; if ( ! expectedDietUnitToString . equals ( computedUnitToString ) ) { System . out . println ( Util . displayString ( computedUnitToString ) ) ; } assertEquals ( "<STR_LIT>" + testName , expectedDietUnitToString , computedUnitToString ) ; } { Parser parser = new Parser ( new ProblemReporter ( DefaultErrorHandlingPolicies . proceedWithAllProblems ( ) , new CompilerOptions ( getCompilerOptions ( ) ) , new DefaultProblemFactory ( Locale . getDefault ( ) ) ) , optimizeStringLiterals ) ; parser . setMethodsFullRecovery ( false ) ; parser . setStatementsRecovery ( false ) ; ICompilationUnit sourceUnit = new CompilationUnit ( source , testName , null ) ; CompilationResult compilationResult = new CompilationResult ( sourceUnit , <NUM_LIT:0> , <NUM_LIT:0> , <NUM_LIT:0> ) ; CompilationUnitDeclaration computedUnit = parser . dietParse ( sourceUnit , compilationResult ) ; String computedUnitToString = computedUnit . toString ( ) ; if ( ! expectedDietUnitToString . equals ( computedUnitToString ) ) { System . out . println ( Util . displayString ( computedUnitToString ) ) ; } assertEquals ( "<STR_LIT>" + testName , expectedDietUnitToString , computedUnitToString ) ; if ( computedUnit . types != null ) { for ( int i = <NUM_LIT:0> , length = computedUnit . types . length ; i < length ; i ++ ) { computedUnit . types [ i ] . parseMethods ( parser , computedUnit ) ; } } computedUnitToString = computedUnit . toString ( ) ; if ( ! expectedDietPlusBodyUnitToString . equals ( computedUnitToString ) ) { System . out . println ( Util . displayString ( computedUnitToString ) ) ; } assertEquals ( "<STR_LIT>" + testName , expectedDietPlusBodyUnitToString , computedUnitToString ) ; } { Parser parser = new Parser ( new ProblemReporter ( DefaultErrorHandlingPolicies . proceedWithAllProblems ( ) , new CompilerOptions ( getCompilerOptions ( ) ) , new DefaultProblemFactory ( Locale . getDefault ( ) ) ) , optimizeStringLiterals ) ; parser . setMethodsFullRecovery ( true ) ; parser . setStatementsRecovery ( true ) ; ICompilationUnit sourceUnit = new CompilationUnit ( source , testName , null ) ; CompilationResult compilationResult = new CompilationResult ( sourceUnit , <NUM_LIT:0> , <NUM_LIT:0> , <NUM_LIT:0> ) ; CompilationUnitDeclaration computedUnit = parser . dietParse ( sourceUnit , compilationResult ) ; String computedUnitToString = computedUnit . toString ( ) ; if ( ! expectedDietUnitToString . equals ( computedUnitToString ) ) { System . out . println ( Util . displayString ( computedUnitToString ) ) ; } assertEquals ( "<STR_LIT>" + testName , expectedDietUnitToString , computedUnitToString ) ; if ( computedUnit . types != null ) { for ( int i = <NUM_LIT:0> , length = computedUnit . types . length ; i < length ; i ++ ) { computedUnit . types [ i ] . parseMethods ( parser , computedUnit ) ; } } computedUnitToString = computedUnit . toString ( ) ; if ( ! expectedDietPlusBodyPlusStatementsRecoveryUnitToString . equals ( computedUnitToString ) ) { System . out . println ( Util . displayString ( computedUnitToString ) ) ; } assertEquals ( "<STR_LIT>" + testName , expectedDietPlusBodyPlusStatementsRecoveryUnitToString , computedUnitToString ) ; } { Parser parser = new Parser ( new ProblemReporter ( DefaultErrorHandlingPolicies . proceedWithAllProblems ( ) , new CompilerOptions ( getCompilerOptions ( ) ) , new DefaultProblemFactory ( Locale . getDefault ( ) ) ) , optimizeStringLiterals ) ; ICompilationUnit sourceUnit = new CompilationUnit ( source , testName , null ) ; CompilationResult compilationResult = new CompilationResult ( sourceUnit , <NUM_LIT:0> , <NUM_LIT:0> , <NUM_LIT:0> ) ; CompilationUnitDeclaration computedUnit = parser . parse ( sourceUnit , compilationResult ) ; String computedUnitToString = computedUnit . toString ( ) ; if ( ! expectedFullUnitToString . equals ( computedUnitToString ) ) { System . out . println ( Util . displayString ( computedUnitToString ) ) ; } assertEquals ( "<STR_LIT>" + testName , expectedFullUnitToString , computedUnitToString ) ; } { SourceElementParser parser = new SourceElementParser ( new TestSourceElementRequestor ( ) , new DefaultProblemFactory ( Locale . getDefault ( ) ) , new CompilerOptions ( getCompilerOptions ( ) ) , false , true ) ; ICompilationUnit sourceUnit = new CompilationUnit ( source , testName , null ) ; CompilationResult compilationResult = new CompilationResult ( sourceUnit , <NUM_LIT:0> , <NUM_LIT:0> , <NUM_LIT:0> ) ; CompilationUnitDeclaration computedUnit = parser . dietParse ( sourceUnit , compilationResult ) ; String computedUnitToString = computedUnit . toString ( ) ; if ( ! expectedDietUnitToString . equals ( computedUnitToString ) ) { System . out . println ( Util . displayString ( computedUnitToString ) ) ; } assertEquals ( "<STR_LIT>" + testName , expectedDietUnitToString , computedUnitToString ) ; } { SourceElementParser parser = new SourceElementParser ( new TestSourceElementRequestor ( ) , new DefaultProblemFactory ( Locale . getDefault ( ) ) , new CompilerOptions ( getCompilerOptions ( ) ) , false , true ) ; ICompilationUnit sourceUnit = new CompilationUnit ( source , testName , null ) ; CompilationResult compilationResult = new CompilationResult ( sourceUnit , <NUM_LIT:0> , <NUM_LIT:0> , <NUM_LIT:0> ) ; CompilationUnitDeclaration computedUnit = parser . parse ( sourceUnit , compilationResult ) ; String computedUnitToString = computedUnit . toString ( ) ; if ( ! expectedFullUnitToString . equals ( computedUnitToString ) ) { System . out . println ( Util . displayString ( computedUnitToString ) ) ; } assertEquals ( "<STR_LIT>" + testName , expectedFullUnitToString , computedUnitToString ) ; } { CompilerOptions options = new CompilerOptions ( getCompilerOptions ( ) ) ; CompletionParser parser = new CompletionParser ( new ProblemReporter ( DefaultErrorHandlingPolicies . proceedWithAllProblems ( ) , options , new DefaultProblemFactory ( Locale . getDefault ( ) ) ) , false ) ; ICompilationUnit sourceUnit = new CompilationUnit ( source , testName , null ) ; CompilationResult compilationResult = new CompilationResult ( sourceUnit , <NUM_LIT:0> , <NUM_LIT:0> , <NUM_LIT:0> ) ; CompilationUnitDeclaration computedUnit = parser . dietParse ( sourceUnit , compilationResult , Integer . MAX_VALUE ) ; String computedUnitToString = computedUnit . toString ( ) ; if ( ! expectedCompletionDietUnitToString . equals ( computedUnitToString ) ) { System . out . println ( Util . displayString ( computedUnitToString ) ) ; } assertEquals ( "<STR_LIT>" + testName , expectedCompletionDietUnitToString , computedUnitToString ) ; } } public void test01 ( ) { String s = "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" ; String expectedDietUnitToString = "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" ; String expectedDietPlusBodyUnitToString = "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" ; String expectedFullUnitToString = expectedDietUnitToString ; String expectedCompletionDietUnitToString = "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" ; String testName = "<STR_LIT>" ; checkParse ( s . toCharArray ( ) , expectedDietUnitToString , expectedDietPlusBodyUnitToString , expectedDietPlusBodyUnitToString , expectedFullUnitToString , expectedCompletionDietUnitToString , testName ) ; } public void test02 ( ) { String s = "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" ; String expectedDietUnitToString = "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" ; String expectedDietPlusBodyUnitToString = "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" ; String expectedDietPlusBodyPlusStatementsRecoveryUnitToString = "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" ; String expectedFullUnitToString = expectedDietUnitToString ; String expectedCompletionDietUnitToString = "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" ; String testName = "<STR_LIT>" ; checkParse ( s . toCharArray ( ) , expectedDietUnitToString , expectedDietPlusBodyUnitToString , expectedDietPlusBodyPlusStatementsRecoveryUnitToString , expectedFullUnitToString , expectedCompletionDietUnitToString , testName ) ; } public void test03 ( ) { String s = "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" ; String expectedDietUnitToString = "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" ; String expectedDietPlusBodyUnitToString = "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" ; String expectedFullUnitToString = expectedDietUnitToString ; String expectedCompletionDietUnitToString = "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" ; String testName = "<STR_LIT>" ; checkParse ( s . toCharArray ( ) , expectedDietUnitToString , expectedDietPlusBodyUnitToString , expectedDietPlusBodyUnitToString , expectedFullUnitToString , expectedCompletionDietUnitToString , testName ) ; } public void test04 ( ) { String s = "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" ; String expectedDietUnitToString = "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" ; String expectedDietPlusBodyUnitToString = "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" ; String expectedFullUnitToString = expectedDietUnitToString ; String expectedCompletionDietUnitToString = "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" ; String testName = "<STR_LIT>" ; checkParse ( s . toCharArray ( ) , expectedDietUnitToString , expectedDietPlusBodyUnitToString , expectedDietPlusBodyUnitToString , expectedFullUnitToString , expectedCompletionDietUnitToString , testName ) ; } public void test05 ( ) { String s = "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" ; String expectedDietUnitToString = "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" ; String expectedDietPlusBodyUnitToString = "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" ; String expectedDietPlusBodyPlusStatementsRecoveryUnitToString = "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" ; String expectedFullUnitToString = "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" ; String expectedCompletionDietUnitToString = expectedDietUnitToString ; String testName = "<STR_LIT>" ; checkParse ( s . toCharArray ( ) , expectedDietUnitToString , expectedDietPlusBodyUnitToString , expectedDietPlusBodyPlusStatementsRecoveryUnitToString , expectedFullUnitToString , expectedCompletionDietUnitToString , testName ) ; } public void test06 ( ) { String s = "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" ; String expectedDietUnitToString = "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" ; String expectedDietPlusBodyUnitToString = "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" ; String expectedFullUnitToString = expectedDietUnitToString ; String expectedCompletionDietUnitToString = expectedDietUnitToString ; String testName = "<STR_LIT>" ; checkParse ( s . toCharArray ( ) , expectedDietUnitToString , expectedDietPlusBodyUnitToString , expectedDietPlusBodyUnitToString , expectedFullUnitToString , expectedCompletionDietUnitToString , testName ) ; } public void test07 ( ) { String s = "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" ; String expectedDietUnitToString = "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" ; String expectedDietPlusBodyUnitToString = "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" ; String expectedFullUnitToString = expectedDietUnitToString ; String expectedCompletionDietUnitToString = expectedDietUnitToString ; String testName = "<STR_LIT>" ; checkParse ( s . toCharArray ( ) , expectedDietUnitToString , expectedDietPlusBodyUnitToString , expectedDietPlusBodyUnitToString , expectedFullUnitToString , expectedCompletionDietUnitToString , testName ) ; } public void test08 ( ) { String s = "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" ; String expectedDietUnitToString = "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" ; String expectedDietPlusBodyUnitToString = "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" ; String expectedFullUnitToString = expectedDietUnitToString ; String expectedCompletionDietUnitToString = "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" ; String testName = "<STR_LIT>" ; checkParse ( s . toCharArray ( ) , expectedDietUnitToString , expectedDietPlusBodyUnitToString , expectedDietPlusBodyUnitToString , expectedFullUnitToString , expectedCompletionDietUnitToString , testName ) ; } public void test09 ( ) { String s = "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" ; String expectedDietUnitToString = "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" ; String expectedDietPlusBodyUnitToString = "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" ; String expectedFullUnitToString = expectedDietUnitToString ; String expectedCompletionDietUnitToString = "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" ; String testName = "<STR_LIT>" ; checkParse ( s . toCharArray ( ) , expectedDietUnitToString , expectedDietPlusBodyUnitToString , expectedDietPlusBodyUnitToString , expectedFullUnitToString , expectedCompletionDietUnitToString , testName ) ; } public void test10 ( ) { String s = "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" ; String expectedDietUnitToString = "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" ; String expectedDietPlusBodyUnitToString = "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" ; String expectedFullUnitToString = expectedDietUnitToString ; String expectedCompletionDietUnitToString = "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" ; String testName = "<STR_LIT>" ; checkParse ( s . toCharArray ( ) , expectedDietUnitToString , expectedDietPlusBodyUnitToString , expectedDietPlusBodyUnitToString , expectedFullUnitToString , expectedCompletionDietUnitToString , testName ) ; } public void test11 ( ) { String s = "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" ; String expectedDietUnitToString = "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" ; String expectedDietPlusBodyUnitToString = "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" ; String expectedFullUnitToString = expectedDietUnitToString ; String expectedCompletionDietUnitToString = expectedDietUnitToString ; String testName = "<STR_LIT>" ; checkParse ( s . toCharArray ( ) , expectedDietUnitToString , expectedDietPlusBodyUnitToString , expectedDietPlusBodyUnitToString , expectedFullUnitToString , expectedCompletionDietUnitToString , testName ) ; } public void test12 ( ) { String s = "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" ; String expectedDietUnitToString = "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" ; String expectedDietPlusBodyUnitToString = "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" ; String expectedFullUnitToString = expectedDietUnitToString ; String expectedCompletionDietUnitToString = expectedDietUnitToString ; String testName = "<STR_LIT>" ; checkParse ( s . toCharArray ( ) , expectedDietUnitToString , expectedDietPlusBodyUnitToString , expectedDietPlusBodyUnitToString , expectedFullUnitToString , expectedCompletionDietUnitToString , testName ) ; } public void test13 ( ) { String s = "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" ; String expectedDietUnitToString = "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" ; String expectedDietPlusBodyUnitToString = "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" ; String expectedFullUnitToString = expectedDietUnitToString ; String expectedCompletionDietUnitToString = expectedDietUnitToString ; String testName = "<STR_LIT>" ; checkParse ( s . toCharArray ( ) , expectedDietUnitToString , expectedDietPlusBodyUnitToString , expectedDietPlusBodyUnitToString , expectedFullUnitToString , expectedCompletionDietUnitToString , testName ) ; } public void test14 ( ) { String s = "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" ; String expectedDietUnitToString = "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" ; String expectedDietPlusBodyUnitToString = "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" ; String expectedFullUnitToString = expectedDietUnitToString ; String expectedCompletionDietUnitToString = expectedDietUnitToString ; String testName = "<STR_LIT>" ; checkParse ( s . toCharArray ( ) , expectedDietUnitToString , expectedDietPlusBodyUnitToString , expectedDietPlusBodyUnitToString , expectedFullUnitToString , expectedCompletionDietUnitToString , testName ) ; } public void test15 ( ) { String s = "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" ; String expectedDietUnitToString = "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" ; String expectedDietPlusBodyUnitToString = "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" ; String expectedDietPlusBodyPlusStatementsRecoveryUnitToString = "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" ; String expectedFullUnitToString = expectedDietUnitToString ; String expectedCompletionDietUnitToString = expectedDietUnitToString ; String testName = "<STR_LIT>" ; checkParse ( s . toCharArray ( ) , expectedDietUnitToString , expectedDietPlusBodyUnitToString , expectedDietPlusBodyPlusStatementsRecoveryUnitToString , expectedFullUnitToString , expectedCompletionDietUnitToString , testName ) ; } public void test16 ( ) { String s = "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" ; String expectedDietUnitToString = "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" ; String expectedDietPlusBodyUnitToString = "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" ; String expectedFullUnitToString = expectedDietUnitToString ; String expectedCompletionDietUnitToString = expectedDietUnitToString ; String testName = "<STR_LIT>" ; checkParse ( s . toCharArray ( ) , expectedDietUnitToString , expectedDietPlusBodyUnitToString , expectedDietPlusBodyUnitToString , expectedFullUnitToString , expectedCompletionDietUnitToString , testName ) ; } public void test17 ( ) { String s = "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" ; String expectedDietUnitToString = "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" ; String expectedDietPlusBodyUnitToString = "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" ; String expectedFullUnitToString = expectedDietUnitToString ; String expectedCompletionDietUnitToString = expectedDietUnitToString ; String testName = "<STR_LIT>" ; checkParse ( s . toCharArray ( ) , expectedDietUnitToString , expectedDietPlusBodyUnitToString , expectedDietPlusBodyUnitToString , expectedFullUnitToString , expectedCompletionDietUnitToString , testName ) ; } public void test18 ( ) { String s = "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" ; String expectedDietUnitToString = "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" ; String expectedDietPlusBodyUnitToString = "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" ; String expectedFullUnitToString = expectedDietUnitToString ; String expectedCompletionDietUnitToString = expectedDietUnitToString ; String testName = "<STR_LIT>" ; checkParse ( s . toCharArray ( ) , expectedDietUnitToString , expectedDietPlusBodyUnitToString , expectedDietPlusBodyUnitToString , expectedFullUnitToString , expectedCompletionDietUnitToString , testName ) ; } public void test19 ( ) { String s = "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" ; String expectedDietUnitToString = "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" ; String expectedDietPlusBodyUnitToString = "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" ; String expectedFullUnitToString = expectedDietUnitToString ; String expectedCompletionDietUnitToString = expectedDietUnitToString ; String testName = "<STR_LIT>" ; checkParse ( s . toCharArray ( ) , expectedDietUnitToString , expectedDietPlusBodyUnitToString , expectedDietPlusBodyUnitToString , expectedFullUnitToString , expectedCompletionDietUnitToString , testName ) ; } public void test20 ( ) { String s = "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" ; String expectedDietUnitToString = "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" ; String expectedDietPlusBodyUnitToString = "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" ; String expectedFullUnitToString = expectedDietUnitToString ; String expectedCompletionDietUnitToString = expectedDietUnitToString ; String testName = "<STR_LIT>" ; checkParse ( s . toCharArray ( ) , expectedDietUnitToString , expectedDietPlusBodyUnitToString , expectedDietPlusBodyUnitToString , expectedFullUnitToString , expectedCompletionDietUnitToString , testName ) ; } public void test21 ( ) { String s = "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" ; String expectedDietUnitToString = "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" ; String expectedDietPlusBodyUnitToString = "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" ; String expectedFullUnitToString = expectedDietUnitToString ; String expectedCompletionDietUnitToString = expectedDietUnitToString ; String testName = "<STR_LIT>" ; checkParse ( s . toCharArray ( ) , expectedDietUnitToString , expectedDietPlusBodyUnitToString , expectedDietPlusBodyUnitToString , expectedFullUnitToString , expectedCompletionDietUnitToString , testName ) ; } public void test22 ( ) { String s = "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" ; String expectedDietUnitToString = "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" ; String expectedDietPlusBodyUnitToString = "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" ; String expectedDietPlusBodyPlusStatementsRecoveryUnitToString = "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" ; String expectedFullUnitToString = expectedDietUnitToString ; String expectedCompletionDietUnitToString = expectedDietUnitToString ; String testName = "<STR_LIT>" ; checkParse ( s . toCharArray ( ) , expectedDietUnitToString , expectedDietPlusBodyUnitToString , expectedDietPlusBodyPlusStatementsRecoveryUnitToString , expectedFullUnitToString , expectedCompletionDietUnitToString , testName ) ; } public void test23 ( ) { String s = "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" ; String expectedDietUnitToString = "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" ; String expectedDietPlusBodyUnitToString = "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" ; String expectedDietPlusBodyPlusStatementsRecoveryUnitToString = "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" ; String expectedFullUnitToString = expectedDietUnitToString ; String expectedCompletionDietUnitToString = expectedDietUnitToString ; String testName = "<STR_LIT>" ; checkParse ( s . toCharArray ( ) , expectedDietUnitToString , expectedDietPlusBodyUnitToString , expectedDietPlusBodyPlusStatementsRecoveryUnitToString , expectedFullUnitToString , expectedCompletionDietUnitToString , testName ) ; } public void test24 ( ) { String s = "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" ; String expectedDietUnitToString = "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" ; String expectedDietPlusBodyUnitToString = "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" ; String expectedFullUnitToString = expectedDietUnitToString ; String expectedCompletionDietUnitToString = expectedDietUnitToString ; String testName = "<STR_LIT>" ; checkParse ( s . toCharArray ( ) , expectedDietUnitToString , expectedDietPlusBodyUnitToString , expectedDietPlusBodyUnitToString , expectedFullUnitToString , expectedCompletionDietUnitToString , testName ) ; } public void test25 ( ) { String s = "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" ; String expectedDietUnitToString = "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" ; String expectedDietPlusBodyUnitToString = "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" ; String expectedDietPlusBodyPlusStatementsRecoveryUnitToString = "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" ; String expectedFullUnitToString = expectedDietUnitToString ; String expectedCompletionDietUnitToString = expectedDietUnitToString ; String testName = "<STR_LIT>" ; checkParse ( s . toCharArray ( ) , expectedDietUnitToString , expectedDietPlusBodyUnitToString , expectedDietPlusBodyPlusStatementsRecoveryUnitToString , expectedFullUnitToString , expectedCompletionDietUnitToString , testName ) ; } public void test26 ( ) { String s = "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" ; String expectedDietUnitToString = "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" ; String expectedDietPlusBodyUnitToString = "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" ; String expectedDietPlusBodyPlusStatementsRecoveryUnitToString = "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" ; String expectedFullUnitToString = expectedDietUnitToString ; String expectedCompletionDietUnitToString = expectedDietUnitToString ; String testName = "<STR_LIT>" ; checkParse ( s . toCharArray ( ) , expectedDietUnitToString , expectedDietPlusBodyUnitToString , expectedDietPlusBodyPlusStatementsRecoveryUnitToString , expectedFullUnitToString , expectedCompletionDietUnitToString , testName ) ; } public void test27 ( ) { String s = "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" ; String expectedDietUnitToString = "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" ; String expectedDietPlusBodyUnitToString = "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" ; String expectedDietPlusBodyPlusStatementsRecoveryUnitToString = "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" ; String expectedFullUnitToString = expectedDietUnitToString ; String expectedCompletionDietUnitToString = expectedDietUnitToString ; String testName = "<STR_LIT>" ; checkParse ( s . toCharArray ( ) , expectedDietUnitToString , expectedDietPlusBodyUnitToString , expectedDietPlusBodyPlusStatementsRecoveryUnitToString , expectedFullUnitToString , expectedCompletionDietUnitToString , testName ) ; } public void test28 ( ) { String s = "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" ; String expectedDietUnitToString = "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" ; String expectedDietPlusBodyUnitToString = "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" ; String expectedFullUnitToString = expectedDietUnitToString ; String expectedCompletionDietUnitToString = expectedDietUnitToString ; String testName = "<STR_LIT>" ; checkParse ( s . toCharArray ( ) , expectedDietUnitToString , expectedDietPlusBodyUnitToString , expectedDietPlusBodyUnitToString , expectedFullUnitToString , expectedCompletionDietUnitToString , testName ) ; } public void test29 ( ) { String s = "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" ; String expectedDietUnitToString = "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" ; String expectedDietPlusBodyUnitToString = "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" ; String expectedFullUnitToString = expectedDietUnitToString ; String expectedCompletionDietUnitToString = expectedDietUnitToString ; String testName = "<STR_LIT>" ; checkParse ( s . toCharArray ( ) , expectedDietUnitToString , expectedDietPlusBodyUnitToString , expectedDietPlusBodyUnitToString , expectedFullUnitToString , expectedCompletionDietUnitToString , testName ) ; } public void test30 ( ) { String s = "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" ; String expectedDietUnitToString = "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" ; String expectedDietPlusBodyUnitToString = "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" ; String expectedFullUnitToString = expectedDietUnitToString ; String expectedCompletionDietUnitToString = expectedDietUnitToString ; String testName = "<STR_LIT>" ; checkParse ( s . toCharArray ( ) , expectedDietUnitToString , expectedDietPlusBodyUnitToString , expectedDietPlusBodyUnitToString , expectedFullUnitToString , expectedCompletionDietUnitToString , testName ) ; } public void test31 ( ) { String s = "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" ; String expectedDietUnitToString = "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" ; String expectedDietPlusBodyUnitToString = "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" ; String expectedFullUnitToString = expectedDietUnitToString ; String expectedCompletionDietUnitToString = "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" ; String testName = "<STR_LIT>" ; checkParse ( s . toCharArray ( ) , expectedDietUnitToString , expectedDietPlusBodyUnitToString , expectedDietPlusBodyUnitToString , expectedFullUnitToString , expectedCompletionDietUnitToString , testName ) ; } public void test32 ( ) { String s = "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" ; String expectedDietUnitToString = "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" ; String expectedDietPlusBodyUnitToString = "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" ; String expectedDietPlusBodyPlusStatementsRecoveryUnitToString ; if ( this . complianceLevel <= ClassFileConstants . JDK1_4 ) { expectedDietPlusBodyPlusStatementsRecoveryUnitToString = "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" ; } else { expectedDietPlusBodyPlusStatementsRecoveryUnitToString = expectedDietPlusBodyUnitToString ; } String expectedFullUnitToString = expectedDietUnitToString ; String expectedCompletionDietUnitToString = expectedDietUnitToString ; String testName = "<STR_LIT>" ; checkParse ( s . toCharArray ( ) , expectedDietUnitToString , expectedDietPlusBodyUnitToString , expectedDietPlusBodyPlusStatementsRecoveryUnitToString , expectedFullUnitToString , expectedCompletionDietUnitToString , testName ) ; } public void test33 ( ) { String s = "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" ; String expectedDietUnitToString = "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" ; String expectedDietPlusBodyUnitToString = "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" ; String expectedFullUnitToString = expectedDietUnitToString ; String expectedCompletionDietUnitToString = expectedDietUnitToString ; String testName = "<STR_LIT>" ; checkParse ( s . toCharArray ( ) , expectedDietUnitToString , expectedDietPlusBodyUnitToString , expectedDietPlusBodyUnitToString , expectedFullUnitToString , expectedCompletionDietUnitToString , testName ) ; } public void test34 ( ) { String s = "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" ; String expectedDietUnitToString = "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" ; String expectedDietPlusBodyUnitToString = "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" ; String expectedFullUnitToString = expectedDietUnitToString ; String expectedCompletionDietUnitToString = expectedDietUnitToString ; String testName = "<STR_LIT>" ; checkParse ( s . toCharArray ( ) , expectedDietUnitToString , expectedDietPlusBodyUnitToString , expectedDietPlusBodyUnitToString , expectedFullUnitToString , expectedCompletionDietUnitToString , testName ) ; } public void test35 ( ) { String s = "<STR_LIT>" + "<STR_LIT>" ; String expectedDietUnitToString = "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" ; String expectedDietPlusBodyUnitToString = "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" ; String expectedFullUnitToString = expectedDietUnitToString ; String expectedCompletionDietUnitToString = expectedDietUnitToString ; String testName = "<STR_LIT>" ; checkParse ( s . toCharArray ( ) , expectedDietUnitToString , expectedDietPlusBodyUnitToString , expectedDietPlusBodyUnitToString , expectedFullUnitToString , expectedCompletionDietUnitToString , testName ) ; } public void test36 ( ) { String s = "<STR_LIT>" + "<STR_LIT>" ; String expectedDietUnitToString = "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" ; String expectedDietPlusBodyUnitToString = "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" ; String expectedFullUnitToString = expectedDietUnitToString ; String expectedCompletionDietUnitToString = expectedDietUnitToString ; String testName = "<STR_LIT>" ; checkParse ( s . toCharArray ( ) , expectedDietUnitToString , expectedDietPlusBodyUnitToString , expectedDietPlusBodyUnitToString , expectedFullUnitToString , expectedCompletionDietUnitToString , testName ) ; } public void test37 ( ) { String s = "<STR_LIT>" + "<STR_LIT>" ; String expectedDietUnitToString = "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" ; String expectedDietPlusBodyUnitToString = "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" ; String expectedFullUnitToString = expectedDietUnitToString ; String expectedCompletionDietUnitToString = expectedDietUnitToString ; String testName = "<STR_LIT>" ; checkParse ( s . toCharArray ( ) , expectedDietUnitToString , expectedDietPlusBodyUnitToString , expectedDietPlusBodyUnitToString , expectedFullUnitToString , expectedCompletionDietUnitToString , testName ) ; } public void test38 ( ) { String s = "<STR_LIT>" + "<STR_LIT>" ; String expectedDietUnitToString = "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" ; String expectedDietPlusBodyUnitToString = "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" ; String expectedFullUnitToString = expectedDietUnitToString ; String expectedCompletionDietUnitToString = expectedDietUnitToString ; String testName = "<STR_LIT>" ; checkParse ( s . toCharArray ( ) , expectedDietUnitToString , expectedDietPlusBodyUnitToString , expectedDietPlusBodyUnitToString , expectedFullUnitToString , expectedCompletionDietUnitToString , testName ) ; } public void test39 ( ) { String s = "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" ; String expectedDietUnitToString = "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" ; String expectedDietPlusBodyUnitToString = "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" ; String expectedFullUnitToString = expectedDietUnitToString ; String expectedCompletionDietUnitToString = expectedDietUnitToString ; String testName = "<STR_LIT>" ; checkParse ( s . toCharArray ( ) , expectedDietUnitToString , expectedDietPlusBodyUnitToString , expectedDietPlusBodyUnitToString , expectedFullUnitToString , expectedCompletionDietUnitToString , testName ) ; } public void test40 ( ) { String s = "<STR_LIT>" + "<STR_LIT>" ; String expectedDietUnitToString = "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" ; String expectedDietPlusBodyUnitToString = "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" ; String expectedFullUnitToString = expectedDietUnitToString ; String expectedCompletionDietUnitToString = expectedDietUnitToString ; String testName = "<STR_LIT>" ; checkParse ( s . toCharArray ( ) , expectedDietUnitToString , expectedDietPlusBodyUnitToString , expectedDietPlusBodyUnitToString , expectedFullUnitToString , expectedCompletionDietUnitToString , testName ) ; } public void test41 ( ) { String s = "<STR_LIT>" ; String expectedDietUnitToString = "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" ; String expectedDietPlusBodyUnitToString = "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" ; String expectedFullUnitToString = expectedDietUnitToString ; String expectedCompletionDietUnitToString = expectedDietUnitToString ; String testName = "<STR_LIT>" ; checkParse ( s . toCharArray ( ) , expectedDietUnitToString , expectedDietPlusBodyUnitToString , expectedDietPlusBodyUnitToString , expectedFullUnitToString , expectedCompletionDietUnitToString , testName ) ; } public void test42 ( ) { String s = "<STR_LIT>" ; String expectedDietUnitToString = "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" ; String expectedDietPlusBodyUnitToString = "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" ; String expectedFullUnitToString = expectedDietUnitToString ; String expectedCompletionDietUnitToString = expectedDietUnitToString ; String testName = "<STR_LIT>" ; checkParse ( s . toCharArray ( ) , expectedDietUnitToString , expectedDietPlusBodyUnitToString , expectedDietPlusBodyUnitToString , expectedFullUnitToString , expectedCompletionDietUnitToString , testName ) ; } public void test43 ( ) { String s = "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" ; String expectedDietUnitToString = "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" ; String expectedDietPlusBodyUnitToString = "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" ; String expectedFullUnitToString = expectedDietUnitToString ; String expectedCompletionDietUnitToString = expectedDietUnitToString ; String testName = "<STR_LIT>" ; checkParse ( s . toCharArray ( ) , expectedDietUnitToString , expectedDietPlusBodyUnitToString , expectedDietPlusBodyUnitToString , expectedFullUnitToString , expectedCompletionDietUnitToString , testName ) ; } public void test44 ( ) { String s = "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" ; String expectedDietUnitToString = "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" ; String expectedDietPlusBodyUnitToString = "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" ; String expectedFullUnitToString = expectedDietUnitToString ; String expectedCompletionDietUnitToString = expectedDietUnitToString ; String testName = "<STR_LIT>" ; checkParse ( s . toCharArray ( ) , expectedDietUnitToString , expectedDietPlusBodyUnitToString , expectedDietPlusBodyUnitToString , expectedFullUnitToString , expectedCompletionDietUnitToString , testName ) ; } public void test45 ( ) { String s = "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" ; String expectedDietUnitToString = "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" ; String expectedDietPlusBodyUnitToString = "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" ; String expectedFullUnitToString = expectedDietUnitToString ; String expectedCompletionDietUnitToString = expectedDietUnitToString ; String testName = "<STR_LIT>" ; checkParse ( s . toCharArray ( ) , expectedDietUnitToString , expectedDietPlusBodyUnitToString , expectedDietPlusBodyUnitToString , expectedFullUnitToString , expectedCompletionDietUnitToString , testName ) ; } public void test46 ( ) { String s = "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" ; String expectedDietUnitToString = "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" ; String expectedDietPlusBodyUnitToString = "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" ; String expectedFullUnitToString = expectedDietUnitToString ; String expectedCompletionDietUnitToString = expectedDietUnitToString ; String testName = "<STR_LIT>" ; checkParse ( s . toCharArray ( ) , expectedDietUnitToString , expectedDietPlusBodyUnitToString , expectedDietPlusBodyUnitToString , expectedFullUnitToString , expectedCompletionDietUnitToString , testName ) ; } public void test47 ( ) { String s = "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" ; String expectedDietUnitToString = "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" ; String expectedDietPlusBodyUnitToString = "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" ; String expectedFullUnitToString = expectedDietUnitToString ; String expectedCompletionDietUnitToString = expectedDietUnitToString ; String testName = "<STR_LIT>" ; checkParse ( s . toCharArray ( ) , expectedDietUnitToString , expectedDietPlusBodyUnitToString , expectedDietPlusBodyUnitToString , expectedFullUnitToString , expectedCompletionDietUnitToString , testName ) ; } public void test48 ( ) { String s = "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" ; String expectedDietUnitToString = "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" ; String expectedDietPlusBodyUnitToString = "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" ; String expectedFullUnitToString = expectedDietUnitToString ; String expectedCompletionDietUnitToString = expectedDietUnitToString ; String testName = "<STR_LIT>" ; checkParse ( s . toCharArray ( ) , expectedDietUnitToString , expectedDietPlusBodyUnitToString , expectedDietPlusBodyUnitToString , expectedFullUnitToString , expectedCompletionDietUnitToString , testName ) ; } public void test49 ( ) { String s = "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" ; String expectedDietUnitToString = "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" ; String expectedDietPlusBodyUnitToString = "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" ; String expectedFullUnitToString = expectedDietUnitToString ; String expectedCompletionDietUnitToString = expectedDietUnitToString ; String testName = "<STR_LIT>" ; checkParse ( s . toCharArray ( ) , expectedDietUnitToString , expectedDietPlusBodyUnitToString , expectedDietPlusBodyUnitToString , expectedFullUnitToString , expectedCompletionDietUnitToString , testName ) ; } public void test50 ( ) { String s = "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" ; String expectedDietUnitToString = "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" ; String expectedDietPlusBodyUnitToString = "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" ; String expectedDietPlusBodyPlusStatementsRecoveryUnitToString = "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" ; String expectedFullUnitToString = expectedDietUnitToString ; String expectedCompletionDietUnitToString = expectedDietUnitToString ; String testName = "<STR_LIT>" ; checkParse ( s . toCharArray ( ) , expectedDietUnitToString , expectedDietPlusBodyUnitToString , expectedDietPlusBodyPlusStatementsRecoveryUnitToString , expectedFullUnitToString , expectedCompletionDietUnitToString , testName ) ; } public void test51 ( ) { String s = "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" ; String expectedDietUnitToString = "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" ; String expectedDietPlusBodyUnitToString = "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" ; String expectedDietPlusBodyPlusStatementsRecoveryUnitToString = "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" ; String expectedFullUnitToString = expectedDietUnitToString ; String expectedCompletionDietUnitToString = expectedDietUnitToString ; String testName = "<STR_LIT>" ; checkParse ( s . toCharArray ( ) , expectedDietUnitToString , expectedDietPlusBodyUnitToString , expectedDietPlusBodyPlusStatementsRecoveryUnitToString , expectedFullUnitToString , expectedCompletionDietUnitToString , testName ) ; } public void test52 ( ) { String s = "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" ; String expectedDietUnitToString = "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" ; String expectedDietPlusBodyUnitToString = "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" ; String expectedFullUnitToString = expectedDietUnitToString ; String expectedCompletionDietUnitToString = expectedDietUnitToString ; String testName = "<STR_LIT>" ; checkParse ( s . toCharArray ( ) , expectedDietUnitToString , expectedDietPlusBodyUnitToString , expectedDietPlusBodyUnitToString , expectedFullUnitToString , expectedCompletionDietUnitToString , testName ) ; } public void test53 ( ) { String s = "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" ; String expectedDietUnitToString = "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" ; String expectedDietPlusBodyUnitToString = "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" ; String expectedFullUnitToString = expectedDietUnitToString ; String expectedCompletionDietUnitToString = expectedDietUnitToString ; String testName = "<STR_LIT>" ; checkParse ( s . toCharArray ( ) , expectedDietUnitToString , expectedDietPlusBodyUnitToString , expectedDietPlusBodyUnitToString , expectedFullUnitToString , expectedCompletionDietUnitToString , testName ) ; } public void test54 ( ) { String s = "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" ; String expectedDietUnitToString = "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" ; String expectedDietPlusBodyUnitToString = "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" ; String expectedFullUnitToString = expectedDietUnitToString ; String expectedCompletionDietUnitToString = expectedDietUnitToString ; String testName = "<STR_LIT>" ; checkParse ( s . toCharArray ( ) , expectedDietUnitToString , expectedDietPlusBodyUnitToString , expectedDietPlusBodyUnitToString , expectedFullUnitToString , expectedCompletionDietUnitToString , testName ) ; } public void test55 ( ) { String s = "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" ; String expectedDietUnitToString = "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" ; String expectedDietPlusBodyUnitToString = "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" ; String expectedFullUnitToString = expectedDietUnitToString ; String expectedCompletionDietUnitToString = expectedDietUnitToString ; String testName = "<STR_LIT>" ; checkParse ( s . toCharArray ( ) , expectedDietUnitToString , expectedDietPlusBodyUnitToString , expectedDietPlusBodyUnitToString , expectedFullUnitToString , expectedCompletionDietUnitToString , testName ) ; } public void test56 ( ) { String s = "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" ; String expectedDietUnitToString = "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" ; String expectedDietPlusBodyUnitToString = "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" ; String expectedFullUnitToString = expectedDietUnitToString ; String expectedCompletionDietUnitToString = "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" ; String testName = "<STR_LIT>" ; checkParse ( s . toCharArray ( ) , expectedDietUnitToString , expectedDietPlusBodyUnitToString , expectedDietPlusBodyUnitToString , expectedFullUnitToString , expectedCompletionDietUnitToString , testName ) ; } public void test57 ( ) { String s = "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" ; String expectedDietUnitToString = "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" ; String expectedDietPlusBodyUnitToString = "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" ; String expectedFullUnitToString = expectedDietUnitToString ; String expectedCompletionDietUnitToString = expectedDietUnitToString ; String testName = "<STR_LIT>" ; checkParse ( s . toCharArray ( ) , expectedDietUnitToString , expectedDietPlusBodyUnitToString , expectedDietPlusBodyUnitToString , expectedFullUnitToString , expectedCompletionDietUnitToString , testName ) ; } public void test58 ( ) { String s = "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" ; String expectedDietUnitToString = "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" ; String expectedDietPlusBodyUnitToString = "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" ; String expectedFullUnitToString = expectedDietUnitToString ; String expectedCompletionDietUnitToString = expectedDietUnitToString ; String testName = "<STR_LIT>" ; checkParse ( s . toCharArray ( ) , expectedDietUnitToString , expectedDietPlusBodyUnitToString , expectedDietPlusBodyUnitToString , expectedFullUnitToString , expectedCompletionDietUnitToString , testName ) ; } public void test59 ( ) { String s = "<STR_LIT>" + "<STR_LIT>" ; String expectedDietUnitToString = "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" ; String expectedDietPlusBodyUnitToString = "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" ; String expectedFullUnitToString = expectedDietUnitToString ; String expectedCompletionDietUnitToString = expectedDietUnitToString ; String testName = "<STR_LIT>" ; checkParse ( s . toCharArray ( ) , expectedDietUnitToString , expectedDietPlusBodyUnitToString , expectedDietPlusBodyUnitToString , expectedFullUnitToString , expectedCompletionDietUnitToString , testName ) ; } public void test60 ( ) { String s = "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" ; String expectedDietUnitToString = "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" ; String expectedDietPlusBodyUnitToString = "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" ; String expectedFullUnitToString = expectedDietUnitToString ; String expectedCompletionDietUnitToString = expectedDietUnitToString ; String testName = "<STR_LIT>" ; checkParse ( s . toCharArray ( ) , expectedDietUnitToString , expectedDietPlusBodyUnitToString , expectedDietPlusBodyUnitToString , expectedFullUnitToString , expectedCompletionDietUnitToString , testName ) ; } public void test61 ( ) { String s = "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" ; String expectedDietUnitToString = "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" ; String expectedDietPlusBodyUnitToString = "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" ; String expectedFullUnitToString = expectedDietUnitToString ; String expectedCompletionDietUnitToString = expectedDietUnitToString ; String testName = "<STR_LIT>" ; checkParse ( s . toCharArray ( ) , expectedDietUnitToString , expectedDietPlusBodyUnitToString , expectedDietPlusBodyUnitToString , expectedFullUnitToString , expectedCompletionDietUnitToString , testName ) ; } public void test62 ( ) { String s = "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" ; String expectedDietUnitToString = "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" ; String expectedDietPlusBodyUnitToString = "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" ; String expectedFullUnitToString = expectedDietUnitToString ; String expectedCompletionDietUnitToString = "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" ; String testName = "<STR_LIT>" ; checkParse ( s . toCharArray ( ) , expectedDietUnitToString , expectedDietPlusBodyUnitToString , expectedDietPlusBodyUnitToString , expectedFullUnitToString , expectedCompletionDietUnitToString , testName ) ; } public void test63 ( ) { String s = "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" ; String expectedDietUnitToString = "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" ; String expectedDietPlusBodyUnitToString = "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" ; String expectedFullUnitToString = expectedDietUnitToString ; String expectedCompletionDietUnitToString = "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" ; String testName = "<STR_LIT>" ; checkParse ( s . toCharArray ( ) , expectedDietUnitToString , expectedDietPlusBodyUnitToString , expectedDietPlusBodyUnitToString , expectedFullUnitToString , expectedCompletionDietUnitToString , testName ) ; } public void test64 ( ) { String s = "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" ; String expectedDietUnitToString = "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" ; String expectedDietPlusBodyUnitToString = "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" ; String expectedFullUnitToString = expectedDietUnitToString ; String expectedCompletionDietUnitToString = "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" ; String testName = "<STR_LIT>" ; checkParse ( s . toCharArray ( ) , expectedDietUnitToString , expectedDietPlusBodyUnitToString , expectedDietPlusBodyUnitToString , expectedFullUnitToString , expectedCompletionDietUnitToString , testName ) ; } public void test65 ( ) { String s = "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" ; String expectedDietUnitToString = "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" ; String expectedDietPlusBodyUnitToString = "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" ; String expectedFullUnitToString = expectedDietUnitToString ; String expectedCompletionDietUnitToString = expectedDietUnitToString ; String testName = "<STR_LIT>" ; checkParse ( s . toCharArray ( ) , expectedDietUnitToString , expectedDietPlusBodyUnitToString , expectedDietPlusBodyUnitToString , expectedFullUnitToString , expectedCompletionDietUnitToString , testName ) ; } public void test66 ( ) { String s = "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" ; String expectedDietUnitToString = "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" ; String expectedDietPlusBodyUnitToString = "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" ; String expectedFullUnitToString = expectedDietUnitToString ; String expectedCompletionDietUnitToString = expectedDietUnitToString ; String testName = "<STR_LIT>" ; checkParse ( s . toCharArray ( ) , expectedDietUnitToString , expectedDietPlusBodyUnitToString , expectedDietPlusBodyUnitToString , expectedFullUnitToString , expectedCompletionDietUnitToString , testName ) ; } public void test67 ( ) { String s = "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" ; String expectedDietUnitToString = "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" ; String expectedDietPlusBodyUnitToString = "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" ; String expectedFullUnitToString = expectedDietUnitToString ; String expectedCompletionDietUnitToString = expectedDietUnitToString ; String testName = "<STR_LIT>" ; checkParse ( s . toCharArray ( ) , expectedDietUnitToString , expectedDietPlusBodyUnitToString , expectedDietPlusBodyUnitToString , expectedFullUnitToString , expectedCompletionDietUnitToString , testName ) ; } public void test68 ( ) { String s = "<STR_LIT>" ; String expectedDietUnitToString = "<STR_LIT>" ; String expectedDietPlusBodyUnitToString = expectedDietUnitToString ; String expectedFullUnitToString = expectedDietUnitToString ; String expectedCompletionDietUnitToString = expectedDietUnitToString ; String testName = "<STR_LIT>" ; checkParse ( s . toCharArray ( ) , expectedDietUnitToString , expectedDietPlusBodyUnitToString , expectedDietPlusBodyUnitToString , expectedFullUnitToString , expectedCompletionDietUnitToString , testName ) ; } public void test69 ( ) { String s = "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" ; String expectedDietUnitToString = "<STR_LIT>" ; String expectedDietPlusBodyUnitToString = expectedDietUnitToString ; String expectedFullUnitToString = expectedDietUnitToString ; String expectedCompletionDietUnitToString = expectedDietUnitToString ; String testName = "<STR_LIT>" ; checkParse ( s . toCharArray ( ) , expectedDietUnitToString , expectedDietPlusBodyUnitToString , expectedDietPlusBodyUnitToString , expectedFullUnitToString , expectedCompletionDietUnitToString , testName ) ; } public void test70 ( ) { String s = "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" ; String expectedDietUnitToString = "<STR_LIT>" ; String expectedDietPlusBodyUnitToString = expectedDietUnitToString ; String expectedFullUnitToString = expectedDietUnitToString ; String expectedCompletionDietUnitToString = expectedDietUnitToString ; String testName = "<STR_LIT>" ; checkParse ( s . toCharArray ( ) , expectedDietUnitToString , expectedDietPlusBodyUnitToString , expectedDietPlusBodyUnitToString , expectedFullUnitToString , expectedCompletionDietUnitToString , testName ) ; } public void test71 ( ) { String s = "<STR_LIT>" ; String expectedDietUnitToString = "<STR_LIT>" ; String expectedDietPlusBodyUnitToString = expectedDietUnitToString ; String expectedFullUnitToString = expectedDietUnitToString ; String expectedCompletionDietUnitToString = expectedDietUnitToString ; String testName = "<STR_LIT>" ; checkParse ( s . toCharArray ( ) , expectedDietUnitToString , expectedDietPlusBodyUnitToString , expectedDietPlusBodyUnitToString , expectedFullUnitToString , expectedCompletionDietUnitToString , testName ) ; } public void test72 ( ) { String s = "<STR_LIT>" ; String expectedDietUnitToString = "<STR_LIT>" ; String expectedDietPlusBodyUnitToString = expectedDietUnitToString ; String expectedFullUnitToString = expectedDietUnitToString ; String expectedCompletionDietUnitToString = expectedDietUnitToString ; String testName = "<STR_LIT>" ; checkParse ( s . toCharArray ( ) , expectedDietUnitToString , expectedDietPlusBodyUnitToString , expectedDietPlusBodyUnitToString , expectedFullUnitToString , expectedCompletionDietUnitToString , testName ) ; } public void test73 ( ) { String s = "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" ; String expectedDietUnitToString = "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" ; String expectedDietPlusBodyUnitToString = "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" ; String expectedDietPlusBodyPlusStatementsRecoveryUnitToString = "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" ; String expectedFullUnitToString = expectedDietUnitToString ; String expectedCompletionDietUnitToString = expectedDietUnitToString ; String testName = "<STR_LIT>" ; checkParse ( s . toCharArray ( ) , expectedDietUnitToString , expectedDietPlusBodyUnitToString , expectedDietPlusBodyPlusStatementsRecoveryUnitToString , expectedFullUnitToString , expectedCompletionDietUnitToString , testName ) ; } public void test74 ( ) { String s = "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" ; String expectedDietUnitToString = "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" ; String expectedDietPlusBodyUnitToString = "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" ; String expectedFullUnitToString = expectedDietUnitToString ; String expectedCompletionDietUnitToString = expectedDietUnitToString ; String testName = "<STR_LIT>" ; checkParse ( s . toCharArray ( ) , expectedDietUnitToString , expectedDietPlusBodyUnitToString , expectedDietPlusBodyUnitToString , expectedFullUnitToString , expectedCompletionDietUnitToString , testName ) ; } public void test75 ( ) { String s = "<STR_LIT>" + "<STR_LIT:n>" + "<STR_LIT>" + "<STR_LIT:n>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT:n>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" ; String expectedDietUnitToString = "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" ; String expectedDietPlusBodyUnitToString = "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" ; String expectedDietPlusBodyPlusStatementsRecoveryUnitToString = "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" ; String expectedFullUnitToString = expectedDietUnitToString ; String expectedCompletionDietUnitToString = "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" ; String testName = "<STR_LIT>" ; checkParse ( s . toCharArray ( ) , expectedDietUnitToString , expectedDietPlusBodyUnitToString , expectedDietPlusBodyPlusStatementsRecoveryUnitToString , expectedFullUnitToString , expectedCompletionDietUnitToString , testName ) ; } public void test76 ( ) { String s = "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" ; String expectedDietUnitToString = "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" ; String expectedDietPlusBodyUnitToString = "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" ; String expectedDietPlusBodyPlusStatementsRecoveryUnitToString = "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" ; String expectedFullUnitToString = expectedDietUnitToString ; String expectedCompletionDietUnitToString = expectedDietUnitToString ; String testName = "<STR_LIT>" ; checkParse ( s . toCharArray ( ) , expectedDietUnitToString , expectedDietPlusBodyUnitToString , expectedDietPlusBodyPlusStatementsRecoveryUnitToString , expectedFullUnitToString , expectedCompletionDietUnitToString , testName ) ; } public void test77 ( ) { String s = "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" ; String expectedDietUnitToString = "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" ; String expectedDietPlusBodyUnitToString = "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" ; String expectedDietPlusBodyPlusStatementsRecoveryUnitToString = "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" ; String expectedFullUnitToString = expectedDietUnitToString ; String expectedCompletionDietUnitToString = expectedDietUnitToString ; String testName = "<STR_LIT>" ; checkParse ( s . toCharArray ( ) , expectedDietUnitToString , expectedDietPlusBodyUnitToString , expectedDietPlusBodyPlusStatementsRecoveryUnitToString , expectedFullUnitToString , expectedCompletionDietUnitToString , testName ) ; } public void test78 ( ) { String s = "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" ; String expectedDietUnitToString = "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" ; String expectedDietPlusBodyUnitToString = "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" ; String expectedDietPlusBodyPlusStatementsRecoveryUnitToString = "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" ; String expectedFullUnitToString = expectedDietUnitToString ; String expectedCompletionDietUnitToString = expectedDietUnitToString ; String testName = "<STR_LIT>" ; checkParse ( s . toCharArray ( ) , expectedDietUnitToString , expectedDietPlusBodyUnitToString , expectedDietPlusBodyPlusStatementsRecoveryUnitToString , expectedFullUnitToString , expectedCompletionDietUnitToString , testName ) ; } public void test79 ( ) { String s = "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" ; String expectedDietUnitToString = "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" ; String expectedDietPlusBodyUnitToString = "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" ; String expectedDietPlusBodyPlusStatementsRecoveryUnitToString = "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" ; String expectedFullUnitToString = expectedDietUnitToString ; String expectedCompletionDietUnitToString = expectedDietUnitToString ; String testName = "<STR_LIT>" ; checkParse ( s . toCharArray ( ) , expectedDietUnitToString , expectedDietPlusBodyUnitToString , expectedDietPlusBodyPlusStatementsRecoveryUnitToString , expectedFullUnitToString , expectedCompletionDietUnitToString , testName ) ; } public void test80 ( ) { String s = "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" ; String expectedDietUnitToString = "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" ; String expectedDietPlusBodyUnitToString = "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" ; String expectedDietPlusBodyPlusStatementsRecoveryUnitToString = "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" ; String expectedFullUnitToString = expectedDietUnitToString ; String expectedCompletionDietUnitToString = expectedDietUnitToString ; String testName = "<STR_LIT>" ; checkParse ( s . toCharArray ( ) , expectedDietUnitToString , expectedDietPlusBodyUnitToString , expectedDietPlusBodyPlusStatementsRecoveryUnitToString , expectedFullUnitToString , expectedCompletionDietUnitToString , testName ) ; } public void test81 ( ) { String s = "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" ; String expectedDietUnitToString = "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" ; String expectedDietPlusBodyUnitToString = "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" ; String expectedDietPlusBodyPlusStatementsRecoveryUnitToString = "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" ; String expectedFullUnitToString = expectedDietUnitToString ; String expectedCompletionDietUnitToString = expectedDietUnitToString ; String testName = "<STR_LIT>" ; checkParse ( s . toCharArray ( ) , expectedDietUnitToString , expectedDietPlusBodyUnitToString , expectedDietPlusBodyPlusStatementsRecoveryUnitToString , expectedFullUnitToString , expectedCompletionDietUnitToString , testName ) ; } public void test82 ( ) { String s = "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" ; String expectedDietUnitToString = "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" ; String expectedDietPlusBodyUnitToString = "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" ; String expectedFullUnitToString = expectedDietUnitToString ; String expectedCompletionDietUnitToString = expectedDietUnitToString ; String testName = "<STR_LIT>" ; checkParse ( s . toCharArray ( ) , expectedDietUnitToString , expectedDietPlusBodyUnitToString , expectedDietPlusBodyUnitToString , expectedFullUnitToString , expectedCompletionDietUnitToString , testName ) ; } public void test83 ( ) { String s = "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" ; String expectedDietUnitToString = "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" ; String expectedDietPlusBodyUnitToString = "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" ; String expectedFullUnitToString = expectedDietUnitToString ; String expectedCompletionDietUnitToString = expectedDietUnitToString ; String testName = "<STR_LIT>" ; checkParse ( s . toCharArray ( ) , expectedDietUnitToString , expectedDietPlusBodyUnitToString , expectedDietPlusBodyUnitToString , expectedFullUnitToString , expectedCompletionDietUnitToString , testName ) ; } public void test84 ( ) { String s = "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" ; String expectedDietUnitToString = "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" ; String expectedDietPlusBodyUnitToString = "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" ; String expectedFullUnitToString = expectedDietUnitToString ; String expectedCompletionDietUnitToString = expectedDietUnitToString ; String testName = "<STR_LIT>" ; checkParse ( s . toCharArray ( ) , expectedDietUnitToString , expectedDietPlusBodyUnitToString , expectedDietPlusBodyUnitToString , expectedFullUnitToString , expectedCompletionDietUnitToString , testName ) ; } public void test85 ( ) { String s = "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" ; String expectedDietUnitToString = "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" ; String expectedDietPlusBodyUnitToString = "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" ; String expectedFullUnitToString = expectedDietUnitToString ; String expectedCompletionDietUnitToString = expectedDietUnitToString ; String testName = "<STR_LIT>" ; checkParse ( s . toCharArray ( ) , expectedDietUnitToString , expectedDietPlusBodyUnitToString , expectedDietPlusBodyUnitToString , expectedFullUnitToString , expectedCompletionDietUnitToString , testName ) ; } public void test86 ( ) { String s = "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" ; String expectedDietUnitToString = "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" ; String expectedDietPlusBodyUnitToString = "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" ; String expectedFullUnitToString = expectedDietUnitToString ; String expectedCompletionDietUnitToString = expectedDietUnitToString ; String testName = "<STR_LIT>" ; checkParse ( s . toCharArray ( ) , expectedDietUnitToString , expectedDietPlusBodyUnitToString , expectedDietPlusBodyUnitToString , expectedFullUnitToString , expectedCompletionDietUnitToString , testName ) ; } public void test87 ( ) { String s = "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" ; String expectedDietUnitToString = "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" ; String expectedDietPlusBodyUnitToString = "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" ; String expectedFullUnitToString = expectedDietUnitToString ; String expectedCompletionDietUnitToString = expectedDietUnitToString ; String testName = "<STR_LIT>" ; checkParse ( s . toCharArray ( ) , expectedDietUnitToString , expectedDietPlusBodyUnitToString , expectedDietPlusBodyUnitToString , expectedFullUnitToString , expectedCompletionDietUnitToString , testName ) ; } public void test88 ( ) { String s = "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" ; String expectedDietUnitToString = "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" ; String expectedDietPlusBodyUnitToString = "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" ; String expectedFullUnitToString = expectedDietUnitToString ; String expectedCompletionDietUnitToString = "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" ; String testName = "<STR_LIT>" ; checkParse ( s . toCharArray ( ) , expectedDietUnitToString , expectedDietPlusBodyUnitToString , expectedDietPlusBodyUnitToString , expectedFullUnitToString , expectedCompletionDietUnitToString , testName ) ; } public void test89 ( ) { String s = "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" ; String expectedDietUnitToString = "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" ; String expectedDietPlusBodyUnitToString = "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" ; String expectedFullUnitToString = expectedDietUnitToString ; String expectedCompletionDietUnitToString = expectedDietUnitToString ; String testName = "<STR_LIT>" ; checkParse ( s . toCharArray ( ) , expectedDietUnitToString , expectedDietPlusBodyUnitToString , expectedDietPlusBodyUnitToString , expectedFullUnitToString , expectedCompletionDietUnitToString , testName ) ; } public void test90 ( ) { String s = "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" ; String expectedDietUnitToString = "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" ; String expectedDietPlusBodyUnitToString = "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" ; String expectedFullUnitToString = expectedDietUnitToString ; String expectedCompletionDietUnitToString = expectedDietUnitToString ; String testName = "<STR_LIT>" ; checkParse ( s . toCharArray ( ) , expectedDietUnitToString , expectedDietPlusBodyUnitToString , expectedDietPlusBodyUnitToString , expectedFullUnitToString , expectedCompletionDietUnitToString , testName ) ; } public void test91 ( ) { String s = "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" ; String expectedDietUnitToString = "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" ; String expectedDietPlusBodyUnitToString = expectedDietUnitToString ; String expectedFullUnitToString = expectedDietUnitToString ; String expectedCompletionDietUnitToString = expectedDietUnitToString ; String testName = "<STR_LIT>" ; checkParse ( s . toCharArray ( ) , expectedDietUnitToString , expectedDietPlusBodyUnitToString , expectedDietPlusBodyUnitToString , expectedFullUnitToString , expectedCompletionDietUnitToString , testName ) ; } public void test92 ( ) { String s = "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" ; String expectedDietUnitToString = "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" ; String expectedDietPlusBodyUnitToString = expectedDietUnitToString ; String expectedFullUnitToString = expectedDietUnitToString ; String expectedCompletionDietUnitToString = expectedDietUnitToString ; String testName = "<STR_LIT>" ; checkParse ( s . toCharArray ( ) , expectedDietUnitToString , expectedDietPlusBodyUnitToString , expectedDietPlusBodyUnitToString , expectedFullUnitToString , expectedCompletionDietUnitToString , testName ) ; } public void test93 ( ) { String s = "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" ; String expectedDietUnitToString = "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" ; String expectedDietPlusBodyUnitToString = "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" ; String expectedFullUnitToString = expectedDietUnitToString ; String expectedCompletionDietUnitToString = expectedDietUnitToString ; String testName = "<STR_LIT>" ; checkParse ( s . toCharArray ( ) , expectedDietUnitToString , expectedDietPlusBodyUnitToString , expectedDietPlusBodyUnitToString , expectedFullUnitToString , expectedCompletionDietUnitToString , testName ) ; } public void test94 ( ) { String s = "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" ; String expectedDietUnitToString = "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" ; String expectedDietPlusBodyUnitToString = "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" ; String expectedDietPlusBodyPlusStatementsRecoveryUnitToString = "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" ; String expectedFullUnitToString = expectedDietUnitToString ; String expectedCompletionDietUnitToString = expectedDietUnitToString ; String testName = "<STR_LIT>" ; checkParse ( s . toCharArray ( ) , expectedDietUnitToString , expectedDietPlusBodyUnitToString , expectedDietPlusBodyPlusStatementsRecoveryUnitToString , expectedFullUnitToString , expectedCompletionDietUnitToString , testName ) ; } public void test95 ( ) { String s = "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" ; String expectedDietUnitToString = "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" ; String expectedDietPlusBodyUnitToString = expectedDietUnitToString ; String expectedFullUnitToString = expectedDietUnitToString ; String expectedCompletionDietUnitToString = expectedDietUnitToString ; String testName = "<STR_LIT>" ; checkParse ( s . toCharArray ( ) , expectedDietUnitToString , expectedDietPlusBodyUnitToString , expectedDietPlusBodyUnitToString , expectedFullUnitToString , expectedCompletionDietUnitToString , testName ) ; } public void test96 ( ) { String s = "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" ; String expectedDietUnitToString = "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" ; String expectedDietPlusBodyUnitToString = "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" ; String expectedFullUnitToString = expectedDietUnitToString ; String expectedCompletionDietUnitToString = expectedDietUnitToString ; String testName = "<STR_LIT>" ; checkParse ( s . toCharArray ( ) , expectedDietUnitToString , expectedDietPlusBodyUnitToString , expectedDietPlusBodyUnitToString , expectedFullUnitToString , expectedCompletionDietUnitToString , testName ) ; } public void test97 ( ) { String s = "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" ; String expectedDietUnitToString = "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" ; String expectedDietPlusBodyUnitToString = "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" ; String expectedFullUnitToString = expectedDietUnitToString ; String expectedCompletionDietUnitToString = expectedDietUnitToString ; String testName = "<STR_LIT>" ; checkParse ( s . toCharArray ( ) , expectedDietUnitToString , expectedDietPlusBodyUnitToString , expectedDietPlusBodyUnitToString , expectedFullUnitToString , expectedCompletionDietUnitToString , testName ) ; } public void test98 ( ) { String s = "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" ; String expectedDietUnitToString = "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" ; String expectedDietPlusBodyUnitToString = "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" ; String expectedFullUnitToString = expectedDietUnitToString ; String expectedCompletionDietUnitToString = "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" ; String testName = "<STR_LIT>" ; checkParse ( s . toCharArray ( ) , expectedDietUnitToString , expectedDietPlusBodyUnitToString , expectedDietPlusBodyUnitToString , expectedFullUnitToString , expectedCompletionDietUnitToString , testName ) ; } public void test99 ( ) { String s = "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" ; String expectedDietUnitToString = "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" ; String expectedDietPlusBodyUnitToString = "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" ; String expectedDietPlusBodyPlusStatementsRecoveryUnitToString = "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" ; String expectedFullUnitToString = expectedDietUnitToString ; String expectedCompletionDietUnitToString = expectedDietUnitToString ; String testName = "<STR_LIT>" ; checkParse ( s . toCharArray ( ) , expectedDietUnitToString , expectedDietPlusBodyUnitToString , expectedDietPlusBodyPlusStatementsRecoveryUnitToString , expectedFullUnitToString , expectedCompletionDietUnitToString , testName ) ; } public void test100 ( ) { String s = "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" ; String expectedDietUnitToString = "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" ; String expectedDietPlusBodyUnitToString = "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" ; String expectedDietPlusBodyPlusStatementsRecoveryUnitToString = "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" ; String expectedFullUnitToString = "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" ; String expectedCompletionDietUnitToString = "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" ; String testName = "<STR_LIT>" ; checkParse ( s . toCharArray ( ) , expectedDietUnitToString , expectedDietPlusBodyUnitToString , expectedDietPlusBodyPlusStatementsRecoveryUnitToString , expectedFullUnitToString , expectedCompletionDietUnitToString , testName ) ; } public void _test101 ( ) { String s = "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" ; String expectedDietUnitToString = "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" ; String expectedDietPlusBodyUnitToString = "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" ; String expectedFullUnitToString = expectedDietUnitToString ; String expectedCompletionDietUnitToString = expectedDietUnitToString ; String testName = "<STR_LIT>" ; checkParse ( s . toCharArray ( ) , expectedDietUnitToString , expectedDietPlusBodyUnitToString , expectedDietPlusBodyUnitToString , expectedFullUnitToString , expectedCompletionDietUnitToString , testName ) ; } public void test102 ( ) { String s = "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" ; String expectedDietUnitToString = "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" ; String expectedDietPlusBodyUnitToString = "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" ; String expectedFullUnitToString = expectedDietUnitToString ; String expectedCompletionDietUnitToString = expectedDietUnitToString ; String testName = "<STR_LIT>" ; checkParse ( s . toCharArray ( ) , expectedDietUnitToString , expectedDietPlusBodyUnitToString , expectedDietPlusBodyUnitToString , expectedFullUnitToString , expectedCompletionDietUnitToString , testName ) ; } public void test103 ( ) { String s = "<STR_LIT>" + "<STR_LIT>" ; String expectedDietUnitToString = "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" ; String expectedDietPlusBodyUnitToString = "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" ; String expectedFullUnitToString = expectedDietUnitToString ; String expectedCompletionDietUnitToString = expectedDietUnitToString ; String testName = "<STR_LIT>" ; checkParse ( s . toCharArray ( ) , expectedDietUnitToString , expectedDietPlusBodyUnitToString , expectedDietPlusBodyUnitToString , expectedFullUnitToString , expectedCompletionDietUnitToString , testName ) ; } public void test104 ( ) { String s = "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT:}>" ; String expectedDietUnitToString = "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" ; String expectedDietPlusBodyUnitToString = "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" ; String expectedFullUnitToString = expectedDietUnitToString ; String expectedCompletionDietUnitToString = expectedDietUnitToString ; String testName = "<STR_LIT>" ; checkParse ( s . toCharArray ( ) , expectedDietUnitToString , expectedDietPlusBodyUnitToString , expectedDietPlusBodyUnitToString , expectedFullUnitToString , expectedCompletionDietUnitToString , testName ) ; } public void test105 ( ) { String s = "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" ; String expectedDietUnitToString = "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" ; String expectedDietPlusBodyUnitToString = "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" ; String expectedFullUnitToString = expectedDietUnitToString ; String expectedCompletionDietUnitToString = "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" ; String testName = "<STR_LIT>" ; checkParse ( s . toCharArray ( ) , expectedDietUnitToString , expectedDietPlusBodyUnitToString , expectedDietPlusBodyUnitToString , expectedFullUnitToString , expectedCompletionDietUnitToString , testName ) ; } public void test106 ( ) { String s = "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" ; String expectedDietUnitToString = "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" ; String expectedDietPlusBodyUnitToString = "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" ; String expectedFullUnitToString = expectedDietPlusBodyUnitToString ; String expectedCompletionDietUnitToString = "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" ; String testName = "<STR_LIT>" ; checkParse ( s . toCharArray ( ) , expectedDietUnitToString , expectedDietPlusBodyUnitToString , expectedDietPlusBodyUnitToString , expectedFullUnitToString , expectedCompletionDietUnitToString , testName ) ; } public void test107 ( ) { String s = "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" ; String expectedDietUnitToString = "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" ; String expectedDietPlusBodyUnitToString = "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" ; String expectedFullUnitToString = expectedDietUnitToString ; String expectedCompletionDietUnitToString = "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" ; String testName = "<STR_LIT>" ; checkParse ( s . toCharArray ( ) , expectedDietUnitToString , expectedDietPlusBodyUnitToString , expectedDietPlusBodyUnitToString , expectedFullUnitToString , expectedCompletionDietUnitToString , testName ) ; } public void test108 ( ) { String s = "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" ; String expectedDietUnitToString = "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" ; String expectedDietPlusBodyUnitToString = "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" ; String expectedFullUnitToString = expectedDietUnitToString ; String expectedCompletionDietUnitToString = "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" ; String testName = "<STR_LIT>" ; checkParse ( s . toCharArray ( ) , expectedDietUnitToString , expectedDietPlusBodyUnitToString , expectedDietPlusBodyUnitToString , expectedFullUnitToString , expectedCompletionDietUnitToString , testName ) ; } public void test109 ( ) { String s = "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT:}>" ; String expectedDietUnitToString = "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" ; String expectedDietPlusBodyUnitToString = "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" ; String expectedFullUnitToString = expectedDietUnitToString ; String expectedCompletionDietUnitToString = "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" ; String testName = "<STR_LIT>" ; checkParse ( s . toCharArray ( ) , expectedDietUnitToString , expectedDietPlusBodyUnitToString , expectedDietPlusBodyUnitToString , expectedFullUnitToString , expectedCompletionDietUnitToString , testName ) ; } public void test110 ( ) { String s = "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT:}>" ; String expectedDietUnitToString = "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" ; String expectedDietPlusBodyUnitToString = "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" ; String expectedDietPlusBodyPlusStatementsRecoveryUnitToString = "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" ; String expectedFullUnitToString = expectedDietUnitToString ; String expectedCompletionDietUnitToString = "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" ; String testName = "<STR_LIT>" ; checkParse ( s . toCharArray ( ) , expectedDietUnitToString , expectedDietPlusBodyUnitToString , expectedDietPlusBodyPlusStatementsRecoveryUnitToString , expectedFullUnitToString , expectedCompletionDietUnitToString , testName ) ; } public void test111 ( ) { String s = "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT:}>" ; String expectedDietUnitToString = "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" ; String expectedDietPlusBodyUnitToString = "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" ; String expectedFullUnitToString = expectedDietUnitToString ; String expectedCompletionDietUnitToString = expectedDietUnitToString ; String testName = "<STR_LIT>" ; checkParse ( s . toCharArray ( ) , expectedDietUnitToString , expectedDietPlusBodyUnitToString , expectedDietPlusBodyUnitToString , expectedFullUnitToString , expectedCompletionDietUnitToString , testName ) ; } public void test112 ( ) { String s = "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" ; String expectedDietUnitToString = "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" ; String expectedDietPlusBodyUnitToString = "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" ; String expectedDietPlusBodyPlusStatementsRecoveryUnitToString = "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" ; String expectedFullUnitToString = expectedDietUnitToString ; String expectedCompletionDietUnitToString = expectedDietUnitToString ; String testName = "<STR_LIT>" ; checkParse ( s . toCharArray ( ) , expectedDietUnitToString , expectedDietPlusBodyUnitToString , expectedDietPlusBodyPlusStatementsRecoveryUnitToString , expectedFullUnitToString , expectedCompletionDietUnitToString , testName ) ; } public void test113 ( ) { String s = "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" ; String expectedDietUnitToString = "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" ; String expectedDietPlusBodyUnitToString = "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" ; String expectedFullUnitToString = expectedDietUnitToString ; String expectedCompletionDietUnitToString = expectedDietUnitToString ; String testName = "<STR_LIT>" ; checkParse ( s . toCharArray ( ) , expectedDietUnitToString , expectedDietPlusBodyUnitToString , expectedDietPlusBodyUnitToString , expectedFullUnitToString , expectedCompletionDietUnitToString , testName ) ; } public void test114 ( ) { String s = "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" ; String expectedDietUnitToString = "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" ; String expectedDietPlusBodyUnitToString = "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" ; String expectedDietPlusBodyPlusStatementsRecoveryUnitToString = "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" ; String expectedFullUnitToString = expectedDietUnitToString ; String expectedCompletionDietUnitToString = expectedDietUnitToString ; String testName = "<STR_LIT>" ; checkParse ( s . toCharArray ( ) , expectedDietUnitToString , expectedDietPlusBodyUnitToString , expectedDietPlusBodyPlusStatementsRecoveryUnitToString , expectedFullUnitToString , expectedCompletionDietUnitToString , testName ) ; } public void test115 ( ) { String s = "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" ; String expectedDietUnitToString = "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" ; String expectedDietPlusBodyUnitToString = "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" ; String expectedDietPlusBodyPlusStatementsRecoveryUnitToString = "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" ; String expectedFullUnitToString = expectedDietUnitToString ; String expectedCompletionDietUnitToString = expectedDietUnitToString ; String testName = "<STR_LIT>" ; checkParse ( s . toCharArray ( ) , expectedDietUnitToString , expectedDietPlusBodyUnitToString , expectedDietPlusBodyPlusStatementsRecoveryUnitToString , expectedFullUnitToString , expectedCompletionDietUnitToString , testName ) ; } public void test116 ( ) { String s = "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" ; String expectedDietUnitToString = "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" ; String expectedDietPlusBodyUnitToString = "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" ; String expectedDietPlusBodyPlusStatementsRecoveryUnitToString = "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" ; String expectedFullUnitToString = expectedDietUnitToString ; String expectedCompletionDietUnitToString = expectedDietUnitToString ; String testName = "<STR_LIT>" ; checkParse ( s . toCharArray ( ) , expectedDietUnitToString , expectedDietPlusBodyUnitToString , expectedDietPlusBodyPlusStatementsRecoveryUnitToString , expectedFullUnitToString , expectedCompletionDietUnitToString , testName ) ; } public void test117 ( ) { String s = "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" ; String expectedDietUnitToString = null ; String expectedDietPlusBodyUnitToString = null ; String expectedDietPlusBodyPlusStatementsRecoveryUnitToString = null ; String expectedFullUnitToString = null ; String expectedCompletionDietUnitToString = null ; if ( this . complianceLevel <= ClassFileConstants . JDK1_4 ) { expectedDietUnitToString = "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" ; expectedDietPlusBodyUnitToString = "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" ; expectedDietPlusBodyPlusStatementsRecoveryUnitToString = "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" ; expectedFullUnitToString = "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" ; expectedCompletionDietUnitToString = expectedDietUnitToString ; } else if ( this . complianceLevel >= ClassFileConstants . JDK1_5 ) { expectedDietUnitToString = "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" ; expectedDietPlusBodyUnitToString = "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" ; expectedDietPlusBodyPlusStatementsRecoveryUnitToString = "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" ; expectedFullUnitToString = "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" ; expectedCompletionDietUnitToString = expectedDietUnitToString ; } String testName = "<STR_LIT>" ; checkParse ( s . toCharArray ( ) , expectedDietUnitToString , expectedDietPlusBodyUnitToString , expectedDietPlusBodyPlusStatementsRecoveryUnitToString , expectedFullUnitToString , expectedCompletionDietUnitToString , testName ) ; } public void test117_2 ( ) { String s = "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" ; String expectedDietUnitToString = null ; String expectedDietPlusBodyUnitToString = null ; String expectedDietPlusBodyPlusStatementsRecoveryUnitToString = null ; String expectedFullUnitToString = null ; String expectedCompletionDietUnitToString = null ; expectedDietUnitToString = "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" ; expectedDietPlusBodyUnitToString = "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" ; expectedDietPlusBodyPlusStatementsRecoveryUnitToString = "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" ; expectedFullUnitToString = "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" ; expectedCompletionDietUnitToString = expectedDietUnitToString ; String testName = "<STR_LIT>" ; checkParse ( s . toCharArray ( ) , expectedDietUnitToString , expectedDietPlusBodyUnitToString , expectedDietPlusBodyPlusStatementsRecoveryUnitToString , expectedFullUnitToString , expectedCompletionDietUnitToString , testName ) ; } public void test118 ( ) { String s = "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT:n>" + "<STR_LIT>" + "<STR_LIT>" ; String expectedDietUnitToString = "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" ; String expectedDietPlusBodyUnitToString = "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" ; String expectedDietPlusBodyPlusStatementsRecoveryUnitToString = expectedDietPlusBodyUnitToString ; String expectedFullUnitToString = expectedDietUnitToString ; String expectedCompletionDietUnitToString = expectedDietUnitToString ; String testName = "<STR_LIT>" ; checkParse ( s . toCharArray ( ) , expectedDietUnitToString , expectedDietPlusBodyUnitToString , expectedDietPlusBodyPlusStatementsRecoveryUnitToString , expectedFullUnitToString , expectedCompletionDietUnitToString , testName ) ; } public void test119 ( ) { String s = "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT:n>" + "<STR_LIT>" + "<STR_LIT>" ; String expectedDietUnitToString = "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" ; String expectedDietPlusBodyUnitToString = "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" ; String expectedDietPlusBodyPlusStatementsRecoveryUnitToString = expectedDietPlusBodyUnitToString ; String expectedFullUnitToString = expectedDietUnitToString ; String expectedCompletionDietUnitToString = expectedDietUnitToString ; String testName = "<STR_LIT>" ; checkParse ( s . toCharArray ( ) , expectedDietUnitToString , expectedDietPlusBodyUnitToString , expectedDietPlusBodyPlusStatementsRecoveryUnitToString , expectedFullUnitToString , expectedCompletionDietUnitToString , testName ) ; } public void test120 ( ) { String s = "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" ; String expectedDietUnitToString = "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" ; String expectedDietPlusBodyUnitToString = "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" ; String expectedDietPlusBodyPlusStatementsRecoveryUnitToString = "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" ; String expectedFullUnitToString = expectedDietUnitToString ; String expectedCompletionDietUnitToString = expectedDietUnitToString ; String testName = "<STR_LIT>" ; checkParse ( s . toCharArray ( ) , expectedDietUnitToString , expectedDietPlusBodyUnitToString , expectedDietPlusBodyPlusStatementsRecoveryUnitToString , expectedFullUnitToString , expectedCompletionDietUnitToString , testName ) ; } public void test121 ( ) { String s = "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" ; String expectedDietUnitToString = "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" ; String expectedDietPlusBodyUnitToString = "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" ; String expectedDietPlusBodyPlusStatementsRecoveryUnitToString = "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" ; String expectedFullUnitToString = expectedDietUnitToString ; String expectedCompletionDietUnitToString = expectedDietUnitToString ; String testName = "<STR_LIT>" ; checkParse ( s . toCharArray ( ) , expectedDietUnitToString , expectedDietPlusBodyUnitToString , expectedDietPlusBodyPlusStatementsRecoveryUnitToString , expectedFullUnitToString , expectedCompletionDietUnitToString , testName ) ; } public void test122 ( ) { String s = "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT:n>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT:n>" ; String expectedDietUnitToString = "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" ; String expectedDietPlusBodyUnitToString = "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" ; String expectedDietPlusBodyPlusStatementsRecoveryUnitToString = "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" ; String expectedFullUnitToString = expectedDietUnitToString ; String expectedCompletionDietUnitToString = expectedDietUnitToString ; String testName = "<STR_LIT>" ; checkParse ( s . toCharArray ( ) , expectedDietUnitToString , expectedDietPlusBodyUnitToString , expectedDietPlusBodyPlusStatementsRecoveryUnitToString , expectedFullUnitToString , expectedCompletionDietUnitToString , testName ) ; } public void test123 ( ) { String s = "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" ; String expectedDietUnitToString = "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" ; String expectedDietPlusBodyUnitToString = "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" ; String expectedDietPlusBodyPlusStatementsRecoveryUnitToString = "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" ; String expectedFullUnitToString = expectedDietUnitToString ; String expectedCompletionDietUnitToString = expectedDietUnitToString ; String testName = "<STR_LIT>" ; checkParse ( s . toCharArray ( ) , expectedDietUnitToString , expectedDietPlusBodyUnitToString , expectedDietPlusBodyPlusStatementsRecoveryUnitToString , expectedFullUnitToString , expectedCompletionDietUnitToString , testName ) ; } public void test124 ( ) { String s = "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" ; String expectedDietUnitToString = "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" ; String expectedDietPlusBodyUnitToString = "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" ; String expectedDietPlusBodyPlusStatementsRecoveryUnitToString = null ; if ( this . complianceLevel <= ClassFileConstants . JDK1_4 ) { expectedDietPlusBodyPlusStatementsRecoveryUnitToString = "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" ; } else { expectedDietPlusBodyPlusStatementsRecoveryUnitToString = "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" ; } String expectedFullUnitToString = "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" ; String expectedCompletionDietUnitToString = expectedDietUnitToString ; String testName = "<STR_LIT:test>" ; checkParse ( s . toCharArray ( ) , expectedDietUnitToString , expectedDietPlusBodyUnitToString , expectedDietPlusBodyPlusStatementsRecoveryUnitToString , expectedFullUnitToString , expectedCompletionDietUnitToString , testName ) ; } } </s>
|
<s> package org . eclipse . jdt . core . tests . compiler . parser ; import junit . framework . Test ; public class CompletionParserTestKeyword extends AbstractCompletionTest { public CompletionParserTestKeyword ( String testName ) { super ( testName ) ; } public static Test suite ( ) { return buildAllCompliancesTestSuite ( CompletionParserTestKeyword . class ) ; } public void test0001 ( ) { String str = "<STR_LIT>" ; String completeBehind = "<STR_LIT>" ; int cursorLocation = str . indexOf ( "<STR_LIT>" ) + completeBehind . length ( ) - <NUM_LIT:1> ; String expectedCompletionNodeToString = "<STR_LIT>" ; String expectedParentNodeToString = "<STR_LIT>" ; String completionIdentifier = "<STR_LIT>" ; String expectedReplacedSource = "<STR_LIT>" ; String expectedUnitDisplayString = "<STR_LIT>" ; checkDietParse ( str . toCharArray ( ) , cursorLocation , expectedCompletionNodeToString , expectedParentNodeToString , expectedUnitDisplayString , completionIdentifier , expectedReplacedSource , "<STR_LIT>" ) ; } public void test0002 ( ) { String str = "<STR_LIT>" ; String completeBehind = "<STR_LIT>" ; int cursorLocation = str . indexOf ( "<STR_LIT>" ) + completeBehind . length ( ) - <NUM_LIT:1> ; String expectedCompletionNodeToString = "<STR_LIT>" ; String expectedParentNodeToString = "<STR_LIT>" ; String completionIdentifier = "<STR_LIT>" ; String expectedReplacedSource = "<STR_LIT>" ; String expectedUnitDisplayString = "<STR_LIT>" ; checkDietParse ( str . toCharArray ( ) , cursorLocation , expectedCompletionNodeToString , expectedParentNodeToString , expectedUnitDisplayString , completionIdentifier , expectedReplacedSource , "<STR_LIT>" ) ; } public void test0003 ( ) { String str = "<STR_LIT>" + "<STR_LIT>" ; String completeBehind = "<STR_LIT>" ; int cursorLocation = str . indexOf ( "<STR_LIT>" ) + completeBehind . length ( ) - <NUM_LIT:1> ; String expectedCompletionNodeToString = "<STR_LIT>" ; String expectedParentNodeToString = "<STR_LIT>" ; String completionIdentifier = "<STR_LIT>" ; String expectedReplacedSource = "<STR_LIT>" ; String expectedUnitDisplayString = "<STR_LIT>" + "<STR_LIT>" ; checkDietParse ( str . toCharArray ( ) , cursorLocation , expectedCompletionNodeToString , expectedParentNodeToString , expectedUnitDisplayString , completionIdentifier , expectedReplacedSource , "<STR_LIT>" ) ; } public void test0004 ( ) { String str = "<STR_LIT>" + "<STR_LIT>" ; String completeBehind = "<STR_LIT>" ; int cursorLocation = str . indexOf ( "<STR_LIT>" ) + completeBehind . length ( ) - <NUM_LIT:1> ; String expectedCompletionNodeToString = "<STR_LIT>" ; String expectedParentNodeToString = "<STR_LIT>" ; String completionIdentifier = "<STR_LIT>" ; String expectedReplacedSource = "<STR_LIT>" ; String expectedUnitDisplayString = "<STR_LIT>" + "<STR_LIT>" ; checkDietParse ( str . toCharArray ( ) , cursorLocation , expectedCompletionNodeToString , expectedParentNodeToString , expectedUnitDisplayString , completionIdentifier , expectedReplacedSource , "<STR_LIT>" ) ; } public void test0005 ( ) { String str = "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" ; String completeBehind = "<STR_LIT>" ; int cursorLocation = str . indexOf ( "<STR_LIT>" ) + completeBehind . length ( ) - <NUM_LIT:1> ; String expectedCompletionNodeToString = "<STR_LIT>" ; String expectedParentNodeToString = "<STR_LIT>" ; String completionIdentifier = "<STR_LIT>" ; String expectedReplacedSource = "<STR_LIT>" ; String expectedUnitDisplayString = "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" ; checkDietParse ( str . toCharArray ( ) , cursorLocation , expectedCompletionNodeToString , expectedParentNodeToString , expectedUnitDisplayString , completionIdentifier , expectedReplacedSource , "<STR_LIT>" ) ; } public void test0006 ( ) { String str = "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" ; String completeBehind = "<STR_LIT>" ; int cursorLocation = str . indexOf ( "<STR_LIT>" ) + completeBehind . length ( ) - <NUM_LIT:1> ; String expectedCompletionNodeToString = "<STR_LIT>" ; String expectedParentNodeToString = "<STR_LIT>" ; String completionIdentifier = "<STR_LIT>" ; String expectedReplacedSource = "<STR_LIT>" ; String expectedUnitDisplayString = "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" ; checkDietParse ( str . toCharArray ( ) , cursorLocation , expectedCompletionNodeToString , expectedParentNodeToString , expectedUnitDisplayString , completionIdentifier , expectedReplacedSource , "<STR_LIT>" ) ; } public void test0007 ( ) { String str = "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" ; String completeBehind = "<STR_LIT>" ; int cursorLocation = str . indexOf ( "<STR_LIT>" ) + completeBehind . length ( ) - <NUM_LIT:1> ; String expectedCompletionNodeToString = "<STR_LIT>" ; String expectedParentNodeToString = "<STR_LIT>" ; String completionIdentifier = "<STR_LIT>" ; String expectedReplacedSource = "<STR_LIT>" ; String expectedUnitDisplayString = "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" ; checkDietParse ( str . toCharArray ( ) , cursorLocation , expectedCompletionNodeToString , expectedParentNodeToString , expectedUnitDisplayString , completionIdentifier , expectedReplacedSource , "<STR_LIT>" ) ; } public void test0008 ( ) { String str = "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" ; String completeBehind = "<STR_LIT>" ; int cursorLocation = str . indexOf ( "<STR_LIT>" ) + completeBehind . length ( ) - <NUM_LIT:1> ; String expectedCompletionNodeToString = "<STR_LIT>" ; String expectedParentNodeToString = "<STR_LIT>" ; String completionIdentifier = "<STR_LIT>" ; String expectedReplacedSource = "<STR_LIT>" ; String expectedUnitDisplayString = "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" ; checkDietParse ( str . toCharArray ( ) , cursorLocation , expectedCompletionNodeToString , expectedParentNodeToString , expectedUnitDisplayString , completionIdentifier , expectedReplacedSource , "<STR_LIT>" ) ; } public void test0009 ( ) { String str = "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" ; String completeBehind = "<STR_LIT>" ; int cursorLocation = str . lastIndexOf ( "<STR_LIT>" ) + completeBehind . length ( ) - <NUM_LIT:1> ; String expectedCompletionNodeToString = "<STR_LIT>" ; String expectedParentNodeToString = "<STR_LIT>" ; String completionIdentifier = "<STR_LIT>" ; String expectedReplacedSource = "<STR_LIT>" ; String expectedUnitDisplayString = "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" ; checkDietParse ( str . toCharArray ( ) , cursorLocation , expectedCompletionNodeToString , expectedParentNodeToString , expectedUnitDisplayString , completionIdentifier , expectedReplacedSource , "<STR_LIT>" ) ; } public void test0010 ( ) { String str = "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" ; String completeBehind = "<STR_LIT>" ; int cursorLocation = str . lastIndexOf ( "<STR_LIT>" ) + completeBehind . length ( ) - <NUM_LIT:1> ; String expectedCompletionNodeToString = "<STR_LIT>" ; String expectedParentNodeToString = "<STR_LIT>" ; String completionIdentifier = "<STR_LIT>" ; String expectedReplacedSource = "<STR_LIT>" ; String expectedUnitDisplayString = "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" ; checkDietParse ( str . toCharArray ( ) , cursorLocation , expectedCompletionNodeToString , expectedParentNodeToString , expectedUnitDisplayString , completionIdentifier , expectedReplacedSource , "<STR_LIT>" ) ; } public void test0011 ( ) { String str = "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" ; String completeBehind = "<STR_LIT>" ; int cursorLocation = str . lastIndexOf ( "<STR_LIT>" ) + completeBehind . length ( ) - <NUM_LIT:1> ; String expectedCompletionNodeToString = "<STR_LIT>" ; String expectedParentNodeToString = "<STR_LIT>" ; String completionIdentifier = "<STR_LIT>" ; String expectedReplacedSource = "<STR_LIT>" ; String expectedUnitDisplayString = "<STR_LIT>" + "<STR_LIT>" ; checkDietParse ( str . toCharArray ( ) , cursorLocation , expectedCompletionNodeToString , expectedParentNodeToString , expectedUnitDisplayString , completionIdentifier , expectedReplacedSource , "<STR_LIT>" ) ; } public void test0012 ( ) { String str = "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" ; String completeBehind = "<STR_LIT>" ; int cursorLocation = str . lastIndexOf ( "<STR_LIT>" ) + completeBehind . length ( ) - <NUM_LIT:1> ; String expectedCompletionNodeToString = "<STR_LIT>" ; String expectedParentNodeToString = "<STR_LIT>" ; String completionIdentifier = "<STR_LIT>" ; String expectedReplacedSource = "<STR_LIT>" ; String expectedUnitDisplayString = "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" ; checkDietParse ( str . toCharArray ( ) , cursorLocation , expectedCompletionNodeToString , expectedParentNodeToString , expectedUnitDisplayString , completionIdentifier , expectedReplacedSource , "<STR_LIT>" ) ; } public void test0013 ( ) { String str = "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" ; String completeBehind = "<STR_LIT>" ; int cursorLocation = str . lastIndexOf ( "<STR_LIT>" ) + completeBehind . length ( ) - <NUM_LIT:1> ; String expectedCompletionNodeToString = "<STR_LIT>" ; String expectedParentNodeToString = "<STR_LIT>" ; String completionIdentifier = "<STR_LIT>" ; String expectedReplacedSource = "<STR_LIT>" ; String expectedUnitDisplayString = "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" ; checkDietParse ( str . toCharArray ( ) , cursorLocation , expectedCompletionNodeToString , expectedParentNodeToString , expectedUnitDisplayString , completionIdentifier , expectedReplacedSource , "<STR_LIT>" ) ; } public void test0014 ( ) { String str = "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" ; String completeBehind = "<STR_LIT>" ; int cursorLocation = str . lastIndexOf ( "<STR_LIT>" ) + completeBehind . length ( ) - <NUM_LIT:1> ; String expectedCompletionNodeToString = "<STR_LIT>" ; String expectedParentNodeToString = "<STR_LIT>" ; String completionIdentifier = "<STR_LIT>" ; String expectedReplacedSource = "<STR_LIT>" ; String expectedUnitDisplayString = "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" ; checkDietParse ( str . toCharArray ( ) , cursorLocation , expectedCompletionNodeToString , expectedParentNodeToString , expectedUnitDisplayString , completionIdentifier , expectedReplacedSource , "<STR_LIT>" ) ; } public void test0015 ( ) { String str = "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" ; String completeBehind = "<STR_LIT>" ; int cursorLocation = str . lastIndexOf ( "<STR_LIT>" ) + completeBehind . length ( ) - <NUM_LIT:1> ; String expectedCompletionNodeToString = "<STR_LIT>" ; String expectedParentNodeToString = "<STR_LIT>" ; String completionIdentifier = "<STR_LIT>" ; String expectedReplacedSource = "<STR_LIT>" ; String expectedUnitDisplayString = "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" ; checkDietParse ( str . toCharArray ( ) , cursorLocation , expectedCompletionNodeToString , expectedParentNodeToString , expectedUnitDisplayString , completionIdentifier , expectedReplacedSource , "<STR_LIT>" ) ; } public void test0016 ( ) { String str = "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" ; String completeBehind = "<STR_LIT>" ; int cursorLocation = str . lastIndexOf ( "<STR_LIT>" ) + completeBehind . length ( ) - <NUM_LIT:1> ; String expectedCompletionNodeToString = "<STR_LIT>" ; String expectedParentNodeToString = "<STR_LIT>" ; String completionIdentifier = "<STR_LIT>" ; String expectedReplacedSource = "<STR_LIT>" ; String expectedUnitDisplayString = "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" ; checkDietParse ( str . toCharArray ( ) , cursorLocation , expectedCompletionNodeToString , expectedParentNodeToString , expectedUnitDisplayString , completionIdentifier , expectedReplacedSource , "<STR_LIT>" ) ; } public void test0017 ( ) { String str = "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" ; String completeBehind = "<STR_LIT>" ; int cursorLocation = str . lastIndexOf ( "<STR_LIT>" ) + completeBehind . length ( ) - <NUM_LIT:1> ; String expectedCompletionNodeToString = "<STR_LIT>" ; String expectedParentNodeToString = "<STR_LIT>" ; String completionIdentifier = "<STR_LIT>" ; String expectedReplacedSource = "<STR_LIT>" ; String expectedUnitDisplayString = "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" ; checkDietParse ( str . toCharArray ( ) , cursorLocation , expectedCompletionNodeToString , expectedParentNodeToString , expectedUnitDisplayString , completionIdentifier , expectedReplacedSource , "<STR_LIT>" ) ; } public void test0018 ( ) { String str = "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" ; String completeBehind = "<STR_LIT>" ; int cursorLocation = str . lastIndexOf ( "<STR_LIT>" ) + completeBehind . length ( ) - <NUM_LIT:1> ; String expectedCompletionNodeToString = "<STR_LIT>" ; String expectedParentNodeToString = "<STR_LIT>" ; String completionIdentifier = "<STR_LIT>" ; String expectedReplacedSource = "<STR_LIT>" ; String expectedUnitDisplayString = "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" ; checkDietParse ( str . toCharArray ( ) , cursorLocation , expectedCompletionNodeToString , expectedParentNodeToString , expectedUnitDisplayString , completionIdentifier , expectedReplacedSource , "<STR_LIT>" ) ; } public void test0019 ( ) { String str = "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" ; String completeBehind = "<STR_LIT>" ; int cursorLocation = str . lastIndexOf ( "<STR_LIT>" ) + completeBehind . length ( ) - <NUM_LIT:1> ; String expectedCompletionNodeToString = "<STR_LIT>" ; String expectedParentNodeToString = "<STR_LIT>" ; String completionIdentifier = "<STR_LIT>" ; String expectedReplacedSource = "<STR_LIT>" ; String expectedUnitDisplayString = "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" ; checkDietParse ( str . toCharArray ( ) , cursorLocation , expectedCompletionNodeToString , expectedParentNodeToString , expectedUnitDisplayString , completionIdentifier , expectedReplacedSource , "<STR_LIT>" ) ; } public void test0020 ( ) { String str = "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" ; String completeBehind = "<STR_LIT>" ; int cursorLocation = str . lastIndexOf ( "<STR_LIT>" ) + completeBehind . length ( ) - <NUM_LIT:1> ; String expectedCompletionNodeToString = "<STR_LIT>" ; String expectedParentNodeToString = "<STR_LIT>" ; String completionIdentifier = "<STR_LIT>" ; String expectedReplacedSource = "<STR_LIT>" ; String expectedUnitDisplayString = "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" ; checkDietParse ( str . toCharArray ( ) , cursorLocation , expectedCompletionNodeToString , expectedParentNodeToString , expectedUnitDisplayString , completionIdentifier , expectedReplacedSource , "<STR_LIT>" ) ; } public void test0021_Diet ( ) { String str = "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" ; String completeBehind = "<STR_LIT>" ; int cursorLocation = str . lastIndexOf ( "<STR_LIT>" ) + completeBehind . length ( ) - <NUM_LIT:1> ; String expectedCompletionNodeToString = "<STR_LIT>" ; String expectedParentNodeToString = "<STR_LIT>" ; String completionIdentifier = "<STR_LIT>" ; String expectedReplacedSource = "<STR_LIT>" ; String expectedUnitDisplayString = "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" ; checkDietParse ( str . toCharArray ( ) , cursorLocation , expectedCompletionNodeToString , expectedParentNodeToString , expectedUnitDisplayString , completionIdentifier , expectedReplacedSource , "<STR_LIT>" ) ; } public void test0021_Method ( ) { String str = "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" ; String completeBehind = "<STR_LIT>" ; int cursorLocation = str . lastIndexOf ( "<STR_LIT>" ) + completeBehind . length ( ) - <NUM_LIT:1> ; String expectedCompletionNodeToString = "<STR_LIT>" ; String expectedParentNodeToString = "<STR_LIT>" ; String completionIdentifier = "<STR_LIT>" ; String expectedReplacedSource = "<STR_LIT>" ; String expectedUnitDisplayString = "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" ; checkMethodParse ( str . toCharArray ( ) , cursorLocation , expectedCompletionNodeToString , expectedParentNodeToString , expectedUnitDisplayString , completionIdentifier , expectedReplacedSource , "<STR_LIT>" ) ; } public void test0022_Diet ( ) { String str = "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" ; String completeBehind = "<STR_LIT>" ; int cursorLocation = str . lastIndexOf ( "<STR_LIT>" ) + completeBehind . length ( ) - <NUM_LIT:1> ; String expectedCompletionNodeToString = "<STR_LIT>" ; String expectedParentNodeToString = "<STR_LIT>" ; String completionIdentifier = "<STR_LIT>" ; String expectedReplacedSource = "<STR_LIT>" ; String expectedUnitDisplayString = "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" ; checkDietParse ( str . toCharArray ( ) , cursorLocation , expectedCompletionNodeToString , expectedParentNodeToString , expectedUnitDisplayString , completionIdentifier , expectedReplacedSource , "<STR_LIT>" ) ; } public void test0022_Method ( ) { String str = "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" ; String completeBehind = "<STR_LIT>" ; int cursorLocation = str . lastIndexOf ( "<STR_LIT>" ) + completeBehind . length ( ) - <NUM_LIT:1> ; String expectedCompletionNodeToString = "<STR_LIT>" ; String expectedParentNodeToString = "<STR_LIT>" ; String completionIdentifier = "<STR_LIT>" ; String expectedReplacedSource = "<STR_LIT>" ; String expectedUnitDisplayString = "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" ; checkMethodParse ( str . toCharArray ( ) , cursorLocation , expectedCompletionNodeToString , expectedParentNodeToString , expectedUnitDisplayString , completionIdentifier , expectedReplacedSource , "<STR_LIT>" ) ; } public void test0023_Diet ( ) { String str = "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" ; String completeBehind = "<STR_LIT>" ; int cursorLocation = str . lastIndexOf ( "<STR_LIT>" ) + completeBehind . length ( ) - <NUM_LIT:1> ; String expectedCompletionNodeToString = "<STR_LIT>" ; String expectedParentNodeToString = "<STR_LIT>" ; String completionIdentifier = "<STR_LIT>" ; String expectedReplacedSource = "<STR_LIT>" ; String expectedUnitDisplayString = "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" ; checkDietParse ( str . toCharArray ( ) , cursorLocation , expectedCompletionNodeToString , expectedParentNodeToString , expectedUnitDisplayString , completionIdentifier , expectedReplacedSource , "<STR_LIT>" ) ; } public void test0023_Method ( ) { String str = "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" ; String completeBehind = "<STR_LIT>" ; int cursorLocation = str . lastIndexOf ( "<STR_LIT>" ) + completeBehind . length ( ) - <NUM_LIT:1> ; String expectedCompletionNodeToString = "<STR_LIT>" ; String expectedParentNodeToString = "<STR_LIT>" ; String completionIdentifier = "<STR_LIT>" ; String expectedReplacedSource = "<STR_LIT>" ; String expectedUnitDisplayString = "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" ; checkMethodParse ( str . toCharArray ( ) , cursorLocation , expectedCompletionNodeToString , expectedParentNodeToString , expectedUnitDisplayString , completionIdentifier , expectedReplacedSource , "<STR_LIT>" ) ; } public void test0024_Diet ( ) { String str = "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" ; String completeBehind = "<STR_LIT>" ; int cursorLocation = str . lastIndexOf ( "<STR_LIT>" ) + completeBehind . length ( ) - <NUM_LIT:1> ; String expectedCompletionNodeToString = "<STR_LIT>" ; String expectedParentNodeToString = "<STR_LIT>" ; String completionIdentifier = "<STR_LIT>" ; String expectedReplacedSource = "<STR_LIT>" ; String expectedUnitDisplayString = "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" ; checkDietParse ( str . toCharArray ( ) , cursorLocation , expectedCompletionNodeToString , expectedParentNodeToString , expectedUnitDisplayString , completionIdentifier , expectedReplacedSource , "<STR_LIT>" ) ; } public void test0024_Method ( ) { String str = "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" ; String completeBehind = "<STR_LIT>" ; int cursorLocation = str . lastIndexOf ( "<STR_LIT>" ) + completeBehind . length ( ) - <NUM_LIT:1> ; String expectedCompletionNodeToString = "<STR_LIT>" ; String expectedParentNodeToString = "<STR_LIT>" ; String completionIdentifier = "<STR_LIT>" ; String expectedReplacedSource = "<STR_LIT>" ; String expectedUnitDisplayString = "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" ; checkMethodParse ( str . toCharArray ( ) , cursorLocation , expectedCompletionNodeToString , expectedParentNodeToString , expectedUnitDisplayString , completionIdentifier , expectedReplacedSource , "<STR_LIT>" ) ; } public void test0025_Diet ( ) { String str = "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" ; String completeBehind = "<STR_LIT>" ; int cursorLocation = str . lastIndexOf ( "<STR_LIT>" ) + completeBehind . length ( ) - <NUM_LIT:1> ; String expectedCompletionNodeToString = "<STR_LIT>" ; String expectedParentNodeToString = "<STR_LIT>" ; String completionIdentifier = "<STR_LIT>" ; String expectedReplacedSource = "<STR_LIT>" ; String expectedUnitDisplayString = "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" ; checkDietParse ( str . toCharArray ( ) , cursorLocation , expectedCompletionNodeToString , expectedParentNodeToString , expectedUnitDisplayString , completionIdentifier , expectedReplacedSource , "<STR_LIT>" ) ; } public void test0025_Method ( ) { String str = "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" ; String completeBehind = "<STR_LIT>" ; int cursorLocation = str . lastIndexOf ( "<STR_LIT>" ) + completeBehind . length ( ) - <NUM_LIT:1> ; String expectedCompletionNodeToString = "<STR_LIT>" ; String expectedParentNodeToString = "<STR_LIT>" ; String completionIdentifier = "<STR_LIT>" ; String expectedReplacedSource = "<STR_LIT>" ; String expectedUnitDisplayString = "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" ; checkMethodParse ( str . toCharArray ( ) , cursorLocation , expectedCompletionNodeToString , expectedParentNodeToString , expectedUnitDisplayString , completionIdentifier , expectedReplacedSource , "<STR_LIT>" ) ; } public void test0026_Diet ( ) { String str = "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" ; String completeBehind = "<STR_LIT>" ; int cursorLocation = str . lastIndexOf ( "<STR_LIT>" ) + completeBehind . length ( ) - <NUM_LIT:1> ; String expectedCompletionNodeToString = "<STR_LIT>" ; String expectedParentNodeToString = "<STR_LIT>" ; String completionIdentifier = "<STR_LIT>" ; String expectedReplacedSource = "<STR_LIT>" ; String expectedUnitDisplayString = "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" ; checkDietParse ( str . toCharArray ( ) , cursorLocation , expectedCompletionNodeToString , expectedParentNodeToString , expectedUnitDisplayString , completionIdentifier , expectedReplacedSource , "<STR_LIT>" ) ; } public void test0026_Method ( ) { String str = "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" ; String completeBehind = "<STR_LIT>" ; int cursorLocation = str . lastIndexOf ( "<STR_LIT>" ) + completeBehind . length ( ) - <NUM_LIT:1> ; String expectedCompletionNodeToString = "<STR_LIT>" ; String expectedParentNodeToString = "<STR_LIT>" ; String completionIdentifier = "<STR_LIT>" ; String expectedReplacedSource = "<STR_LIT>" ; String expectedUnitDisplayString = "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" ; checkMethodParse ( str . toCharArray ( ) , cursorLocation , expectedCompletionNodeToString , expectedParentNodeToString , expectedUnitDisplayString , completionIdentifier , expectedReplacedSource , "<STR_LIT>" ) ; } public void test0027_Diet ( ) { String str = "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" ; String completeBehind = "<STR_LIT>" ; int cursorLocation = str . lastIndexOf ( "<STR_LIT>" ) + completeBehind . length ( ) - <NUM_LIT:1> ; String expectedCompletionNodeToString = "<STR_LIT>" ; String expectedParentNodeToString = "<STR_LIT>" ; String completionIdentifier = "<STR_LIT>" ; String expectedReplacedSource = "<STR_LIT>" ; String expectedUnitDisplayString = "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" ; checkDietParse ( str . toCharArray ( ) , cursorLocation , expectedCompletionNodeToString , expectedParentNodeToString , expectedUnitDisplayString , completionIdentifier , expectedReplacedSource , "<STR_LIT>" ) ; } public void test0027_Method ( ) { String str = "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" ; String completeBehind = "<STR_LIT>" ; int cursorLocation = str . lastIndexOf ( "<STR_LIT>" ) + completeBehind . length ( ) - <NUM_LIT:1> ; String expectedCompletionNodeToString = "<STR_LIT>" ; String expectedParentNodeToString = "<STR_LIT>" ; String completionIdentifier = "<STR_LIT>" ; String expectedReplacedSource = "<STR_LIT>" ; String expectedUnitDisplayString = "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" ; checkMethodParse ( str . toCharArray ( ) , cursorLocation , expectedCompletionNodeToString , expectedParentNodeToString , expectedUnitDisplayString , completionIdentifier , expectedReplacedSource , "<STR_LIT>" ) ; } public void test0028_Diet ( ) { String str = "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" ; String completeBehind = "<STR_LIT>" ; int cursorLocation = str . lastIndexOf ( "<STR_LIT>" ) + completeBehind . length ( ) - <NUM_LIT:1> ; String expectedCompletionNodeToString = "<STR_LIT>" ; String expectedParentNodeToString = "<STR_LIT>" ; String completionIdentifier = "<STR_LIT>" ; String expectedReplacedSource = "<STR_LIT>" ; String expectedUnitDisplayString = "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" ; checkDietParse ( str . toCharArray ( ) , cursorLocation , expectedCompletionNodeToString , expectedParentNodeToString , expectedUnitDisplayString , completionIdentifier , expectedReplacedSource , "<STR_LIT>" ) ; } public void test0028_Method ( ) { String str = "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" ; String completeBehind = "<STR_LIT>" ; int cursorLocation = str . lastIndexOf ( "<STR_LIT>" ) + completeBehind . length ( ) - <NUM_LIT:1> ; String expectedCompletionNodeToString = "<STR_LIT>" ; String expectedParentNodeToString = "<STR_LIT>" ; String completionIdentifier = "<STR_LIT>" ; String expectedReplacedSource = "<STR_LIT>" ; String expectedUnitDisplayString = "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" ; checkMethodParse ( str . toCharArray ( ) , cursorLocation , expectedCompletionNodeToString , expectedParentNodeToString , expectedUnitDisplayString , completionIdentifier , expectedReplacedSource , "<STR_LIT>" ) ; } public void test0029 ( ) { String str = "<STR_LIT>" ; String completeBehind = "<STR_LIT>" ; int cursorLocation = str . lastIndexOf ( "<STR_LIT>" ) + completeBehind . length ( ) - <NUM_LIT:1> ; String expectedCompletionNodeToString = "<STR_LIT>" ; String expectedParentNodeToString = "<STR_LIT>" ; String completionIdentifier = "<STR_LIT>" ; String expectedReplacedSource = "<STR_LIT>" ; String expectedUnitDisplayString = "<STR_LIT>" ; checkDietParse ( str . toCharArray ( ) , cursorLocation , expectedCompletionNodeToString , expectedParentNodeToString , expectedUnitDisplayString , completionIdentifier , expectedReplacedSource , "<STR_LIT>" ) ; } public void test0030 ( ) { String str = "<STR_LIT>" ; String completeBehind = "<STR_LIT>" ; int cursorLocation = str . lastIndexOf ( "<STR_LIT>" ) + completeBehind . length ( ) - <NUM_LIT:1> ; String expectedCompletionNodeToString = "<STR_LIT>" ; String expectedParentNodeToString = "<STR_LIT>" ; String completionIdentifier = "<STR_LIT>" ; String expectedReplacedSource = "<STR_LIT>" ; String expectedUnitDisplayString = "<STR_LIT>" ; checkDietParse ( str . toCharArray ( ) , cursorLocation , expectedCompletionNodeToString , expectedParentNodeToString , expectedUnitDisplayString , completionIdentifier , expectedReplacedSource , "<STR_LIT>" ) ; } public void test0031 ( ) { String str = "<STR_LIT>" ; String completeBehind = "<STR_LIT>" ; int cursorLocation = str . lastIndexOf ( "<STR_LIT>" ) + completeBehind . length ( ) - <NUM_LIT:1> ; String expectedCompletionNodeToString = "<STR_LIT>" ; String expectedParentNodeToString = "<STR_LIT>" ; String completionIdentifier = "<STR_LIT>" ; String expectedReplacedSource = "<STR_LIT>" ; String expectedUnitDisplayString = "<STR_LIT>" ; checkDietParse ( str . toCharArray ( ) , cursorLocation , expectedCompletionNodeToString , expectedParentNodeToString , expectedUnitDisplayString , completionIdentifier , expectedReplacedSource , "<STR_LIT>" ) ; } public void test0032 ( ) { String str = "<STR_LIT>" ; String completeBehind = "<STR_LIT>" ; int cursorLocation = str . lastIndexOf ( "<STR_LIT>" ) + completeBehind . length ( ) - <NUM_LIT:1> ; String expectedCompletionNodeToString = "<STR_LIT>" ; String expectedParentNodeToString = "<STR_LIT>" ; String completionIdentifier = "<STR_LIT>" ; String expectedReplacedSource = "<STR_LIT>" ; String expectedUnitDisplayString = "<STR_LIT>" ; checkDietParse ( str . toCharArray ( ) , cursorLocation , expectedCompletionNodeToString , expectedParentNodeToString , expectedUnitDisplayString , completionIdentifier , expectedReplacedSource , "<STR_LIT>" ) ; } public void test0033 ( ) { String str = "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT:}>" ; String completeBehind = "<STR_LIT>" ; int cursorLocation = str . lastIndexOf ( "<STR_LIT>" ) + completeBehind . length ( ) - <NUM_LIT:1> ; String expectedCompletionNodeToString = "<STR_LIT>" ; String expectedParentNodeToString = "<STR_LIT>" ; String completionIdentifier = "<STR_LIT>" ; String expectedReplacedSource = "<STR_LIT>" ; String expectedUnitDisplayString = "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" ; checkDietParse ( str . toCharArray ( ) , cursorLocation , expectedCompletionNodeToString , expectedParentNodeToString , expectedUnitDisplayString , completionIdentifier , expectedReplacedSource , "<STR_LIT>" ) ; } public void test0034 ( ) { String str = "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT:}>" ; String completeBehind = "<STR_LIT>" ; int cursorLocation = str . lastIndexOf ( "<STR_LIT>" ) + completeBehind . length ( ) - <NUM_LIT:1> ; String expectedCompletionNodeToString = "<STR_LIT>" ; String expectedParentNodeToString = "<STR_LIT>" ; String completionIdentifier = "<STR_LIT>" ; String expectedReplacedSource = "<STR_LIT>" ; String expectedUnitDisplayString = "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" ; checkDietParse ( str . toCharArray ( ) , cursorLocation , expectedCompletionNodeToString , expectedParentNodeToString , expectedUnitDisplayString , completionIdentifier , expectedReplacedSource , "<STR_LIT>" ) ; } public void test0035 ( ) { String str = "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT:}>" ; String completeBehind = "<STR_LIT>" ; int cursorLocation = str . lastIndexOf ( "<STR_LIT>" ) + completeBehind . length ( ) - <NUM_LIT:1> ; String expectedCompletionNodeToString = "<STR_LIT>" ; String expectedParentNodeToString = "<STR_LIT>" ; String completionIdentifier = "<STR_LIT>" ; String expectedReplacedSource = "<STR_LIT>" ; String expectedUnitDisplayString = "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" ; checkDietParse ( str . toCharArray ( ) , cursorLocation , expectedCompletionNodeToString , expectedParentNodeToString , expectedUnitDisplayString , completionIdentifier , expectedReplacedSource , "<STR_LIT>" ) ; } public void test0036 ( ) { String str = "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT:}>" ; String completeBehind = "<STR_LIT>" ; int cursorLocation = str . lastIndexOf ( "<STR_LIT>" ) + completeBehind . length ( ) - <NUM_LIT:1> ; String expectedCompletionNodeToString = "<STR_LIT>" ; String expectedParentNodeToString = "<STR_LIT>" ; String completionIdentifier = "<STR_LIT>" ; String expectedReplacedSource = "<STR_LIT>" ; String expectedUnitDisplayString = "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" ; checkDietParse ( str . toCharArray ( ) , cursorLocation , expectedCompletionNodeToString , expectedParentNodeToString , expectedUnitDisplayString , completionIdentifier , expectedReplacedSource , "<STR_LIT>" ) ; } public void test0037_Diet ( ) { String str = "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT:}>" ; String completeBehind = "<STR_LIT>" ; int cursorLocation = str . lastIndexOf ( "<STR_LIT>" ) + completeBehind . length ( ) - <NUM_LIT:1> ; String expectedCompletionNodeToString = "<STR_LIT>" ; String expectedParentNodeToString = "<STR_LIT>" ; String completionIdentifier = "<STR_LIT>" ; String expectedReplacedSource = "<STR_LIT>" ; String expectedUnitDisplayString = "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" ; checkDietParse ( str . toCharArray ( ) , cursorLocation , expectedCompletionNodeToString , expectedParentNodeToString , expectedUnitDisplayString , completionIdentifier , expectedReplacedSource , "<STR_LIT>" ) ; } public void test0037_Method ( ) { String str = "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT:}>" ; String completeBehind = "<STR_LIT>" ; int cursorLocation = str . lastIndexOf ( "<STR_LIT>" ) + completeBehind . length ( ) - <NUM_LIT:1> ; String expectedCompletionNodeToString = "<STR_LIT>" ; String expectedParentNodeToString = "<STR_LIT>" ; String completionIdentifier = "<STR_LIT>" ; String expectedReplacedSource = "<STR_LIT>" ; String expectedUnitDisplayString = "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" ; checkMethodParse ( str . toCharArray ( ) , cursorLocation , expectedCompletionNodeToString , expectedParentNodeToString , expectedUnitDisplayString , completionIdentifier , expectedReplacedSource , "<STR_LIT>" ) ; } public void test0038_Diet ( ) { String str = "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT:}>" ; String completeBehind = "<STR_LIT>" ; int cursorLocation = str . lastIndexOf ( "<STR_LIT>" ) + completeBehind . length ( ) - <NUM_LIT:1> ; String expectedCompletionNodeToString = "<STR_LIT>" ; String expectedParentNodeToString = "<STR_LIT>" ; String completionIdentifier = "<STR_LIT>" ; String expectedReplacedSource = "<STR_LIT>" ; String expectedUnitDisplayString = "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" ; checkDietParse ( str . toCharArray ( ) , cursorLocation , expectedCompletionNodeToString , expectedParentNodeToString , expectedUnitDisplayString , completionIdentifier , expectedReplacedSource , "<STR_LIT>" ) ; } public void test0038_Method ( ) { String str = "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT:}>" ; String completeBehind = "<STR_LIT>" ; int cursorLocation = str . lastIndexOf ( "<STR_LIT>" ) + completeBehind . length ( ) - <NUM_LIT:1> ; String expectedCompletionNodeToString = "<STR_LIT>" ; String expectedParentNodeToString = "<STR_LIT>" ; String completionIdentifier = "<STR_LIT>" ; String expectedReplacedSource = "<STR_LIT>" ; String expectedUnitDisplayString = "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" ; checkMethodParse ( str . toCharArray ( ) , cursorLocation , expectedCompletionNodeToString , expectedParentNodeToString , expectedUnitDisplayString , completionIdentifier , expectedReplacedSource , "<STR_LIT>" ) ; } public void test0039_Diet ( ) { String str = "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT:}>" ; String completeBehind = "<STR_LIT>" ; int cursorLocation = str . lastIndexOf ( "<STR_LIT>" ) + completeBehind . length ( ) - <NUM_LIT:1> ; String expectedCompletionNodeToString = "<STR_LIT>" ; String expectedParentNodeToString = "<STR_LIT>" ; String completionIdentifier = "<STR_LIT>" ; String expectedReplacedSource = "<STR_LIT>" ; String expectedUnitDisplayString = "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" ; checkDietParse ( str . toCharArray ( ) , cursorLocation , expectedCompletionNodeToString , expectedParentNodeToString , expectedUnitDisplayString , completionIdentifier , expectedReplacedSource , "<STR_LIT>" ) ; } public void test0039_Method ( ) { String str = "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT:}>" ; String completeBehind = "<STR_LIT>" ; int cursorLocation = str . lastIndexOf ( "<STR_LIT>" ) + completeBehind . length ( ) - <NUM_LIT:1> ; String expectedCompletionNodeToString = "<STR_LIT>" ; String expectedParentNodeToString = "<STR_LIT>" ; String completionIdentifier = "<STR_LIT>" ; String expectedReplacedSource = "<STR_LIT>" ; String expectedUnitDisplayString = "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" ; checkMethodParse ( str . toCharArray ( ) , cursorLocation , expectedCompletionNodeToString , expectedParentNodeToString , expectedUnitDisplayString , completionIdentifier , expectedReplacedSource , "<STR_LIT>" ) ; } public void test0040_Diet ( ) { String str = "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" ; String completeBehind = "<STR_LIT>" ; int cursorLocation = str . lastIndexOf ( "<STR_LIT>" ) + completeBehind . length ( ) - <NUM_LIT:1> ; String expectedCompletionNodeToString = "<STR_LIT>" ; String expectedParentNodeToString = "<STR_LIT>" ; String completionIdentifier = "<STR_LIT>" ; String expectedReplacedSource = "<STR_LIT>" ; String expectedUnitDisplayString = "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" ; checkDietParse ( str . toCharArray ( ) , cursorLocation , expectedCompletionNodeToString , expectedParentNodeToString , expectedUnitDisplayString , completionIdentifier , expectedReplacedSource , "<STR_LIT>" ) ; } public void test0040_Method ( ) { String str = "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" ; String completeBehind = "<STR_LIT>" ; int cursorLocation = str . lastIndexOf ( "<STR_LIT>" ) + completeBehind . length ( ) - <NUM_LIT:1> ; String expectedCompletionNodeToString = "<STR_LIT>" ; String expectedParentNodeToString = "<STR_LIT>" ; String completionIdentifier = "<STR_LIT>" ; String expectedReplacedSource = "<STR_LIT>" ; String expectedUnitDisplayString = "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" ; checkMethodParse ( str . toCharArray ( ) , cursorLocation , expectedCompletionNodeToString , expectedParentNodeToString , expectedUnitDisplayString , completionIdentifier , expectedReplacedSource , "<STR_LIT>" ) ; } public void test0041_Diet ( ) { String str = "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" ; String completeBehind = "<STR_LIT>" ; int cursorLocation = str . lastIndexOf ( "<STR_LIT>" ) + completeBehind . length ( ) - <NUM_LIT:1> ; String expectedCompletionNodeToString = "<STR_LIT>" ; String expectedParentNodeToString = "<STR_LIT>" ; String completionIdentifier = "<STR_LIT>" ; String expectedReplacedSource = "<STR_LIT>" ; String expectedUnitDisplayString = "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" ; checkDietParse ( str . toCharArray ( ) , cursorLocation , expectedCompletionNodeToString , expectedParentNodeToString , expectedUnitDisplayString , completionIdentifier , expectedReplacedSource , "<STR_LIT>" ) ; } public void test0041_Method ( ) { String str = "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" ; String completeBehind = "<STR_LIT>" ; int cursorLocation = str . lastIndexOf ( "<STR_LIT>" ) + completeBehind . length ( ) - <NUM_LIT:1> ; String expectedCompletionNodeToString = "<STR_LIT>" ; String expectedParentNodeToString = "<STR_LIT>" ; String completionIdentifier = "<STR_LIT>" ; String expectedReplacedSource = "<STR_LIT>" ; String expectedUnitDisplayString = "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" ; checkMethodParse ( str . toCharArray ( ) , cursorLocation , expectedCompletionNodeToString , expectedParentNodeToString , expectedUnitDisplayString , completionIdentifier , expectedReplacedSource , "<STR_LIT>" ) ; } public void test0042_Diet ( ) { String str = "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" ; String completeBehind = "<STR_LIT>" ; int cursorLocation = str . lastIndexOf ( "<STR_LIT>" ) + completeBehind . length ( ) - <NUM_LIT:1> ; String expectedCompletionNodeToString = "<STR_LIT>" ; String expectedParentNodeToString = "<STR_LIT>" ; String completionIdentifier = "<STR_LIT>" ; String expectedReplacedSource = "<STR_LIT>" ; String expectedUnitDisplayString = "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" ; checkDietParse ( str . toCharArray ( ) , cursorLocation , expectedCompletionNodeToString , expectedParentNodeToString , expectedUnitDisplayString , completionIdentifier , expectedReplacedSource , "<STR_LIT>" ) ; } public void test0042_Method ( ) { String str = "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" ; String completeBehind = "<STR_LIT>" ; int cursorLocation = str . lastIndexOf ( "<STR_LIT>" ) + completeBehind . length ( ) - <NUM_LIT:1> ; String expectedCompletionNodeToString = "<STR_LIT>" ; String expectedParentNodeToString = "<STR_LIT>" ; String completionIdentifier = "<STR_LIT>" ; String expectedReplacedSource = "<STR_LIT>" ; String expectedUnitDisplayString = "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" ; checkMethodParse ( str . toCharArray ( ) , cursorLocation , expectedCompletionNodeToString , expectedParentNodeToString , expectedUnitDisplayString , completionIdentifier , expectedReplacedSource , "<STR_LIT>" ) ; } public void test0043_Diet ( ) { String str = "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" ; String completeBehind = "<STR_LIT>" ; int cursorLocation = str . lastIndexOf ( "<STR_LIT>" ) + completeBehind . length ( ) - <NUM_LIT:1> ; String expectedCompletionNodeToString = "<STR_LIT>" ; String expectedParentNodeToString = "<STR_LIT>" ; String completionIdentifier = "<STR_LIT>" ; String expectedReplacedSource = "<STR_LIT>" ; String expectedUnitDisplayString = "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" ; checkDietParse ( str . toCharArray ( ) , cursorLocation , expectedCompletionNodeToString , expectedParentNodeToString , expectedUnitDisplayString , completionIdentifier , expectedReplacedSource , "<STR_LIT>" ) ; } public void test0043_Method ( ) { String str = "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" ; String completeBehind = "<STR_LIT>" ; int cursorLocation = str . lastIndexOf ( "<STR_LIT>" ) + completeBehind . length ( ) - <NUM_LIT:1> ; String expectedCompletionNodeToString = "<STR_LIT>" ; String expectedParentNodeToString = "<STR_LIT>" ; String completionIdentifier = "<STR_LIT>" ; String expectedReplacedSource = "<STR_LIT>" ; String expectedUnitDisplayString = "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" ; checkMethodParse ( str . toCharArray ( ) , cursorLocation , expectedCompletionNodeToString , expectedParentNodeToString , expectedUnitDisplayString , completionIdentifier , expectedReplacedSource , "<STR_LIT>" ) ; } public void test0044_Diet ( ) { String str = "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" ; String completeBehind = "<STR_LIT>" ; int cursorLocation = str . lastIndexOf ( "<STR_LIT>" ) + completeBehind . length ( ) - <NUM_LIT:1> ; String expectedCompletionNodeToString = "<STR_LIT>" ; String expectedParentNodeToString = "<STR_LIT>" ; String completionIdentifier = "<STR_LIT>" ; String expectedReplacedSource = "<STR_LIT>" ; String expectedUnitDisplayString = "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" ; checkDietParse ( str . toCharArray ( ) , cursorLocation , expectedCompletionNodeToString , expectedParentNodeToString , expectedUnitDisplayString , completionIdentifier , expectedReplacedSource , "<STR_LIT>" ) ; } public void test0044_Method ( ) { String str = "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" ; String completeBehind = "<STR_LIT>" ; int cursorLocation = str . lastIndexOf ( "<STR_LIT>" ) + completeBehind . length ( ) - <NUM_LIT:1> ; String expectedCompletionNodeToString = "<STR_LIT>" ; String expectedParentNodeToString = "<STR_LIT>" ; String completionIdentifier = "<STR_LIT>" ; String expectedReplacedSource = "<STR_LIT>" ; String expectedUnitDisplayString = "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" ; checkMethodParse ( str . toCharArray ( ) , cursorLocation , expectedCompletionNodeToString , expectedParentNodeToString , expectedUnitDisplayString , completionIdentifier , expectedReplacedSource , "<STR_LIT>" ) ; } public void test0045_Diet ( ) { String str = "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" ; String completeBehind = "<STR_LIT>" ; int cursorLocation = str . lastIndexOf ( "<STR_LIT>" ) + completeBehind . length ( ) - <NUM_LIT:1> ; String expectedCompletionNodeToString = "<STR_LIT>" ; String expectedParentNodeToString = "<STR_LIT>" ; String completionIdentifier = "<STR_LIT>" ; String expectedReplacedSource = "<STR_LIT>" ; String expectedUnitDisplayString = "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" ; checkDietParse ( str . toCharArray ( ) , cursorLocation , expectedCompletionNodeToString , expectedParentNodeToString , expectedUnitDisplayString , completionIdentifier , expectedReplacedSource , "<STR_LIT>" ) ; } public void test0045_Method ( ) { String str = "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" ; String completeBehind = "<STR_LIT>" ; int cursorLocation = str . lastIndexOf ( "<STR_LIT>" ) + completeBehind . length ( ) - <NUM_LIT:1> ; String expectedCompletionNodeToString = "<STR_LIT>" ; String expectedParentNodeToString = "<STR_LIT>" ; String completionIdentifier = "<STR_LIT>" ; String expectedReplacedSource = "<STR_LIT>" ; String expectedUnitDisplayString = "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" ; checkMethodParse ( str . toCharArray ( ) , cursorLocation , expectedCompletionNodeToString , expectedParentNodeToString , expectedUnitDisplayString , completionIdentifier , expectedReplacedSource , "<STR_LIT>" ) ; } public void test0046_Diet ( ) { String str = "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" ; String completeBehind = "<STR_LIT>" ; int cursorLocation = str . lastIndexOf ( "<STR_LIT>" ) + completeBehind . length ( ) - <NUM_LIT:1> ; String expectedCompletionNodeToString = "<STR_LIT>" ; String expectedParentNodeToString = "<STR_LIT>" ; String completionIdentifier = "<STR_LIT>" ; String expectedReplacedSource = "<STR_LIT>" ; String expectedUnitDisplayString = "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" ; checkDietParse ( str . toCharArray ( ) , cursorLocation , expectedCompletionNodeToString , expectedParentNodeToString , expectedUnitDisplayString , completionIdentifier , expectedReplacedSource , "<STR_LIT>" ) ; } public void test0046_Method ( ) { String str = "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" ; String completeBehind = "<STR_LIT>" ; int cursorLocation = str . lastIndexOf ( "<STR_LIT>" ) + completeBehind . length ( ) - <NUM_LIT:1> ; String expectedCompletionNodeToString = "<STR_LIT>" ; String expectedParentNodeToString = "<STR_LIT>" ; String completionIdentifier = "<STR_LIT>" ; String expectedReplacedSource = "<STR_LIT>" ; String expectedUnitDisplayString = "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" ; checkMethodParse ( str . toCharArray ( ) , cursorLocation , expectedCompletionNodeToString , expectedParentNodeToString , expectedUnitDisplayString , completionIdentifier , expectedReplacedSource , "<STR_LIT>" ) ; } public void test0047 ( ) { String str = "<STR_LIT>" ; String completeBehind = "<STR_LIT>" ; int cursorLocation = str . lastIndexOf ( "<STR_LIT>" ) + completeBehind . length ( ) - <NUM_LIT:1> ; String expectedCompletionNodeToString = "<STR_LIT>" ; String expectedParentNodeToString = "<STR_LIT>" ; String completionIdentifier = "<STR_LIT>" ; String expectedReplacedSource = "<STR_LIT>" ; String expectedUnitDisplayString = "<STR_LIT>" ; checkDietParse ( str . toCharArray ( ) , cursorLocation , expectedCompletionNodeToString , expectedParentNodeToString , expectedUnitDisplayString , completionIdentifier , expectedReplacedSource , "<STR_LIT>" ) ; } public void test0048 ( ) { String str = "<STR_LIT>" ; String completeBehind = "<STR_LIT>" ; int cursorLocation = str . lastIndexOf ( "<STR_LIT>" ) + completeBehind . length ( ) - <NUM_LIT:1> ; String expectedCompletionNodeToString = "<STR_LIT>" ; String expectedParentNodeToString = "<STR_LIT>" ; String completionIdentifier = "<STR_LIT>" ; String expectedReplacedSource = "<STR_LIT>" ; String expectedUnitDisplayString = "<STR_LIT>" ; checkDietParse ( str . toCharArray ( ) , cursorLocation , expectedCompletionNodeToString , expectedParentNodeToString , expectedUnitDisplayString , completionIdentifier , expectedReplacedSource , "<STR_LIT>" ) ; } public void test0049 ( ) { String str = "<STR_LIT>" ; String completeBehind = "<STR_LIT>" ; int cursorLocation = str . lastIndexOf ( "<STR_LIT>" ) + completeBehind . length ( ) - <NUM_LIT:1> ; String expectedCompletionNodeToString = "<STR_LIT>" ; String expectedParentNodeToString = "<STR_LIT>" ; String completionIdentifier = "<STR_LIT>" ; String expectedReplacedSource = "<STR_LIT>" ; String expectedUnitDisplayString = "<STR_LIT>" ; checkDietParse ( str . toCharArray ( ) , cursorLocation , expectedCompletionNodeToString , expectedParentNodeToString , expectedUnitDisplayString , completionIdentifier , expectedReplacedSource , "<STR_LIT>" ) ; } public void test0050 ( ) { String str = "<STR_LIT>" ; String completeBehind = "<STR_LIT>" ; int cursorLocation = str . lastIndexOf ( "<STR_LIT>" ) + completeBehind . length ( ) - <NUM_LIT:1> ; String expectedCompletionNodeToString = "<STR_LIT>" ; String expectedParentNodeToString = "<STR_LIT>" ; String completionIdentifier = "<STR_LIT>" ; String expectedReplacedSource = "<STR_LIT>" ; String expectedUnitDisplayString = "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" ; checkDietParse ( str . toCharArray ( ) , cursorLocation , expectedCompletionNodeToString , expectedParentNodeToString , expectedUnitDisplayString , completionIdentifier , expectedReplacedSource , "<STR_LIT>" ) ; } public void test0051 ( ) { String str = "<STR_LIT>" ; String completeBehind = "<STR_LIT>" ; int cursorLocation = str . lastIndexOf ( "<STR_LIT>" ) + completeBehind . length ( ) - <NUM_LIT:1> ; String expectedCompletionNodeToString = "<STR_LIT>" ; String expectedParentNodeToString = "<STR_LIT>" ; String completionIdentifier = "<STR_LIT>" ; String expectedReplacedSource = "<STR_LIT>" ; String expectedUnitDisplayString = "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" ; checkDietParse ( str . toCharArray ( ) , cursorLocation , expectedCompletionNodeToString , expectedParentNodeToString , expectedUnitDisplayString , completionIdentifier , expectedReplacedSource , "<STR_LIT>" ) ; } public void test0052 ( ) { String str = "<STR_LIT>" ; String completeBehind = "<STR_LIT>" ; int cursorLocation = str . lastIndexOf ( "<STR_LIT>" ) + completeBehind . length ( ) - <NUM_LIT:1> ; String expectedCompletionNodeToString = "<STR_LIT>" ; String expectedParentNodeToString = "<STR_LIT>" ; String completionIdentifier = "<STR_LIT>" ; String expectedReplacedSource = "<STR_LIT>" ; String expectedUnitDisplayString = "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" ; checkDietParse ( str . toCharArray ( ) , cursorLocation , expectedCompletionNodeToString , expectedParentNodeToString , expectedUnitDisplayString , completionIdentifier , expectedReplacedSource , "<STR_LIT>" ) ; } public void test0053 ( ) { String str = "<STR_LIT>" ; String completeBehind = "<STR_LIT>" ; int cursorLocation = str . lastIndexOf ( "<STR_LIT>" ) + completeBehind . length ( ) - <NUM_LIT:1> ; String expectedCompletionNodeToString = "<STR_LIT>" ; String expectedParentNodeToString = "<STR_LIT>" ; String completionIdentifier = "<STR_LIT>" ; String expectedReplacedSource = "<STR_LIT>" ; String expectedUnitDisplayString = "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" ; checkDietParse ( str . toCharArray ( ) , cursorLocation , expectedCompletionNodeToString , expectedParentNodeToString , expectedUnitDisplayString , completionIdentifier , expectedReplacedSource , "<STR_LIT>" ) ; } public void test0054 ( ) { String str = "<STR_LIT>" ; String completeBehind = "<STR_LIT>" ; int cursorLocation = str . lastIndexOf ( "<STR_LIT>" ) + completeBehind . length ( ) - <NUM_LIT:1> ; String expectedCompletionNodeToString = "<STR_LIT>" ; String expectedParentNodeToString = "<STR_LIT>" ; String completionIdentifier = "<STR_LIT>" ; String expectedReplacedSource = "<STR_LIT>" ; String expectedUnitDisplayString = "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" ; checkDietParse ( str . toCharArray ( ) , cursorLocation , expectedCompletionNodeToString , expectedParentNodeToString , expectedUnitDisplayString , completionIdentifier , expectedReplacedSource , "<STR_LIT>" ) ; } public void test0055_Diet ( ) { String str = "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" ; String completeBehind = "<STR_LIT>" ; int cursorLocation = str . lastIndexOf ( "<STR_LIT>" ) + completeBehind . length ( ) - <NUM_LIT:1> ; String expectedCompletionNodeToString = "<STR_LIT>" ; String expectedParentNodeToString = "<STR_LIT>" ; String completionIdentifier = "<STR_LIT>" ; String expectedReplacedSource = "<STR_LIT>" ; String expectedUnitDisplayString = "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" ; checkDietParse ( str . toCharArray ( ) , cursorLocation , expectedCompletionNodeToString , expectedParentNodeToString , expectedUnitDisplayString , completionIdentifier , expectedReplacedSource , "<STR_LIT>" ) ; } public void test0055_Method ( ) { String str = "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" ; String completeBehind = "<STR_LIT>" ; int cursorLocation = str . lastIndexOf ( "<STR_LIT>" ) + completeBehind . length ( ) - <NUM_LIT:1> ; String expectedCompletionNodeToString = "<STR_LIT>" ; String expectedParentNodeToString = "<STR_LIT>" ; String completionIdentifier = "<STR_LIT>" ; String expectedReplacedSource = "<STR_LIT>" ; String expectedUnitDisplayString = "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" ; checkMethodParse ( str . toCharArray ( ) , cursorLocation , expectedCompletionNodeToString , expectedParentNodeToString , expectedUnitDisplayString , completionIdentifier , expectedReplacedSource , "<STR_LIT>" ) ; } public void test0056_Diet ( ) { String str = "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" ; String completeBehind = "<STR_LIT>" ; int cursorLocation = str . lastIndexOf ( "<STR_LIT>" ) + completeBehind . length ( ) - <NUM_LIT:1> ; String expectedCompletionNodeToString = "<STR_LIT>" ; String expectedParentNodeToString = "<STR_LIT>" ; String completionIdentifier = "<STR_LIT>" ; String expectedReplacedSource = "<STR_LIT>" ; String expectedUnitDisplayString = "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" ; checkDietParse ( str . toCharArray ( ) , cursorLocation , expectedCompletionNodeToString , expectedParentNodeToString , expectedUnitDisplayString , completionIdentifier , expectedReplacedSource , "<STR_LIT>" ) ; } public void test0056_Method ( ) { String str = "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" ; String completeBehind = "<STR_LIT>" ; int cursorLocation = str . lastIndexOf ( "<STR_LIT>" ) + completeBehind . length ( ) - <NUM_LIT:1> ; String expectedCompletionNodeToString = "<STR_LIT>" ; String expectedParentNodeToString = "<STR_LIT>" ; String completionIdentifier = "<STR_LIT>" ; String expectedReplacedSource = "<STR_LIT>" ; String expectedUnitDisplayString = "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" ; checkMethodParse ( str . toCharArray ( ) , cursorLocation , expectedCompletionNodeToString , expectedParentNodeToString , expectedUnitDisplayString , completionIdentifier , expectedReplacedSource , "<STR_LIT>" ) ; } public void test0057_Diet ( ) { String str = "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" ; String completeBehind = "<STR_LIT>" ; int cursorLocation = str . lastIndexOf ( "<STR_LIT>" ) + completeBehind . length ( ) - <NUM_LIT:1> ; String expectedCompletionNodeToString = "<STR_LIT>" ; String expectedParentNodeToString = "<STR_LIT>" ; String completionIdentifier = "<STR_LIT>" ; String expectedReplacedSource = "<STR_LIT>" ; String expectedUnitDisplayString = "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" ; checkDietParse ( str . toCharArray ( ) , cursorLocation , expectedCompletionNodeToString , expectedParentNodeToString , expectedUnitDisplayString , completionIdentifier , expectedReplacedSource , "<STR_LIT>" ) ; } public void test0057_Method ( ) { String str = "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" ; String completeBehind = "<STR_LIT>" ; int cursorLocation = str . lastIndexOf ( "<STR_LIT>" ) + completeBehind . length ( ) - <NUM_LIT:1> ; String expectedCompletionNodeToString = "<STR_LIT>" ; String expectedParentNodeToString = "<STR_LIT>" ; String completionIdentifier = "<STR_LIT>" ; String expectedReplacedSource = "<STR_LIT>" ; String expectedUnitDisplayString = "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" ; checkMethodParse ( str . toCharArray ( ) , cursorLocation , expectedCompletionNodeToString , expectedParentNodeToString , expectedUnitDisplayString , completionIdentifier , expectedReplacedSource , "<STR_LIT>" ) ; } public void test0058_Diet ( ) { String str = "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" ; String completeBehind = "<STR_LIT>" ; int cursorLocation = str . lastIndexOf ( "<STR_LIT>" ) + completeBehind . length ( ) - <NUM_LIT:1> ; String expectedCompletionNodeToString = "<STR_LIT>" ; String expectedParentNodeToString = "<STR_LIT>" ; String completionIdentifier = "<STR_LIT>" ; String expectedReplacedSource = "<STR_LIT>" ; String expectedUnitDisplayString = "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" ; checkDietParse ( str . toCharArray ( ) , cursorLocation , expectedCompletionNodeToString , expectedParentNodeToString , expectedUnitDisplayString , completionIdentifier , expectedReplacedSource , "<STR_LIT>" ) ; } public void test0058_Method ( ) { String str = "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" ; String completeBehind = "<STR_LIT>" ; int cursorLocation = str . lastIndexOf ( "<STR_LIT>" ) + completeBehind . length ( ) - <NUM_LIT:1> ; String expectedCompletionNodeToString = "<STR_LIT>" ; String expectedParentNodeToString = "<STR_LIT>" ; String completionIdentifier = "<STR_LIT>" ; String expectedReplacedSource = "<STR_LIT>" ; String expectedUnitDisplayString = "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" ; checkMethodParse ( str . toCharArray ( ) , cursorLocation , expectedCompletionNodeToString , expectedParentNodeToString , expectedUnitDisplayString , completionIdentifier , expectedReplacedSource , "<STR_LIT>" ) ; } public void test0059_Diet ( ) { String str = "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" ; String completeBehind = "<STR_LIT>" ; int cursorLocation = str . lastIndexOf ( "<STR_LIT>" ) + completeBehind . length ( ) - <NUM_LIT:1> ; String expectedCompletionNodeToString = "<STR_LIT>" ; String expectedParentNodeToString = "<STR_LIT>" ; String completionIdentifier = "<STR_LIT>" ; String expectedReplacedSource = "<STR_LIT>" ; String expectedUnitDisplayString = "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" ; checkDietParse ( str . toCharArray ( ) , cursorLocation , expectedCompletionNodeToString , expectedParentNodeToString , expectedUnitDisplayString , completionIdentifier , expectedReplacedSource , "<STR_LIT>" ) ; } public void test0059_Method ( ) { String str = "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" ; String completeBehind = "<STR_LIT>" ; int cursorLocation = str . lastIndexOf ( "<STR_LIT>" ) + completeBehind . length ( ) - <NUM_LIT:1> ; String expectedCompletionNodeToString = "<STR_LIT>" ; String expectedParentNodeToString = "<STR_LIT>" ; String completionIdentifier = "<STR_LIT>" ; String expectedReplacedSource = "<STR_LIT>" ; String expectedUnitDisplayString = "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" ; checkMethodParse ( str . toCharArray ( ) , cursorLocation , expectedCompletionNodeToString , expectedParentNodeToString , expectedUnitDisplayString , completionIdentifier , expectedReplacedSource , "<STR_LIT>" ) ; } public void test0060 ( ) { String str = "<STR_LIT>" ; String completeBehind = "<STR_LIT>" ; int cursorLocation = str . lastIndexOf ( "<STR_LIT>" ) + completeBehind . length ( ) - <NUM_LIT:1> ; String expectedCompletionNodeToString = "<STR_LIT>" ; String expectedParentNodeToString = "<STR_LIT>" ; String completionIdentifier = "<STR_LIT>" ; String expectedReplacedSource = "<STR_LIT>" ; String expectedUnitDisplayString = "<STR_LIT>" ; checkDietParse ( str . toCharArray ( ) , cursorLocation , expectedCompletionNodeToString , expectedParentNodeToString , expectedUnitDisplayString , completionIdentifier , expectedReplacedSource , "<STR_LIT>" ) ; } public void test0061 ( ) { String str = "<STR_LIT>" ; String completeBehind = "<STR_LIT>" ; int cursorLocation = str . lastIndexOf ( "<STR_LIT>" ) + completeBehind . length ( ) - <NUM_LIT:1> ; String expectedCompletionNodeToString = "<STR_LIT>" ; String expectedParentNodeToString = "<STR_LIT>" ; String completionIdentifier = "<STR_LIT>" ; String expectedReplacedSource = "<STR_LIT>" ; String expectedUnitDisplayString = "<STR_LIT>" ; checkDietParse ( str . toCharArray ( ) , cursorLocation , expectedCompletionNodeToString , expectedParentNodeToString , expectedUnitDisplayString , completionIdentifier , expectedReplacedSource , "<STR_LIT>" ) ; } public void test0062 ( ) { String str = "<STR_LIT>" ; String completeBehind = "<STR_LIT>" ; int cursorLocation = str . lastIndexOf ( "<STR_LIT>" ) + completeBehind . length ( ) - <NUM_LIT:1> ; String expectedCompletionNodeToString = "<STR_LIT>" ; String expectedParentNodeToString = "<STR_LIT>" ; String completionIdentifier = "<STR_LIT>" ; String expectedReplacedSource = "<STR_LIT>" ; String expectedUnitDisplayString = "<STR_LIT>" ; checkDietParse ( str . toCharArray ( ) , cursorLocation , expectedCompletionNodeToString , expectedParentNodeToString , expectedUnitDisplayString , completionIdentifier , expectedReplacedSource , "<STR_LIT>" ) ; } public void test0063 ( ) { String str = "<STR_LIT>" ; String completeBehind = "<STR_LIT>" ; int cursorLocation = str . lastIndexOf ( "<STR_LIT>" ) + completeBehind . length ( ) - <NUM_LIT:1> ; String expectedCompletionNodeToString = "<STR_LIT>" ; String expectedParentNodeToString = "<STR_LIT>" ; String completionIdentifier = "<STR_LIT>" ; String expectedReplacedSource = "<STR_LIT>" ; String expectedUnitDisplayString = "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" ; checkDietParse ( str . toCharArray ( ) , cursorLocation , expectedCompletionNodeToString , expectedParentNodeToString , expectedUnitDisplayString , completionIdentifier , expectedReplacedSource , "<STR_LIT>" ) ; } public void test0064 ( ) { String str = "<STR_LIT>" ; String completeBehind = "<STR_LIT>" ; int cursorLocation = str . lastIndexOf ( "<STR_LIT>" ) + completeBehind . length ( ) - <NUM_LIT:1> ; String expectedCompletionNodeToString = "<STR_LIT>" ; String expectedParentNodeToString = "<STR_LIT>" ; String completionIdentifier = "<STR_LIT>" ; String expectedReplacedSource = "<STR_LIT>" ; String expectedUnitDisplayString = "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" ; checkDietParse ( str . toCharArray ( ) , cursorLocation , expectedCompletionNodeToString , expectedParentNodeToString , expectedUnitDisplayString , completionIdentifier , expectedReplacedSource , "<STR_LIT>" ) ; } public void test0065 ( ) { String str = "<STR_LIT>" ; String completeBehind = "<STR_LIT>" ; int cursorLocation = str . lastIndexOf ( "<STR_LIT>" ) + completeBehind . length ( ) - <NUM_LIT:1> ; String expectedCompletionNodeToString = "<STR_LIT>" ; String expectedParentNodeToString = "<STR_LIT>" ; String completionIdentifier = "<STR_LIT>" ; String expectedReplacedSource = "<STR_LIT>" ; String expectedUnitDisplayString = "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" ; checkDietParse ( str . toCharArray ( ) , cursorLocation , expectedCompletionNodeToString , expectedParentNodeToString , expectedUnitDisplayString , completionIdentifier , expectedReplacedSource , "<STR_LIT>" ) ; } public void test0066 ( ) { String str = "<STR_LIT>" ; String completeBehind = "<STR_LIT>" ; int cursorLocation = str . lastIndexOf ( "<STR_LIT>" ) + completeBehind . length ( ) - <NUM_LIT:1> ; String expectedCompletionNodeToString = "<STR_LIT>" ; String expectedParentNodeToString = "<STR_LIT>" ; String completionIdentifier = "<STR_LIT>" ; String expectedReplacedSource = "<STR_LIT>" ; String expectedUnitDisplayString = "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" ; checkDietParse ( str . toCharArray ( ) , cursorLocation , expectedCompletionNodeToString , expectedParentNodeToString , expectedUnitDisplayString , completionIdentifier , expectedReplacedSource , "<STR_LIT>" ) ; } public void test0067 ( ) { String str = "<STR_LIT>" ; String completeBehind = "<STR_LIT>" ; int cursorLocation = str . lastIndexOf ( "<STR_LIT>" ) + completeBehind . length ( ) - <NUM_LIT:1> ; String expectedCompletionNodeToString = "<STR_LIT>" ; String expectedParentNodeToString = "<STR_LIT>" ; String completionIdentifier = "<STR_LIT>" ; String expectedReplacedSource = "<STR_LIT>" ; String expectedUnitDisplayString = "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" ; checkDietParse ( str . toCharArray ( ) , cursorLocation , expectedCompletionNodeToString , expectedParentNodeToString , expectedUnitDisplayString , completionIdentifier , expectedReplacedSource , "<STR_LIT>" ) ; } public void test0068 ( ) { String str = "<STR_LIT>" ; String completeBehind = "<STR_LIT>" ; int cursorLocation = str . lastIndexOf ( "<STR_LIT>" ) + completeBehind . length ( ) - <NUM_LIT:1> ; String expectedCompletionNodeToString = "<STR_LIT>" ; String expectedParentNodeToString = "<STR_LIT>" ; String completionIdentifier = "<STR_LIT>" ; String expectedReplacedSource = "<STR_LIT>" ; String expectedUnitDisplayString = "<STR_LIT>" ; checkDietParse ( str . toCharArray ( ) , cursorLocation , expectedCompletionNodeToString , expectedParentNodeToString , expectedUnitDisplayString , completionIdentifier , expectedReplacedSource , "<STR_LIT>" ) ; } public void test0069 ( ) { String str = "<STR_LIT>" + "<STR_LIT>" ; String completeBehind = "<STR_LIT>" ; int cursorLocation = str . lastIndexOf ( "<STR_LIT>" ) + completeBehind . length ( ) - <NUM_LIT:1> ; String expectedCompletionNodeToString = "<STR_LIT>" ; String expectedParentNodeToString = "<STR_LIT>" ; String completionIdentifier = "<STR_LIT>" ; String expectedReplacedSource = "<STR_LIT>" ; String expectedUnitDisplayString = "<STR_LIT>" + "<STR_LIT>" ; checkDietParse ( str . toCharArray ( ) , cursorLocation , expectedCompletionNodeToString , expectedParentNodeToString , expectedUnitDisplayString , completionIdentifier , expectedReplacedSource , "<STR_LIT>" ) ; } public void test0070 ( ) { String str = "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" ; String completeBehind = "<STR_LIT>" ; int cursorLocation = str . lastIndexOf ( "<STR_LIT>" ) + completeBehind . length ( ) - <NUM_LIT:1> ; String expectedCompletionNodeToString = "<STR_LIT>" ; String expectedParentNodeToString = "<STR_LIT>" ; String completionIdentifier = "<STR_LIT>" ; String expectedReplacedSource = "<STR_LIT>" ; String expectedUnitDisplayString = "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" ; checkDietParse ( str . toCharArray ( ) , cursorLocation , expectedCompletionNodeToString , expectedParentNodeToString , expectedUnitDisplayString , completionIdentifier , expectedReplacedSource , "<STR_LIT>" ) ; } public void test0071 ( ) { String str = "<STR_LIT>" ; String completeBehind = "<STR_LIT>" ; int cursorLocation = str . lastIndexOf ( "<STR_LIT>" ) + completeBehind . length ( ) - <NUM_LIT:1> ; String expectedCompletionNodeToString = "<STR_LIT>" ; String expectedParentNodeToString = "<STR_LIT>" ; String completionIdentifier = "<STR_LIT>" ; String expectedReplacedSource = "<STR_LIT>" ; String expectedUnitDisplayString = "<STR_LIT>" ; checkDietParse ( str . toCharArray ( ) , cursorLocation , expectedCompletionNodeToString , expectedParentNodeToString , expectedUnitDisplayString , completionIdentifier , expectedReplacedSource , "<STR_LIT>" ) ; } public void test0072 ( ) { String str = "<STR_LIT:int>" ; String completeBehind = "<STR_LIT:int>" ; int cursorLocation = str . lastIndexOf ( "<STR_LIT:int>" ) + completeBehind . length ( ) - <NUM_LIT:1> ; String expectedCompletionNodeToString = "<STR_LIT>" ; String expectedParentNodeToString = "<STR_LIT>" ; String completionIdentifier = "<STR_LIT:int>" ; String expectedReplacedSource = "<STR_LIT:int>" ; String expectedUnitDisplayString = "<STR_LIT>" ; checkDietParse ( str . toCharArray ( ) , cursorLocation , expectedCompletionNodeToString , expectedParentNodeToString , expectedUnitDisplayString , completionIdentifier , expectedReplacedSource , "<STR_LIT>" ) ; } public void test0073 ( ) { String str = "<STR_LIT>" ; String completeBehind = "<STR_LIT:int>" ; int cursorLocation = str . lastIndexOf ( "<STR_LIT:int>" ) + completeBehind . length ( ) - <NUM_LIT:1> ; String expectedCompletionNodeToString = "<STR_LIT>" ; String expectedParentNodeToString = "<STR_LIT>" ; String completionIdentifier = "<STR_LIT:int>" ; String expectedReplacedSource = "<STR_LIT:int>" ; String expectedUnitDisplayString = "<STR_LIT>" ; checkDietParse ( str . toCharArray ( ) , cursorLocation , expectedCompletionNodeToString , expectedParentNodeToString , expectedUnitDisplayString , completionIdentifier , expectedReplacedSource , "<STR_LIT>" ) ; } public void test0074 ( ) { String str = "<STR_LIT>" ; String completeBehind = "<STR_LIT:int>" ; int cursorLocation = str . lastIndexOf ( "<STR_LIT:int>" ) + completeBehind . length ( ) - <NUM_LIT:1> ; String expectedCompletionNodeToString = "<STR_LIT>" ; String expectedParentNodeToString = "<STR_LIT>" ; String completionIdentifier = "<STR_LIT:int>" ; String expectedReplacedSource = "<STR_LIT:int>" ; String expectedUnitDisplayString = "<STR_LIT>" ; checkDietParse ( str . toCharArray ( ) , cursorLocation , expectedCompletionNodeToString , expectedParentNodeToString , expectedUnitDisplayString , completionIdentifier , expectedReplacedSource , "<STR_LIT>" ) ; } public void test0075 ( ) { String str = "<STR_LIT>" ; String completeBehind = "<STR_LIT:int>" ; int cursorLocation = str . lastIndexOf ( "<STR_LIT:int>" ) + completeBehind . length ( ) - <NUM_LIT:1> ; String expectedCompletionNodeToString = "<STR_LIT>" ; String expectedParentNodeToString = "<STR_LIT>" ; String completionIdentifier = "<STR_LIT:int>" ; String expectedReplacedSource = "<STR_LIT:int>" ; String expectedUnitDisplayString = "<STR_LIT>" ; checkDietParse ( str . toCharArray ( ) , cursorLocation , expectedCompletionNodeToString , expectedParentNodeToString , expectedUnitDisplayString , completionIdentifier , expectedReplacedSource , "<STR_LIT>" ) ; } public void test0076 ( ) { String str = "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT:}>" ; String completeBehind = "<STR_LIT:int>" ; int cursorLocation = str . lastIndexOf ( "<STR_LIT:int>" ) + completeBehind . length ( ) - <NUM_LIT:1> ; String expectedCompletionNodeToString = "<STR_LIT>" ; String expectedParentNodeToString = "<STR_LIT>" ; String completionIdentifier = "<STR_LIT:int>" ; String expectedReplacedSource = "<STR_LIT:int>" ; String expectedUnitDisplayString = "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" ; checkDietParse ( str . toCharArray ( ) , cursorLocation , expectedCompletionNodeToString , expectedParentNodeToString , expectedUnitDisplayString , completionIdentifier , expectedReplacedSource , "<STR_LIT>" ) ; } public void test0077 ( ) { String str = "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT:}>" ; String completeBehind = "<STR_LIT:int>" ; int cursorLocation = str . lastIndexOf ( "<STR_LIT:int>" ) + completeBehind . length ( ) - <NUM_LIT:1> ; String expectedCompletionNodeToString = "<STR_LIT>" ; String expectedParentNodeToString = "<STR_LIT>" ; String completionIdentifier = "<STR_LIT:int>" ; String expectedReplacedSource = "<STR_LIT:int>" ; String expectedUnitDisplayString = "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" ; checkDietParse ( str . toCharArray ( ) , cursorLocation , expectedCompletionNodeToString , expectedParentNodeToString , expectedUnitDisplayString , completionIdentifier , expectedReplacedSource , "<STR_LIT>" ) ; } public void test0078 ( ) { String str = "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT:}>" ; String completeBehind = "<STR_LIT:int>" ; int cursorLocation = str . lastIndexOf ( "<STR_LIT:int>" ) + completeBehind . length ( ) - <NUM_LIT:1> ; String expectedCompletionNodeToString = "<STR_LIT>" ; String expectedParentNodeToString = "<STR_LIT>" ; String completionIdentifier = "<STR_LIT:int>" ; String expectedReplacedSource = "<STR_LIT:int>" ; String expectedUnitDisplayString = "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" ; checkDietParse ( str . toCharArray ( ) , cursorLocation , expectedCompletionNodeToString , expectedParentNodeToString , expectedUnitDisplayString , completionIdentifier , expectedReplacedSource , "<STR_LIT>" ) ; } public void test0079 ( ) { String str = "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT:}>" ; String completeBehind = "<STR_LIT:int>" ; int cursorLocation = str . lastIndexOf ( "<STR_LIT:int>" ) + completeBehind . length ( ) - <NUM_LIT:1> ; String expectedCompletionNodeToString = "<STR_LIT>" ; String expectedParentNodeToString = "<STR_LIT>" ; String completionIdentifier = "<STR_LIT:int>" ; String expectedReplacedSource = "<STR_LIT:int>" ; String expectedUnitDisplayString = "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" ; checkDietParse ( str . toCharArray ( ) , cursorLocation , expectedCompletionNodeToString , expectedParentNodeToString , expectedUnitDisplayString , completionIdentifier , expectedReplacedSource , "<STR_LIT>" ) ; } public void test0080_Diet ( ) { String str = "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT:}>" ; String completeBehind = "<STR_LIT:int>" ; int cursorLocation = str . lastIndexOf ( "<STR_LIT:int>" ) + completeBehind . length ( ) - <NUM_LIT:1> ; String expectedCompletionNodeToString = "<STR_LIT>" ; String expectedParentNodeToString = "<STR_LIT>" ; String completionIdentifier = "<STR_LIT>" ; String expectedReplacedSource = "<STR_LIT>" ; String expectedUnitDisplayString = "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" ; checkDietParse ( str . toCharArray ( ) , cursorLocation , expectedCompletionNodeToString , expectedParentNodeToString , expectedUnitDisplayString , completionIdentifier , expectedReplacedSource , "<STR_LIT>" ) ; } public void test0080_Method ( ) { String str = "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT:}>" ; String completeBehind = "<STR_LIT:int>" ; int cursorLocation = str . lastIndexOf ( "<STR_LIT:int>" ) + completeBehind . length ( ) - <NUM_LIT:1> ; String expectedCompletionNodeToString = "<STR_LIT>" ; String expectedParentNodeToString = "<STR_LIT>" ; String completionIdentifier = "<STR_LIT:int>" ; String expectedReplacedSource = "<STR_LIT:int>" ; String expectedUnitDisplayString = "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" ; checkMethodParse ( str . toCharArray ( ) , cursorLocation , expectedCompletionNodeToString , expectedParentNodeToString , expectedUnitDisplayString , completionIdentifier , expectedReplacedSource , "<STR_LIT>" ) ; } public void test0081_Diet ( ) { String str = "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT:}>" ; String completeBehind = "<STR_LIT:int>" ; int cursorLocation = str . lastIndexOf ( "<STR_LIT:int>" ) + completeBehind . length ( ) - <NUM_LIT:1> ; String expectedCompletionNodeToString = "<STR_LIT>" ; String expectedParentNodeToString = "<STR_LIT>" ; String completionIdentifier = "<STR_LIT>" ; String expectedReplacedSource = "<STR_LIT>" ; String expectedUnitDisplayString = "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" ; checkDietParse ( str . toCharArray ( ) , cursorLocation , expectedCompletionNodeToString , expectedParentNodeToString , expectedUnitDisplayString , completionIdentifier , expectedReplacedSource , "<STR_LIT>" ) ; } public void test0081_Method ( ) { String str = "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT:}>" ; String completeBehind = "<STR_LIT:int>" ; int cursorLocation = str . lastIndexOf ( "<STR_LIT:int>" ) + completeBehind . length ( ) - <NUM_LIT:1> ; String expectedCompletionNodeToString = "<STR_LIT>" ; String expectedParentNodeToString = "<STR_LIT>" ; String completionIdentifier = "<STR_LIT:int>" ; String expectedReplacedSource = "<STR_LIT:int>" ; String expectedUnitDisplayString = "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" ; checkMethodParse ( str . toCharArray ( ) , cursorLocation , expectedCompletionNodeToString , expectedParentNodeToString , expectedUnitDisplayString , completionIdentifier , expectedReplacedSource , "<STR_LIT>" ) ; } public void test0082_Diet ( ) { String str = "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT:}>" ; String completeBehind = "<STR_LIT:int>" ; int cursorLocation = str . lastIndexOf ( "<STR_LIT:int>" ) + completeBehind . length ( ) - <NUM_LIT:1> ; String expectedCompletionNodeToString = "<STR_LIT>" ; String expectedParentNodeToString = "<STR_LIT>" ; String completionIdentifier = "<STR_LIT>" ; String expectedReplacedSource = "<STR_LIT>" ; String expectedUnitDisplayString = "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" ; checkDietParse ( str . toCharArray ( ) , cursorLocation , expectedCompletionNodeToString , expectedParentNodeToString , expectedUnitDisplayString , completionIdentifier , expectedReplacedSource , "<STR_LIT>" ) ; } public void test0082_Method ( ) { String str = "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT:}>" ; String completeBehind = "<STR_LIT:int>" ; int cursorLocation = str . lastIndexOf ( "<STR_LIT:int>" ) + completeBehind . length ( ) - <NUM_LIT:1> ; String expectedCompletionNodeToString = "<STR_LIT>" ; String expectedParentNodeToString = "<STR_LIT>" ; String completionIdentifier = "<STR_LIT:int>" ; String expectedReplacedSource = "<STR_LIT:int>" ; String expectedUnitDisplayString = "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" ; checkMethodParse ( str . toCharArray ( ) , cursorLocation , expectedCompletionNodeToString , expectedParentNodeToString , expectedUnitDisplayString , completionIdentifier , expectedReplacedSource , "<STR_LIT>" ) ; } public void test0083 ( ) { String str = "<STR_LIT>" ; String completeBehind = "<STR_LIT:int>" ; int cursorLocation = str . lastIndexOf ( "<STR_LIT:int>" ) + completeBehind . length ( ) - <NUM_LIT:1> ; String expectedCompletionNodeToString = "<STR_LIT>" ; String expectedParentNodeToString = "<STR_LIT>" ; String completionIdentifier = "<STR_LIT:int>" ; String expectedReplacedSource = "<STR_LIT:int>" ; String expectedUnitDisplayString = "<STR_LIT>" ; checkDietParse ( str . toCharArray ( ) , cursorLocation , expectedCompletionNodeToString , expectedParentNodeToString , expectedUnitDisplayString , completionIdentifier , expectedReplacedSource , "<STR_LIT>" ) ; } public void test0084 ( ) { String str = "<STR_LIT>" ; String completeBehind = "<STR_LIT:int>" ; int cursorLocation = str . lastIndexOf ( "<STR_LIT:int>" ) + completeBehind . length ( ) - <NUM_LIT:1> ; String expectedCompletionNodeToString = "<STR_LIT>" ; String expectedParentNodeToString = "<STR_LIT>" ; String completionIdentifier = "<STR_LIT:int>" ; String expectedReplacedSource = "<STR_LIT:int>" ; String expectedUnitDisplayString = "<STR_LIT>" ; checkDietParse ( str . toCharArray ( ) , cursorLocation , expectedCompletionNodeToString , expectedParentNodeToString , expectedUnitDisplayString , completionIdentifier , expectedReplacedSource , "<STR_LIT>" ) ; } public void test0085 ( ) { String str = "<STR_LIT>" ; String completeBehind = "<STR_LIT>" ; int cursorLocation = str . lastIndexOf ( "<STR_LIT>" ) + completeBehind . length ( ) - <NUM_LIT:1> ; String expectedCompletionNodeToString = "<STR_LIT>" ; String expectedParentNodeToString = "<STR_LIT>" ; String completionIdentifier = "<STR_LIT>" ; String expectedReplacedSource = "<STR_LIT>" ; String expectedUnitDisplayString = "<STR_LIT>" ; checkDietParse ( str . toCharArray ( ) , cursorLocation , expectedCompletionNodeToString , expectedParentNodeToString , expectedUnitDisplayString , completionIdentifier , expectedReplacedSource , "<STR_LIT>" ) ; } public void test0086 ( ) { String str = "<STR_LIT>" ; String completeBehind = "<STR_LIT>" ; int cursorLocation = str . lastIndexOf ( "<STR_LIT>" ) + completeBehind . length ( ) - <NUM_LIT:1> ; String expectedCompletionNodeToString = "<STR_LIT>" ; String expectedParentNodeToString = "<STR_LIT>" ; String completionIdentifier = "<STR_LIT>" ; String expectedReplacedSource = "<STR_LIT>" ; String expectedUnitDisplayString = "<STR_LIT>" ; checkDietParse ( str . toCharArray ( ) , cursorLocation , expectedCompletionNodeToString , expectedParentNodeToString , expectedUnitDisplayString , completionIdentifier , expectedReplacedSource , "<STR_LIT>" ) ; } public void test0087 ( ) { String str = "<STR_LIT>" + "<STR_LIT>" ; String completeBehind = "<STR_LIT>" ; int cursorLocation = str . lastIndexOf ( "<STR_LIT>" ) + completeBehind . length ( ) - <NUM_LIT:1> ; String expectedCompletionNodeToString = "<STR_LIT>" ; String expectedParentNodeToString = "<STR_LIT>" ; String completionIdentifier = "<STR_LIT>" ; String expectedReplacedSource = "<STR_LIT>" ; String expectedUnitDisplayString = "<STR_LIT>" + "<STR_LIT>" ; checkDietParse ( str . toCharArray ( ) , cursorLocation , expectedCompletionNodeToString , expectedParentNodeToString , expectedUnitDisplayString , completionIdentifier , expectedReplacedSource , "<STR_LIT>" ) ; } public void test0088 ( ) { String str = "<STR_LIT>" + "<STR_LIT>" ; String completeBehind = "<STR_LIT>" ; int cursorLocation = str . lastIndexOf ( "<STR_LIT>" ) + completeBehind . length ( ) - <NUM_LIT:1> ; String expectedCompletionNodeToString = "<STR_LIT>" ; String expectedParentNodeToString = "<STR_LIT>" ; String completionIdentifier = "<STR_LIT>" ; String expectedReplacedSource = "<STR_LIT>" ; String expectedUnitDisplayString = "<STR_LIT>" + "<STR_LIT>" ; checkDietParse ( str . toCharArray ( ) , cursorLocation , expectedCompletionNodeToString , expectedParentNodeToString , expectedUnitDisplayString , completionIdentifier , expectedReplacedSource , "<STR_LIT>" ) ; } public void test0089 ( ) { String str = "<STR_LIT>" + "<STR_LIT>" ; String completeBehind = "<STR_LIT>" ; int cursorLocation = str . lastIndexOf ( "<STR_LIT>" ) + completeBehind . length ( ) - <NUM_LIT:1> ; String expectedCompletionNodeToString = "<STR_LIT>" ; String expectedParentNodeToString = "<STR_LIT>" ; String completionIdentifier = "<STR_LIT>" ; String expectedReplacedSource = "<STR_LIT>" ; String expectedUnitDisplayString = "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" ; checkDietParse ( str . toCharArray ( ) , cursorLocation , expectedCompletionNodeToString , expectedParentNodeToString , expectedUnitDisplayString , completionIdentifier , expectedReplacedSource , "<STR_LIT>" ) ; } public void test0090_Diet ( ) { String str = "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT:}>" ; String completeBehind = "<STR_LIT>" ; int cursorLocation = str . lastIndexOf ( "<STR_LIT>" ) + completeBehind . length ( ) - <NUM_LIT:1> ; String expectedCompletionNodeToString = "<STR_LIT>" ; String expectedParentNodeToString = "<STR_LIT>" ; String completionIdentifier = "<STR_LIT>" ; String expectedReplacedSource = "<STR_LIT>" ; String expectedUnitDisplayString = "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" ; checkDietParse ( str . toCharArray ( ) , cursorLocation , expectedCompletionNodeToString , expectedParentNodeToString , expectedUnitDisplayString , completionIdentifier , expectedReplacedSource , "<STR_LIT>" ) ; } public void test0090_Method ( ) { String str = "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT:}>" ; String completeBehind = "<STR_LIT>" ; int cursorLocation = str . lastIndexOf ( "<STR_LIT>" ) + completeBehind . length ( ) - <NUM_LIT:1> ; String expectedCompletionNodeToString = "<STR_LIT>" ; String expectedParentNodeToString = "<STR_LIT>" ; String completionIdentifier = "<STR_LIT>" ; String expectedReplacedSource = "<STR_LIT>" ; String expectedUnitDisplayString = "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" ; checkMethodParse ( str . toCharArray ( ) , cursorLocation , expectedCompletionNodeToString , expectedParentNodeToString , expectedUnitDisplayString , completionIdentifier , expectedReplacedSource , "<STR_LIT>" ) ; } public void test0091_Diet ( ) { String str = "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT:}>" ; String completeBehind = "<STR_LIT>" ; int cursorLocation = str . lastIndexOf ( "<STR_LIT>" ) + completeBehind . length ( ) - <NUM_LIT:1> ; String expectedCompletionNodeToString = "<STR_LIT>" ; String expectedParentNodeToString = "<STR_LIT>" ; String completionIdentifier = "<STR_LIT>" ; String expectedReplacedSource = "<STR_LIT>" ; String expectedUnitDisplayString = "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" ; checkDietParse ( str . toCharArray ( ) , cursorLocation , expectedCompletionNodeToString , expectedParentNodeToString , expectedUnitDisplayString , completionIdentifier , expectedReplacedSource , "<STR_LIT>" ) ; } public void test0091_Method ( ) { String str = "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT:}>" ; String completeBehind = "<STR_LIT>" ; int cursorLocation = str . lastIndexOf ( "<STR_LIT>" ) + completeBehind . length ( ) - <NUM_LIT:1> ; String expectedCompletionNodeToString = "<STR_LIT>" ; String expectedParentNodeToString = "<STR_LIT>" ; String completionIdentifier = "<STR_LIT>" ; String expectedReplacedSource = "<STR_LIT>" ; String expectedUnitDisplayString = "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" ; checkMethodParse ( str . toCharArray ( ) , cursorLocation , expectedCompletionNodeToString , expectedParentNodeToString , expectedUnitDisplayString , completionIdentifier , expectedReplacedSource , "<STR_LIT>" ) ; } public void test0092_Diet ( ) { String str = "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT:}>" ; String completeBehind = "<STR_LIT>" ; int cursorLocation = str . lastIndexOf ( "<STR_LIT>" ) + completeBehind . length ( ) - <NUM_LIT:1> ; String expectedCompletionNodeToString = "<STR_LIT>" ; String expectedParentNodeToString = "<STR_LIT>" ; String completionIdentifier = "<STR_LIT>" ; String expectedReplacedSource = "<STR_LIT>" ; String expectedUnitDisplayString = "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" ; checkDietParse ( str . toCharArray ( ) , cursorLocation , expectedCompletionNodeToString , expectedParentNodeToString , expectedUnitDisplayString , completionIdentifier , expectedReplacedSource , "<STR_LIT>" ) ; } public void test0092_Method ( ) { String str = "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT:}>" ; String completeBehind = "<STR_LIT>" ; int cursorLocation = str . lastIndexOf ( "<STR_LIT>" ) + completeBehind . length ( ) - <NUM_LIT:1> ; String expectedCompletionNodeToString = "<STR_LIT>" ; String expectedParentNodeToString = "<STR_LIT>" ; String completionIdentifier = "<STR_LIT>" ; String expectedReplacedSource = "<STR_LIT>" ; String expectedUnitDisplayString = "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" ; checkMethodParse ( str . toCharArray ( ) , cursorLocation , expectedCompletionNodeToString , expectedParentNodeToString , expectedUnitDisplayString , completionIdentifier , expectedReplacedSource , "<STR_LIT>" ) ; } public void test0093_Diet ( ) { String str = "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT:}>" ; String completeBehind = "<STR_LIT>" ; int cursorLocation = str . lastIndexOf ( "<STR_LIT>" ) + completeBehind . length ( ) - <NUM_LIT:1> ; String expectedCompletionNodeToString = "<STR_LIT>" ; String expectedParentNodeToString = "<STR_LIT>" ; String completionIdentifier = "<STR_LIT>" ; String expectedReplacedSource = "<STR_LIT>" ; String expectedUnitDisplayString = "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" ; checkDietParse ( str . toCharArray ( ) , cursorLocation , expectedCompletionNodeToString , expectedParentNodeToString , expectedUnitDisplayString , completionIdentifier , expectedReplacedSource , "<STR_LIT>" ) ; } public void test0093_Method ( ) { String str = "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT:}>" ; String completeBehind = "<STR_LIT>" ; int cursorLocation = str . lastIndexOf ( "<STR_LIT>" ) + completeBehind . length ( ) - <NUM_LIT:1> ; String expectedCompletionNodeToString = "<STR_LIT>" ; String expectedParentNodeToString = "<STR_LIT>" ; String completionIdentifier = "<STR_LIT>" ; String expectedReplacedSource = "<STR_LIT>" ; String expectedUnitDisplayString = "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" ; checkMethodParse ( str . toCharArray ( ) , cursorLocation , expectedCompletionNodeToString , expectedParentNodeToString , expectedUnitDisplayString , completionIdentifier , expectedReplacedSource , "<STR_LIT>" ) ; } public void test0094_Diet ( ) { String str = "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT:}>" ; String completeBehind = "<STR_LIT>" ; int cursorLocation = str . lastIndexOf ( "<STR_LIT>" ) + completeBehind . length ( ) - <NUM_LIT:1> ; String expectedCompletionNodeToString = "<STR_LIT>" ; String expectedParentNodeToString = "<STR_LIT>" ; String completionIdentifier = "<STR_LIT>" ; String expectedReplacedSource = "<STR_LIT>" ; String expectedUnitDisplayString = "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" ; checkDietParse ( str . toCharArray ( ) , cursorLocation , expectedCompletionNodeToString , expectedParentNodeToString , expectedUnitDisplayString , completionIdentifier , expectedReplacedSource , "<STR_LIT>" ) ; } public void test0094_Method ( ) { String str = "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT:}>" ; String completeBehind = "<STR_LIT>" ; int cursorLocation = str . lastIndexOf ( "<STR_LIT>" ) + completeBehind . length ( ) - <NUM_LIT:1> ; String expectedCompletionNodeToString = "<STR_LIT>" ; String expectedParentNodeToString = "<STR_LIT>" ; String completionIdentifier = "<STR_LIT>" ; String expectedReplacedSource = "<STR_LIT>" ; String expectedUnitDisplayString = "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" ; checkMethodParse ( str . toCharArray ( ) , cursorLocation , expectedCompletionNodeToString , expectedParentNodeToString , expectedUnitDisplayString , completionIdentifier , expectedReplacedSource , "<STR_LIT>" ) ; } public void test0095_Diet ( ) { String str = "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT:}>" ; String completeBehind = "<STR_LIT>" ; int cursorLocation = str . lastIndexOf ( "<STR_LIT>" ) + completeBehind . length ( ) - <NUM_LIT:1> ; String expectedCompletionNodeToString = "<STR_LIT>" ; String expectedParentNodeToString = "<STR_LIT>" ; String completionIdentifier = "<STR_LIT>" ; String expectedReplacedSource = "<STR_LIT>" ; String expectedUnitDisplayString = "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" ; checkDietParse ( str . toCharArray ( ) , cursorLocation , expectedCompletionNodeToString , expectedParentNodeToString , expectedUnitDisplayString , completionIdentifier , expectedReplacedSource , "<STR_LIT>" ) ; } public void test0095_Method ( ) { String str = "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT:}>" ; String completeBehind = "<STR_LIT>" ; int cursorLocation = str . lastIndexOf ( "<STR_LIT>" ) + completeBehind . length ( ) - <NUM_LIT:1> ; String expectedCompletionNodeToString = "<STR_LIT>" ; String expectedParentNodeToString = "<STR_LIT>" ; String completionIdentifier = "<STR_LIT>" ; String expectedReplacedSource = "<STR_LIT>" ; String expectedUnitDisplayString = "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" ; checkMethodParse ( str . toCharArray ( ) , cursorLocation , expectedCompletionNodeToString , expectedParentNodeToString , expectedUnitDisplayString , completionIdentifier , expectedReplacedSource , "<STR_LIT>" ) ; } public void test0096_Diet ( ) { String str = "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT:}>" ; String completeBehind = "<STR_LIT>" ; int cursorLocation = str . lastIndexOf ( "<STR_LIT>" ) + completeBehind . length ( ) - <NUM_LIT:1> ; String expectedCompletionNodeToString = "<STR_LIT>" ; String expectedParentNodeToString = "<STR_LIT>" ; String completionIdentifier = "<STR_LIT>" ; String expectedReplacedSource = "<STR_LIT>" ; String expectedUnitDisplayString = "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" ; checkDietParse ( str . toCharArray ( ) , cursorLocation , expectedCompletionNodeToString , expectedParentNodeToString , expectedUnitDisplayString , completionIdentifier , expectedReplacedSource , "<STR_LIT>" ) ; } public void test0096_Method ( ) { String str = "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT:}>" ; String completeBehind = "<STR_LIT>" ; int cursorLocation = str . lastIndexOf ( "<STR_LIT>" ) + completeBehind . length ( ) - <NUM_LIT:1> ; String expectedCompletionNodeToString = "<STR_LIT>" ; String expectedParentNodeToString = "<STR_LIT>" ; String completionIdentifier = "<STR_LIT>" ; String expectedReplacedSource = "<STR_LIT>" ; String expectedUnitDisplayString = "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" ; checkMethodParse ( str . toCharArray ( ) , cursorLocation , expectedCompletionNodeToString , expectedParentNodeToString , expectedUnitDisplayString , completionIdentifier , expectedReplacedSource , "<STR_LIT>" ) ; } public void test0097_Diet ( ) { String str = "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT:}>" ; String completeBehind = "<STR_LIT>" ; int cursorLocation = str . lastIndexOf ( "<STR_LIT>" ) + completeBehind . length ( ) - <NUM_LIT:1> ; String expectedCompletionNodeToString = "<STR_LIT>" ; String expectedParentNodeToString = "<STR_LIT>" ; String completionIdentifier = "<STR_LIT>" ; String expectedReplacedSource = "<STR_LIT>" ; String expectedUnitDisplayString = "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" ; checkDietParse ( str . toCharArray ( ) , cursorLocation , expectedCompletionNodeToString , expectedParentNodeToString , expectedUnitDisplayString , completionIdentifier , expectedReplacedSource , "<STR_LIT>" ) ; } public void test0097_Method ( ) { String str = "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT:}>" ; String completeBehind = "<STR_LIT>" ; int cursorLocation = str . lastIndexOf ( "<STR_LIT>" ) + completeBehind . length ( ) - <NUM_LIT:1> ; String expectedCompletionNodeToString = "<STR_LIT>" ; String expectedParentNodeToString = "<STR_LIT>" ; String completionIdentifier = "<STR_LIT>" ; String expectedReplacedSource = "<STR_LIT>" ; String expectedUnitDisplayString = "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" ; checkMethodParse ( str . toCharArray ( ) , cursorLocation , expectedCompletionNodeToString , expectedParentNodeToString , expectedUnitDisplayString , completionIdentifier , expectedReplacedSource , "<STR_LIT>" ) ; } public void test0098_Diet ( ) { String str = "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT:}>" ; String completeBehind = "<STR_LIT>" ; int cursorLocation = str . lastIndexOf ( "<STR_LIT>" ) + completeBehind . length ( ) - <NUM_LIT:1> ; String expectedCompletionNodeToString = "<STR_LIT>" ; String expectedParentNodeToString = "<STR_LIT>" ; String completionIdentifier = "<STR_LIT>" ; String expectedReplacedSource = "<STR_LIT>" ; String expectedUnitDisplayString = "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" ; checkDietParse ( str . toCharArray ( ) , cursorLocation , expectedCompletionNodeToString , expectedParentNodeToString , expectedUnitDisplayString , completionIdentifier , expectedReplacedSource , "<STR_LIT>" ) ; } public void test0098_Method ( ) { String str = "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT:}>" ; String completeBehind = "<STR_LIT>" ; int cursorLocation = str . lastIndexOf ( "<STR_LIT>" ) + completeBehind . length ( ) - <NUM_LIT:1> ; String expectedCompletionNodeToString = "<STR_LIT>" ; String expectedParentNodeToString = "<STR_LIT>" ; String completionIdentifier = "<STR_LIT>" ; String expectedReplacedSource = "<STR_LIT>" ; String expectedUnitDisplayString = "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" ; checkMethodParse ( str . toCharArray ( ) , cursorLocation , expectedCompletionNodeToString , expectedParentNodeToString , expectedUnitDisplayString , completionIdentifier , expectedReplacedSource , "<STR_LIT>" ) ; } public void test0099_Diet ( ) { String str = "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT:}>" ; String completeBehind = "<STR_LIT>" ; int cursorLocation = str . lastIndexOf ( "<STR_LIT>" ) + completeBehind . length ( ) - <NUM_LIT:1> ; String expectedCompletionNodeToString = "<STR_LIT>" ; String expectedParentNodeToString = "<STR_LIT>" ; String completionIdentifier = "<STR_LIT>" ; String expectedReplacedSource = "<STR_LIT>" ; String expectedUnitDisplayString = "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" ; checkDietParse ( str . toCharArray ( ) , cursorLocation , expectedCompletionNodeToString , expectedParentNodeToString , expectedUnitDisplayString , completionIdentifier , expectedReplacedSource , "<STR_LIT>" ) ; } public void test0099_Method ( ) { String str = "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT:}>" ; String completeBehind = "<STR_LIT>" ; int cursorLocation = str . lastIndexOf ( "<STR_LIT>" ) + completeBehind . length ( ) - <NUM_LIT:1> ; String expectedCompletionNodeToString = "<STR_LIT>" ; String expectedParentNodeToString = "<STR_LIT>" ; String completionIdentifier = "<STR_LIT>" ; String expectedReplacedSource = "<STR_LIT>" ; String expectedUnitDisplayString = "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" ; checkMethodParse ( str . toCharArray ( ) , cursorLocation , expectedCompletionNodeToString , expectedParentNodeToString , expectedUnitDisplayString , completionIdentifier , expectedReplacedSource , "<STR_LIT>" ) ; } public void test0100_Diet ( ) { String str = "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT:}>" ; String completeBehind = "<STR_LIT>" ; int cursorLocation = str . lastIndexOf ( "<STR_LIT>" ) + completeBehind . length ( ) - <NUM_LIT:1> ; String expectedCompletionNodeToString = "<STR_LIT>" ; String expectedParentNodeToString = "<STR_LIT>" ; String completionIdentifier = "<STR_LIT>" ; String expectedReplacedSource = "<STR_LIT>" ; String expectedUnitDisplayString = "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" ; checkDietParse ( str . toCharArray ( ) , cursorLocation , expectedCompletionNodeToString , expectedParentNodeToString , expectedUnitDisplayString , completionIdentifier , expectedReplacedSource , "<STR_LIT>" ) ; } public void test0100_Method ( ) { String str = "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT:}>" ; String completeBehind = "<STR_LIT>" ; int cursorLocation = str . lastIndexOf ( "<STR_LIT>" ) + completeBehind . length ( ) - <NUM_LIT:1> ; String expectedCompletionNodeToString = "<STR_LIT>" ; String expectedParentNodeToString = "<STR_LIT>" ; String completionIdentifier = "<STR_LIT>" ; String expectedReplacedSource = "<STR_LIT>" ; String expectedUnitDisplayString = "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" ; checkMethodParse ( str . toCharArray ( ) , cursorLocation , expectedCompletionNodeToString , expectedParentNodeToString , expectedUnitDisplayString , completionIdentifier , expectedReplacedSource , "<STR_LIT>" ) ; } public void test0101 ( ) { String str = "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT:}>" ; String completeBehind = "<STR_LIT>" ; int cursorLocation = str . lastIndexOf ( "<STR_LIT>" ) + completeBehind . length ( ) - <NUM_LIT:1> ; String expectedCompletionNodeToString = "<STR_LIT>" ; String expectedParentNodeToString = "<STR_LIT>" ; String completionIdentifier = "<STR_LIT>" ; String expectedReplacedSource = "<STR_LIT>" ; String expectedUnitDisplayString = "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" ; checkDietParse ( str . toCharArray ( ) , cursorLocation , expectedCompletionNodeToString , expectedParentNodeToString , expectedUnitDisplayString , completionIdentifier , expectedReplacedSource , "<STR_LIT>" ) ; } public void test0102 ( ) { String str = "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT:}>" ; String completeBehind = "<STR_LIT>" ; int cursorLocation = str . lastIndexOf ( "<STR_LIT>" ) + completeBehind . length ( ) - <NUM_LIT:1> ; String expectedCompletionNodeToString = "<STR_LIT>" ; String expectedParentNodeToString = "<STR_LIT>" ; String completionIdentifier = "<STR_LIT>" ; String expectedReplacedSource = "<STR_LIT>" ; String expectedUnitDisplayString = "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" ; checkDietParse ( str . toCharArray ( ) , cursorLocation , expectedCompletionNodeToString , expectedParentNodeToString , expectedUnitDisplayString , completionIdentifier , expectedReplacedSource , "<STR_LIT>" ) ; } public void test0103 ( ) { String str = "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT:}>" ; String completeBehind = "<STR_LIT>" ; int cursorLocation = str . lastIndexOf ( "<STR_LIT>" ) + completeBehind . length ( ) - <NUM_LIT:1> ; String expectedCompletionNodeToString = "<STR_LIT>" ; String expectedParentNodeToString = "<STR_LIT>" ; String completionIdentifier = "<STR_LIT>" ; String expectedReplacedSource = "<STR_LIT>" ; String expectedUnitDisplayString = "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" ; checkDietParse ( str . toCharArray ( ) , cursorLocation , expectedCompletionNodeToString , expectedParentNodeToString , expectedUnitDisplayString , completionIdentifier , expectedReplacedSource , "<STR_LIT>" ) ; } public void test0104 ( ) { String str = "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT:}>" ; String completeBehind = "<STR_LIT>" ; int cursorLocation = str . lastIndexOf ( "<STR_LIT>" ) + completeBehind . length ( ) - <NUM_LIT:1> ; String expectedCompletionNodeToString = "<STR_LIT>" ; String expectedParentNodeToString = "<STR_LIT>" ; String completionIdentifier = "<STR_LIT>" ; String expectedReplacedSource = "<STR_LIT>" ; String expectedUnitDisplayString = "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" ; checkDietParse ( str . toCharArray ( ) , cursorLocation , expectedCompletionNodeToString , expectedParentNodeToString , expectedUnitDisplayString , completionIdentifier , expectedReplacedSource , "<STR_LIT>" ) ; } public void test0105 ( ) { String str = "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT:}>" ; String completeBehind = "<STR_LIT>" ; int cursorLocation = str . lastIndexOf ( "<STR_LIT>" ) + completeBehind . length ( ) - <NUM_LIT:1> ; String expectedCompletionNodeToString = "<STR_LIT>" ; String expectedParentNodeToString = "<STR_LIT>" ; String completionIdentifier = "<STR_LIT>" ; String expectedReplacedSource = "<STR_LIT>" ; String expectedUnitDisplayString = "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" ; checkDietParse ( str . toCharArray ( ) , cursorLocation , expectedCompletionNodeToString , expectedParentNodeToString , expectedUnitDisplayString , completionIdentifier , expectedReplacedSource , "<STR_LIT>" ) ; } public void test0106 ( ) { String str = "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT:}>" ; String completeBehind = "<STR_LIT>" ; int cursorLocation = str . lastIndexOf ( "<STR_LIT>" ) + completeBehind . length ( ) - <NUM_LIT:1> ; String expectedCompletionNodeToString = "<STR_LIT>" ; String expectedParentNodeToString = "<STR_LIT>" ; String completionIdentifier = "<STR_LIT>" ; String expectedReplacedSource = "<STR_LIT>" ; String expectedUnitDisplayString = "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" ; checkDietParse ( str . toCharArray ( ) , cursorLocation , expectedCompletionNodeToString , expectedParentNodeToString , expectedUnitDisplayString , completionIdentifier , expectedReplacedSource , "<STR_LIT>" ) ; } public void test0107_Diet ( ) { String str = "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT:}>" ; String completeBehind = "<STR_LIT>" ; int cursorLocation = str . lastIndexOf ( "<STR_LIT>" ) + completeBehind . length ( ) - <NUM_LIT:1> ; String expectedCompletionNodeToString = "<STR_LIT>" ; String expectedParentNodeToString = "<STR_LIT>" ; String completionIdentifier = "<STR_LIT>" ; String expectedReplacedSource = "<STR_LIT>" ; String expectedUnitDisplayString = "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" ; checkDietParse ( str . toCharArray ( ) , cursorLocation , expectedCompletionNodeToString , expectedParentNodeToString , expectedUnitDisplayString , completionIdentifier , expectedReplacedSource , "<STR_LIT>" ) ; } public void test0107_Method ( ) { String str = "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT:}>" ; String completeBehind = "<STR_LIT>" ; int cursorLocation = str . lastIndexOf ( "<STR_LIT>" ) + completeBehind . length ( ) - <NUM_LIT:1> ; String expectedCompletionNodeToString = "<STR_LIT>" ; String expectedParentNodeToString = "<STR_LIT>" ; String completionIdentifier = "<STR_LIT>" ; String expectedReplacedSource = "<STR_LIT>" ; String expectedUnitDisplayString = "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" ; checkMethodParse ( str . toCharArray ( ) , cursorLocation , expectedCompletionNodeToString , expectedParentNodeToString , expectedUnitDisplayString , completionIdentifier , expectedReplacedSource , "<STR_LIT>" ) ; } public void test0108_Diet ( ) { String str = "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT:}>" ; String completeBehind = "<STR_LIT>" ; int cursorLocation = str . lastIndexOf ( "<STR_LIT>" ) + completeBehind . length ( ) - <NUM_LIT:1> ; String expectedCompletionNodeToString = "<STR_LIT>" ; String expectedParentNodeToString = "<STR_LIT>" ; String completionIdentifier = "<STR_LIT>" ; String expectedReplacedSource = "<STR_LIT>" ; String expectedUnitDisplayString = "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" ; checkDietParse ( str . toCharArray ( ) , cursorLocation , expectedCompletionNodeToString , expectedParentNodeToString , expectedUnitDisplayString , completionIdentifier , expectedReplacedSource , "<STR_LIT>" ) ; } public void test0108_Method ( ) { String str = "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT:}>" ; String completeBehind = "<STR_LIT>" ; int cursorLocation = str . lastIndexOf ( "<STR_LIT>" ) + completeBehind . length ( ) - <NUM_LIT:1> ; String expectedCompletionNodeToString = "<STR_LIT>" ; String expectedParentNodeToString = "<STR_LIT>" ; String completionIdentifier = "<STR_LIT>" ; String expectedReplacedSource = "<STR_LIT>" ; String expectedUnitDisplayString = "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" ; checkMethodParse ( str . toCharArray ( ) , cursorLocation , expectedCompletionNodeToString , expectedParentNodeToString , expectedUnitDisplayString , completionIdentifier , expectedReplacedSource , "<STR_LIT>" ) ; } public void test0109_Diet ( ) { String str = "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT:}>" ; String completeBehind = "<STR_LIT>" ; int cursorLocation = str . lastIndexOf ( "<STR_LIT>" ) + completeBehind . length ( ) - <NUM_LIT:1> ; String expectedCompletionNodeToString = "<STR_LIT>" ; String expectedParentNodeToString = "<STR_LIT>" ; String completionIdentifier = "<STR_LIT>" ; String expectedReplacedSource = "<STR_LIT>" ; String expectedUnitDisplayString = "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" ; checkDietParse ( str . toCharArray ( ) , cursorLocation , expectedCompletionNodeToString , expectedParentNodeToString , expectedUnitDisplayString , completionIdentifier , expectedReplacedSource , "<STR_LIT>" ) ; } public void test0109_Method ( ) { String str = "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT:}>" ; String completeBehind = "<STR_LIT>" ; int cursorLocation = str . lastIndexOf ( "<STR_LIT>" ) + completeBehind . length ( ) - <NUM_LIT:1> ; String expectedCompletionNodeToString = "<STR_LIT>" ; String expectedParentNodeToString = "<STR_LIT>" ; String completionIdentifier = "<STR_LIT>" ; String expectedReplacedSource = "<STR_LIT>" ; String expectedUnitDisplayString = "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" ; checkMethodParse ( str . toCharArray ( ) , cursorLocation , expectedCompletionNodeToString , expectedParentNodeToString , expectedUnitDisplayString , completionIdentifier , expectedReplacedSource , "<STR_LIT>" ) ; } public void test0110_Diet ( ) { String str = "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT:}>" ; String completeBehind = "<STR_LIT>" ; int cursorLocation = str . lastIndexOf ( "<STR_LIT>" ) + completeBehind . length ( ) - <NUM_LIT:1> ; String expectedCompletionNodeToString = "<STR_LIT>" ; String expectedParentNodeToString = "<STR_LIT>" ; String completionIdentifier = "<STR_LIT>" ; String expectedReplacedSource = "<STR_LIT>" ; String expectedUnitDisplayString = "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" ; checkDietParse ( str . toCharArray ( ) , cursorLocation , expectedCompletionNodeToString , expectedParentNodeToString , expectedUnitDisplayString , completionIdentifier , expectedReplacedSource , "<STR_LIT>" ) ; } public void test0110_Method ( ) { String str = "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT:}>" ; String completeBehind = "<STR_LIT>" ; int cursorLocation = str . lastIndexOf ( "<STR_LIT>" ) + completeBehind . length ( ) - <NUM_LIT:1> ; String expectedCompletionNodeToString = "<STR_LIT>" ; String expectedParentNodeToString = "<STR_LIT>" ; String completionIdentifier = "<STR_LIT>" ; String expectedReplacedSource = "<STR_LIT>" ; String expectedUnitDisplayString = "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" ; checkMethodParse ( str . toCharArray ( ) , cursorLocation , expectedCompletionNodeToString , expectedParentNodeToString , expectedUnitDisplayString , completionIdentifier , expectedReplacedSource , "<STR_LIT>" ) ; } public void test0111 ( ) { String str = "<STR_LIT>" ; String completeBehind = "<STR_LIT>" ; int cursorLocation = str . lastIndexOf ( "<STR_LIT>" ) + completeBehind . length ( ) - <NUM_LIT:1> ; String expectedCompletionNodeToString = "<STR_LIT>" ; String expectedParentNodeToString = "<STR_LIT>" ; String completionIdentifier = "<STR_LIT>" ; String expectedReplacedSource = "<STR_LIT>" ; String expectedUnitDisplayString = "<STR_LIT>" ; checkDietParse ( str . toCharArray ( ) , cursorLocation , expectedCompletionNodeToString , expectedParentNodeToString , expectedUnitDisplayString , completionIdentifier , expectedReplacedSource , "<STR_LIT>" ) ; } public void test0112 ( ) { String str = "<STR_LIT>" ; String completeBehind = "<STR_LIT>" ; int cursorLocation = str . lastIndexOf ( "<STR_LIT>" ) + completeBehind . length ( ) - <NUM_LIT:1> ; String expectedCompletionNodeToString = "<STR_LIT>" ; String expectedParentNodeToString = "<STR_LIT>" ; String completionIdentifier = "<STR_LIT>" ; String expectedReplacedSource = "<STR_LIT>" ; String expectedUnitDisplayString = "<STR_LIT>" ; checkDietParse ( str . toCharArray ( ) , cursorLocation , expectedCompletionNodeToString , expectedParentNodeToString , expectedUnitDisplayString , completionIdentifier , expectedReplacedSource , "<STR_LIT>" ) ; } public void test0113 ( ) { String str = "<STR_LIT>" ; String completeBehind = "<STR_LIT>" ; int cursorLocation = str . lastIndexOf ( "<STR_LIT>" ) + completeBehind . length ( ) - <NUM_LIT:1> ; String expectedCompletionNodeToString = "<STR_LIT>" ; String expectedParentNodeToString = "<STR_LIT>" ; String completionIdentifier = "<STR_LIT>" ; String expectedReplacedSource = "<STR_LIT>" ; String expectedUnitDisplayString = "<STR_LIT>" ; checkDietParse ( str . toCharArray ( ) , cursorLocation , expectedCompletionNodeToString , expectedParentNodeToString , expectedUnitDisplayString , completionIdentifier , expectedReplacedSource , "<STR_LIT>" ) ; } public void test0114 ( ) { String str = "<STR_LIT>" ; String completeBehind = "<STR_LIT>" ; int cursorLocation = str . lastIndexOf ( "<STR_LIT>" ) + completeBehind . length ( ) - <NUM_LIT:1> ; String expectedCompletionNodeToString = "<STR_LIT>" ; String expectedParentNodeToString = "<STR_LIT>" ; String completionIdentifier = "<STR_LIT>" ; String expectedReplacedSource = "<STR_LIT>" ; String expectedUnitDisplayString = "<STR_LIT>" ; checkDietParse ( str . toCharArray ( ) , cursorLocation , expectedCompletionNodeToString , expectedParentNodeToString , expectedUnitDisplayString , completionIdentifier , expectedReplacedSource , "<STR_LIT>" ) ; } public void test0115 ( ) { String str = "<STR_LIT>" ; String completeBehind = "<STR_LIT>" ; int cursorLocation = str . lastIndexOf ( "<STR_LIT>" ) + completeBehind . length ( ) - <NUM_LIT:1> ; String expectedCompletionNodeToString = "<STR_LIT>" ; String expectedParentNodeToString = "<STR_LIT>" ; String completionIdentifier = "<STR_LIT>" ; String expectedReplacedSource = "<STR_LIT>" ; String expectedUnitDisplayString = "<STR_LIT>" ; checkDietParse ( str . toCharArray ( ) , cursorLocation , expectedCompletionNodeToString , expectedParentNodeToString , expectedUnitDisplayString , completionIdentifier , expectedReplacedSource , "<STR_LIT>" ) ; } public void test0116 ( ) { String str = "<STR_LIT>" ; String completeBehind = "<STR_LIT>" ; int cursorLocation = str . lastIndexOf ( "<STR_LIT>" ) + completeBehind . length ( ) - <NUM_LIT:1> ; String expectedCompletionNodeToString = "<STR_LIT>" ; String expectedParentNodeToString = "<STR_LIT>" ; String completionIdentifier = "<STR_LIT>" ; String expectedReplacedSource = "<STR_LIT>" ; String expectedUnitDisplayString = "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" ; checkDietParse ( str . toCharArray ( ) , cursorLocation , expectedCompletionNodeToString , expectedParentNodeToString , expectedUnitDisplayString , completionIdentifier , expectedReplacedSource , "<STR_LIT>" ) ; } public void test0117 ( ) { String str = "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT:}>" ; String completeBehind = "<STR_LIT>" ; int cursorLocation = str . lastIndexOf ( "<STR_LIT>" ) + completeBehind . length ( ) - <NUM_LIT:1> ; String expectedCompletionNodeToString = "<STR_LIT>" ; String expectedParentNodeToString = "<STR_LIT>" ; String completionIdentifier = "<STR_LIT>" ; String expectedReplacedSource = "<STR_LIT>" ; String expectedUnitDisplayString = "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" ; checkDietParse ( str . toCharArray ( ) , cursorLocation , expectedCompletionNodeToString , expectedParentNodeToString , expectedUnitDisplayString , completionIdentifier , expectedReplacedSource , "<STR_LIT>" ) ; } public void test0118 ( ) { String str = "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT:}>" ; String completeBehind = "<STR_LIT>" ; int cursorLocation = str . lastIndexOf ( "<STR_LIT>" ) + completeBehind . length ( ) - <NUM_LIT:1> ; String expectedCompletionNodeToString = "<STR_LIT>" ; String expectedParentNodeToString = "<STR_LIT>" ; String completionIdentifier = "<STR_LIT>" ; String expectedReplacedSource = "<STR_LIT>" ; String expectedUnitDisplayString = "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" ; checkDietParse ( str . toCharArray ( ) , cursorLocation , expectedCompletionNodeToString , expectedParentNodeToString , expectedUnitDisplayString , completionIdentifier , expectedReplacedSource , "<STR_LIT>" ) ; } public void test0119 ( ) { String str = "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT:}>" ; String completeBehind = "<STR_LIT>" ; int cursorLocation = str . lastIndexOf ( "<STR_LIT>" ) + completeBehind . length ( ) - <NUM_LIT:1> ; String expectedCompletionNodeToString = "<STR_LIT>" ; String expectedParentNodeToString = "<STR_LIT>" ; String completionIdentifier = "<STR_LIT>" ; String expectedReplacedSource = "<STR_LIT>" ; String expectedUnitDisplayString = "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" ; checkDietParse ( str . toCharArray ( ) , cursorLocation , expectedCompletionNodeToString , expectedParentNodeToString , expectedUnitDisplayString , completionIdentifier , expectedReplacedSource , "<STR_LIT>" ) ; } public void test0120 ( ) { String str = "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT:}>" ; String completeBehind = "<STR_LIT>" ; int cursorLocation = str . lastIndexOf ( "<STR_LIT>" ) + completeBehind . length ( ) - <NUM_LIT:1> ; String expectedCompletionNodeToString = "<STR_LIT>" ; String expectedParentNodeToString = "<STR_LIT>" ; String completionIdentifier = "<STR_LIT>" ; String expectedReplacedSource = "<STR_LIT>" ; String expectedUnitDisplayString = "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" ; checkDietParse ( str . toCharArray ( ) , cursorLocation , expectedCompletionNodeToString , expectedParentNodeToString , expectedUnitDisplayString , completionIdentifier , expectedReplacedSource , "<STR_LIT>" ) ; } public void test0121 ( ) { String str = "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT:}>" ; String completeBehind = "<STR_LIT>" ; int cursorLocation = str . lastIndexOf ( "<STR_LIT>" ) + completeBehind . length ( ) - <NUM_LIT:1> ; String expectedCompletionNodeToString = "<STR_LIT>" ; String expectedParentNodeToString = "<STR_LIT>" ; String completionIdentifier = "<STR_LIT>" ; String expectedReplacedSource = "<STR_LIT>" ; String expectedUnitDisplayString = "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" ; checkDietParse ( str . toCharArray ( ) , cursorLocation , expectedCompletionNodeToString , expectedParentNodeToString , expectedUnitDisplayString , completionIdentifier , expectedReplacedSource , "<STR_LIT>" ) ; } public void test0122 ( ) { String str = "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT:}>" ; String completeBehind = "<STR_LIT>" ; int cursorLocation = str . lastIndexOf ( "<STR_LIT>" ) + completeBehind . length ( ) - <NUM_LIT:1> ; String expectedCompletionNodeToString = "<STR_LIT>" ; String expectedParentNodeToString = "<STR_LIT>" ; String completionIdentifier = "<STR_LIT>" ; String expectedReplacedSource = "<STR_LIT>" ; String expectedUnitDisplayString = "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" ; checkDietParse ( str . toCharArray ( ) , cursorLocation , expectedCompletionNodeToString , expectedParentNodeToString , expectedUnitDisplayString , completionIdentifier , expectedReplacedSource , "<STR_LIT>" ) ; } public void test0123 ( ) { String str = "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT:}>" ; String completeBehind = "<STR_LIT>" ; int cursorLocation = str . lastIndexOf ( "<STR_LIT>" ) + completeBehind . length ( ) - <NUM_LIT:1> ; String expectedCompletionNodeToString = "<STR_LIT>" ; String expectedParentNodeToString = "<STR_LIT>" ; String completionIdentifier = "<STR_LIT>" ; String expectedReplacedSource = "<STR_LIT>" ; String expectedUnitDisplayString = "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" ; checkDietParse ( str . toCharArray ( ) , cursorLocation , expectedCompletionNodeToString , expectedParentNodeToString , expectedUnitDisplayString , completionIdentifier , expectedReplacedSource , "<STR_LIT>" ) ; } public void test0124 ( ) { String str = "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT:}>" ; String completeBehind = "<STR_LIT>" ; int cursorLocation = str . lastIndexOf ( "<STR_LIT>" ) + completeBehind . length ( ) - <NUM_LIT:1> ; String expectedCompletionNodeToString = "<STR_LIT>" ; String expectedParentNodeToString = "<STR_LIT>" ; String completionIdentifier = "<STR_LIT>" ; String expectedReplacedSource = "<STR_LIT>" ; String expectedUnitDisplayString = "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" ; checkDietParse ( str . toCharArray ( ) , cursorLocation , expectedCompletionNodeToString , expectedParentNodeToString , expectedUnitDisplayString , completionIdentifier , expectedReplacedSource , "<STR_LIT>" ) ; } public void test0125 ( ) { String str = "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT:}>" ; String completeBehind = "<STR_LIT>" ; int cursorLocation = str . lastIndexOf ( "<STR_LIT>" ) + completeBehind . length ( ) - <NUM_LIT:1> ; String expectedCompletionNodeToString = "<STR_LIT>" ; String expectedParentNodeToString = "<STR_LIT>" ; String completionIdentifier = "<STR_LIT>" ; String expectedReplacedSource = "<STR_LIT>" ; String expectedUnitDisplayString = "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" ; checkDietParse ( str . toCharArray ( ) , cursorLocation , expectedCompletionNodeToString , expectedParentNodeToString , expectedUnitDisplayString , completionIdentifier , expectedReplacedSource , "<STR_LIT>" ) ; } public void test0126 ( ) { String str = "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT:}>" ; String completeBehind = "<STR_LIT>" ; int cursorLocation = str . lastIndexOf ( "<STR_LIT>" ) + completeBehind . length ( ) - <NUM_LIT:1> ; String expectedCompletionNodeToString = "<STR_LIT>" ; String expectedParentNodeToString = "<STR_LIT>" ; String completionIdentifier = "<STR_LIT>" ; String expectedReplacedSource = "<STR_LIT>" ; String expectedUnitDisplayString = "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" ; checkDietParse ( str . toCharArray ( ) , cursorLocation , expectedCompletionNodeToString , expectedParentNodeToString , expectedUnitDisplayString , completionIdentifier , expectedReplacedSource , "<STR_LIT>" ) ; } public void test0127 ( ) { String str = "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT:}>" ; String completeBehind = "<STR_LIT>" ; int cursorLocation = str . lastIndexOf ( "<STR_LIT>" ) + completeBehind . length ( ) - <NUM_LIT:1> ; String expectedCompletionNodeToString = "<STR_LIT>" ; String expectedParentNodeToString = "<STR_LIT>" ; String completionIdentifier = "<STR_LIT>" ; String expectedReplacedSource = "<STR_LIT>" ; String expectedUnitDisplayString = "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" ; checkDietParse ( str . toCharArray ( ) , cursorLocation , expectedCompletionNodeToString , expectedParentNodeToString , expectedUnitDisplayString , completionIdentifier , expectedReplacedSource , "<STR_LIT>" ) ; } public void test0128 ( ) { String str = "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT:}>" ; String completeBehind = "<STR_LIT>" ; int cursorLocation = str . lastIndexOf ( "<STR_LIT>" ) + completeBehind . length ( ) - <NUM_LIT:1> ; String expectedCompletionNodeToString = "<STR_LIT>" ; String expectedParentNodeToString = "<STR_LIT>" ; String completionIdentifier = "<STR_LIT>" ; String expectedReplacedSource = "<STR_LIT>" ; String expectedUnitDisplayString = "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" ; checkDietParse ( str . toCharArray ( ) , cursorLocation , expectedCompletionNodeToString , expectedParentNodeToString , expectedUnitDisplayString , completionIdentifier , expectedReplacedSource , "<STR_LIT>" ) ; } public void test0129 ( ) { String str = "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT:}>" ; String completeBehind = "<STR_LIT>" ; int cursorLocation = str . lastIndexOf ( "<STR_LIT>" ) + completeBehind . length ( ) - <NUM_LIT:1> ; String expectedCompletionNodeToString = "<STR_LIT>" ; String expectedParentNodeToString = "<STR_LIT>" ; String completionIdentifier = "<STR_LIT>" ; String expectedReplacedSource = "<STR_LIT>" ; String expectedUnitDisplayString = "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" ; checkDietParse ( str . toCharArray ( ) , cursorLocation , expectedCompletionNodeToString , expectedParentNodeToString , expectedUnitDisplayString , completionIdentifier , expectedReplacedSource , "<STR_LIT>" ) ; } public void test0130 ( ) { String str = "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT:}>" ; String completeBehind = "<STR_LIT>" ; int cursorLocation = str . lastIndexOf ( "<STR_LIT>" ) + completeBehind . length ( ) - <NUM_LIT:1> ; String expectedCompletionNodeToString = "<STR_LIT>" ; String expectedParentNodeToString = "<STR_LIT>" ; String completionIdentifier = "<STR_LIT>" ; String expectedReplacedSource = "<STR_LIT>" ; String expectedUnitDisplayString = "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" ; checkDietParse ( str . toCharArray ( ) , cursorLocation , expectedCompletionNodeToString , expectedParentNodeToString , expectedUnitDisplayString , completionIdentifier , expectedReplacedSource , "<STR_LIT>" ) ; } public void test0131 ( ) { String str = "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT:}>" ; String completeBehind = "<STR_LIT>" ; int cursorLocation = str . lastIndexOf ( "<STR_LIT>" ) + completeBehind . length ( ) - <NUM_LIT:1> ; String expectedCompletionNodeToString = "<STR_LIT>" ; String expectedParentNodeToString = "<STR_LIT>" ; String completionIdentifier = "<STR_LIT>" ; String expectedReplacedSource = "<STR_LIT>" ; String expectedUnitDisplayString = "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" ; checkDietParse ( str . toCharArray ( ) , cursorLocation , expectedCompletionNodeToString , expectedParentNodeToString , expectedUnitDisplayString , completionIdentifier , expectedReplacedSource , "<STR_LIT>" ) ; } public void test0132 ( ) { String str = "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT:}>" ; String completeBehind = "<STR_LIT>" ; int cursorLocation = str . lastIndexOf ( "<STR_LIT>" ) + completeBehind . length ( ) - <NUM_LIT:1> ; String expectedCompletionNodeToString = "<STR_LIT>" ; String expectedParentNodeToString = "<STR_LIT>" ; String completionIdentifier = "<STR_LIT>" ; String expectedReplacedSource = "<STR_LIT>" ; String expectedUnitDisplayString = "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" ; checkDietParse ( str . toCharArray ( ) , cursorLocation , expectedCompletionNodeToString , expectedParentNodeToString , expectedUnitDisplayString , completionIdentifier , expectedReplacedSource , "<STR_LIT>" ) ; } public void test0133 ( ) { String str = "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT:}>" ; String completeBehind = "<STR_LIT>" ; int cursorLocation = str . lastIndexOf ( "<STR_LIT>" ) + completeBehind . length ( ) - <NUM_LIT:1> ; String expectedCompletionNodeToString = "<STR_LIT>" ; String expectedParentNodeToString = "<STR_LIT>" ; String completionIdentifier = "<STR_LIT>" ; String expectedReplacedSource = "<STR_LIT>" ; String expectedUnitDisplayString = "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" ; checkDietParse ( str . toCharArray ( ) , cursorLocation , expectedCompletionNodeToString , expectedParentNodeToString , expectedUnitDisplayString , completionIdentifier , expectedReplacedSource , "<STR_LIT>" ) ; } public void test0134 ( ) { String str = "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT:}>" ; String completeBehind = "<STR_LIT>" ; int cursorLocation = str . lastIndexOf ( "<STR_LIT>" ) + completeBehind . length ( ) - <NUM_LIT:1> ; String expectedCompletionNodeToString = "<STR_LIT>" ; String expectedParentNodeToString = "<STR_LIT>" ; String completionIdentifier = "<STR_LIT>" ; String expectedReplacedSource = "<STR_LIT>" ; String expectedUnitDisplayString = "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" ; checkDietParse ( str . toCharArray ( ) , cursorLocation , expectedCompletionNodeToString , expectedParentNodeToString , expectedUnitDisplayString , completionIdentifier , expectedReplacedSource , "<STR_LIT>" ) ; } public void test0135 ( ) { String str = "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT:}>" ; String completeBehind = "<STR_LIT>" ; int cursorLocation = str . lastIndexOf ( "<STR_LIT>" ) + completeBehind . length ( ) - <NUM_LIT:1> ; String expectedCompletionNodeToString = "<STR_LIT>" ; String expectedParentNodeToString = "<STR_LIT>" ; String completionIdentifier = "<STR_LIT>" ; String expectedReplacedSource = "<STR_LIT>" ; String expectedUnitDisplayString = "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" ; checkDietParse ( str . toCharArray ( ) , cursorLocation , expectedCompletionNodeToString , expectedParentNodeToString , expectedUnitDisplayString , completionIdentifier , expectedReplacedSource , "<STR_LIT>" ) ; } public void test0136 ( ) { String str = "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT:}>" ; String completeBehind = "<STR_LIT>" ; int cursorLocation = str . lastIndexOf ( "<STR_LIT>" ) + completeBehind . length ( ) - <NUM_LIT:1> ; String expectedCompletionNodeToString = "<STR_LIT>" ; String expectedParentNodeToString = "<STR_LIT>" ; String completionIdentifier = "<STR_LIT>" ; String expectedReplacedSource = "<STR_LIT>" ; String expectedUnitDisplayString = "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" ; checkDietParse ( str . toCharArray ( ) , cursorLocation , expectedCompletionNodeToString , expectedParentNodeToString , expectedUnitDisplayString , completionIdentifier , expectedReplacedSource , "<STR_LIT>" ) ; } public void test0137 ( ) { String str = "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT:}>" ; String completeBehind = "<STR_LIT>" ; int cursorLocation = str . lastIndexOf ( "<STR_LIT>" ) + completeBehind . length ( ) - <NUM_LIT:1> ; String expectedCompletionNodeToString = "<STR_LIT>" ; String expectedParentNodeToString = "<STR_LIT>" ; String completionIdentifier = "<STR_LIT>" ; String expectedReplacedSource = "<STR_LIT>" ; String expectedUnitDisplayString = "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" ; checkDietParse ( str . toCharArray ( ) , cursorLocation , expectedCompletionNodeToString , expectedParentNodeToString , expectedUnitDisplayString , completionIdentifier , expectedReplacedSource , "<STR_LIT>" ) ; } public void test0138 ( ) { String str = "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT:}>" ; String completeBehind = "<STR_LIT>" ; int cursorLocation = str . lastIndexOf ( "<STR_LIT>" ) + completeBehind . length ( ) - <NUM_LIT:1> ; String expectedCompletionNodeToString = "<STR_LIT>" ; String expectedParentNodeToString = "<STR_LIT>" ; String completionIdentifier = "<STR_LIT>" ; String expectedReplacedSource = "<STR_LIT>" ; String expectedUnitDisplayString = "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" ; checkDietParse ( str . toCharArray ( ) , cursorLocation , expectedCompletionNodeToString , expectedParentNodeToString , expectedUnitDisplayString , completionIdentifier , expectedReplacedSource , "<STR_LIT>" ) ; } public void test0139 ( ) { String str = "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT:}>" ; String completeBehind = "<STR_LIT>" ; int cursorLocation = str . lastIndexOf ( "<STR_LIT>" ) + completeBehind . length ( ) - <NUM_LIT:1> ; String expectedCompletionNodeToString = "<STR_LIT>" ; String expectedParentNodeToString = "<STR_LIT>" ; String completionIdentifier = "<STR_LIT>" ; String expectedReplacedSource = "<STR_LIT>" ; String expectedUnitDisplayString = "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" ; checkDietParse ( str . toCharArray ( ) , cursorLocation , expectedCompletionNodeToString , expectedParentNodeToString , expectedUnitDisplayString , completionIdentifier , expectedReplacedSource , "<STR_LIT>" ) ; } public void test0140 ( ) { String str = "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT:}>" ; String completeBehind = "<STR_LIT>" ; int cursorLocation = str . lastIndexOf ( "<STR_LIT>" ) + completeBehind . length ( ) - <NUM_LIT:1> ; String expectedCompletionNodeToString = "<STR_LIT>" ; String expectedParentNodeToString = "<STR_LIT>" ; String completionIdentifier = "<STR_LIT>" ; String expectedReplacedSource = "<STR_LIT>" ; String expectedUnitDisplayString = "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" ; checkDietParse ( str . toCharArray ( ) , cursorLocation , expectedCompletionNodeToString , expectedParentNodeToString , expectedUnitDisplayString , completionIdentifier , expectedReplacedSource , "<STR_LIT>" ) ; } public void test0141 ( ) { String str = "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT:}>" ; String completeBehind = "<STR_LIT>" ; int cursorLocation = str . lastIndexOf ( "<STR_LIT>" ) + completeBehind . length ( ) - <NUM_LIT:1> ; String expectedCompletionNodeToString = "<STR_LIT>" ; String expectedParentNodeToString = "<STR_LIT>" ; String completionIdentifier = "<STR_LIT>" ; String expectedReplacedSource = "<STR_LIT>" ; String expectedUnitDisplayString = "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" ; checkDietParse ( str . toCharArray ( ) , cursorLocation , expectedCompletionNodeToString , expectedParentNodeToString , expectedUnitDisplayString , completionIdentifier , expectedReplacedSource , "<STR_LIT>" ) ; } public void test0142 ( ) { String str = "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT:}>" ; String completeBehind = "<STR_LIT>" ; int cursorLocation = str . lastIndexOf ( "<STR_LIT>" ) + completeBehind . length ( ) - <NUM_LIT:1> ; String expectedCompletionNodeToString = "<STR_LIT>" ; String expectedParentNodeToString = "<STR_LIT>" ; String completionIdentifier = "<STR_LIT>" ; String expectedReplacedSource = "<STR_LIT>" ; String expectedUnitDisplayString = "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" ; checkDietParse ( str . toCharArray ( ) , cursorLocation , expectedCompletionNodeToString , expectedParentNodeToString , expectedUnitDisplayString , completionIdentifier , expectedReplacedSource , "<STR_LIT>" ) ; } public void test0143 ( ) { String str = "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT:}>" ; String completeBehind = "<STR_LIT>" ; int cursorLocation = str . lastIndexOf ( "<STR_LIT>" ) + completeBehind . length ( ) - <NUM_LIT:1> ; String expectedCompletionNodeToString = "<STR_LIT>" ; String expectedParentNodeToString = "<STR_LIT>" ; String completionIdentifier = "<STR_LIT>" ; String expectedReplacedSource = "<STR_LIT>" ; String expectedUnitDisplayString = "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" ; checkDietParse ( str . toCharArray ( ) , cursorLocation , expectedCompletionNodeToString , expectedParentNodeToString , expectedUnitDisplayString , completionIdentifier , expectedReplacedSource , "<STR_LIT>" ) ; } public void test0144 ( ) { String str = "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT:}>" ; String completeBehind = "<STR_LIT>" ; int cursorLocation = str . lastIndexOf ( "<STR_LIT>" ) + completeBehind . length ( ) - <NUM_LIT:1> ; String expectedCompletionNodeToString = "<STR_LIT>" ; String expectedParentNodeToString = "<STR_LIT>" ; String completionIdentifier = "<STR_LIT>" ; String expectedReplacedSource = "<STR_LIT>" ; String expectedUnitDisplayString = "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" ; checkDietParse ( str . toCharArray ( ) , cursorLocation , expectedCompletionNodeToString , expectedParentNodeToString , expectedUnitDisplayString , completionIdentifier , expectedReplacedSource , "<STR_LIT>" ) ; } public void test0145 ( ) { String str = "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT:}>" ; String completeBehind = "<STR_LIT>" ; int cursorLocation = str . lastIndexOf ( "<STR_LIT>" ) + completeBehind . length ( ) - <NUM_LIT:1> ; String expectedCompletionNodeToString = "<STR_LIT>" ; String expectedParentNodeToString = "<STR_LIT>" ; String completionIdentifier = "<STR_LIT>" ; String expectedReplacedSource = "<STR_LIT>" ; String expectedUnitDisplayString = "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" ; checkDietParse ( str . toCharArray ( ) , cursorLocation , expectedCompletionNodeToString , expectedParentNodeToString , expectedUnitDisplayString , completionIdentifier , expectedReplacedSource , "<STR_LIT>" ) ; } public void test0146 ( ) { String str = "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT:}>" ; String completeBehind = "<STR_LIT>" ; int cursorLocation = str . lastIndexOf ( "<STR_LIT>" ) + completeBehind . length ( ) - <NUM_LIT:1> ; String expectedCompletionNodeToString = "<STR_LIT>" ; String expectedParentNodeToString = "<STR_LIT>" ; String completionIdentifier = "<STR_LIT>" ; String expectedReplacedSource = "<STR_LIT>" ; String expectedUnitDisplayString = "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" ; checkDietParse ( str . toCharArray ( ) , cursorLocation , expectedCompletionNodeToString , expectedParentNodeToString , expectedUnitDisplayString , completionIdentifier , expectedReplacedSource , "<STR_LIT>" ) ; } public void test0147_Diet ( ) { String str = "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT:}>" ; String completeBehind = "<STR_LIT>" ; int cursorLocation = str . lastIndexOf ( "<STR_LIT>" ) + completeBehind . length ( ) - <NUM_LIT:1> ; String expectedCompletionNodeToString = "<STR_LIT>" ; String expectedParentNodeToString = "<STR_LIT>" ; String completionIdentifier = "<STR_LIT>" ; String expectedReplacedSource = "<STR_LIT>" ; String expectedUnitDisplayString = "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" ; checkDietParse ( str . toCharArray ( ) , cursorLocation , expectedCompletionNodeToString , expectedParentNodeToString , expectedUnitDisplayString , completionIdentifier , expectedReplacedSource , "<STR_LIT>" ) ; } public void test0147_Method ( ) { String str = "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT:}>" ; String completeBehind = "<STR_LIT>" ; int cursorLocation = str . lastIndexOf ( "<STR_LIT>" ) + completeBehind . length ( ) - <NUM_LIT:1> ; String expectedCompletionNodeToString = "<STR_LIT>" ; String expectedParentNodeToString = "<STR_LIT>" ; String completionIdentifier = "<STR_LIT>" ; String expectedReplacedSource = "<STR_LIT>" ; String expectedUnitDisplayString = "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" ; checkMethodParse ( str . toCharArray ( ) , cursorLocation , expectedCompletionNodeToString , expectedParentNodeToString , expectedUnitDisplayString , completionIdentifier , expectedReplacedSource , "<STR_LIT>" ) ; } public void test0148_Diet ( ) { String str = "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT:}>" ; String completeBehind = "<STR_LIT>" ; int cursorLocation = str . lastIndexOf ( "<STR_LIT>" ) + completeBehind . length ( ) - <NUM_LIT:1> ; String expectedCompletionNodeToString = "<STR_LIT>" ; String expectedParentNodeToString = "<STR_LIT>" ; String completionIdentifier = "<STR_LIT>" ; String expectedReplacedSource = "<STR_LIT>" ; String expectedUnitDisplayString = "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" ; checkDietParse ( str . toCharArray ( ) , cursorLocation , expectedCompletionNodeToString , expectedParentNodeToString , expectedUnitDisplayString , completionIdentifier , expectedReplacedSource , "<STR_LIT>" ) ; } public void test0148_Method ( ) { String str = "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT:}>" ; String completeBehind = "<STR_LIT>" ; int cursorLocation = str . lastIndexOf ( "<STR_LIT>" ) + completeBehind . length ( ) - <NUM_LIT:1> ; String expectedCompletionNodeToString = "<STR_LIT>" ; String expectedParentNodeToString = "<STR_LIT>" ; String completionIdentifier = "<STR_LIT>" ; String expectedReplacedSource = "<STR_LIT>" ; String expectedUnitDisplayString = "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" ; checkMethodParse ( str . toCharArray ( ) , cursorLocation , expectedCompletionNodeToString , expectedParentNodeToString , expectedUnitDisplayString , completionIdentifier , expectedReplacedSource , "<STR_LIT>" ) ; } public void test0149 ( ) { String str = "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT:}>" ; String completeBehind = "<STR_LIT>" ; int cursorLocation = str . lastIndexOf ( "<STR_LIT>" ) + completeBehind . length ( ) - <NUM_LIT:1> ; String expectedCompletionNodeToString = "<STR_LIT>" ; String expectedParentNodeToString = "<STR_LIT>" ; String completionIdentifier = "<STR_LIT>" ; String expectedReplacedSource = "<STR_LIT>" ; String expectedUnitDisplayString = "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" ; checkDietParse ( str . toCharArray ( ) , cursorLocation , expectedCompletionNodeToString , expectedParentNodeToString , expectedUnitDisplayString , completionIdentifier , expectedReplacedSource , "<STR_LIT>" ) ; } public void test0150 ( ) { String str = "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT:}>" ; String completeBehind = "<STR_LIT>" ; int cursorLocation = str . lastIndexOf ( "<STR_LIT>" ) + completeBehind . length ( ) - <NUM_LIT:1> ; String expectedCompletionNodeToString = "<STR_LIT>" ; String expectedParentNodeToString = "<STR_LIT>" ; String completionIdentifier = "<STR_LIT>" ; String expectedReplacedSource = "<STR_LIT>" ; String expectedUnitDisplayString = "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" ; checkDietParse ( str . toCharArray ( ) , cursorLocation , expectedCompletionNodeToString , expectedParentNodeToString , expectedUnitDisplayString , completionIdentifier , expectedReplacedSource , "<STR_LIT>" ) ; } public void test0151 ( ) { String str = "<STR_LIT>" ; String completeBehind = "<STR_LIT>" ; int cursorLocation = str . lastIndexOf ( "<STR_LIT>" ) + completeBehind . length ( ) - <NUM_LIT:1> ; String expectedCompletionNodeToString = "<STR_LIT>" ; String expectedParentNodeToString = "<STR_LIT>" ; String completionIdentifier = "<STR_LIT>" ; String expectedReplacedSource = "<STR_LIT>" ; String expectedUnitDisplayString = "<STR_LIT>" ; checkDietParse ( str . toCharArray ( ) , cursorLocation , expectedCompletionNodeToString , expectedParentNodeToString , expectedUnitDisplayString , completionIdentifier , expectedReplacedSource , "<STR_LIT>" ) ; } public void test0152 ( ) { String str = "<STR_LIT>" ; String completeBehind = "<STR_LIT>" ; int cursorLocation = str . lastIndexOf ( "<STR_LIT>" ) + completeBehind . length ( ) - <NUM_LIT:1> ; String expectedCompletionNodeToString = "<STR_LIT>" ; String expectedParentNodeToString = "<STR_LIT>" ; String completionIdentifier = "<STR_LIT>" ; String expectedReplacedSource = "<STR_LIT>" ; String expectedUnitDisplayString = "<STR_LIT>" ; checkDietParse ( str . toCharArray ( ) , cursorLocation , expectedCompletionNodeToString , expectedParentNodeToString , expectedUnitDisplayString , completionIdentifier , expectedReplacedSource , "<STR_LIT>" ) ; } public void test0153 ( ) { String str = "<STR_LIT>" ; String completeBehind = "<STR_LIT>" ; int cursorLocation = str . lastIndexOf ( "<STR_LIT>" ) + completeBehind . length ( ) - <NUM_LIT:1> ; String expectedCompletionNodeToString = "<STR_LIT>" ; String expectedParentNodeToString = "<STR_LIT>" ; String completionIdentifier = "<STR_LIT>" ; String expectedReplacedSource = "<STR_LIT>" ; String expectedUnitDisplayString = "<STR_LIT>" ; checkDietParse ( str . toCharArray ( ) , cursorLocation , expectedCompletionNodeToString , expectedParentNodeToString , expectedUnitDisplayString , completionIdentifier , expectedReplacedSource , "<STR_LIT>" ) ; } public void test0154 ( ) { String str = "<STR_LIT>" ; String completeBehind = "<STR_LIT>" ; int cursorLocation = str . lastIndexOf ( "<STR_LIT>" ) + completeBehind . length ( ) - <NUM_LIT:1> ; String expectedCompletionNodeToString = "<STR_LIT>" ; String expectedParentNodeToString = "<STR_LIT>" ; String completionIdentifier = "<STR_LIT>" ; String expectedReplacedSource = "<STR_LIT>" ; String expectedUnitDisplayString = "<STR_LIT>" ; checkDietParse ( str . toCharArray ( ) , cursorLocation , expectedCompletionNodeToString , expectedParentNodeToString , expectedUnitDisplayString , completionIdentifier , expectedReplacedSource , "<STR_LIT>" ) ; } public void test0155 ( ) { String str = "<STR_LIT>" + "<STR_LIT>" ; String completeBehind = "<STR_LIT>" ; int cursorLocation = str . lastIndexOf ( "<STR_LIT>" ) + completeBehind . length ( ) - <NUM_LIT:1> ; String expectedCompletionNodeToString = "<STR_LIT>" ; String expectedParentNodeToString = "<STR_LIT>" ; String completionIdentifier = "<STR_LIT>" ; String expectedReplacedSource = "<STR_LIT>" ; String expectedUnitDisplayString = "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" ; checkDietParse ( str . toCharArray ( ) , cursorLocation , expectedCompletionNodeToString , expectedParentNodeToString , expectedUnitDisplayString , completionIdentifier , expectedReplacedSource , "<STR_LIT>" ) ; } public void test0156 ( ) { String str = "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT:}>" ; String completeBehind = "<STR_LIT>" ; int cursorLocation = str . lastIndexOf ( "<STR_LIT>" ) + completeBehind . length ( ) - <NUM_LIT:1> ; String expectedCompletionNodeToString = "<STR_LIT>" ; String expectedParentNodeToString = "<STR_LIT>" ; String completionIdentifier = "<STR_LIT>" ; String expectedReplacedSource = "<STR_LIT>" ; String expectedUnitDisplayString = "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" ; checkDietParse ( str . toCharArray ( ) , cursorLocation , expectedCompletionNodeToString , expectedParentNodeToString , expectedUnitDisplayString , completionIdentifier , expectedReplacedSource , "<STR_LIT>" ) ; } public void test0157 ( ) { String str = "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT:}>" ; String completeBehind = "<STR_LIT>" ; int cursorLocation = str . lastIndexOf ( "<STR_LIT>" ) + completeBehind . length ( ) - <NUM_LIT:1> ; String expectedCompletionNodeToString = "<STR_LIT>" ; String expectedParentNodeToString = "<STR_LIT>" ; String completionIdentifier = "<STR_LIT>" ; String expectedReplacedSource = "<STR_LIT>" ; String expectedUnitDisplayString = "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" ; checkDietParse ( str . toCharArray ( ) , cursorLocation , expectedCompletionNodeToString , expectedParentNodeToString , expectedUnitDisplayString , completionIdentifier , expectedReplacedSource , "<STR_LIT>" ) ; } public void test0158 ( ) { String str = "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT:}>" ; String completeBehind = "<STR_LIT>" ; int cursorLocation = str . lastIndexOf ( "<STR_LIT>" ) + completeBehind . length ( ) - <NUM_LIT:1> ; String expectedCompletionNodeToString = "<STR_LIT>" ; String expectedParentNodeToString = "<STR_LIT>" ; String completionIdentifier = "<STR_LIT>" ; String expectedReplacedSource = "<STR_LIT>" ; String expectedUnitDisplayString = "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" ; checkDietParse ( str . toCharArray ( ) , cursorLocation , expectedCompletionNodeToString , expectedParentNodeToString , expectedUnitDisplayString , completionIdentifier , expectedReplacedSource , "<STR_LIT>" ) ; } public void test0159 ( ) { String str = "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT:}>" ; String completeBehind = "<STR_LIT>" ; int cursorLocation = str . lastIndexOf ( "<STR_LIT>" ) + completeBehind . length ( ) - <NUM_LIT:1> ; String expectedCompletionNodeToString = "<STR_LIT>" ; String expectedParentNodeToString = "<STR_LIT>" ; String completionIdentifier = "<STR_LIT>" ; String expectedReplacedSource = "<STR_LIT>" ; String expectedUnitDisplayString = "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" ; checkDietParse ( str . toCharArray ( ) , cursorLocation , expectedCompletionNodeToString , expectedParentNodeToString , expectedUnitDisplayString , completionIdentifier , expectedReplacedSource , "<STR_LIT>" ) ; } public void test0160 ( ) { String str = "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT:}>" ; String completeBehind = "<STR_LIT>" ; int cursorLocation = str . lastIndexOf ( "<STR_LIT>" ) + completeBehind . length ( ) - <NUM_LIT:1> ; String expectedCompletionNodeToString = "<STR_LIT>" ; String expectedParentNodeToString = "<STR_LIT>" ; String completionIdentifier = "<STR_LIT>" ; String expectedReplacedSource = "<STR_LIT>" ; String expectedUnitDisplayString = "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" ; checkDietParse ( str . toCharArray ( ) , cursorLocation , expectedCompletionNodeToString , expectedParentNodeToString , expectedUnitDisplayString , completionIdentifier , expectedReplacedSource , "<STR_LIT>" ) ; } public void test0161 ( ) { String str = "<STR_LIT>" ; String completeBehind = "<STR_LIT>" ; int cursorLocation = str . lastIndexOf ( "<STR_LIT>" ) + completeBehind . length ( ) - <NUM_LIT:1> ; String expectedCompletionNodeToString = "<STR_LIT>" ; String expectedParentNodeToString = "<STR_LIT>" ; String completionIdentifier = "<STR_LIT>" ; String expectedReplacedSource = "<STR_LIT>" ; String expectedUnitDisplayString = "<STR_LIT>" ; checkDietParse ( str . toCharArray ( ) , cursorLocation , expectedCompletionNodeToString , expectedParentNodeToString , expectedUnitDisplayString , completionIdentifier , expectedReplacedSource , "<STR_LIT>" ) ; } public void test0162 ( ) { String str = "<STR_LIT>" ; String completeBehind = "<STR_LIT>" ; int cursorLocation = str . lastIndexOf ( "<STR_LIT>" ) + completeBehind . length ( ) - <NUM_LIT:1> ; String expectedCompletionNodeToString = "<STR_LIT>" ; String expectedParentNodeToString = "<STR_LIT>" ; String completionIdentifier = "<STR_LIT>" ; String expectedReplacedSource = "<STR_LIT>" ; String expectedUnitDisplayString = "<STR_LIT>" ; checkDietParse ( str . toCharArray ( ) , cursorLocation , expectedCompletionNodeToString , expectedParentNodeToString , expectedUnitDisplayString , completionIdentifier , expectedReplacedSource , "<STR_LIT>" ) ; } public void test0163 ( ) { String str = "<STR_LIT>" ; String completeBehind = "<STR_LIT>" ; int cursorLocation = str . lastIndexOf ( "<STR_LIT>" ) + completeBehind . length ( ) - <NUM_LIT:1> ; String expectedCompletionNodeToString = "<STR_LIT>" ; String expectedParentNodeToString = "<STR_LIT>" ; String completionIdentifier = "<STR_LIT>" ; String expectedReplacedSource = "<STR_LIT>" ; String expectedUnitDisplayString = "<STR_LIT>" ; checkDietParse ( str . toCharArray ( ) , cursorLocation , expectedCompletionNodeToString , expectedParentNodeToString , expectedUnitDisplayString , completionIdentifier , expectedReplacedSource , "<STR_LIT>" ) ; } public void test0164 ( ) { String str = "<STR_LIT>" ; String completeBehind = "<STR_LIT>" ; int cursorLocation = str . lastIndexOf ( "<STR_LIT>" ) + completeBehind . length ( ) - <NUM_LIT:1> ; String expectedCompletionNodeToString = "<STR_LIT>" ; String expectedParentNodeToString = "<STR_LIT>" ; String completionIdentifier = "<STR_LIT>" ; String expectedReplacedSource = "<STR_LIT>" ; String expectedUnitDisplayString = "<STR_LIT>" ; checkDietParse ( str . toCharArray ( ) , cursorLocation , expectedCompletionNodeToString , expectedParentNodeToString , expectedUnitDisplayString , completionIdentifier , expectedReplacedSource , "<STR_LIT>" ) ; } public void test0165 ( ) { String str = "<STR_LIT>" + "<STR_LIT>" ; String completeBehind = "<STR_LIT>" ; int cursorLocation = str . lastIndexOf ( "<STR_LIT>" ) + completeBehind . length ( ) - <NUM_LIT:1> ; String expectedCompletionNodeToString = "<STR_LIT>" ; String expectedParentNodeToString = "<STR_LIT>" ; String completionIdentifier = "<STR_LIT>" ; String expectedReplacedSource = "<STR_LIT>" ; String expectedUnitDisplayString = "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" ; checkDietParse ( str . toCharArray ( ) , cursorLocation , expectedCompletionNodeToString , expectedParentNodeToString , expectedUnitDisplayString , completionIdentifier , expectedReplacedSource , "<STR_LIT>" ) ; } public void test0166 ( ) { String str = "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT:}>" ; String completeBehind = "<STR_LIT>" ; int cursorLocation = str . lastIndexOf ( "<STR_LIT>" ) + completeBehind . length ( ) - <NUM_LIT:1> ; String expectedCompletionNodeToString = "<STR_LIT>" ; String expectedParentNodeToString = "<STR_LIT>" ; String completionIdentifier = "<STR_LIT>" ; String expectedReplacedSource = "<STR_LIT>" ; String expectedUnitDisplayString = "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" ; checkDietParse ( str . toCharArray ( ) , cursorLocation , expectedCompletionNodeToString , expectedParentNodeToString , expectedUnitDisplayString , completionIdentifier , expectedReplacedSource , "<STR_LIT>" ) ; } public void test0167 ( ) { String str = "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT:}>" ; String completeBehind = "<STR_LIT>" ; int cursorLocation = str . lastIndexOf ( "<STR_LIT>" ) + completeBehind . length ( ) - <NUM_LIT:1> ; String expectedCompletionNodeToString = "<STR_LIT>" ; String expectedParentNodeToString = "<STR_LIT>" ; String completionIdentifier = "<STR_LIT>" ; String expectedReplacedSource = "<STR_LIT>" ; String expectedUnitDisplayString = "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" ; checkDietParse ( str . toCharArray ( ) , cursorLocation , expectedCompletionNodeToString , expectedParentNodeToString , expectedUnitDisplayString , completionIdentifier , expectedReplacedSource , "<STR_LIT>" ) ; } public void test0168 ( ) { String str = "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT:}>" ; String completeBehind = "<STR_LIT>" ; int cursorLocation = str . lastIndexOf ( "<STR_LIT>" ) + completeBehind . length ( ) - <NUM_LIT:1> ; String expectedCompletionNodeToString = "<STR_LIT>" ; String expectedParentNodeToString = "<STR_LIT>" ; String completionIdentifier = "<STR_LIT>" ; String expectedReplacedSource = "<STR_LIT>" ; String expectedUnitDisplayString = "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" ; checkDietParse ( str . toCharArray ( ) , cursorLocation , expectedCompletionNodeToString , expectedParentNodeToString , expectedUnitDisplayString , completionIdentifier , expectedReplacedSource , "<STR_LIT>" ) ; } public void test0169 ( ) { String str = "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT:}>" ; String completeBehind = "<STR_LIT>" ; int cursorLocation = str . lastIndexOf ( "<STR_LIT>" ) + completeBehind . length ( ) - <NUM_LIT:1> ; String expectedCompletionNodeToString = "<STR_LIT>" ; String expectedParentNodeToString = "<STR_LIT>" ; String completionIdentifier = "<STR_LIT>" ; String expectedReplacedSource = "<STR_LIT>" ; String expectedUnitDisplayString = "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" ; checkDietParse ( str . toCharArray ( ) , cursorLocation , expectedCompletionNodeToString , expectedParentNodeToString , expectedUnitDisplayString , completionIdentifier , expectedReplacedSource , "<STR_LIT>" ) ; } public void test0170 ( ) { String str = "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT:}>" ; String completeBehind = "<STR_LIT>" ; int cursorLocation = str . lastIndexOf ( "<STR_LIT>" ) + completeBehind . length ( ) - <NUM_LIT:1> ; String expectedCompletionNodeToString = "<STR_LIT>" ; String expectedParentNodeToString = "<STR_LIT>" ; String completionIdentifier = "<STR_LIT>" ; String expectedReplacedSource = "<STR_LIT>" ; String expectedUnitDisplayString = "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" ; checkDietParse ( str . toCharArray ( ) , cursorLocation , expectedCompletionNodeToString , expectedParentNodeToString , expectedUnitDisplayString , completionIdentifier , expectedReplacedSource , "<STR_LIT>" ) ; } public void test0171 ( ) { String str = "<STR_LIT>" ; String completeBehind = "<STR_LIT>" ; int cursorLocation = str . lastIndexOf ( "<STR_LIT>" ) + completeBehind . length ( ) - <NUM_LIT:1> ; String expectedCompletionNodeToString = "<STR_LIT>" ; String expectedParentNodeToString = "<STR_LIT>" ; String completionIdentifier = "<STR_LIT>" ; String expectedReplacedSource = "<STR_LIT>" ; String expectedUnitDisplayString = "<STR_LIT>" ; checkDietParse ( str . toCharArray ( ) , cursorLocation , expectedCompletionNodeToString , expectedParentNodeToString , expectedUnitDisplayString , completionIdentifier , expectedReplacedSource , "<STR_LIT>" ) ; } public void test0172 ( ) { String str = "<STR_LIT>" ; String completeBehind = "<STR_LIT>" ; int cursorLocation = str . lastIndexOf ( "<STR_LIT>" ) + completeBehind . length ( ) - <NUM_LIT:1> ; String expectedCompletionNodeToString = "<STR_LIT>" ; String expectedParentNodeToString = "<STR_LIT>" ; String completionIdentifier = "<STR_LIT>" ; String expectedReplacedSource = "<STR_LIT>" ; String expectedUnitDisplayString = "<STR_LIT>" ; checkDietParse ( str . toCharArray ( ) , cursorLocation , expectedCompletionNodeToString , expectedParentNodeToString , expectedUnitDisplayString , completionIdentifier , expectedReplacedSource , "<STR_LIT>" ) ; } public void test0173 ( ) { String str = "<STR_LIT>" ; String completeBehind = "<STR_LIT>" ; int cursorLocation = str . lastIndexOf ( "<STR_LIT>" ) + completeBehind . length ( ) - <NUM_LIT:1> ; String expectedCompletionNodeToString = "<STR_LIT>" ; String expectedParentNodeToString = "<STR_LIT>" ; String completionIdentifier = "<STR_LIT>" ; String expectedReplacedSource = "<STR_LIT>" ; String expectedUnitDisplayString = "<STR_LIT>" ; checkDietParse ( str . toCharArray ( ) , cursorLocation , expectedCompletionNodeToString , expectedParentNodeToString , expectedUnitDisplayString , completionIdentifier , expectedReplacedSource , "<STR_LIT>" ) ; } public void test0174 ( ) { String str = "<STR_LIT>" ; String completeBehind = "<STR_LIT>" ; int cursorLocation = str . lastIndexOf ( "<STR_LIT>" ) + completeBehind . length ( ) - <NUM_LIT:1> ; String expectedCompletionNodeToString = "<STR_LIT>" ; String expectedParentNodeToString = "<STR_LIT>" ; String completionIdentifier = "<STR_LIT>" ; String expectedReplacedSource = "<STR_LIT>" ; String expectedUnitDisplayString = "<STR_LIT>" ; checkDietParse ( str . toCharArray ( ) , cursorLocation , expectedCompletionNodeToString , expectedParentNodeToString , expectedUnitDisplayString , completionIdentifier , expectedReplacedSource , "<STR_LIT>" ) ; } public void test0175 ( ) { String str = "<STR_LIT>" + "<STR_LIT>" ; String completeBehind = "<STR_LIT>" ; int cursorLocation = str . lastIndexOf ( "<STR_LIT>" ) + completeBehind . length ( ) - <NUM_LIT:1> ; String expectedCompletionNodeToString = "<STR_LIT>" ; String expectedParentNodeToString = "<STR_LIT>" ; String completionIdentifier = "<STR_LIT>" ; String expectedReplacedSource = "<STR_LIT>" ; String expectedUnitDisplayString = "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" ; checkDietParse ( str . toCharArray ( ) , cursorLocation , expectedCompletionNodeToString , expectedParentNodeToString , expectedUnitDisplayString , completionIdentifier , expectedReplacedSource , "<STR_LIT>" ) ; } public void test0176 ( ) { String str = "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT:}>" ; String completeBehind = "<STR_LIT>" ; int cursorLocation = str . lastIndexOf ( "<STR_LIT>" ) + completeBehind . length ( ) - <NUM_LIT:1> ; String expectedCompletionNodeToString = "<STR_LIT>" ; String expectedParentNodeToString = "<STR_LIT>" ; String completionIdentifier = "<STR_LIT>" ; String expectedReplacedSource = "<STR_LIT>" ; String expectedUnitDisplayString = "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" ; checkDietParse ( str . toCharArray ( ) , cursorLocation , expectedCompletionNodeToString , expectedParentNodeToString , expectedUnitDisplayString , completionIdentifier , expectedReplacedSource , "<STR_LIT>" ) ; } public void test0177 ( ) { String str = "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT:}>" ; String completeBehind = "<STR_LIT>" ; int cursorLocation = str . lastIndexOf ( "<STR_LIT>" ) + completeBehind . length ( ) - <NUM_LIT:1> ; String expectedCompletionNodeToString = "<STR_LIT>" ; String expectedParentNodeToString = "<STR_LIT>" ; String completionIdentifier = "<STR_LIT>" ; String expectedReplacedSource = "<STR_LIT>" ; String expectedUnitDisplayString = "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" ; checkDietParse ( str . toCharArray ( ) , cursorLocation , expectedCompletionNodeToString , expectedParentNodeToString , expectedUnitDisplayString , completionIdentifier , expectedReplacedSource , "<STR_LIT>" ) ; } public void test0178 ( ) { String str = "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT:}>" ; String completeBehind = "<STR_LIT>" ; int cursorLocation = str . lastIndexOf ( "<STR_LIT>" ) + completeBehind . length ( ) - <NUM_LIT:1> ; String expectedCompletionNodeToString = "<STR_LIT>" ; String expectedParentNodeToString = "<STR_LIT>" ; String completionIdentifier = "<STR_LIT>" ; String expectedReplacedSource = "<STR_LIT>" ; String expectedUnitDisplayString = "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" ; checkDietParse ( str . toCharArray ( ) , cursorLocation , expectedCompletionNodeToString , expectedParentNodeToString , expectedUnitDisplayString , completionIdentifier , expectedReplacedSource , "<STR_LIT>" ) ; } public void test0179 ( ) { String str = "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT:}>" ; String completeBehind = "<STR_LIT>" ; int cursorLocation = str . lastIndexOf ( "<STR_LIT>" ) + completeBehind . length ( ) - <NUM_LIT:1> ; String expectedCompletionNodeToString = "<STR_LIT>" ; String expectedParentNodeToString = "<STR_LIT>" ; String completionIdentifier = "<STR_LIT>" ; String expectedReplacedSource = "<STR_LIT>" ; String expectedUnitDisplayString = "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" ; checkDietParse ( str . toCharArray ( ) , cursorLocation , expectedCompletionNodeToString , expectedParentNodeToString , expectedUnitDisplayString , completionIdentifier , expectedReplacedSource , "<STR_LIT>" ) ; } public void test0180 ( ) { String str = "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT:}>" ; String completeBehind = "<STR_LIT>" ; int cursorLocation = str . lastIndexOf ( "<STR_LIT>" ) + completeBehind . length ( ) - <NUM_LIT:1> ; String expectedCompletionNodeToString = "<STR_LIT>" ; String expectedParentNodeToString = "<STR_LIT>" ; String completionIdentifier = "<STR_LIT>" ; String expectedReplacedSource = "<STR_LIT>" ; String expectedUnitDisplayString = "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" ; checkDietParse ( str . toCharArray ( ) , cursorLocation , expectedCompletionNodeToString , expectedParentNodeToString , expectedUnitDisplayString , completionIdentifier , expectedReplacedSource , "<STR_LIT>" ) ; } public void test0181_Diet ( ) { String str = "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" ; String completeBehind = "<STR_LIT>" ; int cursorLocation = str . lastIndexOf ( "<STR_LIT>" ) + completeBehind . length ( ) - <NUM_LIT:1> ; String expectedCompletionNodeToString = "<STR_LIT>" ; String expectedParentNodeToString = "<STR_LIT>" ; String completionIdentifier = "<STR_LIT>" ; String expectedReplacedSource = "<STR_LIT>" ; String expectedUnitDisplayString = "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" ; checkDietParse ( str . toCharArray ( ) , cursorLocation , expectedCompletionNodeToString , expectedParentNodeToString , expectedUnitDisplayString , completionIdentifier , expectedReplacedSource , "<STR_LIT>" ) ; } public void test0181_Method ( ) { String str = "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" ; String completeBehind = "<STR_LIT>" ; int cursorLocation = str . lastIndexOf ( "<STR_LIT>" ) + completeBehind . length ( ) - <NUM_LIT:1> ; String expectedCompletionNodeToString = "<STR_LIT>" ; String expectedParentNodeToString = "<STR_LIT>" ; String completionIdentifier = "<STR_LIT>" ; String expectedReplacedSource = "<STR_LIT>" ; String expectedUnitDisplayString = "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" ; checkMethodParse ( str . toCharArray ( ) , cursorLocation , expectedCompletionNodeToString , expectedParentNodeToString , expectedUnitDisplayString , completionIdentifier , expectedReplacedSource , "<STR_LIT>" ) ; } public void test0182_Diet ( ) { String str = "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" ; String completeBehind = "<STR_LIT>" ; int cursorLocation = str . lastIndexOf ( "<STR_LIT>" ) + completeBehind . length ( ) - <NUM_LIT:1> ; String expectedCompletionNodeToString = "<STR_LIT>" ; String expectedParentNodeToString = "<STR_LIT>" ; String completionIdentifier = "<STR_LIT>" ; String expectedReplacedSource = "<STR_LIT>" ; String expectedUnitDisplayString = "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" ; checkDietParse ( str . toCharArray ( ) , cursorLocation , expectedCompletionNodeToString , expectedParentNodeToString , expectedUnitDisplayString , completionIdentifier , expectedReplacedSource , "<STR_LIT>" ) ; } public void test0182_Method ( ) { String str = "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" ; String completeBehind = "<STR_LIT>" ; int cursorLocation = str . lastIndexOf ( "<STR_LIT>" ) + completeBehind . length ( ) - <NUM_LIT:1> ; String expectedCompletionNodeToString = "<STR_LIT>" ; String expectedParentNodeToString = "<STR_LIT>" ; String completionIdentifier = "<STR_LIT>" ; String expectedReplacedSource = "<STR_LIT>" ; String expectedUnitDisplayString = "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" ; checkMethodParse ( str . toCharArray ( ) , cursorLocation , expectedCompletionNodeToString , expectedParentNodeToString , expectedUnitDisplayString , completionIdentifier , expectedReplacedSource , "<STR_LIT>" ) ; } public void test0183_Diet ( ) { String str = "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" ; String completeBehind = "<STR_LIT>" ; int cursorLocation = str . lastIndexOf ( "<STR_LIT>" ) + completeBehind . length ( ) - <NUM_LIT:1> ; String expectedCompletionNodeToString = "<STR_LIT>" ; String expectedParentNodeToString = "<STR_LIT>" ; String completionIdentifier = "<STR_LIT>" ; String expectedReplacedSource = "<STR_LIT>" ; String expectedUnitDisplayString = "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" ; checkDietParse ( str . toCharArray ( ) , cursorLocation , expectedCompletionNodeToString , expectedParentNodeToString , expectedUnitDisplayString , completionIdentifier , expectedReplacedSource , "<STR_LIT>" ) ; } public void test0183_Method ( ) { String str = "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" ; String completeBehind = "<STR_LIT>" ; int cursorLocation = str . lastIndexOf ( "<STR_LIT>" ) + completeBehind . length ( ) - <NUM_LIT:1> ; String expectedCompletionNodeToString = "<STR_LIT>" ; String expectedParentNodeToString = "<STR_LIT>" ; String completionIdentifier = "<STR_LIT>" ; String expectedReplacedSource = "<STR_LIT>" ; String expectedUnitDisplayString = "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" ; checkMethodParse ( str . toCharArray ( ) , cursorLocation , expectedCompletionNodeToString , expectedParentNodeToString , expectedUnitDisplayString , completionIdentifier , expectedReplacedSource , "<STR_LIT>" ) ; } public void test0184_Diet ( ) { String str = "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" ; String completeBehind = "<STR_LIT>" ; int cursorLocation = str . lastIndexOf ( "<STR_LIT>" ) + completeBehind . length ( ) - <NUM_LIT:1> ; String expectedCompletionNodeToString = "<STR_LIT>" ; String expectedParentNodeToString = "<STR_LIT>" ; String completionIdentifier = "<STR_LIT>" ; String expectedReplacedSource = "<STR_LIT>" ; String expectedUnitDisplayString = "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" ; checkDietParse ( str . toCharArray ( ) , cursorLocation , expectedCompletionNodeToString , expectedParentNodeToString , expectedUnitDisplayString , completionIdentifier , expectedReplacedSource , "<STR_LIT>" ) ; } public void test0184_Method ( ) { String str = "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" ; String completeBehind = "<STR_LIT>" ; int cursorLocation = str . lastIndexOf ( "<STR_LIT>" ) + completeBehind . length ( ) - <NUM_LIT:1> ; String expectedCompletionNodeToString = "<STR_LIT>" ; String expectedParentNodeToString = "<STR_LIT>" ; String completionIdentifier = "<STR_LIT>" ; String expectedReplacedSource = "<STR_LIT>" ; String expectedUnitDisplayString = "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" ; checkMethodParse ( str . toCharArray ( ) , cursorLocation , expectedCompletionNodeToString , expectedParentNodeToString , expectedUnitDisplayString , completionIdentifier , expectedReplacedSource , "<STR_LIT>" ) ; } public void test0185_Diet ( ) { String str = "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" ; String completeBehind = "<STR_LIT>" ; int cursorLocation = str . lastIndexOf ( "<STR_LIT>" ) + completeBehind . length ( ) - <NUM_LIT:1> ; String expectedCompletionNodeToString = "<STR_LIT>" ; String expectedParentNodeToString = "<STR_LIT>" ; String completionIdentifier = "<STR_LIT>" ; String expectedReplacedSource = "<STR_LIT>" ; String expectedUnitDisplayString = "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" ; checkDietParse ( str . toCharArray ( ) , cursorLocation , expectedCompletionNodeToString , expectedParentNodeToString , expectedUnitDisplayString , completionIdentifier , expectedReplacedSource , "<STR_LIT>" ) ; } public void test0185_Method ( ) { String str = "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" ; String completeBehind = "<STR_LIT>" ; int cursorLocation = str . lastIndexOf ( "<STR_LIT>" ) + completeBehind . length ( ) - <NUM_LIT:1> ; String expectedCompletionNodeToString = "<STR_LIT>" ; String expectedParentNodeToString = "<STR_LIT>" ; String completionIdentifier = "<STR_LIT>" ; String expectedReplacedSource = "<STR_LIT>" ; String expectedUnitDisplayString = "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" ; checkMethodParse ( str . toCharArray ( ) , cursorLocation , expectedCompletionNodeToString , expectedParentNodeToString , expectedUnitDisplayString , completionIdentifier , expectedReplacedSource , "<STR_LIT>" ) ; } public void test0186_Diet ( ) { String str = "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" ; String completeBehind = "<STR_LIT>" ; int cursorLocation = str . lastIndexOf ( "<STR_LIT>" ) + completeBehind . length ( ) - <NUM_LIT:1> ; String expectedCompletionNodeToString = "<STR_LIT>" ; String expectedParentNodeToString = "<STR_LIT>" ; String completionIdentifier = "<STR_LIT>" ; String expectedReplacedSource = "<STR_LIT>" ; String expectedUnitDisplayString = "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" ; checkDietParse ( str . toCharArray ( ) , cursorLocation , expectedCompletionNodeToString , expectedParentNodeToString , expectedUnitDisplayString , completionIdentifier , expectedReplacedSource , "<STR_LIT>" ) ; } public void test0186_Method ( ) { String str = "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" ; String completeBehind = "<STR_LIT>" ; int cursorLocation = str . lastIndexOf ( "<STR_LIT>" ) + completeBehind . length ( ) - <NUM_LIT:1> ; String expectedCompletionNodeToString = "<STR_LIT>" ; String expectedParentNodeToString = "<STR_LIT>" ; String completionIdentifier = "<STR_LIT>" ; String expectedReplacedSource = "<STR_LIT>" ; String expectedUnitDisplayString = "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" ; checkMethodParse ( str . toCharArray ( ) , cursorLocation , expectedCompletionNodeToString , expectedParentNodeToString , expectedUnitDisplayString , completionIdentifier , expectedReplacedSource , "<STR_LIT>" ) ; } public void test0187_Diet ( ) { String str = "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" ; String completeBehind = "<STR_LIT>" ; int cursorLocation = str . lastIndexOf ( "<STR_LIT>" ) + completeBehind . length ( ) - <NUM_LIT:1> ; String expectedCompletionNodeToString = "<STR_LIT>" ; String expectedParentNodeToString = "<STR_LIT>" ; String completionIdentifier = "<STR_LIT>" ; String expectedReplacedSource = "<STR_LIT>" ; String expectedUnitDisplayString = "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" ; checkDietParse ( str . toCharArray ( ) , cursorLocation , expectedCompletionNodeToString , expectedParentNodeToString , expectedUnitDisplayString , completionIdentifier , expectedReplacedSource , "<STR_LIT>" ) ; } public void test0187_Method ( ) { String str = "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" ; String completeBehind = "<STR_LIT>" ; int cursorLocation = str . lastIndexOf ( "<STR_LIT>" ) + completeBehind . length ( ) - <NUM_LIT:1> ; String expectedCompletionNodeToString = "<STR_LIT>" ; String expectedParentNodeToString = "<STR_LIT>" ; String completionIdentifier = "<STR_LIT>" ; String expectedReplacedSource = "<STR_LIT>" ; String expectedUnitDisplayString = "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" ; checkMethodParse ( str . toCharArray ( ) , cursorLocation , expectedCompletionNodeToString , expectedParentNodeToString , expectedUnitDisplayString , completionIdentifier , expectedReplacedSource , "<STR_LIT>" ) ; } public void test0188_Diet ( ) { String str = "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" ; String completeBehind = "<STR_LIT>" ; int cursorLocation = str . lastIndexOf ( "<STR_LIT>" ) + completeBehind . length ( ) - <NUM_LIT:1> ; String expectedCompletionNodeToString = "<STR_LIT>" ; String expectedParentNodeToString = "<STR_LIT>" ; String completionIdentifier = "<STR_LIT>" ; String expectedReplacedSource = "<STR_LIT>" ; String expectedUnitDisplayString = "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" ; checkDietParse ( str . toCharArray ( ) , cursorLocation , expectedCompletionNodeToString , expectedParentNodeToString , expectedUnitDisplayString , completionIdentifier , expectedReplacedSource , "<STR_LIT>" ) ; } public void test0188_Method ( ) { String str = "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" ; String completeBehind = "<STR_LIT>" ; int cursorLocation = str . lastIndexOf ( "<STR_LIT>" ) + completeBehind . length ( ) - <NUM_LIT:1> ; String expectedCompletionNodeToString = "<STR_LIT>" ; String expectedParentNodeToString = "<STR_LIT>" ; String completionIdentifier = "<STR_LIT>" ; String expectedReplacedSource = "<STR_LIT>" ; String expectedUnitDisplayString = "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" ; checkMethodParse ( str . toCharArray ( ) , cursorLocation , expectedCompletionNodeToString , expectedParentNodeToString , expectedUnitDisplayString , completionIdentifier , expectedReplacedSource , "<STR_LIT>" ) ; } public void test0189_Diet ( ) { String str = "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT:}>" ; String completeBehind = "<STR_LIT>" ; int cursorLocation = str . lastIndexOf ( "<STR_LIT>" ) + completeBehind . length ( ) - <NUM_LIT:1> ; String expectedCompletionNodeToString = "<STR_LIT>" ; String expectedParentNodeToString = "<STR_LIT>" ; String completionIdentifier = "<STR_LIT>" ; String expectedReplacedSource = "<STR_LIT>" ; String expectedUnitDisplayString = "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" ; checkDietParse ( str . toCharArray ( ) , cursorLocation , expectedCompletionNodeToString , expectedParentNodeToString , expectedUnitDisplayString , completionIdentifier , expectedReplacedSource , "<STR_LIT>" ) ; } public void test0189_Method ( ) { String str = "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT:}>" ; String completeBehind = "<STR_LIT>" ; int cursorLocation = str . lastIndexOf ( "<STR_LIT>" ) + completeBehind . length ( ) - <NUM_LIT:1> ; String expectedCompletionNodeToString = "<STR_LIT>" ; String expectedParentNodeToString = "<STR_LIT>" ; String completionIdentifier = "<STR_LIT>" ; String expectedReplacedSource = "<STR_LIT>" ; String expectedUnitDisplayString = "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" ; checkMethodParse ( str . toCharArray ( ) , cursorLocation , expectedCompletionNodeToString , expectedParentNodeToString , expectedUnitDisplayString , completionIdentifier , expectedReplacedSource , "<STR_LIT>" ) ; } public void test0190_Diet ( ) { String str = "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" ; String completeBehind = "<STR_LIT>" ; int cursorLocation = str . lastIndexOf ( "<STR_LIT>" ) + completeBehind . length ( ) - <NUM_LIT:1> ; String expectedCompletionNodeToString = "<STR_LIT>" ; String expectedParentNodeToString = "<STR_LIT>" ; String completionIdentifier = "<STR_LIT>" ; String expectedReplacedSource = "<STR_LIT>" ; String expectedUnitDisplayString = "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" ; checkDietParse ( str . toCharArray ( ) , cursorLocation , expectedCompletionNodeToString , expectedParentNodeToString , expectedUnitDisplayString , completionIdentifier , expectedReplacedSource , "<STR_LIT>" ) ; } public void test0190_Method ( ) { String str = "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" ; String completeBehind = "<STR_LIT>" ; int cursorLocation = str . lastIndexOf ( "<STR_LIT>" ) + completeBehind . length ( ) - <NUM_LIT:1> ; String expectedCompletionNodeToString = "<STR_LIT>" ; String expectedParentNodeToString = "<STR_LIT>" ; String completionIdentifier = "<STR_LIT>" ; String expectedReplacedSource = "<STR_LIT>" ; String expectedUnitDisplayString = "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" ; checkMethodParse ( str . toCharArray ( ) , cursorLocation , expectedCompletionNodeToString , expectedParentNodeToString , expectedUnitDisplayString , completionIdentifier , expectedReplacedSource , "<STR_LIT>" ) ; } public void test0191_Diet ( ) { String str = "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" ; String completeBehind = "<STR_LIT>" ; int cursorLocation = str . lastIndexOf ( "<STR_LIT>" ) + completeBehind . length ( ) - <NUM_LIT:1> ; String expectedCompletionNodeToString = "<STR_LIT>" ; String expectedParentNodeToString = "<STR_LIT>" ; String completionIdentifier = "<STR_LIT>" ; String expectedReplacedSource = "<STR_LIT>" ; String expectedUnitDisplayString = "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" ; checkDietParse ( str . toCharArray ( ) , cursorLocation , expectedCompletionNodeToString , expectedParentNodeToString , expectedUnitDisplayString , completionIdentifier , expectedReplacedSource , "<STR_LIT>" ) ; } public void test0191_Method ( ) { String str = "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" ; String completeBehind = "<STR_LIT>" ; int cursorLocation = str . lastIndexOf ( "<STR_LIT>" ) + completeBehind . length ( ) - <NUM_LIT:1> ; String expectedCompletionNodeToString = "<STR_LIT>" ; String expectedParentNodeToString = "<STR_LIT>" ; String completionIdentifier = "<STR_LIT>" ; String expectedReplacedSource = "<STR_LIT>" ; String expectedUnitDisplayString = "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" ; checkMethodParse ( str . toCharArray ( ) , cursorLocation , expectedCompletionNodeToString , expectedParentNodeToString , expectedUnitDisplayString , completionIdentifier , expectedReplacedSource , "<STR_LIT>" ) ; } public void test0192_Diet ( ) { String str = "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" ; String completeBehind = "<STR_LIT>" ; int cursorLocation = str . lastIndexOf ( "<STR_LIT>" ) + completeBehind . length ( ) - <NUM_LIT:1> ; String expectedCompletionNodeToString = "<STR_LIT>" ; String expectedParentNodeToString = "<STR_LIT>" ; String completionIdentifier = "<STR_LIT>" ; String expectedReplacedSource = "<STR_LIT>" ; String expectedUnitDisplayString = "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" ; checkDietParse ( str . toCharArray ( ) , cursorLocation , expectedCompletionNodeToString , expectedParentNodeToString , expectedUnitDisplayString , completionIdentifier , expectedReplacedSource , "<STR_LIT>" ) ; } public void test0192_Method ( ) { String str = "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" ; String completeBehind = "<STR_LIT>" ; int cursorLocation = str . lastIndexOf ( "<STR_LIT>" ) + completeBehind . length ( ) - <NUM_LIT:1> ; String expectedCompletionNodeToString = "<STR_LIT>" ; String expectedParentNodeToString = "<STR_LIT>" ; String completionIdentifier = "<STR_LIT>" ; String expectedReplacedSource = "<STR_LIT>" ; String expectedUnitDisplayString = "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" ; checkMethodParse ( str . toCharArray ( ) , cursorLocation , expectedCompletionNodeToString , expectedParentNodeToString , expectedUnitDisplayString , completionIdentifier , expectedReplacedSource , "<STR_LIT>" ) ; } public void test0193_Diet ( ) { String str = "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" ; String completeBehind = "<STR_LIT>" ; int cursorLocation = str . lastIndexOf ( "<STR_LIT>" ) + completeBehind . length ( ) - <NUM_LIT:1> ; String expectedCompletionNodeToString = "<STR_LIT>" ; String expectedParentNodeToString = "<STR_LIT>" ; String completionIdentifier = "<STR_LIT>" ; String expectedReplacedSource = "<STR_LIT>" ; String expectedUnitDisplayString = "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" ; checkDietParse ( str . toCharArray ( ) , cursorLocation , expectedCompletionNodeToString , expectedParentNodeToString , expectedUnitDisplayString , completionIdentifier , expectedReplacedSource , "<STR_LIT>" ) ; } public void test0193_Method ( ) { String str = "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" ; String completeBehind = "<STR_LIT>" ; int cursorLocation = str . lastIndexOf ( "<STR_LIT>" ) + completeBehind . length ( ) - <NUM_LIT:1> ; String expectedCompletionNodeToString = "<STR_LIT>" ; String expectedParentNodeToString = "<STR_LIT>" ; String completionIdentifier = "<STR_LIT>" ; String expectedReplacedSource = "<STR_LIT>" ; String expectedUnitDisplayString = "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" ; checkMethodParse ( str . toCharArray ( ) , cursorLocation , expectedCompletionNodeToString , expectedParentNodeToString , expectedUnitDisplayString , completionIdentifier , expectedReplacedSource , "<STR_LIT>" ) ; } public void test0194 ( ) { String str = "<STR_LIT>" + "<STR_LIT>" ; String completeBehind = "<STR_LIT>" ; int cursorLocation = str . indexOf ( "<STR_LIT>" ) + completeBehind . length ( ) - <NUM_LIT:1> ; String expectedCompletionNodeToString = "<STR_LIT>" ; String expectedParentNodeToString = "<STR_LIT>" ; String completionIdentifier = "<STR_LIT>" ; String expectedReplacedSource = "<STR_LIT>" ; String expectedUnitDisplayString = "<STR_LIT>" ; checkDietParse ( str . toCharArray ( ) , cursorLocation , expectedCompletionNodeToString , expectedParentNodeToString , expectedUnitDisplayString , completionIdentifier , expectedReplacedSource , "<STR_LIT>" ) ; } public void test0195 ( ) { String str = "<STR_LIT>" + "<STR_LIT>" ; String completeBehind = "<STR_LIT>" ; int cursorLocation = str . indexOf ( "<STR_LIT>" ) + completeBehind . length ( ) - <NUM_LIT:1> ; String expectedCompletionNodeToString = "<STR_LIT>" ; String expectedParentNodeToString = "<STR_LIT>" ; String completionIdentifier = "<STR_LIT>" ; String expectedReplacedSource = "<STR_LIT>" ; String expectedUnitDisplayString = "<STR_LIT>" ; checkDietParse ( str . toCharArray ( ) , cursorLocation , expectedCompletionNodeToString , expectedParentNodeToString , expectedUnitDisplayString , completionIdentifier , expectedReplacedSource , "<STR_LIT>" ) ; } public void test0196 ( ) { String str = "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" ; String completeBehind = "<STR_LIT>" ; int cursorLocation = str . indexOf ( "<STR_LIT>" ) + completeBehind . length ( ) - <NUM_LIT:1> ; String expectedCompletionNodeToString = "<STR_LIT>" ; String expectedParentNodeToString = "<STR_LIT>" ; String completionIdentifier = "<STR_LIT>" ; String expectedReplacedSource = "<STR_LIT>" ; String expectedUnitDisplayString = "<STR_LIT>" + "<STR_LIT>" ; checkDietParse ( str . toCharArray ( ) , cursorLocation , expectedCompletionNodeToString , expectedParentNodeToString , expectedUnitDisplayString , completionIdentifier , expectedReplacedSource , "<STR_LIT>" ) ; } public void test0197 ( ) { String str = "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" ; String completeBehind = "<STR_LIT>" ; int cursorLocation = str . indexOf ( "<STR_LIT>" ) + completeBehind . length ( ) - <NUM_LIT:1> ; String expectedCompletionNodeToString = "<STR_LIT>" ; String expectedParentNodeToString = "<STR_LIT>" ; String completionIdentifier = "<STR_LIT>" ; String expectedReplacedSource = "<STR_LIT>" ; String expectedUnitDisplayString = "<STR_LIT>" + "<STR_LIT>" ; checkDietParse ( str . toCharArray ( ) , cursorLocation , expectedCompletionNodeToString , expectedParentNodeToString , expectedUnitDisplayString , completionIdentifier , expectedReplacedSource , "<STR_LIT>" ) ; } public void test0198 ( ) { String str = "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" ; String completeBehind = "<STR_LIT>" ; int cursorLocation = str . indexOf ( "<STR_LIT>" ) + completeBehind . length ( ) - <NUM_LIT:1> ; String expectedCompletionNodeToString = "<STR_LIT>" ; String expectedParentNodeToString = "<STR_LIT>" ; String completionIdentifier = "<STR_LIT>" ; String expectedReplacedSource = "<STR_LIT>" ; String expectedUnitDisplayString = "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" ; checkDietParse ( str . toCharArray ( ) , cursorLocation , expectedCompletionNodeToString , expectedParentNodeToString , expectedUnitDisplayString , completionIdentifier , expectedReplacedSource , "<STR_LIT>" ) ; } public void test0199 ( ) { String str = "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" ; String completeBehind = "<STR_LIT>" ; int cursorLocation = str . indexOf ( "<STR_LIT>" ) + completeBehind . length ( ) - <NUM_LIT:1> ; String expectedCompletionNodeToString = "<STR_LIT>" ; String expectedParentNodeToString = "<STR_LIT>" ; String completionIdentifier = "<STR_LIT>" ; String expectedReplacedSource = "<STR_LIT>" ; String expectedUnitDisplayString = "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" ; checkDietParse ( str . toCharArray ( ) , cursorLocation , expectedCompletionNodeToString , expectedParentNodeToString , expectedUnitDisplayString , completionIdentifier , expectedReplacedSource , "<STR_LIT>" ) ; } public void test0200 ( ) { String str = "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" ; String completeBehind = "<STR_LIT>" ; int cursorLocation = str . indexOf ( "<STR_LIT>" ) + completeBehind . length ( ) - <NUM_LIT:1> ; String expectedCompletionNodeToString = "<STR_LIT>" ; String expectedParentNodeToString = "<STR_LIT>" ; String completionIdentifier = "<STR_LIT>" ; String expectedReplacedSource = "<STR_LIT>" ; String expectedUnitDisplayString = "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" ; checkDietParse ( str . toCharArray ( ) , cursorLocation , expectedCompletionNodeToString , expectedParentNodeToString , expectedUnitDisplayString , completionIdentifier , expectedReplacedSource , "<STR_LIT>" ) ; } public void test0201 ( ) { String str = "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" ; String completeBehind = "<STR_LIT>" ; int cursorLocation = str . indexOf ( "<STR_LIT>" ) + completeBehind . length ( ) - <NUM_LIT:1> ; String expectedCompletionNodeToString = "<STR_LIT>" ; String expectedParentNodeToString = "<STR_LIT>" ; String completionIdentifier = "<STR_LIT>" ; String expectedReplacedSource = "<STR_LIT>" ; String expectedUnitDisplayString = "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" ; checkDietParse ( str . toCharArray ( ) , cursorLocation , expectedCompletionNodeToString , expectedParentNodeToString , expectedUnitDisplayString , completionIdentifier , expectedReplacedSource , "<STR_LIT>" ) ; } public void test0202 ( ) { String str = "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" ; String completeBehind = "<STR_LIT>" ; int cursorLocation = str . lastIndexOf ( "<STR_LIT>" ) + completeBehind . length ( ) - <NUM_LIT:1> ; String expectedCompletionNodeToString = "<STR_LIT>" ; String expectedParentNodeToString = "<STR_LIT>" ; String completionIdentifier = "<STR_LIT>" ; String expectedReplacedSource = "<STR_LIT>" ; String expectedUnitDisplayString = "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" ; checkDietParse ( str . toCharArray ( ) , cursorLocation , expectedCompletionNodeToString , expectedParentNodeToString , expectedUnitDisplayString , completionIdentifier , expectedReplacedSource , "<STR_LIT>" ) ; } public void test0203 ( ) { String str = "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" ; String completeBehind = "<STR_LIT>" ; int cursorLocation = str . lastIndexOf ( "<STR_LIT>" ) + completeBehind . length ( ) - <NUM_LIT:1> ; String expectedCompletionNodeToString = "<STR_LIT>" ; String expectedParentNodeToString = "<STR_LIT>" ; String completionIdentifier = "<STR_LIT>" ; String expectedReplacedSource = "<STR_LIT>" ; String expectedUnitDisplayString = "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" ; checkDietParse ( str . toCharArray ( ) , cursorLocation , expectedCompletionNodeToString , expectedParentNodeToString , expectedUnitDisplayString , completionIdentifier , expectedReplacedSource , "<STR_LIT>" ) ; } public void test0204 ( ) { String str = "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" ; String completeBehind = "<STR_LIT>" ; int cursorLocation = str . lastIndexOf ( "<STR_LIT>" ) + completeBehind . length ( ) - <NUM_LIT:1> ; String expectedCompletionNodeToString = "<STR_LIT>" ; String expectedParentNodeToString = "<STR_LIT>" ; String completionIdentifier = "<STR_LIT>" ; String expectedReplacedSource = "<STR_LIT>" ; String expectedUnitDisplayString = "<STR_LIT>" + "<STR_LIT>" ; checkDietParse ( str . toCharArray ( ) , cursorLocation , expectedCompletionNodeToString , expectedParentNodeToString , expectedUnitDisplayString , completionIdentifier , expectedReplacedSource , "<STR_LIT>" ) ; } public void test0205 ( ) { String str = "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" ; String completeBehind = "<STR_LIT>" ; int cursorLocation = str . lastIndexOf ( "<STR_LIT>" ) + completeBehind . length ( ) - <NUM_LIT:1> ; String expectedCompletionNodeToString = "<STR_LIT>" ; String expectedParentNodeToString = "<STR_LIT>" ; String completionIdentifier = "<STR_LIT>" ; String expectedReplacedSource = "<STR_LIT>" ; String expectedUnitDisplayString = "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" ; checkDietParse ( str . toCharArray ( ) , cursorLocation , expectedCompletionNodeToString , expectedParentNodeToString , expectedUnitDisplayString , completionIdentifier , expectedReplacedSource , "<STR_LIT>" ) ; } public void test0206 ( ) { String str = "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" ; String completeBehind = "<STR_LIT>" ; int cursorLocation = str . lastIndexOf ( "<STR_LIT>" ) + completeBehind . length ( ) - <NUM_LIT:1> ; String expectedCompletionNodeToString = "<STR_LIT>" ; String expectedParentNodeToString = "<STR_LIT>" ; String completionIdentifier = "<STR_LIT>" ; String expectedReplacedSource = "<STR_LIT>" ; String expectedUnitDisplayString = "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" ; checkDietParse ( str . toCharArray ( ) , cursorLocation , expectedCompletionNodeToString , expectedParentNodeToString , expectedUnitDisplayString , completionIdentifier , expectedReplacedSource , "<STR_LIT>" ) ; } public void test0207 ( ) { String str = "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" ; String completeBehind = "<STR_LIT>" ; int cursorLocation = str . lastIndexOf ( "<STR_LIT>" ) + completeBehind . length ( ) - <NUM_LIT:1> ; String expectedCompletionNodeToString = "<STR_LIT>" ; String expectedParentNodeToString = "<STR_LIT>" ; String completionIdentifier = "<STR_LIT>" ; String expectedReplacedSource = "<STR_LIT>" ; String expectedUnitDisplayString = "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" ; checkDietParse ( str . toCharArray ( ) , cursorLocation , expectedCompletionNodeToString , expectedParentNodeToString , expectedUnitDisplayString , completionIdentifier , expectedReplacedSource , "<STR_LIT>" ) ; } public void test0208 ( ) { String str = "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" ; String completeBehind = "<STR_LIT>" ; int cursorLocation = str . lastIndexOf ( "<STR_LIT>" ) + completeBehind . length ( ) - <NUM_LIT:1> ; String expectedCompletionNodeToString = "<STR_LIT>" ; String expectedParentNodeToString = "<STR_LIT>" ; String completionIdentifier = "<STR_LIT>" ; String expectedReplacedSource = "<STR_LIT>" ; String expectedUnitDisplayString = "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" ; checkDietParse ( str . toCharArray ( ) , cursorLocation , expectedCompletionNodeToString , expectedParentNodeToString , expectedUnitDisplayString , completionIdentifier , expectedReplacedSource , "<STR_LIT>" ) ; } public void test0209 ( ) { String str = "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" ; String completeBehind = "<STR_LIT>" ; int cursorLocation = str . lastIndexOf ( "<STR_LIT>" ) + completeBehind . length ( ) - <NUM_LIT:1> ; String expectedCompletionNodeToString = "<STR_LIT>" ; String expectedParentNodeToString = "<STR_LIT>" ; String completionIdentifier = "<STR_LIT>" ; String expectedReplacedSource = "<STR_LIT>" ; String expectedUnitDisplayString = "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" ; checkDietParse ( str . toCharArray ( ) , cursorLocation , expectedCompletionNodeToString , expectedParentNodeToString , expectedUnitDisplayString , completionIdentifier , expectedReplacedSource , "<STR_LIT>" ) ; } public void test0210 ( ) { String str = "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" ; String completeBehind = "<STR_LIT>" ; int cursorLocation = str . lastIndexOf ( "<STR_LIT>" ) + completeBehind . length ( ) - <NUM_LIT:1> ; String expectedCompletionNodeToString = "<STR_LIT>" ; String expectedParentNodeToString = "<STR_LIT>" ; String completionIdentifier = "<STR_LIT>" ; String expectedReplacedSource = "<STR_LIT>" ; String expectedUnitDisplayString = "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" ; checkDietParse ( str . toCharArray ( ) , cursorLocation , expectedCompletionNodeToString , expectedParentNodeToString , expectedUnitDisplayString , completionIdentifier , expectedReplacedSource , "<STR_LIT>" ) ; } public void test0211 ( ) { String str = "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" ; String completeBehind = "<STR_LIT>" ; int cursorLocation = str . lastIndexOf ( "<STR_LIT>" ) + completeBehind . length ( ) - <NUM_LIT:1> ; String expectedCompletionNodeToString = "<STR_LIT>" ; String expectedParentNodeToString = "<STR_LIT>" ; String completionIdentifier = "<STR_LIT>" ; String expectedReplacedSource = "<STR_LIT>" ; String expectedUnitDisplayString = "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" ; checkDietParse ( str . toCharArray ( ) , cursorLocation , expectedCompletionNodeToString , expectedParentNodeToString , expectedUnitDisplayString , completionIdentifier , expectedReplacedSource , "<STR_LIT>" ) ; } public void test0212 ( ) { String str = "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" ; String completeBehind = "<STR_LIT>" ; int cursorLocation = str . lastIndexOf ( "<STR_LIT>" ) + completeBehind . length ( ) - <NUM_LIT:1> ; String expectedCompletionNodeToString = "<STR_LIT>" ; String expectedParentNodeToString = "<STR_LIT>" ; String completionIdentifier = "<STR_LIT>" ; String expectedReplacedSource = "<STR_LIT>" ; String expectedUnitDisplayString = "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" ; checkDietParse ( str . toCharArray ( ) , cursorLocation , expectedCompletionNodeToString , expectedParentNodeToString , expectedUnitDisplayString , completionIdentifier , expectedReplacedSource , "<STR_LIT>" ) ; } public void test0213 ( ) { String str = "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" ; String completeBehind = "<STR_LIT>" ; int cursorLocation = str . lastIndexOf ( "<STR_LIT>" ) + completeBehind . length ( ) - <NUM_LIT:1> ; String expectedCompletionNodeToString = "<STR_LIT>" ; String expectedParentNodeToString = "<STR_LIT>" ; String completionIdentifier = "<STR_LIT>" ; String expectedReplacedSource = "<STR_LIT>" ; String expectedUnitDisplayString = "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" ; checkDietParse ( str . toCharArray ( ) , cursorLocation , expectedCompletionNodeToString , expectedParentNodeToString , expectedUnitDisplayString , completionIdentifier , expectedReplacedSource , "<STR_LIT>" ) ; } public void test0214_Diet ( ) { String str = "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" ; String completeBehind = "<STR_LIT>" ; int cursorLocation = str . lastIndexOf ( "<STR_LIT>" ) + completeBehind . length ( ) - <NUM_LIT:1> ; String expectedCompletionNodeToString = "<STR_LIT>" ; String expectedParentNodeToString = "<STR_LIT>" ; String completionIdentifier = "<STR_LIT>" ; String expectedReplacedSource = "<STR_LIT>" ; String expectedUnitDisplayString = "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" ; checkDietParse ( str . toCharArray ( ) , cursorLocation , expectedCompletionNodeToString , expectedParentNodeToString , expectedUnitDisplayString , completionIdentifier , expectedReplacedSource , "<STR_LIT>" ) ; } public void test0214_Method ( ) { String str = "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" ; String completeBehind = "<STR_LIT>" ; int cursorLocation = str . lastIndexOf ( "<STR_LIT>" ) + completeBehind . length ( ) - <NUM_LIT:1> ; String expectedCompletionNodeToString = "<STR_LIT>" ; String expectedParentNodeToString = "<STR_LIT>" ; String completionIdentifier = "<STR_LIT>" ; String expectedReplacedSource = "<STR_LIT>" ; String expectedUnitDisplayString = "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" ; checkMethodParse ( str . toCharArray ( ) , cursorLocation , expectedCompletionNodeToString , expectedParentNodeToString , expectedUnitDisplayString , completionIdentifier , expectedReplacedSource , "<STR_LIT>" ) ; } public void test0216_Diet ( ) { String str = "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" ; String completeBehind = "<STR_LIT>" ; int cursorLocation = str . lastIndexOf ( "<STR_LIT>" ) + completeBehind . length ( ) - <NUM_LIT:1> ; String expectedCompletionNodeToString = "<STR_LIT>" ; String expectedParentNodeToString = "<STR_LIT>" ; String completionIdentifier = "<STR_LIT>" ; String expectedReplacedSource = "<STR_LIT>" ; String expectedUnitDisplayString = "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" ; checkDietParse ( str . toCharArray ( ) , cursorLocation , expectedCompletionNodeToString , expectedParentNodeToString , expectedUnitDisplayString , completionIdentifier , expectedReplacedSource , "<STR_LIT>" ) ; } public void test0216_Method ( ) { String str = "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" ; String completeBehind = "<STR_LIT>" ; int cursorLocation = str . lastIndexOf ( "<STR_LIT>" ) + completeBehind . length ( ) - <NUM_LIT:1> ; String expectedCompletionNodeToString = "<STR_LIT>" ; String expectedParentNodeToString = "<STR_LIT>" ; String completionIdentifier = "<STR_LIT>" ; String expectedReplacedSource = "<STR_LIT>" ; String expectedUnitDisplayString = "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" ; checkMethodParse ( str . toCharArray ( ) , cursorLocation , expectedCompletionNodeToString , expectedParentNodeToString , expectedUnitDisplayString , completionIdentifier , expectedReplacedSource , "<STR_LIT>" ) ; } public void test0217_Diet ( ) { String str = "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" ; String completeBehind = "<STR_LIT>" ; int cursorLocation = str . lastIndexOf ( "<STR_LIT>" ) + completeBehind . length ( ) - <NUM_LIT:1> ; String expectedCompletionNodeToString = "<STR_LIT>" ; String expectedParentNodeToString = "<STR_LIT>" ; String completionIdentifier = "<STR_LIT>" ; String expectedReplacedSource = "<STR_LIT>" ; String expectedUnitDisplayString = "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" ; checkDietParse ( str . toCharArray ( ) , cursorLocation , expectedCompletionNodeToString , expectedParentNodeToString , expectedUnitDisplayString , completionIdentifier , expectedReplacedSource , "<STR_LIT>" ) ; } public void test0217_Method ( ) { String str = "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" ; String completeBehind = "<STR_LIT>" ; int cursorLocation = str . lastIndexOf ( "<STR_LIT>" ) + completeBehind . length ( ) - <NUM_LIT:1> ; String expectedCompletionNodeToString = "<STR_LIT>" ; String expectedParentNodeToString = "<STR_LIT>" ; String completionIdentifier = "<STR_LIT>" ; String expectedReplacedSource = "<STR_LIT>" ; String expectedUnitDisplayString = "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" ; checkMethodParse ( str . toCharArray ( ) , cursorLocation , expectedCompletionNodeToString , expectedParentNodeToString , expectedUnitDisplayString , completionIdentifier , expectedReplacedSource , "<STR_LIT>" ) ; } public void test0218_Diet ( ) { String str = "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" ; String completeBehind = "<STR_LIT>" ; int cursorLocation = str . lastIndexOf ( "<STR_LIT>" ) + completeBehind . length ( ) - <NUM_LIT:1> ; String expectedCompletionNodeToString = "<STR_LIT>" ; String expectedParentNodeToString = "<STR_LIT>" ; String completionIdentifier = "<STR_LIT>" ; String expectedReplacedSource = "<STR_LIT>" ; String expectedUnitDisplayString = "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" ; checkDietParse ( str . toCharArray ( ) , cursorLocation , expectedCompletionNodeToString , expectedParentNodeToString , expectedUnitDisplayString , completionIdentifier , expectedReplacedSource , "<STR_LIT>" ) ; } public void test0218_Method ( ) { String str = "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" ; String completeBehind = "<STR_LIT>" ; int cursorLocation = str . lastIndexOf ( "<STR_LIT>" ) + completeBehind . length ( ) - <NUM_LIT:1> ; String expectedCompletionNodeToString = "<STR_LIT>" ; String expectedParentNodeToString = "<STR_LIT>" ; String completionIdentifier = "<STR_LIT>" ; String expectedReplacedSource = "<STR_LIT>" ; String expectedUnitDisplayString = "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" ; checkMethodParse ( str . toCharArray ( ) , cursorLocation , expectedCompletionNodeToString , expectedParentNodeToString , expectedUnitDisplayString , completionIdentifier , expectedReplacedSource , "<STR_LIT>" ) ; } public void test0219_Diet ( ) { String str = "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" ; String completeBehind = "<STR_LIT>" ; int cursorLocation = str . lastIndexOf ( "<STR_LIT>" ) + completeBehind . length ( ) - <NUM_LIT:1> ; String expectedCompletionNodeToString = "<STR_LIT>" ; String expectedParentNodeToString = "<STR_LIT>" ; String completionIdentifier = "<STR_LIT>" ; String expectedReplacedSource = "<STR_LIT>" ; String expectedUnitDisplayString = "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" ; checkDietParse ( str . toCharArray ( ) , cursorLocation , expectedCompletionNodeToString , expectedParentNodeToString , expectedUnitDisplayString , completionIdentifier , expectedReplacedSource , "<STR_LIT>" ) ; } public void test0219_Method ( ) { String str = "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" ; String completeBehind = "<STR_LIT>" ; int cursorLocation = str . lastIndexOf ( "<STR_LIT>" ) + completeBehind . length ( ) - <NUM_LIT:1> ; String expectedCompletionNodeToString = "<STR_LIT>" ; String expectedParentNodeToString = "<STR_LIT>" ; String completionIdentifier = "<STR_LIT>" ; String expectedReplacedSource = "<STR_LIT>" ; String expectedUnitDisplayString = "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" ; checkMethodParse ( str . toCharArray ( ) , cursorLocation , expectedCompletionNodeToString , expectedParentNodeToString , expectedUnitDisplayString , completionIdentifier , expectedReplacedSource , "<STR_LIT>" ) ; } public void test0220_Diet ( ) { String str = "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" ; String completeBehind = "<STR_LIT>" ; int cursorLocation = str . lastIndexOf ( "<STR_LIT>" ) + completeBehind . length ( ) - <NUM_LIT:1> ; String expectedCompletionNodeToString = "<STR_LIT>" ; String expectedParentNodeToString = "<STR_LIT>" ; String completionIdentifier = "<STR_LIT>" ; String expectedReplacedSource = "<STR_LIT>" ; String expectedUnitDisplayString = "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" ; checkDietParse ( str . toCharArray ( ) , cursorLocation , expectedCompletionNodeToString , expectedParentNodeToString , expectedUnitDisplayString , completionIdentifier , expectedReplacedSource , "<STR_LIT>" ) ; } public void test0220_Method ( ) { String str = "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" ; String completeBehind = "<STR_LIT>" ; int cursorLocation = str . lastIndexOf ( "<STR_LIT>" ) + completeBehind . length ( ) - <NUM_LIT:1> ; String expectedCompletionNodeToString = "<STR_LIT>" ; String expectedParentNodeToString = "<STR_LIT>" ; String completionIdentifier = "<STR_LIT>" ; String expectedReplacedSource = "<STR_LIT>" ; String expectedUnitDisplayString = "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" ; checkMethodParse ( str . toCharArray ( ) , cursorLocation , expectedCompletionNodeToString , expectedParentNodeToString , expectedUnitDisplayString , completionIdentifier , expectedReplacedSource , "<STR_LIT>" ) ; } public void test0221_Diet ( ) { String str = "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" ; String completeBehind = "<STR_LIT>" ; int cursorLocation = str . lastIndexOf ( "<STR_LIT>" ) + completeBehind . length ( ) - <NUM_LIT:1> ; String expectedCompletionNodeToString = "<STR_LIT>" ; String expectedParentNodeToString = "<STR_LIT>" ; String completionIdentifier = "<STR_LIT>" ; String expectedReplacedSource = "<STR_LIT>" ; String expectedUnitDisplayString = "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" ; checkDietParse ( str . toCharArray ( ) , cursorLocation , expectedCompletionNodeToString , expectedParentNodeToString , expectedUnitDisplayString , completionIdentifier , expectedReplacedSource , "<STR_LIT>" ) ; } public void test0221_Method ( ) { String str = "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" ; String completeBehind = "<STR_LIT>" ; int cursorLocation = str . lastIndexOf ( "<STR_LIT>" ) + completeBehind . length ( ) - <NUM_LIT:1> ; String expectedCompletionNodeToString = "<STR_LIT>" ; String expectedParentNodeToString = "<STR_LIT>" ; String completionIdentifier = "<STR_LIT>" ; String expectedReplacedSource = "<STR_LIT>" ; String expectedUnitDisplayString = "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" ; checkMethodParse ( str . toCharArray ( ) , cursorLocation , expectedCompletionNodeToString , expectedParentNodeToString , expectedUnitDisplayString , completionIdentifier , expectedReplacedSource , "<STR_LIT>" ) ; } public void test0222_Diet ( ) { String str = "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" ; String completeBehind = "<STR_LIT>" ; int cursorLocation = str . lastIndexOf ( "<STR_LIT>" ) + completeBehind . length ( ) - <NUM_LIT:1> ; String expectedCompletionNodeToString = "<STR_LIT>" ; String expectedParentNodeToString = "<STR_LIT>" ; String completionIdentifier = "<STR_LIT>" ; String expectedReplacedSource = "<STR_LIT>" ; String expectedUnitDisplayString = "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" ; checkDietParse ( str . toCharArray ( ) , cursorLocation , expectedCompletionNodeToString , expectedParentNodeToString , expectedUnitDisplayString , completionIdentifier , expectedReplacedSource , "<STR_LIT>" ) ; } public void test0222_Method ( ) { String str = "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" ; String completeBehind = "<STR_LIT>" ; int cursorLocation = str . lastIndexOf ( "<STR_LIT>" ) + completeBehind . length ( ) - <NUM_LIT:1> ; String expectedCompletionNodeToString = "<STR_LIT>" ; String expectedParentNodeToString = "<STR_LIT>" ; String completionIdentifier = "<STR_LIT>" ; String expectedReplacedSource = "<STR_LIT>" ; String expectedUnitDisplayString = "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" ; checkMethodParse ( str . toCharArray ( ) , cursorLocation , expectedCompletionNodeToString , expectedParentNodeToString , expectedUnitDisplayString , completionIdentifier , expectedReplacedSource , "<STR_LIT>" ) ; } public void test0223 ( ) { String str = "<STR_LIT>" + "<STR_LIT>" ; String completeBehind = "<STR_LIT>" ; int cursorLocation = str . lastIndexOf ( "<STR_LIT>" ) + completeBehind . length ( ) - <NUM_LIT:1> ; String expectedCompletionNodeToString = "<STR_LIT>" ; String expectedParentNodeToString = "<STR_LIT>" ; String completionIdentifier = "<STR_LIT>" ; String expectedReplacedSource = "<STR_LIT>" ; String expectedUnitDisplayString = "<STR_LIT>" ; checkDietParse ( str . toCharArray ( ) , cursorLocation , expectedCompletionNodeToString , expectedParentNodeToString , expectedUnitDisplayString , completionIdentifier , expectedReplacedSource , "<STR_LIT>" ) ; } public void test0224 ( ) { String str = "<STR_LIT>" + "<STR_LIT>" ; String completeBehind = "<STR_LIT>" ; int cursorLocation = str . lastIndexOf ( "<STR_LIT>" ) + completeBehind . length ( ) - <NUM_LIT:1> ; String expectedCompletionNodeToString = "<STR_LIT>" ; String expectedParentNodeToString = "<STR_LIT>" ; String completionIdentifier = "<STR_LIT>" ; String expectedReplacedSource = "<STR_LIT>" ; String expectedUnitDisplayString = "<STR_LIT>" ; checkDietParse ( str . toCharArray ( ) , cursorLocation , expectedCompletionNodeToString , expectedParentNodeToString , expectedUnitDisplayString , completionIdentifier , expectedReplacedSource , "<STR_LIT>" ) ; } public void test0225 ( ) { String str = "<STR_LIT>" + "<STR_LIT>" ; String completeBehind = "<STR_LIT>" ; int cursorLocation = str . lastIndexOf ( "<STR_LIT>" ) + completeBehind . length ( ) - <NUM_LIT:1> ; String expectedCompletionNodeToString = "<STR_LIT>" ; String expectedParentNodeToString = "<STR_LIT>" ; String completionIdentifier = "<STR_LIT>" ; String expectedReplacedSource = "<STR_LIT>" ; String expectedUnitDisplayString = "<STR_LIT>" ; checkDietParse ( str . toCharArray ( ) , cursorLocation , expectedCompletionNodeToString , expectedParentNodeToString , expectedUnitDisplayString , completionIdentifier , expectedReplacedSource , "<STR_LIT>" ) ; } public void test0226 ( ) { String str = "<STR_LIT>" + "<STR_LIT>" ; String completeBehind = "<STR_LIT>" ; int cursorLocation = str . lastIndexOf ( "<STR_LIT>" ) + completeBehind . length ( ) - <NUM_LIT:1> ; String expectedCompletionNodeToString = "<STR_LIT>" ; String expectedParentNodeToString = "<STR_LIT>" ; String completionIdentifier = "<STR_LIT>" ; String expectedReplacedSource = "<STR_LIT>" ; String expectedUnitDisplayString = "<STR_LIT>" ; checkDietParse ( str . toCharArray ( ) , cursorLocation , expectedCompletionNodeToString , expectedParentNodeToString , expectedUnitDisplayString , completionIdentifier , expectedReplacedSource , "<STR_LIT>" ) ; } public void test0227 ( ) { String str = "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT:}>" ; String completeBehind = "<STR_LIT>" ; int cursorLocation = str . lastIndexOf ( "<STR_LIT>" ) + completeBehind . length ( ) - <NUM_LIT:1> ; String expectedCompletionNodeToString = "<STR_LIT>" ; String expectedParentNodeToString = "<STR_LIT>" ; String completionIdentifier = "<STR_LIT>" ; String expectedReplacedSource = "<STR_LIT>" ; String expectedUnitDisplayString = "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" ; checkDietParse ( str . toCharArray ( ) , cursorLocation , expectedCompletionNodeToString , expectedParentNodeToString , expectedUnitDisplayString , completionIdentifier , expectedReplacedSource , "<STR_LIT>" ) ; } public void test0228 ( ) { String str = "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT:}>" ; String completeBehind = "<STR_LIT>" ; int cursorLocation = str . lastIndexOf ( "<STR_LIT>" ) + completeBehind . length ( ) - <NUM_LIT:1> ; String expectedCompletionNodeToString = "<STR_LIT>" ; String expectedParentNodeToString = "<STR_LIT>" ; String completionIdentifier = "<STR_LIT>" ; String expectedReplacedSource = "<STR_LIT>" ; String expectedUnitDisplayString = "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" ; checkDietParse ( str . toCharArray ( ) , cursorLocation , expectedCompletionNodeToString , expectedParentNodeToString , expectedUnitDisplayString , completionIdentifier , expectedReplacedSource , "<STR_LIT>" ) ; } public void test0229 ( ) { String str = "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT:}>" ; String completeBehind = "<STR_LIT>" ; int cursorLocation = str . lastIndexOf ( "<STR_LIT>" ) + completeBehind . length ( ) - <NUM_LIT:1> ; String expectedCompletionNodeToString = "<STR_LIT>" ; String expectedParentNodeToString = "<STR_LIT>" ; String completionIdentifier = "<STR_LIT>" ; String expectedReplacedSource = "<STR_LIT>" ; String expectedUnitDisplayString = "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" ; checkDietParse ( str . toCharArray ( ) , cursorLocation , expectedCompletionNodeToString , expectedParentNodeToString , expectedUnitDisplayString , completionIdentifier , expectedReplacedSource , "<STR_LIT>" ) ; } public void test0230 ( ) { String str = "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT:}>" ; String completeBehind = "<STR_LIT>" ; int cursorLocation = str . lastIndexOf ( "<STR_LIT>" ) + completeBehind . length ( ) - <NUM_LIT:1> ; String expectedCompletionNodeToString = "<STR_LIT>" ; String expectedParentNodeToString = "<STR_LIT>" ; String completionIdentifier = "<STR_LIT>" ; String expectedReplacedSource = "<STR_LIT>" ; String expectedUnitDisplayString = "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" ; checkDietParse ( str . toCharArray ( ) , cursorLocation , expectedCompletionNodeToString , expectedParentNodeToString , expectedUnitDisplayString , completionIdentifier , expectedReplacedSource , "<STR_LIT>" ) ; } public void test0231_Diet ( ) { String str = "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT:}>" ; String completeBehind = "<STR_LIT>" ; int cursorLocation = str . lastIndexOf ( "<STR_LIT>" ) + completeBehind . length ( ) - <NUM_LIT:1> ; String expectedCompletionNodeToString = "<STR_LIT>" ; String expectedParentNodeToString = "<STR_LIT>" ; String completionIdentifier = "<STR_LIT>" ; String expectedReplacedSource = "<STR_LIT>" ; String expectedUnitDisplayString = "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" ; checkDietParse ( str . toCharArray ( ) , cursorLocation , expectedCompletionNodeToString , expectedParentNodeToString , expectedUnitDisplayString , completionIdentifier , expectedReplacedSource , "<STR_LIT>" ) ; } public void test0231_Method ( ) { String str = "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT:}>" ; String completeBehind = "<STR_LIT>" ; int cursorLocation = str . lastIndexOf ( "<STR_LIT>" ) + completeBehind . length ( ) - <NUM_LIT:1> ; String expectedCompletionNodeToString = "<STR_LIT>" ; String expectedParentNodeToString = "<STR_LIT>" ; String completionIdentifier = "<STR_LIT>" ; String expectedReplacedSource = "<STR_LIT>" ; String expectedUnitDisplayString = "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" ; checkMethodParse ( str . toCharArray ( ) , cursorLocation , expectedCompletionNodeToString , expectedParentNodeToString , expectedUnitDisplayString , completionIdentifier , expectedReplacedSource , "<STR_LIT>" ) ; } public void test0232_Diet ( ) { String str = "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT:}>" ; String completeBehind = "<STR_LIT>" ; int cursorLocation = str . lastIndexOf ( "<STR_LIT>" ) + completeBehind . length ( ) - <NUM_LIT:1> ; String expectedCompletionNodeToString = "<STR_LIT>" ; String expectedParentNodeToString = "<STR_LIT>" ; String completionIdentifier = "<STR_LIT>" ; String expectedReplacedSource = "<STR_LIT>" ; String expectedUnitDisplayString = "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" ; checkDietParse ( str . toCharArray ( ) , cursorLocation , expectedCompletionNodeToString , expectedParentNodeToString , expectedUnitDisplayString , completionIdentifier , expectedReplacedSource , "<STR_LIT>" ) ; } public void test0232_Method ( ) { String str = "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT:}>" ; String completeBehind = "<STR_LIT>" ; int cursorLocation = str . lastIndexOf ( "<STR_LIT>" ) + completeBehind . length ( ) - <NUM_LIT:1> ; String expectedCompletionNodeToString = "<STR_LIT>" ; String expectedParentNodeToString = "<STR_LIT>" ; String completionIdentifier = "<STR_LIT>" ; String expectedReplacedSource = "<STR_LIT>" ; String expectedUnitDisplayString = "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" ; checkMethodParse ( str . toCharArray ( ) , cursorLocation , expectedCompletionNodeToString , expectedParentNodeToString , expectedUnitDisplayString , completionIdentifier , expectedReplacedSource , "<STR_LIT>" ) ; } public void test0233_Diet ( ) { String str = "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT:}>" ; String completeBehind = "<STR_LIT>" ; int cursorLocation = str . lastIndexOf ( "<STR_LIT>" ) + completeBehind . length ( ) - <NUM_LIT:1> ; String expectedCompletionNodeToString = "<STR_LIT>" ; String expectedParentNodeToString = "<STR_LIT>" ; String completionIdentifier = "<STR_LIT>" ; String expectedReplacedSource = "<STR_LIT>" ; String expectedUnitDisplayString = "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" ; checkDietParse ( str . toCharArray ( ) , cursorLocation , expectedCompletionNodeToString , expectedParentNodeToString , expectedUnitDisplayString , completionIdentifier , expectedReplacedSource , "<STR_LIT>" ) ; } public void test0233_Method ( ) { String str = "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT:}>" ; String completeBehind = "<STR_LIT>" ; int cursorLocation = str . lastIndexOf ( "<STR_LIT>" ) + completeBehind . length ( ) - <NUM_LIT:1> ; String expectedCompletionNodeToString = "<STR_LIT>" ; String expectedParentNodeToString = "<STR_LIT>" ; String completionIdentifier = "<STR_LIT>" ; String expectedReplacedSource = "<STR_LIT>" ; String expectedUnitDisplayString = "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" ; checkMethodParse ( str . toCharArray ( ) , cursorLocation , expectedCompletionNodeToString , expectedParentNodeToString , expectedUnitDisplayString , completionIdentifier , expectedReplacedSource , "<STR_LIT>" ) ; } public void test0234_Diet ( ) { String str = "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" ; String completeBehind = "<STR_LIT>" ; int cursorLocation = str . lastIndexOf ( "<STR_LIT>" ) + completeBehind . length ( ) - <NUM_LIT:1> ; String expectedCompletionNodeToString = "<STR_LIT>" ; String expectedParentNodeToString = "<STR_LIT>" ; String completionIdentifier = "<STR_LIT>" ; String expectedReplacedSource = "<STR_LIT>" ; String expectedUnitDisplayString = "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" ; checkDietParse ( str . toCharArray ( ) , cursorLocation , expectedCompletionNodeToString , expectedParentNodeToString , expectedUnitDisplayString , completionIdentifier , expectedReplacedSource , "<STR_LIT>" ) ; } public void test0234_Method ( ) { String str = "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" ; String completeBehind = "<STR_LIT>" ; int cursorLocation = str . lastIndexOf ( "<STR_LIT>" ) + completeBehind . length ( ) - <NUM_LIT:1> ; String expectedCompletionNodeToString = "<STR_LIT>" ; String expectedParentNodeToString = "<STR_LIT>" ; String completionIdentifier = "<STR_LIT>" ; String expectedReplacedSource = "<STR_LIT>" ; String expectedUnitDisplayString = "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" ; checkMethodParse ( str . toCharArray ( ) , cursorLocation , expectedCompletionNodeToString , expectedParentNodeToString , expectedUnitDisplayString , completionIdentifier , expectedReplacedSource , "<STR_LIT>" ) ; } public void test0235_Diet ( ) { String str = "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" ; String completeBehind = "<STR_LIT>" ; int cursorLocation = str . lastIndexOf ( "<STR_LIT>" ) + completeBehind . length ( ) - <NUM_LIT:1> ; String expectedCompletionNodeToString = "<STR_LIT>" ; String expectedParentNodeToString = "<STR_LIT>" ; String completionIdentifier = "<STR_LIT>" ; String expectedReplacedSource = "<STR_LIT>" ; String expectedUnitDisplayString = "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" ; checkDietParse ( str . toCharArray ( ) , cursorLocation , expectedCompletionNodeToString , expectedParentNodeToString , expectedUnitDisplayString , completionIdentifier , expectedReplacedSource , "<STR_LIT>" ) ; } public void test0235_Method ( ) { String str = "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" ; String completeBehind = "<STR_LIT>" ; int cursorLocation = str . lastIndexOf ( "<STR_LIT>" ) + completeBehind . length ( ) - <NUM_LIT:1> ; String expectedCompletionNodeToString = "<STR_LIT>" ; String expectedParentNodeToString = "<STR_LIT>" ; String completionIdentifier = "<STR_LIT>" ; String expectedReplacedSource = "<STR_LIT>" ; String expectedUnitDisplayString = "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" ; checkMethodParse ( str . toCharArray ( ) , cursorLocation , expectedCompletionNodeToString , expectedParentNodeToString , expectedUnitDisplayString , completionIdentifier , expectedReplacedSource , "<STR_LIT>" ) ; } public void test0236_Diet ( ) { String str = "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" ; String completeBehind = "<STR_LIT>" ; int cursorLocation = str . lastIndexOf ( "<STR_LIT>" ) + completeBehind . length ( ) - <NUM_LIT:1> ; String expectedCompletionNodeToString = "<STR_LIT>" ; String expectedParentNodeToString = "<STR_LIT>" ; String completionIdentifier = "<STR_LIT>" ; String expectedReplacedSource = "<STR_LIT>" ; String expectedUnitDisplayString = "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" ; checkDietParse ( str . toCharArray ( ) , cursorLocation , expectedCompletionNodeToString , expectedParentNodeToString , expectedUnitDisplayString , completionIdentifier , expectedReplacedSource , "<STR_LIT>" ) ; } public void test0236_Method ( ) { String str = "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" ; String completeBehind = "<STR_LIT>" ; int cursorLocation = str . lastIndexOf ( "<STR_LIT>" ) + completeBehind . length ( ) - <NUM_LIT:1> ; String expectedCompletionNodeToString = "<STR_LIT>" ; String expectedParentNodeToString = "<STR_LIT>" ; String completionIdentifier = "<STR_LIT>" ; String expectedReplacedSource = "<STR_LIT>" ; String expectedUnitDisplayString = "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" ; checkMethodParse ( str . toCharArray ( ) , cursorLocation , expectedCompletionNodeToString , expectedParentNodeToString , expectedUnitDisplayString , completionIdentifier , expectedReplacedSource , "<STR_LIT>" ) ; } public void test0237_Diet ( ) { String str = "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" ; String completeBehind = "<STR_LIT>" ; int cursorLocation = str . lastIndexOf ( "<STR_LIT>" ) + completeBehind . length ( ) - <NUM_LIT:1> ; String expectedCompletionNodeToString = "<STR_LIT>" ; String expectedParentNodeToString = "<STR_LIT>" ; String completionIdentifier = "<STR_LIT>" ; String expectedReplacedSource = "<STR_LIT>" ; String expectedUnitDisplayString = "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" ; checkDietParse ( str . toCharArray ( ) , cursorLocation , expectedCompletionNodeToString , expectedParentNodeToString , expectedUnitDisplayString , completionIdentifier , expectedReplacedSource , "<STR_LIT>" ) ; } public void test0237_Method ( ) { String str = "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" ; String completeBehind = "<STR_LIT>" ; int cursorLocation = str . lastIndexOf ( "<STR_LIT>" ) + completeBehind . length ( ) - <NUM_LIT:1> ; String expectedCompletionNodeToString = "<STR_LIT>" ; String expectedParentNodeToString = "<STR_LIT>" ; String completionIdentifier = "<STR_LIT>" ; String expectedReplacedSource = "<STR_LIT>" ; String expectedUnitDisplayString = "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" ; checkMethodParse ( str . toCharArray ( ) , cursorLocation , expectedCompletionNodeToString , expectedParentNodeToString , expectedUnitDisplayString , completionIdentifier , expectedReplacedSource , "<STR_LIT>" ) ; } public void test0238_Diet ( ) { String str = "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" ; String completeBehind = "<STR_LIT>" ; int cursorLocation = str . lastIndexOf ( "<STR_LIT>" ) + completeBehind . length ( ) - <NUM_LIT:1> ; String expectedCompletionNodeToString = "<STR_LIT>" ; String expectedParentNodeToString = "<STR_LIT>" ; String completionIdentifier = "<STR_LIT>" ; String expectedReplacedSource = "<STR_LIT>" ; String expectedUnitDisplayString = "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" ; checkDietParse ( str . toCharArray ( ) , cursorLocation , expectedCompletionNodeToString , expectedParentNodeToString , expectedUnitDisplayString , completionIdentifier , expectedReplacedSource , "<STR_LIT>" ) ; } public void test0238_Method ( ) { String str = "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" ; String completeBehind = "<STR_LIT>" ; int cursorLocation = str . lastIndexOf ( "<STR_LIT>" ) + completeBehind . length ( ) - <NUM_LIT:1> ; String expectedCompletionNodeToString = "<STR_LIT>" ; String expectedParentNodeToString = "<STR_LIT>" ; String completionIdentifier = "<STR_LIT>" ; String expectedReplacedSource = "<STR_LIT>" ; String expectedUnitDisplayString = "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" ; checkMethodParse ( str . toCharArray ( ) , cursorLocation , expectedCompletionNodeToString , expectedParentNodeToString , expectedUnitDisplayString , completionIdentifier , expectedReplacedSource , "<STR_LIT>" ) ; } public void test0239_Diet ( ) { String str = "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" ; String completeBehind = "<STR_LIT>" ; int cursorLocation = str . lastIndexOf ( "<STR_LIT>" ) + completeBehind . length ( ) - <NUM_LIT:1> ; String expectedCompletionNodeToString = "<STR_LIT>" ; String expectedParentNodeToString = "<STR_LIT>" ; String completionIdentifier = "<STR_LIT>" ; String expectedReplacedSource = "<STR_LIT>" ; String expectedUnitDisplayString = "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" ; checkDietParse ( str . toCharArray ( ) , cursorLocation , expectedCompletionNodeToString , expectedParentNodeToString , expectedUnitDisplayString , completionIdentifier , expectedReplacedSource , "<STR_LIT>" ) ; } public void test0239_Method ( ) { String str = "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" ; String completeBehind = "<STR_LIT>" ; int cursorLocation = str . lastIndexOf ( "<STR_LIT>" ) + completeBehind . length ( ) - <NUM_LIT:1> ; String expectedCompletionNodeToString = "<STR_LIT>" ; String expectedParentNodeToString = "<STR_LIT>" ; String completionIdentifier = "<STR_LIT>" ; String expectedReplacedSource = "<STR_LIT>" ; String expectedUnitDisplayString = "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" ; checkMethodParse ( str . toCharArray ( ) , cursorLocation , expectedCompletionNodeToString , expectedParentNodeToString , expectedUnitDisplayString , completionIdentifier , expectedReplacedSource , "<STR_LIT>" ) ; } public void test0240_Diet ( ) { String str = "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" ; String completeBehind = "<STR_LIT>" ; int cursorLocation = str . lastIndexOf ( "<STR_LIT>" ) + completeBehind . length ( ) - <NUM_LIT:1> ; String expectedCompletionNodeToString = "<STR_LIT>" ; String expectedParentNodeToString = "<STR_LIT>" ; String completionIdentifier = "<STR_LIT>" ; String expectedReplacedSource = "<STR_LIT>" ; String expectedUnitDisplayString = "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" ; checkDietParse ( str . toCharArray ( ) , cursorLocation , expectedCompletionNodeToString , expectedParentNodeToString , expectedUnitDisplayString , completionIdentifier , expectedReplacedSource , "<STR_LIT>" ) ; } public void test0240_Method ( ) { String str = "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" ; String completeBehind = "<STR_LIT>" ; int cursorLocation = str . lastIndexOf ( "<STR_LIT>" ) + completeBehind . length ( ) - <NUM_LIT:1> ; String expectedCompletionNodeToString = "<STR_LIT>" ; String expectedParentNodeToString = "<STR_LIT>" ; String completionIdentifier = "<STR_LIT>" ; String expectedReplacedSource = "<STR_LIT>" ; String expectedUnitDisplayString = "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" ; checkMethodParse ( str . toCharArray ( ) , cursorLocation , expectedCompletionNodeToString , expectedParentNodeToString , expectedUnitDisplayString , completionIdentifier , expectedReplacedSource , "<STR_LIT>" ) ; } public void test0241 ( ) { String str = "<STR_LIT>" + "<STR_LIT>" ; String completeBehind = "<STR_LIT>" ; int cursorLocation = str . lastIndexOf ( "<STR_LIT>" ) + completeBehind . length ( ) - <NUM_LIT:1> ; String expectedCompletionNodeToString = "<STR_LIT>" ; String expectedParentNodeToString = "<STR_LIT>" ; String completionIdentifier = "<STR_LIT>" ; String expectedReplacedSource = "<STR_LIT>" ; String expectedUnitDisplayString = "<STR_LIT>" ; checkDietParse ( str . toCharArray ( ) , cursorLocation , expectedCompletionNodeToString , expectedParentNodeToString , expectedUnitDisplayString , completionIdentifier , expectedReplacedSource , "<STR_LIT>" ) ; } public void test0242 ( ) { String str = "<STR_LIT>" + "<STR_LIT>" ; String completeBehind = "<STR_LIT>" ; int cursorLocation = str . lastIndexOf ( "<STR_LIT>" ) + completeBehind . length ( ) - <NUM_LIT:1> ; String expectedCompletionNodeToString = "<STR_LIT>" ; String expectedParentNodeToString = "<STR_LIT>" ; String completionIdentifier = "<STR_LIT>" ; String expectedReplacedSource = "<STR_LIT>" ; String expectedUnitDisplayString = "<STR_LIT>" ; checkDietParse ( str . toCharArray ( ) , cursorLocation , expectedCompletionNodeToString , expectedParentNodeToString , expectedUnitDisplayString , completionIdentifier , expectedReplacedSource , "<STR_LIT>" ) ; } public void test0243 ( ) { String str = "<STR_LIT>" + "<STR_LIT>" ; String completeBehind = "<STR_LIT>" ; int cursorLocation = str . lastIndexOf ( "<STR_LIT>" ) + completeBehind . length ( ) - <NUM_LIT:1> ; String expectedCompletionNodeToString = "<STR_LIT>" ; String expectedParentNodeToString = "<STR_LIT>" ; String completionIdentifier = "<STR_LIT>" ; String expectedReplacedSource = "<STR_LIT>" ; String expectedUnitDisplayString = "<STR_LIT>" ; checkDietParse ( str . toCharArray ( ) , cursorLocation , expectedCompletionNodeToString , expectedParentNodeToString , expectedUnitDisplayString , completionIdentifier , expectedReplacedSource , "<STR_LIT>" ) ; } public void test0244 ( ) { String str = "<STR_LIT>" + "<STR_LIT>" ; String completeBehind = "<STR_LIT>" ; int cursorLocation = str . lastIndexOf ( "<STR_LIT>" ) + completeBehind . length ( ) - <NUM_LIT:1> ; String expectedCompletionNodeToString = "<STR_LIT>" ; String expectedParentNodeToString = "<STR_LIT>" ; String completionIdentifier = "<STR_LIT>" ; String expectedReplacedSource = "<STR_LIT>" ; String expectedUnitDisplayString = "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" ; checkDietParse ( str . toCharArray ( ) , cursorLocation , expectedCompletionNodeToString , expectedParentNodeToString , expectedUnitDisplayString , completionIdentifier , expectedReplacedSource , "<STR_LIT>" ) ; } public void test0245 ( ) { String str = "<STR_LIT>" + "<STR_LIT>" ; String completeBehind = "<STR_LIT>" ; int cursorLocation = str . lastIndexOf ( "<STR_LIT>" ) + completeBehind . length ( ) - <NUM_LIT:1> ; String expectedCompletionNodeToString = "<STR_LIT>" ; String expectedParentNodeToString = "<STR_LIT>" ; String completionIdentifier = "<STR_LIT>" ; String expectedReplacedSource = "<STR_LIT>" ; String expectedUnitDisplayString = "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" ; checkDietParse ( str . toCharArray ( ) , cursorLocation , expectedCompletionNodeToString , expectedParentNodeToString , expectedUnitDisplayString , completionIdentifier , expectedReplacedSource , "<STR_LIT>" ) ; } public void test0246 ( ) { String str = "<STR_LIT>" + "<STR_LIT>" ; String completeBehind = "<STR_LIT>" ; int cursorLocation = str . lastIndexOf ( "<STR_LIT>" ) + completeBehind . length ( ) - <NUM_LIT:1> ; String expectedCompletionNodeToString = "<STR_LIT>" ; String expectedParentNodeToString = "<STR_LIT>" ; String completionIdentifier = "<STR_LIT>" ; String expectedReplacedSource = "<STR_LIT>" ; String expectedUnitDisplayString = "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" ; checkDietParse ( str . toCharArray ( ) , cursorLocation , expectedCompletionNodeToString , expectedParentNodeToString , expectedUnitDisplayString , completionIdentifier , expectedReplacedSource , "<STR_LIT>" ) ; } public void test0247 ( ) { String str = "<STR_LIT>" + "<STR_LIT>" ; String completeBehind = "<STR_LIT>" ; int cursorLocation = str . lastIndexOf ( "<STR_LIT>" ) + completeBehind . length ( ) - <NUM_LIT:1> ; String expectedCompletionNodeToString = "<STR_LIT>" ; String expectedParentNodeToString = "<STR_LIT>" ; String completionIdentifier = "<STR_LIT>" ; String expectedReplacedSource = "<STR_LIT>" ; String expectedUnitDisplayString = "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" ; checkDietParse ( str . toCharArray ( ) , cursorLocation , expectedCompletionNodeToString , expectedParentNodeToString , expectedUnitDisplayString , completionIdentifier , expectedReplacedSource , "<STR_LIT>" ) ; } public void test0248 ( ) { String str = "<STR_LIT>" + "<STR_LIT>" ; String completeBehind = "<STR_LIT>" ; int cursorLocation = str . lastIndexOf ( "<STR_LIT>" ) + completeBehind . length ( ) - <NUM_LIT:1> ; String expectedCompletionNodeToString = "<STR_LIT>" ; String expectedParentNodeToString = "<STR_LIT>" ; String completionIdentifier = "<STR_LIT>" ; String expectedReplacedSource = "<STR_LIT>" ; String expectedUnitDisplayString = "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" ; checkDietParse ( str . toCharArray ( ) , cursorLocation , expectedCompletionNodeToString , expectedParentNodeToString , expectedUnitDisplayString , completionIdentifier , expectedReplacedSource , "<STR_LIT>" ) ; } public void test0249_Diet ( ) { String str = "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" ; String completeBehind = "<STR_LIT>" ; int cursorLocation = str . lastIndexOf ( "<STR_LIT>" ) + completeBehind . length ( ) - <NUM_LIT:1> ; String expectedCompletionNodeToString = "<STR_LIT>" ; String expectedParentNodeToString = "<STR_LIT>" ; String completionIdentifier = "<STR_LIT>" ; String expectedReplacedSource = "<STR_LIT>" ; String expectedUnitDisplayString = "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" ; checkDietParse ( str . toCharArray ( ) , cursorLocation , expectedCompletionNodeToString , expectedParentNodeToString , expectedUnitDisplayString , completionIdentifier , expectedReplacedSource , "<STR_LIT>" ) ; } public void test0249_Method ( ) { String str = "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" ; String completeBehind = "<STR_LIT>" ; int cursorLocation = str . lastIndexOf ( "<STR_LIT>" ) + completeBehind . length ( ) - <NUM_LIT:1> ; String expectedCompletionNodeToString = "<STR_LIT>" ; String expectedParentNodeToString = "<STR_LIT>" ; String completionIdentifier = "<STR_LIT>" ; String expectedReplacedSource = "<STR_LIT>" ; String expectedUnitDisplayString = "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" ; checkMethodParse ( str . toCharArray ( ) , cursorLocation , expectedCompletionNodeToString , expectedParentNodeToString , expectedUnitDisplayString , completionIdentifier , expectedReplacedSource , "<STR_LIT>" ) ; } public void test0250_Diet ( ) { String str = "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" ; String completeBehind = "<STR_LIT>" ; int cursorLocation = str . lastIndexOf ( "<STR_LIT>" ) + completeBehind . length ( ) - <NUM_LIT:1> ; String expectedCompletionNodeToString = "<STR_LIT>" ; String expectedParentNodeToString = "<STR_LIT>" ; String completionIdentifier = "<STR_LIT>" ; String expectedReplacedSource = "<STR_LIT>" ; String expectedUnitDisplayString = "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" ; checkDietParse ( str . toCharArray ( ) , cursorLocation , expectedCompletionNodeToString , expectedParentNodeToString , expectedUnitDisplayString , completionIdentifier , expectedReplacedSource , "<STR_LIT>" ) ; } public void test0250_Method ( ) { String str = "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" ; String completeBehind = "<STR_LIT>" ; int cursorLocation = str . lastIndexOf ( "<STR_LIT>" ) + completeBehind . length ( ) - <NUM_LIT:1> ; String expectedCompletionNodeToString = "<STR_LIT>" ; String expectedParentNodeToString = "<STR_LIT>" ; String completionIdentifier = "<STR_LIT>" ; String expectedReplacedSource = "<STR_LIT>" ; String expectedUnitDisplayString = "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" ; checkMethodParse ( str . toCharArray ( ) , cursorLocation , expectedCompletionNodeToString , expectedParentNodeToString , expectedUnitDisplayString , completionIdentifier , expectedReplacedSource , "<STR_LIT>" ) ; } public void test0251_Diet ( ) { String str = "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" ; String completeBehind = "<STR_LIT>" ; int cursorLocation = str . lastIndexOf ( "<STR_LIT>" ) + completeBehind . length ( ) - <NUM_LIT:1> ; String expectedCompletionNodeToString = "<STR_LIT>" ; String expectedParentNodeToString = "<STR_LIT>" ; String completionIdentifier = "<STR_LIT>" ; String expectedReplacedSource = "<STR_LIT>" ; String expectedUnitDisplayString = "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" ; checkDietParse ( str . toCharArray ( ) , cursorLocation , expectedCompletionNodeToString , expectedParentNodeToString , expectedUnitDisplayString , completionIdentifier , expectedReplacedSource , "<STR_LIT>" ) ; } public void test0251_Method ( ) { String str = "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" ; String completeBehind = "<STR_LIT>" ; int cursorLocation = str . lastIndexOf ( "<STR_LIT>" ) + completeBehind . length ( ) - <NUM_LIT:1> ; String expectedCompletionNodeToString = "<STR_LIT>" ; String expectedParentNodeToString = "<STR_LIT>" ; String completionIdentifier = "<STR_LIT>" ; String expectedReplacedSource = "<STR_LIT>" ; String expectedUnitDisplayString = "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" ; checkMethodParse ( str . toCharArray ( ) , cursorLocation , expectedCompletionNodeToString , expectedParentNodeToString , expectedUnitDisplayString , completionIdentifier , expectedReplacedSource , "<STR_LIT>" ) ; } public void test0252_Diet ( ) { String str = "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" ; String completeBehind = "<STR_LIT>" ; int cursorLocation = str . lastIndexOf ( "<STR_LIT>" ) + completeBehind . length ( ) - <NUM_LIT:1> ; String expectedCompletionNodeToString = "<STR_LIT>" ; String expectedParentNodeToString = "<STR_LIT>" ; String completionIdentifier = "<STR_LIT>" ; String expectedReplacedSource = "<STR_LIT>" ; String expectedUnitDisplayString = "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" ; checkDietParse ( str . toCharArray ( ) , cursorLocation , expectedCompletionNodeToString , expectedParentNodeToString , expectedUnitDisplayString , completionIdentifier , expectedReplacedSource , "<STR_LIT>" ) ; } public void test0252_Method ( ) { String str = "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" ; String completeBehind = "<STR_LIT>" ; int cursorLocation = str . lastIndexOf ( "<STR_LIT>" ) + completeBehind . length ( ) - <NUM_LIT:1> ; String expectedCompletionNodeToString = "<STR_LIT>" ; String expectedParentNodeToString = "<STR_LIT>" ; String completionIdentifier = "<STR_LIT>" ; String expectedReplacedSource = "<STR_LIT>" ; String expectedUnitDisplayString = "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" ; checkMethodParse ( str . toCharArray ( ) , cursorLocation , expectedCompletionNodeToString , expectedParentNodeToString , expectedUnitDisplayString , completionIdentifier , expectedReplacedSource , "<STR_LIT>" ) ; } public void test0253_Diet ( ) { String str = "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" ; String completeBehind = "<STR_LIT>" ; int cursorLocation = str . lastIndexOf ( "<STR_LIT>" ) + completeBehind . length ( ) - <NUM_LIT:1> ; String expectedCompletionNodeToString = "<STR_LIT>" ; String expectedParentNodeToString = "<STR_LIT>" ; String completionIdentifier = "<STR_LIT>" ; String expectedReplacedSource = "<STR_LIT>" ; String expectedUnitDisplayString = "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" ; checkDietParse ( str . toCharArray ( ) , cursorLocation , expectedCompletionNodeToString , expectedParentNodeToString , expectedUnitDisplayString , completionIdentifier , expectedReplacedSource , "<STR_LIT>" ) ; } public void test0253_Method ( ) { String str = "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" ; String completeBehind = "<STR_LIT>" ; int cursorLocation = str . lastIndexOf ( "<STR_LIT>" ) + completeBehind . length ( ) - <NUM_LIT:1> ; String expectedCompletionNodeToString = "<STR_LIT>" ; String expectedParentNodeToString = "<STR_LIT>" ; String completionIdentifier = "<STR_LIT>" ; String expectedReplacedSource = "<STR_LIT>" ; String expectedUnitDisplayString = "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" ; checkMethodParse ( str . toCharArray ( ) , cursorLocation , expectedCompletionNodeToString , expectedParentNodeToString , expectedUnitDisplayString , completionIdentifier , expectedReplacedSource , "<STR_LIT>" ) ; } public void test0254 ( ) { String str = "<STR_LIT>" + "<STR_LIT>" ; String completeBehind = "<STR_LIT>" ; int cursorLocation = str . lastIndexOf ( "<STR_LIT>" ) + completeBehind . length ( ) - <NUM_LIT:1> ; String expectedCompletionNodeToString = "<STR_LIT>" ; String expectedParentNodeToString = "<STR_LIT>" ; String completionIdentifier = "<STR_LIT>" ; String expectedReplacedSource = "<STR_LIT>" ; String expectedUnitDisplayString = "<STR_LIT>" ; checkDietParse ( str . toCharArray ( ) , cursorLocation , expectedCompletionNodeToString , expectedParentNodeToString , expectedUnitDisplayString , completionIdentifier , expectedReplacedSource , "<STR_LIT>" ) ; } public void test0255 ( ) { String str = "<STR_LIT>" + "<STR_LIT>" ; String completeBehind = "<STR_LIT>" ; int cursorLocation = str . lastIndexOf ( "<STR_LIT>" ) + completeBehind . length ( ) - <NUM_LIT:1> ; String expectedCompletionNodeToString = "<STR_LIT>" ; String expectedParentNodeToString = "<STR_LIT>" ; String completionIdentifier = "<STR_LIT>" ; String expectedReplacedSource = "<STR_LIT>" ; String expectedUnitDisplayString = "<STR_LIT>" ; checkDietParse ( str . toCharArray ( ) , cursorLocation , expectedCompletionNodeToString , expectedParentNodeToString , expectedUnitDisplayString , completionIdentifier , expectedReplacedSource , "<STR_LIT>" ) ; } public void test0256 ( ) { String str = "<STR_LIT>" + "<STR_LIT>" ; String completeBehind = "<STR_LIT>" ; int cursorLocation = str . lastIndexOf ( "<STR_LIT>" ) + completeBehind . length ( ) - <NUM_LIT:1> ; String expectedCompletionNodeToString = "<STR_LIT>" ; String expectedParentNodeToString = "<STR_LIT>" ; String completionIdentifier = "<STR_LIT>" ; String expectedReplacedSource = "<STR_LIT>" ; String expectedUnitDisplayString = "<STR_LIT>" ; checkDietParse ( str . toCharArray ( ) , cursorLocation , expectedCompletionNodeToString , expectedParentNodeToString , expectedUnitDisplayString , completionIdentifier , expectedReplacedSource , "<STR_LIT>" ) ; } public void test0257 ( ) { String str = "<STR_LIT>" + "<STR_LIT>" ; String completeBehind = "<STR_LIT>" ; int cursorLocation = str . lastIndexOf ( "<STR_LIT>" ) + completeBehind . length ( ) - <NUM_LIT:1> ; String expectedCompletionNodeToString = "<STR_LIT>" ; String expectedParentNodeToString = "<STR_LIT>" ; String completionIdentifier = "<STR_LIT>" ; String expectedReplacedSource = "<STR_LIT>" ; String expectedUnitDisplayString = "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" ; checkDietParse ( str . toCharArray ( ) , cursorLocation , expectedCompletionNodeToString , expectedParentNodeToString , expectedUnitDisplayString , completionIdentifier , expectedReplacedSource , "<STR_LIT>" ) ; } public void test0258 ( ) { String str = "<STR_LIT>" + "<STR_LIT>" ; String completeBehind = "<STR_LIT>" ; int cursorLocation = str . lastIndexOf ( "<STR_LIT>" ) + completeBehind . length ( ) - <NUM_LIT:1> ; String expectedCompletionNodeToString = "<STR_LIT>" ; String expectedParentNodeToString = "<STR_LIT>" ; String completionIdentifier = "<STR_LIT>" ; String expectedReplacedSource = "<STR_LIT>" ; String expectedUnitDisplayString = "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" ; checkDietParse ( str . toCharArray ( ) , cursorLocation , expectedCompletionNodeToString , expectedParentNodeToString , expectedUnitDisplayString , completionIdentifier , expectedReplacedSource , "<STR_LIT>" ) ; } public void test0259 ( ) { String str = "<STR_LIT>" + "<STR_LIT>" ; String completeBehind = "<STR_LIT>" ; int cursorLocation = str . lastIndexOf ( "<STR_LIT>" ) + completeBehind . length ( ) - <NUM_LIT:1> ; String expectedCompletionNodeToString = "<STR_LIT>" ; String expectedParentNodeToString = "<STR_LIT>" ; String completionIdentifier = "<STR_LIT>" ; String expectedReplacedSource = "<STR_LIT>" ; String expectedUnitDisplayString = "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" ; checkDietParse ( str . toCharArray ( ) , cursorLocation , expectedCompletionNodeToString , expectedParentNodeToString , expectedUnitDisplayString , completionIdentifier , expectedReplacedSource , "<STR_LIT>" ) ; } public void test0260 ( ) { String str = "<STR_LIT>" + "<STR_LIT>" ; String completeBehind = "<STR_LIT>" ; int cursorLocation = str . lastIndexOf ( "<STR_LIT>" ) + completeBehind . length ( ) - <NUM_LIT:1> ; String expectedCompletionNodeToString = "<STR_LIT>" ; String expectedParentNodeToString = "<STR_LIT>" ; String completionIdentifier = "<STR_LIT>" ; String expectedReplacedSource = "<STR_LIT>" ; String expectedUnitDisplayString = "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" ; checkDietParse ( str . toCharArray ( ) , cursorLocation , expectedCompletionNodeToString , expectedParentNodeToString , expectedUnitDisplayString , completionIdentifier , expectedReplacedSource , "<STR_LIT>" ) ; } public void test0261 ( ) { String str = "<STR_LIT>" + "<STR_LIT>" ; String completeBehind = "<STR_LIT>" ; int cursorLocation = str . lastIndexOf ( "<STR_LIT>" ) + completeBehind . length ( ) - <NUM_LIT:1> ; String expectedCompletionNodeToString = "<STR_LIT>" ; String expectedParentNodeToString = "<STR_LIT>" ; String completionIdentifier = "<STR_LIT>" ; String expectedReplacedSource = "<STR_LIT>" ; String expectedUnitDisplayString = "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" ; checkDietParse ( str . toCharArray ( ) , cursorLocation , expectedCompletionNodeToString , expectedParentNodeToString , expectedUnitDisplayString , completionIdentifier , expectedReplacedSource , "<STR_LIT>" ) ; } public void test0262 ( ) { String str = "<STR_LIT>" + "<STR_LIT>" ; String completeBehind = "<STR_LIT>" ; int cursorLocation = str . lastIndexOf ( "<STR_LIT>" ) + completeBehind . length ( ) - <NUM_LIT:1> ; String expectedCompletionNodeToString = "<STR_LIT>" ; String expectedParentNodeToString = "<STR_LIT>" ; String completionIdentifier = "<STR_LIT>" ; String expectedReplacedSource = "<STR_LIT>" ; String expectedUnitDisplayString = "<STR_LIT>" ; checkDietParse ( str . toCharArray ( ) , cursorLocation , expectedCompletionNodeToString , expectedParentNodeToString , expectedUnitDisplayString , completionIdentifier , expectedReplacedSource , "<STR_LIT>" ) ; } public void test0263 ( ) { String str = "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" ; String completeBehind = "<STR_LIT>" ; int cursorLocation = str . lastIndexOf ( "<STR_LIT>" ) + completeBehind . length ( ) - <NUM_LIT:1> ; String expectedCompletionNodeToString = "<STR_LIT>" ; String expectedParentNodeToString = "<STR_LIT>" ; String completionIdentifier = "<STR_LIT>" ; String expectedReplacedSource = "<STR_LIT>" ; String expectedUnitDisplayString = "<STR_LIT>" + "<STR_LIT>" ; checkDietParse ( str . toCharArray ( ) , cursorLocation , expectedCompletionNodeToString , expectedParentNodeToString , expectedUnitDisplayString , completionIdentifier , expectedReplacedSource , "<STR_LIT>" ) ; } public void test0264 ( ) { String str = "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" ; String completeBehind = "<STR_LIT>" ; int cursorLocation = str . lastIndexOf ( "<STR_LIT>" ) + completeBehind . length ( ) - <NUM_LIT:1> ; String expectedCompletionNodeToString = "<STR_LIT>" ; String expectedParentNodeToString = "<STR_LIT>" ; String completionIdentifier = "<STR_LIT>" ; String expectedReplacedSource = "<STR_LIT>" ; String expectedUnitDisplayString = "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" ; checkDietParse ( str . toCharArray ( ) , cursorLocation , expectedCompletionNodeToString , expectedParentNodeToString , expectedUnitDisplayString , completionIdentifier , expectedReplacedSource , "<STR_LIT>" ) ; } public void test0265 ( ) { String str = "<STR_LIT>" + "<STR_LIT>" ; String completeBehind = "<STR_LIT>" ; int cursorLocation = str . lastIndexOf ( "<STR_LIT>" ) + completeBehind . length ( ) - <NUM_LIT:1> ; String expectedCompletionNodeToString = "<STR_LIT>" ; String expectedParentNodeToString = "<STR_LIT>" ; String completionIdentifier = "<STR_LIT>" ; String expectedReplacedSource = "<STR_LIT>" ; String expectedUnitDisplayString = "<STR_LIT>" ; checkDietParse ( str . toCharArray ( ) , cursorLocation , expectedCompletionNodeToString , expectedParentNodeToString , expectedUnitDisplayString , completionIdentifier , expectedReplacedSource , "<STR_LIT>" ) ; } public void test0266 ( ) { String str = "<STR_LIT>" + "<STR_LIT:int>" ; String completeBehind = "<STR_LIT:int>" ; int cursorLocation = str . lastIndexOf ( "<STR_LIT:int>" ) + completeBehind . length ( ) - <NUM_LIT:1> ; String expectedCompletionNodeToString = "<STR_LIT>" ; String expectedParentNodeToString = "<STR_LIT>" ; String completionIdentifier = "<STR_LIT:int>" ; String expectedReplacedSource = "<STR_LIT:int>" ; String expectedUnitDisplayString = "<STR_LIT>" ; checkDietParse ( str . toCharArray ( ) , cursorLocation , expectedCompletionNodeToString , expectedParentNodeToString , expectedUnitDisplayString , completionIdentifier , expectedReplacedSource , "<STR_LIT>" ) ; } public void test0267 ( ) { String str = "<STR_LIT>" + "<STR_LIT>" ; String completeBehind = "<STR_LIT:int>" ; int cursorLocation = str . lastIndexOf ( "<STR_LIT:int>" ) + completeBehind . length ( ) - <NUM_LIT:1> ; String expectedCompletionNodeToString = "<STR_LIT>" ; String expectedParentNodeToString = "<STR_LIT>" ; String completionIdentifier = "<STR_LIT:int>" ; String expectedReplacedSource = "<STR_LIT:int>" ; String expectedUnitDisplayString = "<STR_LIT>" ; checkDietParse ( str . toCharArray ( ) , cursorLocation , expectedCompletionNodeToString , expectedParentNodeToString , expectedUnitDisplayString , completionIdentifier , expectedReplacedSource , "<STR_LIT>" ) ; } public void test0268 ( ) { String str = "<STR_LIT>" + "<STR_LIT>" ; String completeBehind = "<STR_LIT:int>" ; int cursorLocation = str . lastIndexOf ( "<STR_LIT:int>" ) + completeBehind . length ( ) - <NUM_LIT:1> ; String expectedCompletionNodeToString = "<STR_LIT>" ; String expectedParentNodeToString = "<STR_LIT>" ; String completionIdentifier = "<STR_LIT:int>" ; String expectedReplacedSource = "<STR_LIT:int>" ; String expectedUnitDisplayString = "<STR_LIT>" ; checkDietParse ( str . toCharArray ( ) , cursorLocation , expectedCompletionNodeToString , expectedParentNodeToString , expectedUnitDisplayString , completionIdentifier , expectedReplacedSource , "<STR_LIT>" ) ; } public void test0269 ( ) { String str = "<STR_LIT>" + "<STR_LIT>" ; String completeBehind = "<STR_LIT:int>" ; int cursorLocation = str . lastIndexOf ( "<STR_LIT:int>" ) + completeBehind . length ( ) - <NUM_LIT:1> ; String expectedCompletionNodeToString = "<STR_LIT>" ; String expectedParentNodeToString = "<STR_LIT>" ; String completionIdentifier = "<STR_LIT:int>" ; String expectedReplacedSource = "<STR_LIT:int>" ; String expectedUnitDisplayString = "<STR_LIT>" ; checkDietParse ( str . toCharArray ( ) , cursorLocation , expectedCompletionNodeToString , expectedParentNodeToString , expectedUnitDisplayString , completionIdentifier , expectedReplacedSource , "<STR_LIT>" ) ; } public void test0270 ( ) { String str = "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT:}>" ; String completeBehind = "<STR_LIT:int>" ; int cursorLocation = str . lastIndexOf ( "<STR_LIT:int>" ) + completeBehind . length ( ) - <NUM_LIT:1> ; String expectedCompletionNodeToString = "<STR_LIT>" ; String expectedParentNodeToString = "<STR_LIT>" ; String completionIdentifier = "<STR_LIT:int>" ; String expectedReplacedSource = "<STR_LIT:int>" ; String expectedUnitDisplayString = "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" ; checkDietParse ( str . toCharArray ( ) , cursorLocation , expectedCompletionNodeToString , expectedParentNodeToString , expectedUnitDisplayString , completionIdentifier , expectedReplacedSource , "<STR_LIT>" ) ; } public void test0271 ( ) { String str = "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT:}>" ; String completeBehind = "<STR_LIT:int>" ; int cursorLocation = str . lastIndexOf ( "<STR_LIT:int>" ) + completeBehind . length ( ) - <NUM_LIT:1> ; String expectedCompletionNodeToString = "<STR_LIT>" ; String expectedParentNodeToString = "<STR_LIT>" ; String completionIdentifier = "<STR_LIT:int>" ; String expectedReplacedSource = "<STR_LIT:int>" ; String expectedUnitDisplayString = "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" ; checkDietParse ( str . toCharArray ( ) , cursorLocation , expectedCompletionNodeToString , expectedParentNodeToString , expectedUnitDisplayString , completionIdentifier , expectedReplacedSource , "<STR_LIT>" ) ; } public void test0272 ( ) { String str = "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT:}>" ; String completeBehind = "<STR_LIT:int>" ; int cursorLocation = str . lastIndexOf ( "<STR_LIT:int>" ) + completeBehind . length ( ) - <NUM_LIT:1> ; String expectedCompletionNodeToString = "<STR_LIT>" ; String expectedParentNodeToString = "<STR_LIT>" ; String completionIdentifier = "<STR_LIT:int>" ; String expectedReplacedSource = "<STR_LIT:int>" ; String expectedUnitDisplayString = "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" ; checkDietParse ( str . toCharArray ( ) , cursorLocation , expectedCompletionNodeToString , expectedParentNodeToString , expectedUnitDisplayString , completionIdentifier , expectedReplacedSource , "<STR_LIT>" ) ; } public void test0273 ( ) { String str = "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT:}>" ; String completeBehind = "<STR_LIT:int>" ; int cursorLocation = str . lastIndexOf ( "<STR_LIT:int>" ) + completeBehind . length ( ) - <NUM_LIT:1> ; String expectedCompletionNodeToString = "<STR_LIT>" ; String expectedParentNodeToString = "<STR_LIT>" ; String completionIdentifier = "<STR_LIT:int>" ; String expectedReplacedSource = "<STR_LIT:int>" ; String expectedUnitDisplayString = "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" ; checkDietParse ( str . toCharArray ( ) , cursorLocation , expectedCompletionNodeToString , expectedParentNodeToString , expectedUnitDisplayString , completionIdentifier , expectedReplacedSource , "<STR_LIT>" ) ; } public void test0274_Diet ( ) { String str = "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT:}>" ; String completeBehind = "<STR_LIT:int>" ; int cursorLocation = str . lastIndexOf ( "<STR_LIT:int>" ) + completeBehind . length ( ) - <NUM_LIT:1> ; String expectedCompletionNodeToString = "<STR_LIT>" ; String expectedParentNodeToString = "<STR_LIT>" ; String completionIdentifier = "<STR_LIT>" ; String expectedReplacedSource = "<STR_LIT>" ; String expectedUnitDisplayString = "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" ; checkDietParse ( str . toCharArray ( ) , cursorLocation , expectedCompletionNodeToString , expectedParentNodeToString , expectedUnitDisplayString , completionIdentifier , expectedReplacedSource , "<STR_LIT>" ) ; } public void test0274_Method ( ) { String str = "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT:}>" ; String completeBehind = "<STR_LIT:int>" ; int cursorLocation = str . lastIndexOf ( "<STR_LIT:int>" ) + completeBehind . length ( ) - <NUM_LIT:1> ; String expectedCompletionNodeToString = "<STR_LIT>" ; String expectedParentNodeToString = "<STR_LIT>" ; String completionIdentifier = "<STR_LIT:int>" ; String expectedReplacedSource = "<STR_LIT:int>" ; String expectedUnitDisplayString = "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" ; checkMethodParse ( str . toCharArray ( ) , cursorLocation , expectedCompletionNodeToString , expectedParentNodeToString , expectedUnitDisplayString , completionIdentifier , expectedReplacedSource , "<STR_LIT>" ) ; } public void test0275_Diet ( ) { String str = "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT:}>" ; String completeBehind = "<STR_LIT:int>" ; int cursorLocation = str . lastIndexOf ( "<STR_LIT:int>" ) + completeBehind . length ( ) - <NUM_LIT:1> ; String expectedCompletionNodeToString = "<STR_LIT>" ; String expectedParentNodeToString = "<STR_LIT>" ; String completionIdentifier = "<STR_LIT>" ; String expectedReplacedSource = "<STR_LIT>" ; String expectedUnitDisplayString = "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" ; checkDietParse ( str . toCharArray ( ) , cursorLocation , expectedCompletionNodeToString , expectedParentNodeToString , expectedUnitDisplayString , completionIdentifier , expectedReplacedSource , "<STR_LIT>" ) ; } public void test0275_Method ( ) { String str = "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT:}>" ; String completeBehind = "<STR_LIT:int>" ; int cursorLocation = str . lastIndexOf ( "<STR_LIT:int>" ) + completeBehind . length ( ) - <NUM_LIT:1> ; String expectedCompletionNodeToString = "<STR_LIT>" ; String expectedParentNodeToString = "<STR_LIT>" ; String completionIdentifier = "<STR_LIT:int>" ; String expectedReplacedSource = "<STR_LIT:int>" ; String expectedUnitDisplayString = "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" ; checkMethodParse ( str . toCharArray ( ) , cursorLocation , expectedCompletionNodeToString , expectedParentNodeToString , expectedUnitDisplayString , completionIdentifier , expectedReplacedSource , "<STR_LIT>" ) ; } public void test0276_Diet ( ) { String str = "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT:}>" ; String completeBehind = "<STR_LIT:int>" ; int cursorLocation = str . lastIndexOf ( "<STR_LIT:int>" ) + completeBehind . length ( ) - <NUM_LIT:1> ; String expectedCompletionNodeToString = "<STR_LIT>" ; String expectedParentNodeToString = "<STR_LIT>" ; String completionIdentifier = "<STR_LIT>" ; String expectedReplacedSource = "<STR_LIT>" ; String expectedUnitDisplayString = "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" ; checkDietParse ( str . toCharArray ( ) , cursorLocation , expectedCompletionNodeToString , expectedParentNodeToString , expectedUnitDisplayString , completionIdentifier , expectedReplacedSource , "<STR_LIT>" ) ; } public void test0276_Method ( ) { String str = "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT:}>" ; String completeBehind = "<STR_LIT:int>" ; int cursorLocation = str . lastIndexOf ( "<STR_LIT:int>" ) + completeBehind . length ( ) - <NUM_LIT:1> ; String expectedCompletionNodeToString = "<STR_LIT>" ; String expectedParentNodeToString = "<STR_LIT>" ; String completionIdentifier = "<STR_LIT:int>" ; String expectedReplacedSource = "<STR_LIT:int>" ; String expectedUnitDisplayString = "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" ; checkMethodParse ( str . toCharArray ( ) , cursorLocation , expectedCompletionNodeToString , expectedParentNodeToString , expectedUnitDisplayString , completionIdentifier , expectedReplacedSource , "<STR_LIT>" ) ; } public void test0277 ( ) { String str = "<STR_LIT>" + "<STR_LIT>" ; String completeBehind = "<STR_LIT:int>" ; int cursorLocation = str . lastIndexOf ( "<STR_LIT:int>" ) + completeBehind . length ( ) - <NUM_LIT:1> ; String expectedCompletionNodeToString = "<STR_LIT>" ; String expectedParentNodeToString = "<STR_LIT>" ; String completionIdentifier = "<STR_LIT:int>" ; String expectedReplacedSource = "<STR_LIT:int>" ; String expectedUnitDisplayString = "<STR_LIT>" ; checkDietParse ( str . toCharArray ( ) , cursorLocation , expectedCompletionNodeToString , expectedParentNodeToString , expectedUnitDisplayString , completionIdentifier , expectedReplacedSource , "<STR_LIT>" ) ; } public void test0278 ( ) { String str = "<STR_LIT>" + "<STR_LIT>" ; String completeBehind = "<STR_LIT:int>" ; int cursorLocation = str . lastIndexOf ( "<STR_LIT:int>" ) + completeBehind . length ( ) - <NUM_LIT:1> ; String expectedCompletionNodeToString = "<STR_LIT>" ; String expectedParentNodeToString = "<STR_LIT>" ; String completionIdentifier = "<STR_LIT:int>" ; String expectedReplacedSource = "<STR_LIT:int>" ; String expectedUnitDisplayString = "<STR_LIT>" ; checkDietParse ( str . toCharArray ( ) , cursorLocation , expectedCompletionNodeToString , expectedParentNodeToString , expectedUnitDisplayString , completionIdentifier , expectedReplacedSource , "<STR_LIT>" ) ; } public void test0279 ( ) { String str = "<STR_LIT>" + "<STR_LIT>" ; String completeBehind = "<STR_LIT>" ; int cursorLocation = str . lastIndexOf ( "<STR_LIT>" ) + completeBehind . length ( ) - <NUM_LIT:1> ; String expectedCompletionNodeToString = "<STR_LIT>" ; String expectedParentNodeToString = "<STR_LIT>" ; String completionIdentifier = "<STR_LIT>" ; String expectedReplacedSource = "<STR_LIT>" ; String expectedUnitDisplayString = "<STR_LIT>" ; checkDietParse ( str . toCharArray ( ) , cursorLocation , expectedCompletionNodeToString , expectedParentNodeToString , expectedUnitDisplayString , completionIdentifier , expectedReplacedSource , "<STR_LIT>" ) ; } public void test0280 ( ) { String str = "<STR_LIT>" + "<STR_LIT>" ; String completeBehind = "<STR_LIT>" ; int cursorLocation = str . lastIndexOf ( "<STR_LIT>" ) + completeBehind . length ( ) - <NUM_LIT:1> ; String expectedCompletionNodeToString = "<STR_LIT>" ; String expectedParentNodeToString = "<STR_LIT>" ; String completionIdentifier = "<STR_LIT>" ; String expectedReplacedSource = "<STR_LIT>" ; String expectedUnitDisplayString = "<STR_LIT>" ; checkDietParse ( str . toCharArray ( ) , cursorLocation , expectedCompletionNodeToString , expectedParentNodeToString , expectedUnitDisplayString , completionIdentifier , expectedReplacedSource , "<STR_LIT>" ) ; } public void test0281 ( ) { String str = "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" ; String completeBehind = "<STR_LIT>" ; int cursorLocation = str . lastIndexOf ( "<STR_LIT>" ) + completeBehind . length ( ) - <NUM_LIT:1> ; String expectedCompletionNodeToString = "<STR_LIT>" ; String expectedParentNodeToString = "<STR_LIT>" ; String completionIdentifier = "<STR_LIT>" ; String expectedReplacedSource = "<STR_LIT>" ; String expectedUnitDisplayString = "<STR_LIT>" + "<STR_LIT>" ; checkDietParse ( str . toCharArray ( ) , cursorLocation , expectedCompletionNodeToString , expectedParentNodeToString , expectedUnitDisplayString , completionIdentifier , expectedReplacedSource , "<STR_LIT>" ) ; } public void test0282 ( ) { String str = "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" ; String completeBehind = "<STR_LIT>" ; int cursorLocation = str . lastIndexOf ( "<STR_LIT>" ) + completeBehind . length ( ) - <NUM_LIT:1> ; String expectedCompletionNodeToString = "<STR_LIT>" ; String expectedParentNodeToString = "<STR_LIT>" ; String completionIdentifier = "<STR_LIT>" ; String expectedReplacedSource = "<STR_LIT>" ; String expectedUnitDisplayString = "<STR_LIT>" + "<STR_LIT>" ; checkDietParse ( str . toCharArray ( ) , cursorLocation , expectedCompletionNodeToString , expectedParentNodeToString , expectedUnitDisplayString , completionIdentifier , expectedReplacedSource , "<STR_LIT>" ) ; } public void test0283 ( ) { String str = "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" ; String completeBehind = "<STR_LIT>" ; int cursorLocation = str . lastIndexOf ( "<STR_LIT>" ) + completeBehind . length ( ) - <NUM_LIT:1> ; String expectedCompletionNodeToString = "<STR_LIT>" ; String expectedParentNodeToString = "<STR_LIT>" ; String completionIdentifier = "<STR_LIT>" ; String expectedReplacedSource = "<STR_LIT>" ; String expectedUnitDisplayString = "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" ; checkDietParse ( str . toCharArray ( ) , cursorLocation , expectedCompletionNodeToString , expectedParentNodeToString , expectedUnitDisplayString , completionIdentifier , expectedReplacedSource , "<STR_LIT>" ) ; } public void test0284_Diet ( ) { String str = "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT:}>" ; String completeBehind = "<STR_LIT>" ; int cursorLocation = str . lastIndexOf ( "<STR_LIT>" ) + completeBehind . length ( ) - <NUM_LIT:1> ; String expectedCompletionNodeToString = "<STR_LIT>" ; String expectedParentNodeToString = "<STR_LIT>" ; String completionIdentifier = "<STR_LIT>" ; String expectedReplacedSource = "<STR_LIT>" ; String expectedUnitDisplayString = "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" ; checkDietParse ( str . toCharArray ( ) , cursorLocation , expectedCompletionNodeToString , expectedParentNodeToString , expectedUnitDisplayString , completionIdentifier , expectedReplacedSource , "<STR_LIT>" ) ; } public void test0284_Method ( ) { String str = "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT:}>" ; String completeBehind = "<STR_LIT>" ; int cursorLocation = str . lastIndexOf ( "<STR_LIT>" ) + completeBehind . length ( ) - <NUM_LIT:1> ; String expectedCompletionNodeToString = "<STR_LIT>" ; String expectedParentNodeToString = "<STR_LIT>" ; String completionIdentifier = "<STR_LIT>" ; String expectedReplacedSource = "<STR_LIT>" ; String expectedUnitDisplayString = "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" ; checkMethodParse ( str . toCharArray ( ) , cursorLocation , expectedCompletionNodeToString , expectedParentNodeToString , expectedUnitDisplayString , completionIdentifier , expectedReplacedSource , "<STR_LIT>" ) ; } public void test0285_Diet ( ) { String str = "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT:}>" ; String completeBehind = "<STR_LIT>" ; int cursorLocation = str . lastIndexOf ( "<STR_LIT>" ) + completeBehind . length ( ) - <NUM_LIT:1> ; String expectedCompletionNodeToString = "<STR_LIT>" ; String expectedParentNodeToString = "<STR_LIT>" ; String completionIdentifier = "<STR_LIT>" ; String expectedReplacedSource = "<STR_LIT>" ; String expectedUnitDisplayString = "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" ; checkDietParse ( str . toCharArray ( ) , cursorLocation , expectedCompletionNodeToString , expectedParentNodeToString , expectedUnitDisplayString , completionIdentifier , expectedReplacedSource , "<STR_LIT>" ) ; } public void test0285_Method ( ) { String str = "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT:}>" ; String completeBehind = "<STR_LIT>" ; int cursorLocation = str . lastIndexOf ( "<STR_LIT>" ) + completeBehind . length ( ) - <NUM_LIT:1> ; String expectedCompletionNodeToString = "<STR_LIT>" ; String expectedParentNodeToString = "<STR_LIT>" ; String completionIdentifier = "<STR_LIT>" ; String expectedReplacedSource = "<STR_LIT>" ; String expectedUnitDisplayString = "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" ; checkMethodParse ( str . toCharArray ( ) , cursorLocation , expectedCompletionNodeToString , expectedParentNodeToString , expectedUnitDisplayString , completionIdentifier , expectedReplacedSource , "<STR_LIT>" ) ; } public void test0286_Diet ( ) { String str = "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT:}>" ; String completeBehind = "<STR_LIT>" ; int cursorLocation = str . lastIndexOf ( "<STR_LIT>" ) + completeBehind . length ( ) - <NUM_LIT:1> ; String expectedCompletionNodeToString = "<STR_LIT>" ; String expectedParentNodeToString = "<STR_LIT>" ; String completionIdentifier = "<STR_LIT>" ; String expectedReplacedSource = "<STR_LIT>" ; String expectedUnitDisplayString = "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" ; checkDietParse ( str . toCharArray ( ) , cursorLocation , expectedCompletionNodeToString , expectedParentNodeToString , expectedUnitDisplayString , completionIdentifier , expectedReplacedSource , "<STR_LIT>" ) ; } public void test0286_Method ( ) { String str = "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT:}>" ; String completeBehind = "<STR_LIT>" ; int cursorLocation = str . lastIndexOf ( "<STR_LIT>" ) + completeBehind . length ( ) - <NUM_LIT:1> ; String expectedCompletionNodeToString = "<STR_LIT>" ; String expectedParentNodeToString = "<STR_LIT>" ; String completionIdentifier = "<STR_LIT>" ; String expectedReplacedSource = "<STR_LIT>" ; String expectedUnitDisplayString = "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" ; checkMethodParse ( str . toCharArray ( ) , cursorLocation , expectedCompletionNodeToString , expectedParentNodeToString , expectedUnitDisplayString , completionIdentifier , expectedReplacedSource , "<STR_LIT>" ) ; } public void test0287_Diet ( ) { String str = "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT:}>" ; String completeBehind = "<STR_LIT>" ; int cursorLocation = str . lastIndexOf ( "<STR_LIT>" ) + completeBehind . length ( ) - <NUM_LIT:1> ; String expectedCompletionNodeToString = "<STR_LIT>" ; String expectedParentNodeToString = "<STR_LIT>" ; String completionIdentifier = "<STR_LIT>" ; String expectedReplacedSource = "<STR_LIT>" ; String expectedUnitDisplayString = "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" ; checkDietParse ( str . toCharArray ( ) , cursorLocation , expectedCompletionNodeToString , expectedParentNodeToString , expectedUnitDisplayString , completionIdentifier , expectedReplacedSource , "<STR_LIT>" ) ; } public void test0287_Method ( ) { String str = "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT:}>" ; String completeBehind = "<STR_LIT>" ; int cursorLocation = str . lastIndexOf ( "<STR_LIT>" ) + completeBehind . length ( ) - <NUM_LIT:1> ; String expectedCompletionNodeToString = "<STR_LIT>" ; String expectedParentNodeToString = "<STR_LIT>" ; String completionIdentifier = "<STR_LIT>" ; String expectedReplacedSource = "<STR_LIT>" ; String expectedUnitDisplayString = "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" ; checkMethodParse ( str . toCharArray ( ) , cursorLocation , expectedCompletionNodeToString , expectedParentNodeToString , expectedUnitDisplayString , completionIdentifier , expectedReplacedSource , "<STR_LIT>" ) ; } public void test0288_Diet ( ) { String str = "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT:}>" ; String completeBehind = "<STR_LIT>" ; int cursorLocation = str . lastIndexOf ( "<STR_LIT>" ) + completeBehind . length ( ) - <NUM_LIT:1> ; String expectedCompletionNodeToString = "<STR_LIT>" ; String expectedParentNodeToString = "<STR_LIT>" ; String completionIdentifier = "<STR_LIT>" ; String expectedReplacedSource = "<STR_LIT>" ; String expectedUnitDisplayString = "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" ; checkDietParse ( str . toCharArray ( ) , cursorLocation , expectedCompletionNodeToString , expectedParentNodeToString , expectedUnitDisplayString , completionIdentifier , expectedReplacedSource , "<STR_LIT>" ) ; } public void test0288_Method ( ) { String str = "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT:}>" ; String completeBehind = "<STR_LIT>" ; int cursorLocation = str . lastIndexOf ( "<STR_LIT>" ) + completeBehind . length ( ) - <NUM_LIT:1> ; String expectedCompletionNodeToString = "<STR_LIT>" ; String expectedParentNodeToString = "<STR_LIT>" ; String completionIdentifier = "<STR_LIT>" ; String expectedReplacedSource = "<STR_LIT>" ; String expectedUnitDisplayString = "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" ; checkMethodParse ( str . toCharArray ( ) , cursorLocation , expectedCompletionNodeToString , expectedParentNodeToString , expectedUnitDisplayString , completionIdentifier , expectedReplacedSource , "<STR_LIT>" ) ; } public void test0289_Diet ( ) { String str = "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT:}>" ; String completeBehind = "<STR_LIT>" ; int cursorLocation = str . lastIndexOf ( "<STR_LIT>" ) + completeBehind . length ( ) - <NUM_LIT:1> ; String expectedCompletionNodeToString = "<STR_LIT>" ; String expectedParentNodeToString = "<STR_LIT>" ; String completionIdentifier = "<STR_LIT>" ; String expectedReplacedSource = "<STR_LIT>" ; String expectedUnitDisplayString = "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" ; checkDietParse ( str . toCharArray ( ) , cursorLocation , expectedCompletionNodeToString , expectedParentNodeToString , expectedUnitDisplayString , completionIdentifier , expectedReplacedSource , "<STR_LIT>" ) ; } public void test0289_Method ( ) { String str = "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT:}>" ; String completeBehind = "<STR_LIT>" ; int cursorLocation = str . lastIndexOf ( "<STR_LIT>" ) + completeBehind . length ( ) - <NUM_LIT:1> ; String expectedCompletionNodeToString = "<STR_LIT>" ; String expectedParentNodeToString = "<STR_LIT>" ; String completionIdentifier = "<STR_LIT>" ; String expectedReplacedSource = "<STR_LIT>" ; String expectedUnitDisplayString = "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" ; checkMethodParse ( str . toCharArray ( ) , cursorLocation , expectedCompletionNodeToString , expectedParentNodeToString , expectedUnitDisplayString , completionIdentifier , expectedReplacedSource , "<STR_LIT>" ) ; } public void test0290_Diet ( ) { String str = "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT:}>" ; String completeBehind = "<STR_LIT>" ; int cursorLocation = str . lastIndexOf ( "<STR_LIT>" ) + completeBehind . length ( ) - <NUM_LIT:1> ; String expectedCompletionNodeToString = "<STR_LIT>" ; String expectedParentNodeToString = "<STR_LIT>" ; String completionIdentifier = "<STR_LIT>" ; String expectedReplacedSource = "<STR_LIT>" ; String expectedUnitDisplayString = "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" ; checkDietParse ( str . toCharArray ( ) , cursorLocation , expectedCompletionNodeToString , expectedParentNodeToString , expectedUnitDisplayString , completionIdentifier , expectedReplacedSource , "<STR_LIT>" ) ; } public void test0290_Method ( ) { String str = "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT:}>" ; String completeBehind = "<STR_LIT>" ; int cursorLocation = str . lastIndexOf ( "<STR_LIT>" ) + completeBehind . length ( ) - <NUM_LIT:1> ; String expectedCompletionNodeToString = "<STR_LIT>" ; String expectedParentNodeToString = "<STR_LIT>" ; String completionIdentifier = "<STR_LIT>" ; String expectedReplacedSource = "<STR_LIT>" ; String expectedUnitDisplayString = "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" ; checkMethodParse ( str . toCharArray ( ) , cursorLocation , expectedCompletionNodeToString , expectedParentNodeToString , expectedUnitDisplayString , completionIdentifier , expectedReplacedSource , "<STR_LIT>" ) ; } public void test0291_Diet ( ) { String str = "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT:}>" ; String completeBehind = "<STR_LIT>" ; int cursorLocation = str . lastIndexOf ( "<STR_LIT>" ) + completeBehind . length ( ) - <NUM_LIT:1> ; String expectedCompletionNodeToString = "<STR_LIT>" ; String expectedParentNodeToString = "<STR_LIT>" ; String completionIdentifier = "<STR_LIT>" ; String expectedReplacedSource = "<STR_LIT>" ; String expectedUnitDisplayString = "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" ; checkDietParse ( str . toCharArray ( ) , cursorLocation , expectedCompletionNodeToString , expectedParentNodeToString , expectedUnitDisplayString , completionIdentifier , expectedReplacedSource , "<STR_LIT>" ) ; } public void test0291_Method ( ) { String str = "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT:}>" ; String completeBehind = "<STR_LIT>" ; int cursorLocation = str . lastIndexOf ( "<STR_LIT>" ) + completeBehind . length ( ) - <NUM_LIT:1> ; String expectedCompletionNodeToString = "<STR_LIT>" ; String expectedParentNodeToString = "<STR_LIT>" ; String completionIdentifier = "<STR_LIT>" ; String expectedReplacedSource = "<STR_LIT>" ; String expectedUnitDisplayString = "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" ; checkMethodParse ( str . toCharArray ( ) , cursorLocation , expectedCompletionNodeToString , expectedParentNodeToString , expectedUnitDisplayString , completionIdentifier , expectedReplacedSource , "<STR_LIT>" ) ; } public void test0292_Diet ( ) { String str = "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT:}>" ; String completeBehind = "<STR_LIT>" ; int cursorLocation = str . lastIndexOf ( "<STR_LIT>" ) + completeBehind . length ( ) - <NUM_LIT:1> ; String expectedCompletionNodeToString = "<STR_LIT>" ; String expectedParentNodeToString = "<STR_LIT>" ; String completionIdentifier = "<STR_LIT>" ; String expectedReplacedSource = "<STR_LIT>" ; String expectedUnitDisplayString = "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" ; checkDietParse ( str . toCharArray ( ) , cursorLocation , expectedCompletionNodeToString , expectedParentNodeToString , expectedUnitDisplayString , completionIdentifier , expectedReplacedSource , "<STR_LIT>" ) ; } public void test0292_Method ( ) { String str = "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT:}>" ; String completeBehind = "<STR_LIT>" ; int cursorLocation = str . lastIndexOf ( "<STR_LIT>" ) + completeBehind . length ( ) - <NUM_LIT:1> ; String expectedCompletionNodeToString = "<STR_LIT>" ; String expectedParentNodeToString = "<STR_LIT>" ; String completionIdentifier = "<STR_LIT>" ; String expectedReplacedSource = "<STR_LIT>" ; String expectedUnitDisplayString = "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" ; checkMethodParse ( str . toCharArray ( ) , cursorLocation , expectedCompletionNodeToString , expectedParentNodeToString , expectedUnitDisplayString , completionIdentifier , expectedReplacedSource , "<STR_LIT>" ) ; } public void test0293_Diet ( ) { String str = "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT:}>" ; String completeBehind = "<STR_LIT>" ; int cursorLocation = str . lastIndexOf ( "<STR_LIT>" ) + completeBehind . length ( ) - <NUM_LIT:1> ; String expectedCompletionNodeToString = "<STR_LIT>" ; String expectedParentNodeToString = "<STR_LIT>" ; String completionIdentifier = "<STR_LIT>" ; String expectedReplacedSource = "<STR_LIT>" ; String expectedUnitDisplayString = "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" ; checkDietParse ( str . toCharArray ( ) , cursorLocation , expectedCompletionNodeToString , expectedParentNodeToString , expectedUnitDisplayString , completionIdentifier , expectedReplacedSource , "<STR_LIT>" ) ; } public void test0293_Method ( ) { String str = "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT:}>" ; String completeBehind = "<STR_LIT>" ; int cursorLocation = str . lastIndexOf ( "<STR_LIT>" ) + completeBehind . length ( ) - <NUM_LIT:1> ; String expectedCompletionNodeToString = "<STR_LIT>" ; String expectedParentNodeToString = "<STR_LIT>" ; String completionIdentifier = "<STR_LIT>" ; String expectedReplacedSource = "<STR_LIT>" ; String expectedUnitDisplayString = "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" ; checkMethodParse ( str . toCharArray ( ) , cursorLocation , expectedCompletionNodeToString , expectedParentNodeToString , expectedUnitDisplayString , completionIdentifier , expectedReplacedSource , "<STR_LIT>" ) ; } public void test0294_Diet ( ) { String str = "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT:}>" ; String completeBehind = "<STR_LIT>" ; int cursorLocation = str . lastIndexOf ( "<STR_LIT>" ) + completeBehind . length ( ) - <NUM_LIT:1> ; String expectedCompletionNodeToString = "<STR_LIT>" ; String expectedParentNodeToString = "<STR_LIT>" ; String completionIdentifier = "<STR_LIT>" ; String expectedReplacedSource = "<STR_LIT>" ; String expectedUnitDisplayString = "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" ; checkDietParse ( str . toCharArray ( ) , cursorLocation , expectedCompletionNodeToString , expectedParentNodeToString , expectedUnitDisplayString , completionIdentifier , expectedReplacedSource , "<STR_LIT>" ) ; } public void test0294_Method ( ) { String str = "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT:}>" ; String completeBehind = "<STR_LIT>" ; int cursorLocation = str . lastIndexOf ( "<STR_LIT>" ) + completeBehind . length ( ) - <NUM_LIT:1> ; String expectedCompletionNodeToString = "<STR_LIT>" ; String expectedParentNodeToString = "<STR_LIT>" ; String completionIdentifier = "<STR_LIT>" ; String expectedReplacedSource = "<STR_LIT>" ; String expectedUnitDisplayString = "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" ; checkMethodParse ( str . toCharArray ( ) , cursorLocation , expectedCompletionNodeToString , expectedParentNodeToString , expectedUnitDisplayString , completionIdentifier , expectedReplacedSource , "<STR_LIT>" ) ; } public void test0295 ( ) { String str = "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT:}>" ; String completeBehind = "<STR_LIT>" ; int cursorLocation = str . lastIndexOf ( "<STR_LIT>" ) + completeBehind . length ( ) - <NUM_LIT:1> ; String expectedCompletionNodeToString = "<STR_LIT>" ; String expectedParentNodeToString = "<STR_LIT>" ; String completionIdentifier = "<STR_LIT>" ; String expectedReplacedSource = "<STR_LIT>" ; String expectedUnitDisplayString = "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" ; checkDietParse ( str . toCharArray ( ) , cursorLocation , expectedCompletionNodeToString , expectedParentNodeToString , expectedUnitDisplayString , completionIdentifier , expectedReplacedSource , "<STR_LIT>" ) ; } public void test0296 ( ) { String str = "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT:}>" ; String completeBehind = "<STR_LIT>" ; int cursorLocation = str . lastIndexOf ( "<STR_LIT>" ) + completeBehind . length ( ) - <NUM_LIT:1> ; String expectedCompletionNodeToString = "<STR_LIT>" ; String expectedParentNodeToString = "<STR_LIT>" ; String completionIdentifier = "<STR_LIT>" ; String expectedReplacedSource = "<STR_LIT>" ; String expectedUnitDisplayString = "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" ; checkDietParse ( str . toCharArray ( ) , cursorLocation , expectedCompletionNodeToString , expectedParentNodeToString , expectedUnitDisplayString , completionIdentifier , expectedReplacedSource , "<STR_LIT>" ) ; } public void test0297 ( ) { String str = "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT:}>" ; String completeBehind = "<STR_LIT>" ; int cursorLocation = str . lastIndexOf ( "<STR_LIT>" ) + completeBehind . length ( ) - <NUM_LIT:1> ; String expectedCompletionNodeToString = "<STR_LIT>" ; String expectedParentNodeToString = "<STR_LIT>" ; String completionIdentifier = "<STR_LIT>" ; String expectedReplacedSource = "<STR_LIT>" ; String expectedUnitDisplayString = "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" ; checkDietParse ( str . toCharArray ( ) , cursorLocation , expectedCompletionNodeToString , expectedParentNodeToString , expectedUnitDisplayString , completionIdentifier , expectedReplacedSource , "<STR_LIT>" ) ; } public void test0298 ( ) { String str = "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT:}>" ; String completeBehind = "<STR_LIT>" ; int cursorLocation = str . lastIndexOf ( "<STR_LIT>" ) + completeBehind . length ( ) - <NUM_LIT:1> ; String expectedCompletionNodeToString = "<STR_LIT>" ; String expectedParentNodeToString = "<STR_LIT>" ; String completionIdentifier = "<STR_LIT>" ; String expectedReplacedSource = "<STR_LIT>" ; String expectedUnitDisplayString = "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" ; checkDietParse ( str . toCharArray ( ) , cursorLocation , expectedCompletionNodeToString , expectedParentNodeToString , expectedUnitDisplayString , completionIdentifier , expectedReplacedSource , "<STR_LIT>" ) ; } public void test0299 ( ) { String str = "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT:}>" ; String completeBehind = "<STR_LIT>" ; int cursorLocation = str . lastIndexOf ( "<STR_LIT>" ) + completeBehind . length ( ) - <NUM_LIT:1> ; String expectedCompletionNodeToString = "<STR_LIT>" ; String expectedParentNodeToString = "<STR_LIT>" ; String completionIdentifier = "<STR_LIT>" ; String expectedReplacedSource = "<STR_LIT>" ; String expectedUnitDisplayString = "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" ; checkDietParse ( str . toCharArray ( ) , cursorLocation , expectedCompletionNodeToString , expectedParentNodeToString , expectedUnitDisplayString , completionIdentifier , expectedReplacedSource , "<STR_LIT>" ) ; } public void test0300 ( ) { String str = "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT:}>" ; String completeBehind = "<STR_LIT>" ; int cursorLocation = str . lastIndexOf ( "<STR_LIT>" ) + completeBehind . length ( ) - <NUM_LIT:1> ; String expectedCompletionNodeToString = "<STR_LIT>" ; String expectedParentNodeToString = "<STR_LIT>" ; String completionIdentifier = "<STR_LIT>" ; String expectedReplacedSource = "<STR_LIT>" ; String expectedUnitDisplayString = "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" ; checkDietParse ( str . toCharArray ( ) , cursorLocation , expectedCompletionNodeToString , expectedParentNodeToString , expectedUnitDisplayString , completionIdentifier , expectedReplacedSource , "<STR_LIT>" ) ; } public void test0301_Diet ( ) { String str = "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT:}>" ; String completeBehind = "<STR_LIT>" ; int cursorLocation = str . lastIndexOf ( "<STR_LIT>" ) + completeBehind . length ( ) - <NUM_LIT:1> ; String expectedCompletionNodeToString = "<STR_LIT>" ; String expectedParentNodeToString = "<STR_LIT>" ; String completionIdentifier = "<STR_LIT>" ; String expectedReplacedSource = "<STR_LIT>" ; String expectedUnitDisplayString = "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" ; checkDietParse ( str . toCharArray ( ) , cursorLocation , expectedCompletionNodeToString , expectedParentNodeToString , expectedUnitDisplayString , completionIdentifier , expectedReplacedSource , "<STR_LIT>" ) ; } public void test0301_Method ( ) { String str = "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT:}>" ; String completeBehind = "<STR_LIT>" ; int cursorLocation = str . lastIndexOf ( "<STR_LIT>" ) + completeBehind . length ( ) - <NUM_LIT:1> ; String expectedCompletionNodeToString = "<STR_LIT>" ; String expectedParentNodeToString = "<STR_LIT>" ; String completionIdentifier = "<STR_LIT>" ; String expectedReplacedSource = "<STR_LIT>" ; String expectedUnitDisplayString = "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" ; checkMethodParse ( str . toCharArray ( ) , cursorLocation , expectedCompletionNodeToString , expectedParentNodeToString , expectedUnitDisplayString , completionIdentifier , expectedReplacedSource , "<STR_LIT>" ) ; } public void test0302_Diet ( ) { String str = "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT:}>" ; String completeBehind = "<STR_LIT>" ; int cursorLocation = str . lastIndexOf ( "<STR_LIT>" ) + completeBehind . length ( ) - <NUM_LIT:1> ; String expectedCompletionNodeToString = "<STR_LIT>" ; String expectedParentNodeToString = "<STR_LIT>" ; String completionIdentifier = "<STR_LIT>" ; String expectedReplacedSource = "<STR_LIT>" ; String expectedUnitDisplayString = "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" ; checkDietParse ( str . toCharArray ( ) , cursorLocation , expectedCompletionNodeToString , expectedParentNodeToString , expectedUnitDisplayString , completionIdentifier , expectedReplacedSource , "<STR_LIT>" ) ; } public void test0302_Method ( ) { String str = "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT:}>" ; String completeBehind = "<STR_LIT>" ; int cursorLocation = str . lastIndexOf ( "<STR_LIT>" ) + completeBehind . length ( ) - <NUM_LIT:1> ; String expectedCompletionNodeToString = "<STR_LIT>" ; String expectedParentNodeToString = "<STR_LIT>" ; String completionIdentifier = "<STR_LIT>" ; String expectedReplacedSource = "<STR_LIT>" ; String expectedUnitDisplayString = "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" ; checkMethodParse ( str . toCharArray ( ) , cursorLocation , expectedCompletionNodeToString , expectedParentNodeToString , expectedUnitDisplayString , completionIdentifier , expectedReplacedSource , "<STR_LIT>" ) ; } public void test0303_Diet ( ) { String str = "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT:}>" ; String completeBehind = "<STR_LIT>" ; int cursorLocation = str . lastIndexOf ( "<STR_LIT>" ) + completeBehind . length ( ) - <NUM_LIT:1> ; String expectedCompletionNodeToString = "<STR_LIT>" ; String expectedParentNodeToString = "<STR_LIT>" ; String completionIdentifier = "<STR_LIT>" ; String expectedReplacedSource = "<STR_LIT>" ; String expectedUnitDisplayString = "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" ; checkDietParse ( str . toCharArray ( ) , cursorLocation , expectedCompletionNodeToString , expectedParentNodeToString , expectedUnitDisplayString , completionIdentifier , expectedReplacedSource , "<STR_LIT>" ) ; } public void test0303_Method ( ) { String str = "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT:}>" ; String completeBehind = "<STR_LIT>" ; int cursorLocation = str . lastIndexOf ( "<STR_LIT>" ) + completeBehind . length ( ) - <NUM_LIT:1> ; String expectedCompletionNodeToString = "<STR_LIT>" ; String expectedParentNodeToString = "<STR_LIT>" ; String completionIdentifier = "<STR_LIT>" ; String expectedReplacedSource = "<STR_LIT>" ; String expectedUnitDisplayString = "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" ; checkMethodParse ( str . toCharArray ( ) , cursorLocation , expectedCompletionNodeToString , expectedParentNodeToString , expectedUnitDisplayString , completionIdentifier , expectedReplacedSource , "<STR_LIT>" ) ; } public void test0304_Diet ( ) { String str = "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT:}>" ; String completeBehind = "<STR_LIT>" ; int cursorLocation = str . lastIndexOf ( "<STR_LIT>" ) + completeBehind . length ( ) - <NUM_LIT:1> ; String expectedCompletionNodeToString = "<STR_LIT>" ; String expectedParentNodeToString = "<STR_LIT>" ; String completionIdentifier = "<STR_LIT>" ; String expectedReplacedSource = "<STR_LIT>" ; String expectedUnitDisplayString = "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" ; checkDietParse ( str . toCharArray ( ) , cursorLocation , expectedCompletionNodeToString , expectedParentNodeToString , expectedUnitDisplayString , completionIdentifier , expectedReplacedSource , "<STR_LIT>" ) ; } public void test0304_Method ( ) { String str = "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT:}>" ; String completeBehind = "<STR_LIT>" ; int cursorLocation = str . lastIndexOf ( "<STR_LIT>" ) + completeBehind . length ( ) - <NUM_LIT:1> ; String expectedCompletionNodeToString = "<STR_LIT>" ; String expectedParentNodeToString = "<STR_LIT>" ; String completionIdentifier = "<STR_LIT>" ; String expectedReplacedSource = "<STR_LIT>" ; String expectedUnitDisplayString = "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" ; checkMethodParse ( str . toCharArray ( ) , cursorLocation , expectedCompletionNodeToString , expectedParentNodeToString , expectedUnitDisplayString , completionIdentifier , expectedReplacedSource , "<STR_LIT>" ) ; } public void test0305 ( ) { String str = "<STR_LIT>" + "<STR_LIT>" ; String completeBehind = "<STR_LIT>" ; int cursorLocation = str . lastIndexOf ( "<STR_LIT>" ) + completeBehind . length ( ) - <NUM_LIT:1> ; String expectedCompletionNodeToString = "<STR_LIT>" ; String expectedParentNodeToString = "<STR_LIT>" ; String completionIdentifier = "<STR_LIT>" ; String expectedReplacedSource = "<STR_LIT>" ; String expectedUnitDisplayString = "<STR_LIT>" ; checkDietParse ( str . toCharArray ( ) , cursorLocation , expectedCompletionNodeToString , expectedParentNodeToString , expectedUnitDisplayString , completionIdentifier , expectedReplacedSource , "<STR_LIT>" ) ; } public void test0306 ( ) { String str = "<STR_LIT>" + "<STR_LIT>" ; String completeBehind = "<STR_LIT>" ; int cursorLocation = str . lastIndexOf ( "<STR_LIT>" ) + completeBehind . length ( ) - <NUM_LIT:1> ; String expectedCompletionNodeToString = "<STR_LIT>" ; String expectedParentNodeToString = "<STR_LIT>" ; String completionIdentifier = "<STR_LIT>" ; String expectedReplacedSource = "<STR_LIT>" ; String expectedUnitDisplayString = "<STR_LIT>" ; checkDietParse ( str . toCharArray ( ) , cursorLocation , expectedCompletionNodeToString , expectedParentNodeToString , expectedUnitDisplayString , completionIdentifier , expectedReplacedSource , "<STR_LIT>" ) ; } public void test0307 ( ) { String str = "<STR_LIT>" + "<STR_LIT>" ; String completeBehind = "<STR_LIT>" ; int cursorLocation = str . lastIndexOf ( "<STR_LIT>" ) + completeBehind . length ( ) - <NUM_LIT:1> ; String expectedCompletionNodeToString = "<STR_LIT>" ; String expectedParentNodeToString = "<STR_LIT>" ; String completionIdentifier = "<STR_LIT>" ; String expectedReplacedSource = "<STR_LIT>" ; String expectedUnitDisplayString = "<STR_LIT>" ; checkDietParse ( str . toCharArray ( ) , cursorLocation , expectedCompletionNodeToString , expectedParentNodeToString , expectedUnitDisplayString , completionIdentifier , expectedReplacedSource , "<STR_LIT>" ) ; } public void test0308 ( ) { String str = "<STR_LIT>" + "<STR_LIT>" ; String completeBehind = "<STR_LIT>" ; int cursorLocation = str . lastIndexOf ( "<STR_LIT>" ) + completeBehind . length ( ) - <NUM_LIT:1> ; String expectedCompletionNodeToString = "<STR_LIT>" ; String expectedParentNodeToString = "<STR_LIT>" ; String completionIdentifier = "<STR_LIT>" ; String expectedReplacedSource = "<STR_LIT>" ; String expectedUnitDisplayString = "<STR_LIT>" ; checkDietParse ( str . toCharArray ( ) , cursorLocation , expectedCompletionNodeToString , expectedParentNodeToString , expectedUnitDisplayString , completionIdentifier , expectedReplacedSource , "<STR_LIT>" ) ; } public void test0309 ( ) { String str = "<STR_LIT>" + "<STR_LIT>" ; String completeBehind = "<STR_LIT>" ; int cursorLocation = str . lastIndexOf ( "<STR_LIT>" ) + completeBehind . length ( ) - <NUM_LIT:1> ; String expectedCompletionNodeToString = "<STR_LIT>" ; String expectedParentNodeToString = "<STR_LIT>" ; String completionIdentifier = "<STR_LIT>" ; String expectedReplacedSource = "<STR_LIT>" ; String expectedUnitDisplayString = "<STR_LIT>" ; checkDietParse ( str . toCharArray ( ) , cursorLocation , expectedCompletionNodeToString , expectedParentNodeToString , expectedUnitDisplayString , completionIdentifier , expectedReplacedSource , "<STR_LIT>" ) ; } public void test0310 ( ) { String str = "<STR_LIT>" + "<STR_LIT>" ; String completeBehind = "<STR_LIT>" ; int cursorLocation = str . lastIndexOf ( "<STR_LIT>" ) + completeBehind . length ( ) - <NUM_LIT:1> ; String expectedCompletionNodeToString = "<STR_LIT>" ; String expectedParentNodeToString = "<STR_LIT>" ; String completionIdentifier = "<STR_LIT>" ; String expectedReplacedSource = "<STR_LIT>" ; String expectedUnitDisplayString = "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" ; checkDietParse ( str . toCharArray ( ) , cursorLocation , expectedCompletionNodeToString , expectedParentNodeToString , expectedUnitDisplayString , completionIdentifier , expectedReplacedSource , "<STR_LIT>" ) ; } public void test0311 ( ) { String str = "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT:}>" ; String completeBehind = "<STR_LIT>" ; int cursorLocation = str . lastIndexOf ( "<STR_LIT>" ) + completeBehind . length ( ) - <NUM_LIT:1> ; String expectedCompletionNodeToString = "<STR_LIT>" ; String expectedParentNodeToString = "<STR_LIT>" ; String completionIdentifier = "<STR_LIT>" ; String expectedReplacedSource = "<STR_LIT>" ; String expectedUnitDisplayString = "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" ; checkDietParse ( str . toCharArray ( ) , cursorLocation , expectedCompletionNodeToString , expectedParentNodeToString , expectedUnitDisplayString , completionIdentifier , expectedReplacedSource , "<STR_LIT>" ) ; } public void test0312 ( ) { String str = "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT:}>" ; String completeBehind = "<STR_LIT>" ; int cursorLocation = str . lastIndexOf ( "<STR_LIT>" ) + completeBehind . length ( ) - <NUM_LIT:1> ; String expectedCompletionNodeToString = "<STR_LIT>" ; String expectedParentNodeToString = "<STR_LIT>" ; String completionIdentifier = "<STR_LIT>" ; String expectedReplacedSource = "<STR_LIT>" ; String expectedUnitDisplayString = "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" ; checkDietParse ( str . toCharArray ( ) , cursorLocation , expectedCompletionNodeToString , expectedParentNodeToString , expectedUnitDisplayString , completionIdentifier , expectedReplacedSource , "<STR_LIT>" ) ; } public void test0313 ( ) { String str = "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT:}>" ; String completeBehind = "<STR_LIT>" ; int cursorLocation = str . lastIndexOf ( "<STR_LIT>" ) + completeBehind . length ( ) - <NUM_LIT:1> ; String expectedCompletionNodeToString = "<STR_LIT>" ; String expectedParentNodeToString = "<STR_LIT>" ; String completionIdentifier = "<STR_LIT>" ; String expectedReplacedSource = "<STR_LIT>" ; String expectedUnitDisplayString = "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" ; checkDietParse ( str . toCharArray ( ) , cursorLocation , expectedCompletionNodeToString , expectedParentNodeToString , expectedUnitDisplayString , completionIdentifier , expectedReplacedSource , "<STR_LIT>" ) ; } public void test0314 ( ) { String str = "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT:}>" ; String completeBehind = "<STR_LIT>" ; int cursorLocation = str . lastIndexOf ( "<STR_LIT>" ) + completeBehind . length ( ) - <NUM_LIT:1> ; String expectedCompletionNodeToString = "<STR_LIT>" ; String expectedParentNodeToString = "<STR_LIT>" ; String completionIdentifier = "<STR_LIT>" ; String expectedReplacedSource = "<STR_LIT>" ; String expectedUnitDisplayString = "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" ; checkDietParse ( str . toCharArray ( ) , cursorLocation , expectedCompletionNodeToString , expectedParentNodeToString , expectedUnitDisplayString , completionIdentifier , expectedReplacedSource , "<STR_LIT>" ) ; } public void test0315 ( ) { String str = "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT:}>" ; String completeBehind = "<STR_LIT>" ; int cursorLocation = str . lastIndexOf ( "<STR_LIT>" ) + completeBehind . length ( ) - <NUM_LIT:1> ; String expectedCompletionNodeToString = "<STR_LIT>" ; String expectedParentNodeToString = "<STR_LIT>" ; String completionIdentifier = "<STR_LIT>" ; String expectedReplacedSource = "<STR_LIT>" ; String expectedUnitDisplayString = "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" ; checkDietParse ( str . toCharArray ( ) , cursorLocation , expectedCompletionNodeToString , expectedParentNodeToString , expectedUnitDisplayString , completionIdentifier , expectedReplacedSource , "<STR_LIT>" ) ; } public void test0316 ( ) { String str = "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT:}>" ; String completeBehind = "<STR_LIT>" ; int cursorLocation = str . lastIndexOf ( "<STR_LIT>" ) + completeBehind . length ( ) - <NUM_LIT:1> ; String expectedCompletionNodeToString = "<STR_LIT>" ; String expectedParentNodeToString = "<STR_LIT>" ; String completionIdentifier = "<STR_LIT>" ; String expectedReplacedSource = "<STR_LIT>" ; String expectedUnitDisplayString = "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" ; checkDietParse ( str . toCharArray ( ) , cursorLocation , expectedCompletionNodeToString , expectedParentNodeToString , expectedUnitDisplayString , completionIdentifier , expectedReplacedSource , "<STR_LIT>" ) ; } public void test0317 ( ) { String str = "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT:}>" ; String completeBehind = "<STR_LIT>" ; int cursorLocation = str . lastIndexOf ( "<STR_LIT>" ) + completeBehind . length ( ) - <NUM_LIT:1> ; String expectedCompletionNodeToString = "<STR_LIT>" ; String expectedParentNodeToString = "<STR_LIT>" ; String completionIdentifier = "<STR_LIT>" ; String expectedReplacedSource = "<STR_LIT>" ; String expectedUnitDisplayString = "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" ; checkDietParse ( str . toCharArray ( ) , cursorLocation , expectedCompletionNodeToString , expectedParentNodeToString , expectedUnitDisplayString , completionIdentifier , expectedReplacedSource , "<STR_LIT>" ) ; } public void test0318 ( ) { String str = "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT:}>" ; String completeBehind = "<STR_LIT>" ; int cursorLocation = str . lastIndexOf ( "<STR_LIT>" ) + completeBehind . length ( ) - <NUM_LIT:1> ; String expectedCompletionNodeToString = "<STR_LIT>" ; String expectedParentNodeToString = "<STR_LIT>" ; String completionIdentifier = "<STR_LIT>" ; String expectedReplacedSource = "<STR_LIT>" ; String expectedUnitDisplayString = "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" ; checkDietParse ( str . toCharArray ( ) , cursorLocation , expectedCompletionNodeToString , expectedParentNodeToString , expectedUnitDisplayString , completionIdentifier , expectedReplacedSource , "<STR_LIT>" ) ; } public void test0319 ( ) { String str = "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT:}>" ; String completeBehind = "<STR_LIT>" ; int cursorLocation = str . lastIndexOf ( "<STR_LIT>" ) + completeBehind . length ( ) - <NUM_LIT:1> ; String expectedCompletionNodeToString = "<STR_LIT>" ; String expectedParentNodeToString = "<STR_LIT>" ; String completionIdentifier = "<STR_LIT>" ; String expectedReplacedSource = "<STR_LIT>" ; String expectedUnitDisplayString = "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" ; checkDietParse ( str . toCharArray ( ) , cursorLocation , expectedCompletionNodeToString , expectedParentNodeToString , expectedUnitDisplayString , completionIdentifier , expectedReplacedSource , "<STR_LIT>" ) ; } public void test0320 ( ) { String str = "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT:}>" ; String completeBehind = "<STR_LIT>" ; int cursorLocation = str . lastIndexOf ( "<STR_LIT>" ) + completeBehind . length ( ) - <NUM_LIT:1> ; String expectedCompletionNodeToString = "<STR_LIT>" ; String expectedParentNodeToString = "<STR_LIT>" ; String completionIdentifier = "<STR_LIT>" ; String expectedReplacedSource = "<STR_LIT>" ; String expectedUnitDisplayString = "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" ; checkDietParse ( str . toCharArray ( ) , cursorLocation , expectedCompletionNodeToString , expectedParentNodeToString , expectedUnitDisplayString , completionIdentifier , expectedReplacedSource , "<STR_LIT>" ) ; } public void test0321 ( ) { String str = "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT:}>" ; String completeBehind = "<STR_LIT>" ; int cursorLocation = str . lastIndexOf ( "<STR_LIT>" ) + completeBehind . length ( ) - <NUM_LIT:1> ; String expectedCompletionNodeToString = "<STR_LIT>" ; String expectedParentNodeToString = "<STR_LIT>" ; String completionIdentifier = "<STR_LIT>" ; String expectedReplacedSource = "<STR_LIT>" ; String expectedUnitDisplayString = "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" ; checkDietParse ( str . toCharArray ( ) , cursorLocation , expectedCompletionNodeToString , expectedParentNodeToString , expectedUnitDisplayString , completionIdentifier , expectedReplacedSource , "<STR_LIT>" ) ; } public void test0322 ( ) { String str = "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT:}>" ; String completeBehind = "<STR_LIT>" ; int cursorLocation = str . lastIndexOf ( "<STR_LIT>" ) + completeBehind . length ( ) - <NUM_LIT:1> ; String expectedCompletionNodeToString = "<STR_LIT>" ; String expectedParentNodeToString = "<STR_LIT>" ; String completionIdentifier = "<STR_LIT>" ; String expectedReplacedSource = "<STR_LIT>" ; String expectedUnitDisplayString = "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" ; checkDietParse ( str . toCharArray ( ) , cursorLocation , expectedCompletionNodeToString , expectedParentNodeToString , expectedUnitDisplayString , completionIdentifier , expectedReplacedSource , "<STR_LIT>" ) ; } public void test0323 ( ) { String str = "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT:}>" ; String completeBehind = "<STR_LIT>" ; int cursorLocation = str . lastIndexOf ( "<STR_LIT>" ) + completeBehind . length ( ) - <NUM_LIT:1> ; String expectedCompletionNodeToString = "<STR_LIT>" ; String expectedParentNodeToString = "<STR_LIT>" ; String completionIdentifier = "<STR_LIT>" ; String expectedReplacedSource = "<STR_LIT>" ; String expectedUnitDisplayString = "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" ; checkDietParse ( str . toCharArray ( ) , cursorLocation , expectedCompletionNodeToString , expectedParentNodeToString , expectedUnitDisplayString , completionIdentifier , expectedReplacedSource , "<STR_LIT>" ) ; } public void test0324 ( ) { String str = "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT:}>" ; String completeBehind = "<STR_LIT>" ; int cursorLocation = str . lastIndexOf ( "<STR_LIT>" ) + completeBehind . length ( ) - <NUM_LIT:1> ; String expectedCompletionNodeToString = "<STR_LIT>" ; String expectedParentNodeToString = "<STR_LIT>" ; String completionIdentifier = "<STR_LIT>" ; String expectedReplacedSource = "<STR_LIT>" ; String expectedUnitDisplayString = "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" ; checkDietParse ( str . toCharArray ( ) , cursorLocation , expectedCompletionNodeToString , expectedParentNodeToString , expectedUnitDisplayString , completionIdentifier , expectedReplacedSource , "<STR_LIT>" ) ; } public void test0325 ( ) { String str = "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT:}>" ; String completeBehind = "<STR_LIT>" ; int cursorLocation = str . lastIndexOf ( "<STR_LIT>" ) + completeBehind . length ( ) - <NUM_LIT:1> ; String expectedCompletionNodeToString = "<STR_LIT>" ; String expectedParentNodeToString = "<STR_LIT>" ; String completionIdentifier = "<STR_LIT>" ; String expectedReplacedSource = "<STR_LIT>" ; String expectedUnitDisplayString = "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" ; checkDietParse ( str . toCharArray ( ) , cursorLocation , expectedCompletionNodeToString , expectedParentNodeToString , expectedUnitDisplayString , completionIdentifier , expectedReplacedSource , "<STR_LIT>" ) ; } public void test0326 ( ) { String str = "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT:}>" ; String completeBehind = "<STR_LIT>" ; int cursorLocation = str . lastIndexOf ( "<STR_LIT>" ) + completeBehind . length ( ) - <NUM_LIT:1> ; String expectedCompletionNodeToString = "<STR_LIT>" ; String expectedParentNodeToString = "<STR_LIT>" ; String completionIdentifier = "<STR_LIT>" ; String expectedReplacedSource = "<STR_LIT>" ; String expectedUnitDisplayString = "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" ; checkDietParse ( str . toCharArray ( ) , cursorLocation , expectedCompletionNodeToString , expectedParentNodeToString , expectedUnitDisplayString , completionIdentifier , expectedReplacedSource , "<STR_LIT>" ) ; } public void test0327 ( ) { String str = "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT:}>" ; String completeBehind = "<STR_LIT>" ; int cursorLocation = str . lastIndexOf ( "<STR_LIT>" ) + completeBehind . length ( ) - <NUM_LIT:1> ; String expectedCompletionNodeToString = "<STR_LIT>" ; String expectedParentNodeToString = "<STR_LIT>" ; String completionIdentifier = "<STR_LIT>" ; String expectedReplacedSource = "<STR_LIT>" ; String expectedUnitDisplayString = "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" ; checkDietParse ( str . toCharArray ( ) , cursorLocation , expectedCompletionNodeToString , expectedParentNodeToString , expectedUnitDisplayString , completionIdentifier , expectedReplacedSource , "<STR_LIT>" ) ; } public void test0328 ( ) { String str = "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT:}>" ; String completeBehind = "<STR_LIT>" ; int cursorLocation = str . lastIndexOf ( "<STR_LIT>" ) + completeBehind . length ( ) - <NUM_LIT:1> ; String expectedCompletionNodeToString = "<STR_LIT>" ; String expectedParentNodeToString = "<STR_LIT>" ; String completionIdentifier = "<STR_LIT>" ; String expectedReplacedSource = "<STR_LIT>" ; String expectedUnitDisplayString = "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" ; checkDietParse ( str . toCharArray ( ) , cursorLocation , expectedCompletionNodeToString , expectedParentNodeToString , expectedUnitDisplayString , completionIdentifier , expectedReplacedSource , "<STR_LIT>" ) ; } public void test0329 ( ) { String str = "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT:}>" ; String completeBehind = "<STR_LIT>" ; int cursorLocation = str . lastIndexOf ( "<STR_LIT>" ) + completeBehind . length ( ) - <NUM_LIT:1> ; String expectedCompletionNodeToString = "<STR_LIT>" ; String expectedParentNodeToString = "<STR_LIT>" ; String completionIdentifier = "<STR_LIT>" ; String expectedReplacedSource = "<STR_LIT>" ; String expectedUnitDisplayString = "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" ; checkDietParse ( str . toCharArray ( ) , cursorLocation , expectedCompletionNodeToString , expectedParentNodeToString , expectedUnitDisplayString , completionIdentifier , expectedReplacedSource , "<STR_LIT>" ) ; } public void test0330 ( ) { String str = "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT:}>" ; String completeBehind = "<STR_LIT>" ; int cursorLocation = str . lastIndexOf ( "<STR_LIT>" ) + completeBehind . length ( ) - <NUM_LIT:1> ; String expectedCompletionNodeToString = "<STR_LIT>" ; String expectedParentNodeToString = "<STR_LIT>" ; String completionIdentifier = "<STR_LIT>" ; String expectedReplacedSource = "<STR_LIT>" ; String expectedUnitDisplayString = "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" ; checkDietParse ( str . toCharArray ( ) , cursorLocation , expectedCompletionNodeToString , expectedParentNodeToString , expectedUnitDisplayString , completionIdentifier , expectedReplacedSource , "<STR_LIT>" ) ; } public void test0331 ( ) { String str = "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT:}>" ; String completeBehind = "<STR_LIT>" ; int cursorLocation = str . lastIndexOf ( "<STR_LIT>" ) + completeBehind . length ( ) - <NUM_LIT:1> ; String expectedCompletionNodeToString = "<STR_LIT>" ; String expectedParentNodeToString = "<STR_LIT>" ; String completionIdentifier = "<STR_LIT>" ; String expectedReplacedSource = "<STR_LIT>" ; String expectedUnitDisplayString = "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" ; checkDietParse ( str . toCharArray ( ) , cursorLocation , expectedCompletionNodeToString , expectedParentNodeToString , expectedUnitDisplayString , completionIdentifier , expectedReplacedSource , "<STR_LIT>" ) ; } public void test0332 ( ) { String str = "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT:}>" ; String completeBehind = "<STR_LIT>" ; int cursorLocation = str . lastIndexOf ( "<STR_LIT>" ) + completeBehind . length ( ) - <NUM_LIT:1> ; String expectedCompletionNodeToString = "<STR_LIT>" ; String expectedParentNodeToString = "<STR_LIT>" ; String completionIdentifier = "<STR_LIT>" ; String expectedReplacedSource = "<STR_LIT>" ; String expectedUnitDisplayString = "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" ; checkDietParse ( str . toCharArray ( ) , cursorLocation , expectedCompletionNodeToString , expectedParentNodeToString , expectedUnitDisplayString , completionIdentifier , expectedReplacedSource , "<STR_LIT>" ) ; } public void test0333 ( ) { String str = "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT:}>" ; String completeBehind = "<STR_LIT>" ; int cursorLocation = str . lastIndexOf ( "<STR_LIT>" ) + completeBehind . length ( ) - <NUM_LIT:1> ; String expectedCompletionNodeToString = "<STR_LIT>" ; String expectedParentNodeToString = "<STR_LIT>" ; String completionIdentifier = "<STR_LIT>" ; String expectedReplacedSource = "<STR_LIT>" ; String expectedUnitDisplayString = "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" ; checkDietParse ( str . toCharArray ( ) , cursorLocation , expectedCompletionNodeToString , expectedParentNodeToString , expectedUnitDisplayString , completionIdentifier , expectedReplacedSource , "<STR_LIT>" ) ; } public void test0334 ( ) { String str = "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT:}>" ; String completeBehind = "<STR_LIT>" ; int cursorLocation = str . lastIndexOf ( "<STR_LIT>" ) + completeBehind . length ( ) - <NUM_LIT:1> ; String expectedCompletionNodeToString = "<STR_LIT>" ; String expectedParentNodeToString = "<STR_LIT>" ; String completionIdentifier = "<STR_LIT>" ; String expectedReplacedSource = "<STR_LIT>" ; String expectedUnitDisplayString = "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" ; checkDietParse ( str . toCharArray ( ) , cursorLocation , expectedCompletionNodeToString , expectedParentNodeToString , expectedUnitDisplayString , completionIdentifier , expectedReplacedSource , "<STR_LIT>" ) ; } public void test0335 ( ) { String str = "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT:}>" ; String completeBehind = "<STR_LIT>" ; int cursorLocation = str . lastIndexOf ( "<STR_LIT>" ) + completeBehind . length ( ) - <NUM_LIT:1> ; String expectedCompletionNodeToString = "<STR_LIT>" ; String expectedParentNodeToString = "<STR_LIT>" ; String completionIdentifier = "<STR_LIT>" ; String expectedReplacedSource = "<STR_LIT>" ; String expectedUnitDisplayString = "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" ; checkDietParse ( str . toCharArray ( ) , cursorLocation , expectedCompletionNodeToString , expectedParentNodeToString , expectedUnitDisplayString , completionIdentifier , expectedReplacedSource , "<STR_LIT>" ) ; } public void test0336 ( ) { String str = "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT:}>" ; String completeBehind = "<STR_LIT>" ; int cursorLocation = str . lastIndexOf ( "<STR_LIT>" ) + completeBehind . length ( ) - <NUM_LIT:1> ; String expectedCompletionNodeToString = "<STR_LIT>" ; String expectedParentNodeToString = "<STR_LIT>" ; String completionIdentifier = "<STR_LIT>" ; String expectedReplacedSource = "<STR_LIT>" ; String expectedUnitDisplayString = "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" ; checkDietParse ( str . toCharArray ( ) , cursorLocation , expectedCompletionNodeToString , expectedParentNodeToString , expectedUnitDisplayString , completionIdentifier , expectedReplacedSource , "<STR_LIT>" ) ; } public void test0337 ( ) { String str = "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT:}>" ; String completeBehind = "<STR_LIT>" ; int cursorLocation = str . lastIndexOf ( "<STR_LIT>" ) + completeBehind . length ( ) - <NUM_LIT:1> ; String expectedCompletionNodeToString = "<STR_LIT>" ; String expectedParentNodeToString = "<STR_LIT>" ; String completionIdentifier = "<STR_LIT>" ; String expectedReplacedSource = "<STR_LIT>" ; String expectedUnitDisplayString = "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" ; checkDietParse ( str . toCharArray ( ) , cursorLocation , expectedCompletionNodeToString , expectedParentNodeToString , expectedUnitDisplayString , completionIdentifier , expectedReplacedSource , "<STR_LIT>" ) ; } public void test0338 ( ) { String str = "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT:}>" ; String completeBehind = "<STR_LIT>" ; int cursorLocation = str . lastIndexOf ( "<STR_LIT>" ) + completeBehind . length ( ) - <NUM_LIT:1> ; String expectedCompletionNodeToString = "<STR_LIT>" ; String expectedParentNodeToString = "<STR_LIT>" ; String completionIdentifier = "<STR_LIT>" ; String expectedReplacedSource = "<STR_LIT>" ; String expectedUnitDisplayString = "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" ; checkDietParse ( str . toCharArray ( ) , cursorLocation , expectedCompletionNodeToString , expectedParentNodeToString , expectedUnitDisplayString , completionIdentifier , expectedReplacedSource , "<STR_LIT>" ) ; } public void test0339 ( ) { String str = "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT:}>" ; String completeBehind = "<STR_LIT>" ; int cursorLocation = str . lastIndexOf ( "<STR_LIT>" ) + completeBehind . length ( ) - <NUM_LIT:1> ; String expectedCompletionNodeToString = "<STR_LIT>" ; String expectedParentNodeToString = "<STR_LIT>" ; String completionIdentifier = "<STR_LIT>" ; String expectedReplacedSource = "<STR_LIT>" ; String expectedUnitDisplayString = "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" ; checkDietParse ( str . toCharArray ( ) , cursorLocation , expectedCompletionNodeToString , expectedParentNodeToString , expectedUnitDisplayString , completionIdentifier , expectedReplacedSource , "<STR_LIT>" ) ; } public void test0340 ( ) { String str = "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT:}>" ; String completeBehind = "<STR_LIT>" ; int cursorLocation = str . lastIndexOf ( "<STR_LIT>" ) + completeBehind . length ( ) - <NUM_LIT:1> ; String expectedCompletionNodeToString = "<STR_LIT>" ; String expectedParentNodeToString = "<STR_LIT>" ; String completionIdentifier = "<STR_LIT>" ; String expectedReplacedSource = "<STR_LIT>" ; String expectedUnitDisplayString = "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" ; checkDietParse ( str . toCharArray ( ) , cursorLocation , expectedCompletionNodeToString , expectedParentNodeToString , expectedUnitDisplayString , completionIdentifier , expectedReplacedSource , "<STR_LIT>" ) ; } public void test0341_Diet ( ) { String str = "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT:}>" ; String completeBehind = "<STR_LIT>" ; int cursorLocation = str . lastIndexOf ( "<STR_LIT>" ) + completeBehind . length ( ) - <NUM_LIT:1> ; String expectedCompletionNodeToString = "<STR_LIT>" ; String expectedParentNodeToString = "<STR_LIT>" ; String completionIdentifier = "<STR_LIT>" ; String expectedReplacedSource = "<STR_LIT>" ; String expectedUnitDisplayString = "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" ; checkDietParse ( str . toCharArray ( ) , cursorLocation , expectedCompletionNodeToString , expectedParentNodeToString , expectedUnitDisplayString , completionIdentifier , expectedReplacedSource , "<STR_LIT>" ) ; } public void test0341_Method ( ) { String str = "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT:}>" ; String completeBehind = "<STR_LIT>" ; int cursorLocation = str . lastIndexOf ( "<STR_LIT>" ) + completeBehind . length ( ) - <NUM_LIT:1> ; String expectedCompletionNodeToString = "<STR_LIT>" ; String expectedParentNodeToString = "<STR_LIT>" ; String completionIdentifier = "<STR_LIT>" ; String expectedReplacedSource = "<STR_LIT>" ; String expectedUnitDisplayString = "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" ; checkMethodParse ( str . toCharArray ( ) , cursorLocation , expectedCompletionNodeToString , expectedParentNodeToString , expectedUnitDisplayString , completionIdentifier , expectedReplacedSource , "<STR_LIT>" ) ; } public void test0342_Diet ( ) { String str = "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT:}>" ; String completeBehind = "<STR_LIT>" ; int cursorLocation = str . lastIndexOf ( "<STR_LIT>" ) + completeBehind . length ( ) - <NUM_LIT:1> ; String expectedCompletionNodeToString = "<STR_LIT>" ; String expectedParentNodeToString = "<STR_LIT>" ; String completionIdentifier = "<STR_LIT>" ; String expectedReplacedSource = "<STR_LIT>" ; String expectedUnitDisplayString = "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" ; checkDietParse ( str . toCharArray ( ) , cursorLocation , expectedCompletionNodeToString , expectedParentNodeToString , expectedUnitDisplayString , completionIdentifier , expectedReplacedSource , "<STR_LIT>" ) ; } public void test0342_Method ( ) { String str = "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT:}>" ; String completeBehind = "<STR_LIT>" ; int cursorLocation = str . lastIndexOf ( "<STR_LIT>" ) + completeBehind . length ( ) - <NUM_LIT:1> ; String expectedCompletionNodeToString = "<STR_LIT>" ; String expectedParentNodeToString = "<STR_LIT>" ; String completionIdentifier = "<STR_LIT>" ; String expectedReplacedSource = "<STR_LIT>" ; String expectedUnitDisplayString = "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" ; checkMethodParse ( str . toCharArray ( ) , cursorLocation , expectedCompletionNodeToString , expectedParentNodeToString , expectedUnitDisplayString , completionIdentifier , expectedReplacedSource , "<STR_LIT>" ) ; } public void test0343 ( ) { String str = "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT:}>" ; String completeBehind = "<STR_LIT>" ; int cursorLocation = str . lastIndexOf ( "<STR_LIT>" ) + completeBehind . length ( ) - <NUM_LIT:1> ; String expectedCompletionNodeToString = "<STR_LIT>" ; String expectedParentNodeToString = "<STR_LIT>" ; String completionIdentifier = "<STR_LIT>" ; String expectedReplacedSource = "<STR_LIT>" ; String expectedUnitDisplayString = "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" ; checkDietParse ( str . toCharArray ( ) , cursorLocation , expectedCompletionNodeToString , expectedParentNodeToString , expectedUnitDisplayString , completionIdentifier , expectedReplacedSource , "<STR_LIT>" ) ; } public void test0344 ( ) { String str = "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT:}>" ; String completeBehind = "<STR_LIT>" ; int cursorLocation = str . lastIndexOf ( "<STR_LIT>" ) + completeBehind . length ( ) - <NUM_LIT:1> ; String expectedCompletionNodeToString = "<STR_LIT>" ; String expectedParentNodeToString = "<STR_LIT>" ; String completionIdentifier = "<STR_LIT>" ; String expectedReplacedSource = "<STR_LIT>" ; String expectedUnitDisplayString = "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" ; checkDietParse ( str . toCharArray ( ) , cursorLocation , expectedCompletionNodeToString , expectedParentNodeToString , expectedUnitDisplayString , completionIdentifier , expectedReplacedSource , "<STR_LIT>" ) ; } public void test0345 ( ) { String str = "<STR_LIT>" + "<STR_LIT>" ; String completeBehind = "<STR_LIT>" ; int cursorLocation = str . lastIndexOf ( "<STR_LIT>" ) + completeBehind . length ( ) - <NUM_LIT:1> ; String expectedCompletionNodeToString = "<STR_LIT>" ; String expectedParentNodeToString = "<STR_LIT>" ; String completionIdentifier = "<STR_LIT>" ; String expectedReplacedSource = "<STR_LIT>" ; String expectedUnitDisplayString = "<STR_LIT>" ; checkDietParse ( str . toCharArray ( ) , cursorLocation , expectedCompletionNodeToString , expectedParentNodeToString , expectedUnitDisplayString , completionIdentifier , expectedReplacedSource , "<STR_LIT>" ) ; } public void test0346 ( ) { String str = "<STR_LIT>" + "<STR_LIT>" ; String completeBehind = "<STR_LIT>" ; int cursorLocation = str . lastIndexOf ( "<STR_LIT>" ) + completeBehind . length ( ) - <NUM_LIT:1> ; String expectedCompletionNodeToString = "<STR_LIT>" ; String expectedParentNodeToString = "<STR_LIT>" ; String completionIdentifier = "<STR_LIT>" ; String expectedReplacedSource = "<STR_LIT>" ; String expectedUnitDisplayString = "<STR_LIT>" ; checkDietParse ( str . toCharArray ( ) , cursorLocation , expectedCompletionNodeToString , expectedParentNodeToString , expectedUnitDisplayString , completionIdentifier , expectedReplacedSource , "<STR_LIT>" ) ; } public void test0347 ( ) { String str = "<STR_LIT>" + "<STR_LIT>" ; String completeBehind = "<STR_LIT>" ; int cursorLocation = str . lastIndexOf ( "<STR_LIT>" ) + completeBehind . length ( ) - <NUM_LIT:1> ; String expectedCompletionNodeToString = "<STR_LIT>" ; String expectedParentNodeToString = "<STR_LIT>" ; String completionIdentifier = "<STR_LIT>" ; String expectedReplacedSource = "<STR_LIT>" ; String expectedUnitDisplayString = "<STR_LIT>" ; checkDietParse ( str . toCharArray ( ) , cursorLocation , expectedCompletionNodeToString , expectedParentNodeToString , expectedUnitDisplayString , completionIdentifier , expectedReplacedSource , "<STR_LIT>" ) ; } public void test0348 ( ) { String str = "<STR_LIT>" + "<STR_LIT>" ; String completeBehind = "<STR_LIT>" ; int cursorLocation = str . lastIndexOf ( "<STR_LIT>" ) + completeBehind . length ( ) - <NUM_LIT:1> ; String expectedCompletionNodeToString = "<STR_LIT>" ; String expectedParentNodeToString = "<STR_LIT>" ; String completionIdentifier = "<STR_LIT>" ; String expectedReplacedSource = "<STR_LIT>" ; String expectedUnitDisplayString = "<STR_LIT>" ; checkDietParse ( str . toCharArray ( ) , cursorLocation , expectedCompletionNodeToString , expectedParentNodeToString , expectedUnitDisplayString , completionIdentifier , expectedReplacedSource , "<STR_LIT>" ) ; } public void test0349 ( ) { String str = "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" ; String completeBehind = "<STR_LIT>" ; int cursorLocation = str . lastIndexOf ( "<STR_LIT>" ) + completeBehind . length ( ) - <NUM_LIT:1> ; String expectedCompletionNodeToString = "<STR_LIT>" ; String expectedParentNodeToString = "<STR_LIT>" ; String completionIdentifier = "<STR_LIT>" ; String expectedReplacedSource = "<STR_LIT>" ; String expectedUnitDisplayString = "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" ; checkDietParse ( str . toCharArray ( ) , cursorLocation , expectedCompletionNodeToString , expectedParentNodeToString , expectedUnitDisplayString , completionIdentifier , expectedReplacedSource , "<STR_LIT>" ) ; } public void test0350 ( ) { String str = "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT:}>" ; String completeBehind = "<STR_LIT>" ; int cursorLocation = str . lastIndexOf ( "<STR_LIT>" ) + completeBehind . length ( ) - <NUM_LIT:1> ; String expectedCompletionNodeToString = "<STR_LIT>" ; String expectedParentNodeToString = "<STR_LIT>" ; String completionIdentifier = "<STR_LIT>" ; String expectedReplacedSource = "<STR_LIT>" ; String expectedUnitDisplayString = "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" ; checkDietParse ( str . toCharArray ( ) , cursorLocation , expectedCompletionNodeToString , expectedParentNodeToString , expectedUnitDisplayString , completionIdentifier , expectedReplacedSource , "<STR_LIT>" ) ; } public void test0351 ( ) { String str = "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT:}>" ; String completeBehind = "<STR_LIT>" ; int cursorLocation = str . lastIndexOf ( "<STR_LIT>" ) + completeBehind . length ( ) - <NUM_LIT:1> ; String expectedCompletionNodeToString = "<STR_LIT>" ; String expectedParentNodeToString = "<STR_LIT>" ; String completionIdentifier = "<STR_LIT>" ; String expectedReplacedSource = "<STR_LIT>" ; String expectedUnitDisplayString = "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" ; checkDietParse ( str . toCharArray ( ) , cursorLocation , expectedCompletionNodeToString , expectedParentNodeToString , expectedUnitDisplayString , completionIdentifier , expectedReplacedSource , "<STR_LIT>" ) ; } public void test0352 ( ) { String str = "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT:}>" ; String completeBehind = "<STR_LIT>" ; int cursorLocation = str . lastIndexOf ( "<STR_LIT>" ) + completeBehind . length ( ) - <NUM_LIT:1> ; String expectedCompletionNodeToString = "<STR_LIT>" ; String expectedParentNodeToString = "<STR_LIT>" ; String completionIdentifier = "<STR_LIT>" ; String expectedReplacedSource = "<STR_LIT>" ; String expectedUnitDisplayString = "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" ; checkDietParse ( str . toCharArray ( ) , cursorLocation , expectedCompletionNodeToString , expectedParentNodeToString , expectedUnitDisplayString , completionIdentifier , expectedReplacedSource , "<STR_LIT>" ) ; } public void test0353 ( ) { String str = "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT:}>" ; String completeBehind = "<STR_LIT>" ; int cursorLocation = str . lastIndexOf ( "<STR_LIT>" ) + completeBehind . length ( ) - <NUM_LIT:1> ; String expectedCompletionNodeToString = "<STR_LIT>" ; String expectedParentNodeToString = "<STR_LIT>" ; String completionIdentifier = "<STR_LIT>" ; String expectedReplacedSource = "<STR_LIT>" ; String expectedUnitDisplayString = "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" ; checkDietParse ( str . toCharArray ( ) , cursorLocation , expectedCompletionNodeToString , expectedParentNodeToString , expectedUnitDisplayString , completionIdentifier , expectedReplacedSource , "<STR_LIT>" ) ; } public void test0354 ( ) { String str = "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT:}>" ; String completeBehind = "<STR_LIT>" ; int cursorLocation = str . lastIndexOf ( "<STR_LIT>" ) + completeBehind . length ( ) - <NUM_LIT:1> ; String expectedCompletionNodeToString = "<STR_LIT>" ; String expectedParentNodeToString = "<STR_LIT>" ; String completionIdentifier = "<STR_LIT>" ; String expectedReplacedSource = "<STR_LIT>" ; String expectedUnitDisplayString = "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" ; checkDietParse ( str . toCharArray ( ) , cursorLocation , expectedCompletionNodeToString , expectedParentNodeToString , expectedUnitDisplayString , completionIdentifier , expectedReplacedSource , "<STR_LIT>" ) ; } public void test0355 ( ) { String str = "<STR_LIT>" + "<STR_LIT>" ; String completeBehind = "<STR_LIT>" ; int cursorLocation = str . lastIndexOf ( "<STR_LIT>" ) + completeBehind . length ( ) - <NUM_LIT:1> ; String expectedCompletionNodeToString = "<STR_LIT>" ; String expectedParentNodeToString = "<STR_LIT>" ; String completionIdentifier = "<STR_LIT>" ; String expectedReplacedSource = "<STR_LIT>" ; String expectedUnitDisplayString = "<STR_LIT>" ; checkDietParse ( str . toCharArray ( ) , cursorLocation , expectedCompletionNodeToString , expectedParentNodeToString , expectedUnitDisplayString , completionIdentifier , expectedReplacedSource , "<STR_LIT>" ) ; } public void test0356 ( ) { String str = "<STR_LIT>" + "<STR_LIT>" ; String completeBehind = "<STR_LIT>" ; int cursorLocation = str . lastIndexOf ( "<STR_LIT>" ) + completeBehind . length ( ) - <NUM_LIT:1> ; String expectedCompletionNodeToString = "<STR_LIT>" ; String expectedParentNodeToString = "<STR_LIT>" ; String completionIdentifier = "<STR_LIT>" ; String expectedReplacedSource = "<STR_LIT>" ; String expectedUnitDisplayString = "<STR_LIT>" ; checkDietParse ( str . toCharArray ( ) , cursorLocation , expectedCompletionNodeToString , expectedParentNodeToString , expectedUnitDisplayString , completionIdentifier , expectedReplacedSource , "<STR_LIT>" ) ; } public void test0357 ( ) { String str = "<STR_LIT>" + "<STR_LIT>" ; String completeBehind = "<STR_LIT>" ; int cursorLocation = str . lastIndexOf ( "<STR_LIT>" ) + completeBehind . length ( ) - <NUM_LIT:1> ; String expectedCompletionNodeToString = "<STR_LIT>" ; String expectedParentNodeToString = "<STR_LIT>" ; String completionIdentifier = "<STR_LIT>" ; String expectedReplacedSource = "<STR_LIT>" ; String expectedUnitDisplayString = "<STR_LIT>" ; checkDietParse ( str . toCharArray ( ) , cursorLocation , expectedCompletionNodeToString , expectedParentNodeToString , expectedUnitDisplayString , completionIdentifier , expectedReplacedSource , "<STR_LIT>" ) ; } public void test0358 ( ) { String str = "<STR_LIT>" + "<STR_LIT>" ; String completeBehind = "<STR_LIT>" ; int cursorLocation = str . lastIndexOf ( "<STR_LIT>" ) + completeBehind . length ( ) - <NUM_LIT:1> ; String expectedCompletionNodeToString = "<STR_LIT>" ; String expectedParentNodeToString = "<STR_LIT>" ; String completionIdentifier = "<STR_LIT>" ; String expectedReplacedSource = "<STR_LIT>" ; String expectedUnitDisplayString = "<STR_LIT>" ; checkDietParse ( str . toCharArray ( ) , cursorLocation , expectedCompletionNodeToString , expectedParentNodeToString , expectedUnitDisplayString , completionIdentifier , expectedReplacedSource , "<STR_LIT>" ) ; } public void test0359 ( ) { String str = "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" ; String completeBehind = "<STR_LIT>" ; int cursorLocation = str . lastIndexOf ( "<STR_LIT>" ) + completeBehind . length ( ) - <NUM_LIT:1> ; String expectedCompletionNodeToString = "<STR_LIT>" ; String expectedParentNodeToString = "<STR_LIT>" ; String completionIdentifier = "<STR_LIT>" ; String expectedReplacedSource = "<STR_LIT>" ; String expectedUnitDisplayString = "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" ; checkDietParse ( str . toCharArray ( ) , cursorLocation , expectedCompletionNodeToString , expectedParentNodeToString , expectedUnitDisplayString , completionIdentifier , expectedReplacedSource , "<STR_LIT>" ) ; } public void test0360 ( ) { String str = "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT:}>" ; String completeBehind = "<STR_LIT>" ; int cursorLocation = str . lastIndexOf ( "<STR_LIT>" ) + completeBehind . length ( ) - <NUM_LIT:1> ; String expectedCompletionNodeToString = "<STR_LIT>" ; String expectedParentNodeToString = "<STR_LIT>" ; String completionIdentifier = "<STR_LIT>" ; String expectedReplacedSource = "<STR_LIT>" ; String expectedUnitDisplayString = "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" ; checkDietParse ( str . toCharArray ( ) , cursorLocation , expectedCompletionNodeToString , expectedParentNodeToString , expectedUnitDisplayString , completionIdentifier , expectedReplacedSource , "<STR_LIT>" ) ; } public void test0361 ( ) { String str = "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT:}>" ; String completeBehind = "<STR_LIT>" ; int cursorLocation = str . lastIndexOf ( "<STR_LIT>" ) + completeBehind . length ( ) - <NUM_LIT:1> ; String expectedCompletionNodeToString = "<STR_LIT>" ; String expectedParentNodeToString = "<STR_LIT>" ; String completionIdentifier = "<STR_LIT>" ; String expectedReplacedSource = "<STR_LIT>" ; String expectedUnitDisplayString = "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" ; checkDietParse ( str . toCharArray ( ) , cursorLocation , expectedCompletionNodeToString , expectedParentNodeToString , expectedUnitDisplayString , completionIdentifier , expectedReplacedSource , "<STR_LIT>" ) ; } public void test0362 ( ) { String str = "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT:}>" ; String completeBehind = "<STR_LIT>" ; int cursorLocation = str . lastIndexOf ( "<STR_LIT>" ) + completeBehind . length ( ) - <NUM_LIT:1> ; String expectedCompletionNodeToString = "<STR_LIT>" ; String expectedParentNodeToString = "<STR_LIT>" ; String completionIdentifier = "<STR_LIT>" ; String expectedReplacedSource = "<STR_LIT>" ; String expectedUnitDisplayString = "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" ; checkDietParse ( str . toCharArray ( ) , cursorLocation , expectedCompletionNodeToString , expectedParentNodeToString , expectedUnitDisplayString , completionIdentifier , expectedReplacedSource , "<STR_LIT>" ) ; } public void test0363 ( ) { String str = "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT:}>" ; String completeBehind = "<STR_LIT>" ; int cursorLocation = str . lastIndexOf ( "<STR_LIT>" ) + completeBehind . length ( ) - <NUM_LIT:1> ; String expectedCompletionNodeToString = "<STR_LIT>" ; String expectedParentNodeToString = "<STR_LIT>" ; String completionIdentifier = "<STR_LIT>" ; String expectedReplacedSource = "<STR_LIT>" ; String expectedUnitDisplayString = "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" ; checkDietParse ( str . toCharArray ( ) , cursorLocation , expectedCompletionNodeToString , expectedParentNodeToString , expectedUnitDisplayString , completionIdentifier , expectedReplacedSource , "<STR_LIT>" ) ; } public void test0364 ( ) { String str = "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT:}>" ; String completeBehind = "<STR_LIT>" ; int cursorLocation = str . lastIndexOf ( "<STR_LIT>" ) + completeBehind . length ( ) - <NUM_LIT:1> ; String expectedCompletionNodeToString = "<STR_LIT>" ; String expectedParentNodeToString = "<STR_LIT>" ; String completionIdentifier = "<STR_LIT>" ; String expectedReplacedSource = "<STR_LIT>" ; String expectedUnitDisplayString = "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" ; checkDietParse ( str . toCharArray ( ) , cursorLocation , expectedCompletionNodeToString , expectedParentNodeToString , expectedUnitDisplayString , completionIdentifier , expectedReplacedSource , "<STR_LIT>" ) ; } public void test0365 ( ) { String str = "<STR_LIT>" + "<STR_LIT>" ; String completeBehind = "<STR_LIT>" ; int cursorLocation = str . lastIndexOf ( "<STR_LIT>" ) + completeBehind . length ( ) - <NUM_LIT:1> ; String expectedCompletionNodeToString = "<STR_LIT>" ; String expectedParentNodeToString = "<STR_LIT>" ; String completionIdentifier = "<STR_LIT>" ; String expectedReplacedSource = "<STR_LIT>" ; String expectedUnitDisplayString = "<STR_LIT>" ; checkDietParse ( str . toCharArray ( ) , cursorLocation , expectedCompletionNodeToString , expectedParentNodeToString , expectedUnitDisplayString , completionIdentifier , expectedReplacedSource , "<STR_LIT>" ) ; } public void test0366 ( ) { String str = "<STR_LIT>" + "<STR_LIT>" ; String completeBehind = "<STR_LIT>" ; int cursorLocation = str . lastIndexOf ( "<STR_LIT>" ) + completeBehind . length ( ) - <NUM_LIT:1> ; String expectedCompletionNodeToString = "<STR_LIT>" ; String expectedParentNodeToString = "<STR_LIT>" ; String completionIdentifier = "<STR_LIT>" ; String expectedReplacedSource = "<STR_LIT>" ; String expectedUnitDisplayString = "<STR_LIT>" ; checkDietParse ( str . toCharArray ( ) , cursorLocation , expectedCompletionNodeToString , expectedParentNodeToString , expectedUnitDisplayString , completionIdentifier , expectedReplacedSource , "<STR_LIT>" ) ; } public void test0367 ( ) { String str = "<STR_LIT>" + "<STR_LIT>" ; String completeBehind = "<STR_LIT>" ; int cursorLocation = str . lastIndexOf ( "<STR_LIT>" ) + completeBehind . length ( ) - <NUM_LIT:1> ; String expectedCompletionNodeToString = "<STR_LIT>" ; String expectedParentNodeToString = "<STR_LIT>" ; String completionIdentifier = "<STR_LIT>" ; String expectedReplacedSource = "<STR_LIT>" ; String expectedUnitDisplayString = "<STR_LIT>" ; checkDietParse ( str . toCharArray ( ) , cursorLocation , expectedCompletionNodeToString , expectedParentNodeToString , expectedUnitDisplayString , completionIdentifier , expectedReplacedSource , "<STR_LIT>" ) ; } public void test0368 ( ) { String str = "<STR_LIT>" + "<STR_LIT>" ; String completeBehind = "<STR_LIT>" ; int cursorLocation = str . lastIndexOf ( "<STR_LIT>" ) + completeBehind . length ( ) - <NUM_LIT:1> ; String expectedCompletionNodeToString = "<STR_LIT>" ; String expectedParentNodeToString = "<STR_LIT>" ; String completionIdentifier = "<STR_LIT>" ; String expectedReplacedSource = "<STR_LIT>" ; String expectedUnitDisplayString = "<STR_LIT>" ; checkDietParse ( str . toCharArray ( ) , cursorLocation , expectedCompletionNodeToString , expectedParentNodeToString , expectedUnitDisplayString , completionIdentifier , expectedReplacedSource , "<STR_LIT>" ) ; } public void test0369 ( ) { String str = "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" ; String completeBehind = "<STR_LIT>" ; int cursorLocation = str . lastIndexOf ( "<STR_LIT>" ) + completeBehind . length ( ) - <NUM_LIT:1> ; String expectedCompletionNodeToString = "<STR_LIT>" ; String expectedParentNodeToString = "<STR_LIT>" ; String completionIdentifier = "<STR_LIT>" ; String expectedReplacedSource = "<STR_LIT>" ; String expectedUnitDisplayString = "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" ; checkDietParse ( str . toCharArray ( ) , cursorLocation , expectedCompletionNodeToString , expectedParentNodeToString , expectedUnitDisplayString , completionIdentifier , expectedReplacedSource , "<STR_LIT>" ) ; } public void test0370 ( ) { String str = "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT:}>" ; String completeBehind = "<STR_LIT>" ; int cursorLocation = str . lastIndexOf ( "<STR_LIT>" ) + completeBehind . length ( ) - <NUM_LIT:1> ; String expectedCompletionNodeToString = "<STR_LIT>" ; String expectedParentNodeToString = "<STR_LIT>" ; String completionIdentifier = "<STR_LIT>" ; String expectedReplacedSource = "<STR_LIT>" ; String expectedUnitDisplayString = "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" ; checkDietParse ( str . toCharArray ( ) , cursorLocation , expectedCompletionNodeToString , expectedParentNodeToString , expectedUnitDisplayString , completionIdentifier , expectedReplacedSource , "<STR_LIT>" ) ; } public void test0371 ( ) { String str = "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT:}>" ; String completeBehind = "<STR_LIT>" ; int cursorLocation = str . lastIndexOf ( "<STR_LIT>" ) + completeBehind . length ( ) - <NUM_LIT:1> ; String expectedCompletionNodeToString = "<STR_LIT>" ; String expectedParentNodeToString = "<STR_LIT>" ; String completionIdentifier = "<STR_LIT>" ; String expectedReplacedSource = "<STR_LIT>" ; String expectedUnitDisplayString = "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" ; checkDietParse ( str . toCharArray ( ) , cursorLocation , expectedCompletionNodeToString , expectedParentNodeToString , expectedUnitDisplayString , completionIdentifier , expectedReplacedSource , "<STR_LIT>" ) ; } public void test0372 ( ) { String str = "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT:}>" ; String completeBehind = "<STR_LIT>" ; int cursorLocation = str . lastIndexOf ( "<STR_LIT>" ) + completeBehind . length ( ) - <NUM_LIT:1> ; String expectedCompletionNodeToString = "<STR_LIT>" ; String expectedParentNodeToString = "<STR_LIT>" ; String completionIdentifier = "<STR_LIT>" ; String expectedReplacedSource = "<STR_LIT>" ; String expectedUnitDisplayString = "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" ; checkDietParse ( str . toCharArray ( ) , cursorLocation , expectedCompletionNodeToString , expectedParentNodeToString , expectedUnitDisplayString , completionIdentifier , expectedReplacedSource , "<STR_LIT>" ) ; } public void test0373 ( ) { String str = "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT:}>" ; String completeBehind = "<STR_LIT>" ; int cursorLocation = str . lastIndexOf ( "<STR_LIT>" ) + completeBehind . length ( ) - <NUM_LIT:1> ; String expectedCompletionNodeToString = "<STR_LIT>" ; String expectedParentNodeToString = "<STR_LIT>" ; String completionIdentifier = "<STR_LIT>" ; String expectedReplacedSource = "<STR_LIT>" ; String expectedUnitDisplayString = "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" ; checkDietParse ( str . toCharArray ( ) , cursorLocation , expectedCompletionNodeToString , expectedParentNodeToString , expectedUnitDisplayString , completionIdentifier , expectedReplacedSource , "<STR_LIT>" ) ; } public void test0374 ( ) { String str = "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT:}>" ; String completeBehind = "<STR_LIT>" ; int cursorLocation = str . lastIndexOf ( "<STR_LIT>" ) + completeBehind . length ( ) - <NUM_LIT:1> ; String expectedCompletionNodeToString = "<STR_LIT>" ; String expectedParentNodeToString = "<STR_LIT>" ; String completionIdentifier = "<STR_LIT>" ; String expectedReplacedSource = "<STR_LIT>" ; String expectedUnitDisplayString = "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" ; checkDietParse ( str . toCharArray ( ) , cursorLocation , expectedCompletionNodeToString , expectedParentNodeToString , expectedUnitDisplayString , completionIdentifier , expectedReplacedSource , "<STR_LIT>" ) ; } public void test0375_Diet ( ) { String str = "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" ; String completeBehind = "<STR_LIT>" ; int cursorLocation = str . lastIndexOf ( "<STR_LIT>" ) + completeBehind . length ( ) - <NUM_LIT:1> ; String expectedCompletionNodeToString = "<STR_LIT>" ; String expectedParentNodeToString = "<STR_LIT>" ; String completionIdentifier = "<STR_LIT>" ; String expectedReplacedSource = "<STR_LIT>" ; String expectedUnitDisplayString = "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" ; checkDietParse ( str . toCharArray ( ) , cursorLocation , expectedCompletionNodeToString , expectedParentNodeToString , expectedUnitDisplayString , completionIdentifier , expectedReplacedSource , "<STR_LIT>" ) ; } public void test0375_Method ( ) { String str = "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" ; String completeBehind = "<STR_LIT>" ; int cursorLocation = str . lastIndexOf ( "<STR_LIT>" ) + completeBehind . length ( ) - <NUM_LIT:1> ; String expectedCompletionNodeToString = "<STR_LIT>" ; String expectedParentNodeToString = "<STR_LIT>" ; String completionIdentifier = "<STR_LIT>" ; String expectedReplacedSource = "<STR_LIT>" ; String expectedUnitDisplayString = "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" ; checkMethodParse ( str . toCharArray ( ) , cursorLocation , expectedCompletionNodeToString , expectedParentNodeToString , expectedUnitDisplayString , completionIdentifier , expectedReplacedSource , "<STR_LIT>" ) ; } public void test0376_Diet ( ) { String str = "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" ; String completeBehind = "<STR_LIT>" ; int cursorLocation = str . lastIndexOf ( "<STR_LIT>" ) + completeBehind . length ( ) - <NUM_LIT:1> ; String expectedCompletionNodeToString = "<STR_LIT>" ; String expectedParentNodeToString = "<STR_LIT>" ; String completionIdentifier = "<STR_LIT>" ; String expectedReplacedSource = "<STR_LIT>" ; String expectedUnitDisplayString = "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" ; checkDietParse ( str . toCharArray ( ) , cursorLocation , expectedCompletionNodeToString , expectedParentNodeToString , expectedUnitDisplayString , completionIdentifier , expectedReplacedSource , "<STR_LIT>" ) ; } public void test0376_Method ( ) { String str = "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" ; String completeBehind = "<STR_LIT>" ; int cursorLocation = str . lastIndexOf ( "<STR_LIT>" ) + completeBehind . length ( ) - <NUM_LIT:1> ; String expectedCompletionNodeToString = "<STR_LIT>" ; String expectedParentNodeToString = "<STR_LIT>" ; String completionIdentifier = "<STR_LIT>" ; String expectedReplacedSource = "<STR_LIT>" ; String expectedUnitDisplayString = "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" ; checkMethodParse ( str . toCharArray ( ) , cursorLocation , expectedCompletionNodeToString , expectedParentNodeToString , expectedUnitDisplayString , completionIdentifier , expectedReplacedSource , "<STR_LIT>" ) ; } public void test0377_Diet ( ) { String str = "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" ; String completeBehind = "<STR_LIT>" ; int cursorLocation = str . lastIndexOf ( "<STR_LIT>" ) + completeBehind . length ( ) - <NUM_LIT:1> ; String expectedCompletionNodeToString = "<STR_LIT>" ; String expectedParentNodeToString = "<STR_LIT>" ; String completionIdentifier = "<STR_LIT>" ; String expectedReplacedSource = "<STR_LIT>" ; String expectedUnitDisplayString = "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" ; checkDietParse ( str . toCharArray ( ) , cursorLocation , expectedCompletionNodeToString , expectedParentNodeToString , expectedUnitDisplayString , completionIdentifier , expectedReplacedSource , "<STR_LIT>" ) ; } public void test0377_Method ( ) { String str = "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" ; String completeBehind = "<STR_LIT>" ; int cursorLocation = str . lastIndexOf ( "<STR_LIT>" ) + completeBehind . length ( ) - <NUM_LIT:1> ; String expectedCompletionNodeToString = "<STR_LIT>" ; String expectedParentNodeToString = "<STR_LIT>" ; String completionIdentifier = "<STR_LIT>" ; String expectedReplacedSource = "<STR_LIT>" ; String expectedUnitDisplayString = "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" ; checkMethodParse ( str . toCharArray ( ) , cursorLocation , expectedCompletionNodeToString , expectedParentNodeToString , expectedUnitDisplayString , completionIdentifier , expectedReplacedSource , "<STR_LIT>" ) ; } public void test0378_Diet ( ) { String str = "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" ; String completeBehind = "<STR_LIT>" ; int cursorLocation = str . lastIndexOf ( "<STR_LIT>" ) + completeBehind . length ( ) - <NUM_LIT:1> ; String expectedCompletionNodeToString = "<STR_LIT>" ; String expectedParentNodeToString = "<STR_LIT>" ; String completionIdentifier = "<STR_LIT>" ; String expectedReplacedSource = "<STR_LIT>" ; String expectedUnitDisplayString = "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" ; checkDietParse ( str . toCharArray ( ) , cursorLocation , expectedCompletionNodeToString , expectedParentNodeToString , expectedUnitDisplayString , completionIdentifier , expectedReplacedSource , "<STR_LIT>" ) ; } public void test0378_Method ( ) { String str = "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" ; String completeBehind = "<STR_LIT>" ; int cursorLocation = str . lastIndexOf ( "<STR_LIT>" ) + completeBehind . length ( ) - <NUM_LIT:1> ; String expectedCompletionNodeToString = "<STR_LIT>" ; String expectedParentNodeToString = "<STR_LIT>" ; String completionIdentifier = "<STR_LIT>" ; String expectedReplacedSource = "<STR_LIT>" ; String expectedUnitDisplayString = "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" ; checkMethodParse ( str . toCharArray ( ) , cursorLocation , expectedCompletionNodeToString , expectedParentNodeToString , expectedUnitDisplayString , completionIdentifier , expectedReplacedSource , "<STR_LIT>" ) ; } public void test0379_Diet ( ) { String str = "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" ; String completeBehind = "<STR_LIT>" ; int cursorLocation = str . lastIndexOf ( "<STR_LIT>" ) + completeBehind . length ( ) - <NUM_LIT:1> ; String expectedCompletionNodeToString = "<STR_LIT>" ; String expectedParentNodeToString = "<STR_LIT>" ; String completionIdentifier = "<STR_LIT>" ; String expectedReplacedSource = "<STR_LIT>" ; String expectedUnitDisplayString = "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" ; checkDietParse ( str . toCharArray ( ) , cursorLocation , expectedCompletionNodeToString , expectedParentNodeToString , expectedUnitDisplayString , completionIdentifier , expectedReplacedSource , "<STR_LIT>" ) ; } public void test0379_Method ( ) { String str = "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" ; String completeBehind = "<STR_LIT>" ; int cursorLocation = str . lastIndexOf ( "<STR_LIT>" ) + completeBehind . length ( ) - <NUM_LIT:1> ; String expectedCompletionNodeToString = "<STR_LIT>" ; String expectedParentNodeToString = "<STR_LIT>" ; String completionIdentifier = "<STR_LIT>" ; String expectedReplacedSource = "<STR_LIT>" ; String expectedUnitDisplayString = "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" ; checkMethodParse ( str . toCharArray ( ) , cursorLocation , expectedCompletionNodeToString , expectedParentNodeToString , expectedUnitDisplayString , completionIdentifier , expectedReplacedSource , "<STR_LIT>" ) ; } public void test0380_Diet ( ) { String str = "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" ; String completeBehind = "<STR_LIT>" ; int cursorLocation = str . lastIndexOf ( "<STR_LIT>" ) + completeBehind . length ( ) - <NUM_LIT:1> ; String expectedCompletionNodeToString = "<STR_LIT>" ; String expectedParentNodeToString = "<STR_LIT>" ; String completionIdentifier = "<STR_LIT>" ; String expectedReplacedSource = "<STR_LIT>" ; String expectedUnitDisplayString = "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" ; checkDietParse ( str . toCharArray ( ) , cursorLocation , expectedCompletionNodeToString , expectedParentNodeToString , expectedUnitDisplayString , completionIdentifier , expectedReplacedSource , "<STR_LIT>" ) ; } public void test0380_Method ( ) { String str = "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" ; String completeBehind = "<STR_LIT>" ; int cursorLocation = str . lastIndexOf ( "<STR_LIT>" ) + completeBehind . length ( ) - <NUM_LIT:1> ; String expectedCompletionNodeToString = "<STR_LIT>" ; String expectedParentNodeToString = "<STR_LIT>" ; String completionIdentifier = "<STR_LIT>" ; String expectedReplacedSource = "<STR_LIT>" ; String expectedUnitDisplayString = "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" ; checkMethodParse ( str . toCharArray ( ) , cursorLocation , expectedCompletionNodeToString , expectedParentNodeToString , expectedUnitDisplayString , completionIdentifier , expectedReplacedSource , "<STR_LIT>" ) ; } public void test0381_Diet ( ) { String str = "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" ; String completeBehind = "<STR_LIT>" ; int cursorLocation = str . lastIndexOf ( "<STR_LIT>" ) + completeBehind . length ( ) - <NUM_LIT:1> ; String expectedCompletionNodeToString = "<STR_LIT>" ; String expectedParentNodeToString = "<STR_LIT>" ; String completionIdentifier = "<STR_LIT>" ; String expectedReplacedSource = "<STR_LIT>" ; String expectedUnitDisplayString = "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" ; checkDietParse ( str . toCharArray ( ) , cursorLocation , expectedCompletionNodeToString , expectedParentNodeToString , expectedUnitDisplayString , completionIdentifier , expectedReplacedSource , "<STR_LIT>" ) ; } public void test0381_Method ( ) { String str = "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" ; String completeBehind = "<STR_LIT>" ; int cursorLocation = str . lastIndexOf ( "<STR_LIT>" ) + completeBehind . length ( ) - <NUM_LIT:1> ; String expectedCompletionNodeToString = "<STR_LIT>" ; String expectedParentNodeToString = "<STR_LIT>" ; String completionIdentifier = "<STR_LIT>" ; String expectedReplacedSource = "<STR_LIT>" ; String expectedUnitDisplayString = "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" ; checkMethodParse ( str . toCharArray ( ) , cursorLocation , expectedCompletionNodeToString , expectedParentNodeToString , expectedUnitDisplayString , completionIdentifier , expectedReplacedSource , "<STR_LIT>" ) ; } public void test0382_Diet ( ) { String str = "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" ; String completeBehind = "<STR_LIT>" ; int cursorLocation = str . lastIndexOf ( "<STR_LIT>" ) + completeBehind . length ( ) - <NUM_LIT:1> ; String expectedCompletionNodeToString = "<STR_LIT>" ; String expectedParentNodeToString = "<STR_LIT>" ; String completionIdentifier = "<STR_LIT>" ; String expectedReplacedSource = "<STR_LIT>" ; String expectedUnitDisplayString = "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" ; checkDietParse ( str . toCharArray ( ) , cursorLocation , expectedCompletionNodeToString , expectedParentNodeToString , expectedUnitDisplayString , completionIdentifier , expectedReplacedSource , "<STR_LIT>" ) ; } public void test0382_Method ( ) { String str = "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" ; String completeBehind = "<STR_LIT>" ; int cursorLocation = str . lastIndexOf ( "<STR_LIT>" ) + completeBehind . length ( ) - <NUM_LIT:1> ; String expectedCompletionNodeToString = "<STR_LIT>" ; String expectedParentNodeToString = "<STR_LIT>" ; String completionIdentifier = "<STR_LIT>" ; String expectedReplacedSource = "<STR_LIT>" ; String expectedUnitDisplayString = "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" ; checkMethodParse ( str . toCharArray ( ) , cursorLocation , expectedCompletionNodeToString , expectedParentNodeToString , expectedUnitDisplayString , completionIdentifier , expectedReplacedSource , "<STR_LIT>" ) ; } public void test0384_Diet ( ) { String str = "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT:}>" ; String completeBehind = "<STR_LIT>" ; int cursorLocation = str . lastIndexOf ( "<STR_LIT>" ) + completeBehind . length ( ) - <NUM_LIT:1> ; String expectedCompletionNodeToString = "<STR_LIT>" ; String expectedParentNodeToString = "<STR_LIT>" ; String completionIdentifier = "<STR_LIT>" ; String expectedReplacedSource = "<STR_LIT>" ; String expectedUnitDisplayString = "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" ; checkDietParse ( str . toCharArray ( ) , cursorLocation , expectedCompletionNodeToString , expectedParentNodeToString , expectedUnitDisplayString , completionIdentifier , expectedReplacedSource , "<STR_LIT>" ) ; } public void test0384_Method ( ) { String str = "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT:}>" ; String completeBehind = "<STR_LIT>" ; int cursorLocation = str . lastIndexOf ( "<STR_LIT>" ) + completeBehind . length ( ) - <NUM_LIT:1> ; String expectedCompletionNodeToString = "<STR_LIT>" ; String expectedParentNodeToString = "<STR_LIT>" ; String completionIdentifier = "<STR_LIT>" ; String expectedReplacedSource = "<STR_LIT>" ; String expectedUnitDisplayString = "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" ; checkMethodParse ( str . toCharArray ( ) , cursorLocation , expectedCompletionNodeToString , expectedParentNodeToString , expectedUnitDisplayString , completionIdentifier , expectedReplacedSource , "<STR_LIT>" ) ; } public void test0385_Diet ( ) { String str = "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" ; String completeBehind = "<STR_LIT>" ; int cursorLocation = str . lastIndexOf ( "<STR_LIT>" ) + completeBehind . length ( ) - <NUM_LIT:1> ; String expectedCompletionNodeToString = "<STR_LIT>" ; String expectedParentNodeToString = "<STR_LIT>" ; String completionIdentifier = "<STR_LIT>" ; String expectedReplacedSource = "<STR_LIT>" ; String expectedUnitDisplayString = "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" ; checkDietParse ( str . toCharArray ( ) , cursorLocation , expectedCompletionNodeToString , expectedParentNodeToString , expectedUnitDisplayString , completionIdentifier , expectedReplacedSource , "<STR_LIT>" ) ; } public void test0385_Method ( ) { String str = "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" ; String completeBehind = "<STR_LIT>" ; int cursorLocation = str . lastIndexOf ( "<STR_LIT>" ) + completeBehind . length ( ) - <NUM_LIT:1> ; String expectedCompletionNodeToString = "<STR_LIT>" ; String expectedParentNodeToString = "<STR_LIT>" ; String completionIdentifier = "<STR_LIT>" ; String expectedReplacedSource = "<STR_LIT>" ; String expectedUnitDisplayString = "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" ; checkMethodParse ( str . toCharArray ( ) , cursorLocation , expectedCompletionNodeToString , expectedParentNodeToString , expectedUnitDisplayString , completionIdentifier , expectedReplacedSource , "<STR_LIT>" ) ; } public void test0386_Diet ( ) { String str = "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" ; String completeBehind = "<STR_LIT>" ; int cursorLocation = str . lastIndexOf ( "<STR_LIT>" ) + completeBehind . length ( ) - <NUM_LIT:1> ; String expectedCompletionNodeToString = "<STR_LIT>" ; String expectedParentNodeToString = "<STR_LIT>" ; String completionIdentifier = "<STR_LIT>" ; String expectedReplacedSource = "<STR_LIT>" ; String expectedUnitDisplayString = "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" ; checkDietParse ( str . toCharArray ( ) , cursorLocation , expectedCompletionNodeToString , expectedParentNodeToString , expectedUnitDisplayString , completionIdentifier , expectedReplacedSource , "<STR_LIT>" ) ; } public void test0386_Method ( ) { String str = "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" ; String completeBehind = "<STR_LIT>" ; int cursorLocation = str . lastIndexOf ( "<STR_LIT>" ) + completeBehind . length ( ) - <NUM_LIT:1> ; String expectedCompletionNodeToString = "<STR_LIT>" ; String expectedParentNodeToString = "<STR_LIT>" ; String completionIdentifier = "<STR_LIT>" ; String expectedReplacedSource = "<STR_LIT>" ; String expectedUnitDisplayString = "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" ; checkMethodParse ( str . toCharArray ( ) , cursorLocation , expectedCompletionNodeToString , expectedParentNodeToString , expectedUnitDisplayString , completionIdentifier , expectedReplacedSource , "<STR_LIT>" ) ; } public void test0387_Diet ( ) { String str = "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" ; String completeBehind = "<STR_LIT>" ; int cursorLocation = str . lastIndexOf ( "<STR_LIT>" ) + completeBehind . length ( ) - <NUM_LIT:1> ; String expectedCompletionNodeToString = "<STR_LIT>" ; String expectedParentNodeToString = "<STR_LIT>" ; String completionIdentifier = "<STR_LIT>" ; String expectedReplacedSource = "<STR_LIT>" ; String expectedUnitDisplayString = "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" ; checkDietParse ( str . toCharArray ( ) , cursorLocation , expectedCompletionNodeToString , expectedParentNodeToString , expectedUnitDisplayString , completionIdentifier , expectedReplacedSource , "<STR_LIT>" ) ; } public void test0387_Method ( ) { String str = "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" ; String completeBehind = "<STR_LIT>" ; int cursorLocation = str . lastIndexOf ( "<STR_LIT>" ) + completeBehind . length ( ) - <NUM_LIT:1> ; String expectedCompletionNodeToString = "<STR_LIT>" ; String expectedParentNodeToString = "<STR_LIT>" ; String completionIdentifier = "<STR_LIT>" ; String expectedReplacedSource = "<STR_LIT>" ; String expectedUnitDisplayString = "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" ; checkMethodParse ( str . toCharArray ( ) , cursorLocation , expectedCompletionNodeToString , expectedParentNodeToString , expectedUnitDisplayString , completionIdentifier , expectedReplacedSource , "<STR_LIT>" ) ; } public void test0388_Diet ( ) { String str = "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" ; String completeBehind = "<STR_LIT>" ; int cursorLocation = str . lastIndexOf ( "<STR_LIT>" ) + completeBehind . length ( ) - <NUM_LIT:1> ; String expectedCompletionNodeToString = "<STR_LIT>" ; String expectedParentNodeToString = "<STR_LIT>" ; String completionIdentifier = "<STR_LIT>" ; String expectedReplacedSource = "<STR_LIT>" ; String expectedUnitDisplayString = "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" ; checkDietParse ( str . toCharArray ( ) , cursorLocation , expectedCompletionNodeToString , expectedParentNodeToString , expectedUnitDisplayString , completionIdentifier , expectedReplacedSource , "<STR_LIT>" ) ; } public void test0388_Method ( ) { String str = "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" ; String completeBehind = "<STR_LIT>" ; int cursorLocation = str . lastIndexOf ( "<STR_LIT>" ) + completeBehind . length ( ) - <NUM_LIT:1> ; String expectedCompletionNodeToString = "<STR_LIT>" ; String expectedParentNodeToString = "<STR_LIT>" ; String completionIdentifier = "<STR_LIT>" ; String expectedReplacedSource = "<STR_LIT>" ; String expectedUnitDisplayString = "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" ; checkMethodParse ( str . toCharArray ( ) , cursorLocation , expectedCompletionNodeToString , expectedParentNodeToString , expectedUnitDisplayString , completionIdentifier , expectedReplacedSource , "<STR_LIT>" ) ; } } </s>
|
<s> package org . eclipse . jdt . core . tests . compiler . parser ; import junit . framework . Test ; public class NameReferenceCompletionTest extends AbstractCompletionTest { public NameReferenceCompletionTest ( String testName ) { super ( testName ) ; } public static Test suite ( ) { return buildAllCompliancesTestSuite ( NameReferenceCompletionTest . class ) ; } public void test1FTZ849 ( ) { this . runTestCheckMethodParse ( "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" , "<STR_LIT>" , "<STR_LIT>" , "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" , "<STR_LIT:x>" , "<STR_LIT>" , "<STR_LIT>" ) ; } public void test1FUUP73 ( ) { this . runTestCheckDietParse ( "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" , "<STR_LIT>" , "<STR_LIT>" , "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" , "<STR_LIT:s>" , "<STR_LIT:s>" , "<STR_LIT>" ) ; this . runTestCheckDietParse ( "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" , "<STR_LIT>" , "<STR_LIT>" , "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" , "<STR_LIT:c>" , "<STR_LIT>" , "<STR_LIT>" ) ; } public void test1FVRQQA_1 ( ) { this . runTestCheckMethodParse ( "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" , "<STR_LIT>" , "<STR_LIT>" , "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" , "<STR_LIT>" , "<STR_LIT>" , "<STR_LIT>" ) ; } public void test1FVRQQA_2 ( ) { this . runTestCheckMethodParse ( "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" , "<STR_LIT>" , "<STR_LIT>" , "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" , "<STR_LIT>" , "<STR_LIT>" , "<STR_LIT>" ) ; } public void test1FVT66Q_1 ( ) { this . runTestCheckMethodParse ( "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" , "<STR_LIT>" , "<STR_LIT>" , "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" , "<STR_LIT>" , "<STR_LIT>" , "<STR_LIT>" ) ; } public void test1FVT66Q_2 ( ) { this . runTestCheckMethodParse ( "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" , "<STR_LIT>" , "<STR_LIT>" , "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" , "<STR_LIT>" , "<STR_LIT>" , "<STR_LIT>" ) ; } public void test1G8DE30 ( ) { this . runTestCheckMethodParse ( "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" , "<STR_LIT>" , "<STR_LIT>" , "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" , "<STR_LIT>" , "<STR_LIT>" , "<STR_LIT>" ) ; } public void testEmptyNameReference ( ) { this . runTestCheckMethodParse ( "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" , "<STR_LIT>" , "<STR_LIT>" , "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" , "<STR_LIT>" , "<STR_LIT>" , "<STR_LIT>" ) ; } public void testEmptyNameReferenceAfterCast ( ) { this . runTestCheckMethodParse ( "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" , "<STR_LIT>" , "<STR_LIT>" , "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" , "<STR_LIT>" , "<STR_LIT>" , "<STR_LIT>" ) ; } public void testEmptyNameReferenceAfterPlus ( ) { this . runTestCheckMethodParse ( "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" , "<STR_LIT>" , "<STR_LIT>" , "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" , "<STR_LIT>" , "<STR_LIT>" , "<STR_LIT>" ) ; } public void testEmptyNameReferenceInArrayDim ( ) { this . runTestCheckMethodParse ( "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" , "<STR_LIT>" , "<STR_LIT>" , "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" , "<STR_LIT>" , "<STR_LIT>" , "<STR_LIT>" ) ; } public void testEmptyNameReferenceInInnerClass ( ) { this . runTestCheckMethodParse ( "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" , "<STR_LIT>" , "<STR_LIT>" , "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" , "<STR_LIT>" , "<STR_LIT>" , "<STR_LIT>" ) ; } public void testInIfThenStatement ( ) { this . runTestCheckMethodParse ( "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" , "<STR_LIT>" , "<STR_LIT>" , "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" , "<STR_LIT>" , "<STR_LIT>" , "<STR_LIT>" ) ; } public void testInnerClassFieldInitializer ( ) { this . runTestCheckDietParse ( "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" , "<STR_LIT>" , "<STR_LIT>" , "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" , "<STR_LIT>" , "<STR_LIT>" , "<STR_LIT>" ) ; } public void testInvocationFieldInitializer ( ) { this . runTestCheckDietParse ( "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" , "<STR_LIT>" , "<STR_LIT>" , "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" , "<STR_LIT>" , "<STR_LIT>" , "<STR_LIT>" ) ; } public void testMethodInvocationAnonymousInnerClass ( ) { this . runTestCheckMethodParse ( "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" , "<STR_LIT>" , "<STR_LIT>" , "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" , "<STR_LIT>" , "<STR_LIT>" , "<STR_LIT>" ) ; } public void testQualifiedNameReferenceShrinkAll ( ) { this . runTestCheckMethodParse ( "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" , "<STR_LIT>" , "<STR_LIT>" , "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" , "<STR_LIT:a>" , "<STR_LIT:a>" , "<STR_LIT>" ) ; } public void testQualifiedNameReferenceShrinkAllButOne ( ) { this . runTestCheckMethodParse ( "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" , "<STR_LIT>" , "<STR_LIT>" , "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" , "<STR_LIT>" , "<STR_LIT>" , "<STR_LIT>" ) ; } public void testQualifiedNameReferenceShrinkAllButOne2 ( ) { this . runTestCheckMethodParse ( "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" , "<STR_LIT>" , "<STR_LIT>" , "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" , "<STR_LIT>" , "<STR_LIT>" , "<STR_LIT>" ) ; } public void testQualifiedNameReferenceShrinkNone ( ) { this . runTestCheckMethodParse ( "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" , "<STR_LIT>" , "<STR_LIT>" , "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" , "<STR_LIT:x>" , "<STR_LIT>" , "<STR_LIT>" ) ; } public void testQualifiedNameReferenceShrinkNone2 ( ) { this . runTestCheckMethodParse ( "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" , "<STR_LIT:X>" , "<STR_LIT>" , "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" , "<STR_LIT:X>" , "<STR_LIT>" , "<STR_LIT>" ) ; } public void testQualifiedNameReferenceShrinkOne ( ) { this . runTestCheckMethodParse ( "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" , "<STR_LIT>" , "<STR_LIT>" , "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" , "<STR_LIT>" , "<STR_LIT>" , "<STR_LIT>" ) ; } public void testQualifiedNameReferenceShrinkOne2 ( ) { this . runTestCheckMethodParse ( "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" , "<STR_LIT>" , "<STR_LIT>" , "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" , "<STR_LIT>" , "<STR_LIT>" , "<STR_LIT>" ) ; } public void testUnicode ( ) { this . runTestCheckMethodParse ( "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" , "<STR_LIT:x>" , "<STR_LIT>" , "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" , "<STR_LIT>" , "<STR_LIT>" , "<STR_LIT>" ) ; } } </s>
|
<s> package org . eclipse . jdt . core . tests . compiler . parser ; public class ExplicitConstructorInvocationSelectionTest extends AbstractSelectionTest { public ExplicitConstructorInvocationSelectionTest ( String testName ) { super ( testName ) ; } public void testNameSuper ( ) { this . runTestCheckMethodParse ( "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" , "<STR_LIT>" , "<STR_LIT>" , "<STR_LIT>" , "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" , "<STR_LIT>" , "<STR_LIT>" , "<STR_LIT>" ) ; } public void testNameThis ( ) { this . runTestCheckMethodParse ( "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" , "<STR_LIT>" , "<STR_LIT>" , "<STR_LIT>" , "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" , "<STR_LIT>" , "<STR_LIT>" , "<STR_LIT>" ) ; } public void testPrimarySuper ( ) { this . runTestCheckMethodParse ( "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" , "<STR_LIT>" , "<STR_LIT>" , "<STR_LIT>" , "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" , "<STR_LIT>" , "<STR_LIT>" , "<STR_LIT>" ) ; } public void testSuper ( ) { this . runTestCheckMethodParse ( "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" , "<STR_LIT>" , "<STR_LIT>" , "<STR_LIT>" , "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" , "<STR_LIT>" , "<STR_LIT>" , "<STR_LIT>" ) ; } public void testThis ( ) { this . runTestCheckMethodParse ( "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" , "<STR_LIT>" , "<STR_LIT>" , "<STR_LIT>" , "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" , "<STR_LIT>" , "<STR_LIT>" , "<STR_LIT>" ) ; } } </s>
|
<s> package org . eclipse . jdt . core . tests . compiler . parser ; import junit . framework . Test ; public class ReferenceTypeCompletionTest extends AbstractCompletionTest { public ReferenceTypeCompletionTest ( String testName ) { super ( testName ) ; } public static Test suite ( ) { return buildAllCompliancesTestSuite ( ReferenceTypeCompletionTest . class ) ; } public void test1FTZCIG ( ) { this . runTestCheckMethodParse ( "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" , "<STR_LIT:p>" , "<STR_LIT>" , "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" , "<STR_LIT:p>" , "<STR_LIT>" , "<STR_LIT>" ) ; } public void testBlock ( ) { this . runTestCheckMethodParse ( "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" , "<STR_LIT:X>" , "<STR_LIT>" , "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" , "<STR_LIT:X>" , "<STR_LIT>" , "<STR_LIT>" ) ; } public void testBlockStatements ( ) { this . runTestCheckMethodParse ( "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" , "<STR_LIT:X>" , "<STR_LIT>" , "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" , "<STR_LIT:X>" , "<STR_LIT>" , "<STR_LIT>" ) ; } public void testCatchClause1 ( ) { this . runTestCheckMethodParse ( "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" , "<STR_LIT:X>" , "<STR_LIT>" , "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" , "<STR_LIT:X>" , "<STR_LIT>" , "<STR_LIT>" ) ; } public void testCatchClause2 ( ) { this . runTestCheckMethodParse ( "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" , "<STR_LIT:X>" , "<STR_LIT>" , "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" , "<STR_LIT:X>" , "<STR_LIT>" , "<STR_LIT>" ) ; } public void testCatchClause3 ( ) { this . runTestCheckMethodParse ( "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" , "<STR_LIT>" , "<STR_LIT>" , "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" , "<STR_LIT:X>" , "<STR_LIT>" , "<STR_LIT>" ) ; } public void testClassBody ( ) { this . runTestCheckDietParse ( "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" , "<STR_LIT:X>" , "<STR_LIT>" , "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" , "<STR_LIT:X>" , "<STR_LIT>" , "<STR_LIT>" ) ; } public void testClassBodyDeclarations ( ) { this . runTestCheckDietParse ( "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" , "<STR_LIT:X>" , "<STR_LIT>" , "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" , "<STR_LIT:X>" , "<STR_LIT>" , "<STR_LIT>" ) ; } public void testClassInstanceCreationExpression1 ( ) { this . runTestCheckMethodParse ( "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" , "<STR_LIT:X>" , "<STR_LIT>" , "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" , "<STR_LIT:X>" , "<STR_LIT>" , "<STR_LIT>" ) ; } public void testClassInstanceCreationExpression2 ( ) { this . runTestCheckMethodParse ( "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" , "<STR_LIT:X>" , "<STR_LIT>" , "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" , "<STR_LIT:X>" , "<STR_LIT>" , "<STR_LIT>" ) ; } public void testClassInstanceCreationExpression3 ( ) { this . runTestCheckMethodParse ( "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" , "<STR_LIT:X>" , "<STR_LIT>" , "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" , "<STR_LIT:X>" , "<STR_LIT>" , "<STR_LIT>" ) ; } public void testClassInstanceCreationExpression4 ( ) { this . runTestCheckMethodParse ( "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" , "<STR_LIT:X>" , "<STR_LIT>" , "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" , "<STR_LIT:X>" , "<STR_LIT>" , "<STR_LIT>" ) ; } public void testClassInstanceCreationExpressionName1 ( ) { this . runTestCheckMethodParse ( "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" , "<STR_LIT>" , "<STR_LIT>" , "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" , "<STR_LIT:X>" , "<STR_LIT>" , "<STR_LIT>" ) ; } public void testClassInstanceCreationExpressionName2 ( ) { this . runTestCheckMethodParse ( "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" , "<STR_LIT>" , "<STR_LIT>" , "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" , "<STR_LIT:X>" , "<STR_LIT>" , "<STR_LIT>" ) ; } public void testClassInstanceCreationExpressionName3 ( ) { this . runTestCheckMethodParse ( "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" , "<STR_LIT>" , "<STR_LIT>" , "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" , "<STR_LIT:X>" , "<STR_LIT>" , "<STR_LIT>" ) ; } public void testClassInstanceCreationExpressionName4 ( ) { this . runTestCheckMethodParse ( "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" , "<STR_LIT>" , "<STR_LIT>" , "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" , "<STR_LIT:X>" , "<STR_LIT>" , "<STR_LIT>" ) ; } public void testClassInstanceCreationExpressionPrimary1 ( ) { this . runTestCheckMethodParse ( "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" , "<STR_LIT>" , "<STR_LIT>" , "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" , "<STR_LIT:X>" , "<STR_LIT>" , "<STR_LIT>" ) ; } public void testClassInstanceCreationExpressionPrimary2 ( ) { this . runTestCheckMethodParse ( "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" , "<STR_LIT>" , "<STR_LIT>" , "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" , "<STR_LIT:X>" , "<STR_LIT>" , "<STR_LIT>" ) ; } public void testClassInstanceCreationExpressionPrimary3 ( ) { this . runTestCheckMethodParse ( "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" , "<STR_LIT>" , "<STR_LIT>" , "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" , "<STR_LIT:X>" , "<STR_LIT>" , "<STR_LIT>" ) ; } public void testClassInstanceCreationExpressionPrimary4 ( ) { this . runTestCheckMethodParse ( "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" , "<STR_LIT>" , "<STR_LIT>" , "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" , "<STR_LIT:X>" , "<STR_LIT>" , "<STR_LIT>" ) ; } public void testClassTypeList ( ) { this . runTestCheckDietParse ( "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" , "<STR_LIT:X>" , "<STR_LIT>" , "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" , "<STR_LIT:X>" , "<STR_LIT>" , "<STR_LIT>" ) ; } public void testConstructorBody ( ) { this . runTestCheckMethodParse ( "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" , "<STR_LIT:X>" , "<STR_LIT>" , "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" , "<STR_LIT:X>" , "<STR_LIT>" , "<STR_LIT>" ) ; } public void testConstructorDeclarator ( ) { this . runTestCheckDietParse ( "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" , "<STR_LIT:X>" , "<STR_LIT>" , "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" , "<STR_LIT:X>" , "<STR_LIT>" , "<STR_LIT>" ) ; } public void testDeepReference ( ) { this . runTestCheckMethodParse ( "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" , "<STR_LIT:X>" , "<STR_LIT>" , "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" , "<STR_LIT:X>" , "<STR_LIT>" , "<STR_LIT>" ) ; } public void testExtendsClass ( ) { this . runTestCheckDietParse ( "<STR_LIT>" + "<STR_LIT>" , "<STR_LIT:X>" , "<STR_LIT>" , "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" , "<STR_LIT:X>" , "<STR_LIT>" , "<STR_LIT>" ) ; } public void testExtendsInterface ( ) { this . runTestCheckDietParse ( "<STR_LIT>" + "<STR_LIT>" , "<STR_LIT:X>" , "<STR_LIT>" , "<STR_LIT>" + "<STR_LIT>" , "<STR_LIT:X>" , "<STR_LIT>" , "<STR_LIT>" ) ; } public void testFieldDeclarationWithModifiers ( ) { this . runTestCheckDietParse ( "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" , "<STR_LIT:X>" , "<STR_LIT>" , "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" , "<STR_LIT:X>" , "<STR_LIT>" , "<STR_LIT>" ) ; } public void testFieldDeclarationWithoutModifiers ( ) { this . runTestCheckDietParse ( "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" , "<STR_LIT:X>" , "<STR_LIT>" , "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" , "<STR_LIT:X>" , "<STR_LIT>" , "<STR_LIT>" ) ; } public void testFormalParameter ( ) { this . runTestCheckDietParse ( "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" , "<STR_LIT:X>" , "<STR_LIT>" , "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" , "<STR_LIT:X>" , "<STR_LIT>" , "<STR_LIT>" ) ; } public void testFormalParameterList ( ) { this . runTestCheckDietParse ( "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" , "<STR_LIT:X>" , "<STR_LIT>" , "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" , "<STR_LIT:X>" , "<STR_LIT>" , "<STR_LIT>" ) ; } public void testForStatement ( ) { this . runTestCheckMethodParse ( "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" , "<STR_LIT:X>" , "<STR_LIT>" , "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" , "<STR_LIT:X>" , "<STR_LIT>" , "<STR_LIT>" ) ; } public void testImplements ( ) { this . runTestCheckDietParse ( "<STR_LIT>" + "<STR_LIT>" , "<STR_LIT:X>" , "<STR_LIT>" , "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" , "<STR_LIT:X>" , "<STR_LIT>" , "<STR_LIT>" ) ; } public void testInstanceOf ( ) { this . runTestCheckMethodParse ( "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" , "<STR_LIT:X>" , "<STR_LIT>" , "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" , "<STR_LIT:X>" , "<STR_LIT>" , "<STR_LIT>" ) ; } public void testInterfaceBody ( ) { this . runTestCheckDietParse ( "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" , "<STR_LIT:X>" , "<STR_LIT>" , "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" , "<STR_LIT:X>" , "<STR_LIT>" , "<STR_LIT>" ) ; } public void testInterfaceMemberDeclarations ( ) { this . runTestCheckDietParse ( "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" , "<STR_LIT:X>" , "<STR_LIT>" , "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" , "<STR_LIT:X>" , "<STR_LIT>" , "<STR_LIT>" ) ; } public void testInterfaceTypeList ( ) { this . runTestCheckDietParse ( "<STR_LIT>" + "<STR_LIT>" , "<STR_LIT:X>" , "<STR_LIT>" , "<STR_LIT>" + "<STR_LIT>" , "<STR_LIT:X>" , "<STR_LIT>" , "<STR_LIT>" ) ; } public void testLocalVariableDeclaration ( ) { this . runTestCheckMethodParse ( "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" , "<STR_LIT:X>" , "<STR_LIT>" , "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" , "<STR_LIT:X>" , "<STR_LIT>" , "<STR_LIT>" ) ; } public void testMethodBody ( ) { this . runTestCheckMethodParse ( "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" , "<STR_LIT:X>" , "<STR_LIT>" , "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" , "<STR_LIT:X>" , "<STR_LIT>" , "<STR_LIT>" ) ; } public void testMethodDeclarator ( ) { this . runTestCheckDietParse ( "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" , "<STR_LIT:X>" , "<STR_LIT>" , "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" , "<STR_LIT:X>" , "<STR_LIT>" , "<STR_LIT>" ) ; } public void testMethodHeaderWithModifiers ( ) { this . runTestCheckDietParse ( "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" , "<STR_LIT:X>" , "<STR_LIT>" , "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" , "<STR_LIT:X>" , "<STR_LIT>" , "<STR_LIT>" ) ; } public void testMethodHeaderWithoutModifiers ( ) { this . runTestCheckDietParse ( "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" , "<STR_LIT:X>" , "<STR_LIT>" , "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" , "<STR_LIT:X>" , "<STR_LIT>" , "<STR_LIT>" ) ; } public void testQualifiedTypeReferenceShrinkAll ( ) { this . runTestCheckMethodParse ( "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" , "<STR_LIT>" , "<STR_LIT>" , "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" , "<STR_LIT:a>" , "<STR_LIT:a>" , "<STR_LIT>" ) ; } public void testQualifiedTypeReferenceShrinkAllButOne ( ) { this . runTestCheckMethodParse ( "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" , "<STR_LIT>" , "<STR_LIT>" , "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" , "<STR_LIT>" , "<STR_LIT>" , "<STR_LIT>" ) ; } public void testQualifiedTypeReferenceShrinkNone ( ) { this . runTestCheckMethodParse ( "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" , "<STR_LIT:X>" , "<STR_LIT>" , "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" , "<STR_LIT:X>" , "<STR_LIT>" , "<STR_LIT>" ) ; } public void testQualifiedTypeReferenceShrinkOne ( ) { this . runTestCheckMethodParse ( "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" , "<STR_LIT>" , "<STR_LIT>" , "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" , "<STR_LIT>" , "<STR_LIT>" , "<STR_LIT>" ) ; } public void testSwitchBlockStatement ( ) { this . runTestCheckMethodParse ( "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" , "<STR_LIT:X>" , "<STR_LIT>" , "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" , "<STR_LIT:X>" , "<STR_LIT>" , "<STR_LIT>" ) ; } public void testThrows ( ) { this . runTestCheckDietParse ( "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" , "<STR_LIT:X>" , "<STR_LIT>" , "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" , "<STR_LIT:X>" , "<STR_LIT>" , "<STR_LIT>" ) ; } } </s>
|
<s> package org . eclipse . jdt . core . tests . compiler . parser ; import java . util . Locale ; import org . eclipse . jdt . internal . codeassist . complete . CompletionParser ; import org . eclipse . jdt . internal . codeassist . complete . CompletionScanner ; import org . eclipse . jdt . internal . compiler . CompilationResult ; import org . eclipse . jdt . internal . compiler . DefaultErrorHandlingPolicies ; import org . eclipse . jdt . internal . compiler . ast . AbstractMethodDeclaration ; import org . eclipse . jdt . internal . compiler . ast . ASTNode ; import org . eclipse . jdt . internal . compiler . ast . CompilationUnitDeclaration ; import org . eclipse . jdt . internal . compiler . ast . FieldDeclaration ; import org . eclipse . jdt . internal . compiler . ast . Initializer ; import org . eclipse . jdt . internal . compiler . ast . TypeDeclaration ; import org . eclipse . jdt . internal . compiler . batch . CompilationUnit ; import org . eclipse . jdt . internal . compiler . env . ICompilationUnit ; import org . eclipse . jdt . internal . compiler . impl . CompilerOptions ; import org . eclipse . jdt . internal . compiler . problem . DefaultProblemFactory ; import org . eclipse . jdt . internal . compiler . problem . ProblemReporter ; import org . eclipse . jdt . core . compiler . CharOperation ; import org . eclipse . jdt . core . tests . util . AbstractCompilerTest ; import org . eclipse . jdt . core . tests . util . Util ; public abstract class AbstractCompletionTest extends AbstractCompilerTest { public final static String NONE = "<STR_LIT>" ; public final static String NULL = "<STR_LIT:null>" ; public AbstractCompletionTest ( String testName ) { super ( testName ) ; } public void checkDietParse ( char [ ] source , int cursorLocation , String expectedCompletion , String expectedUnitToString , String expectedCompletionIdentifier , String expectedReplacedSource , String testName ) { this . checkDietParse ( source , cursorLocation , expectedCompletion , null , expectedUnitToString , expectedCompletionIdentifier , expectedReplacedSource , testName ) ; } public void checkDietParse ( char [ ] source , int cursorLocation , String expectedCompletion , String expectedParentCompletion , String expectedUnitToString , String expectedCompletionIdentifier , String expectedReplacedSource , String testName ) { CompilerOptions options = new CompilerOptions ( getCompilerOptions ( ) ) ; CompletionParser parser = new CompletionParser ( new ProblemReporter ( DefaultErrorHandlingPolicies . proceedWithAllProblems ( ) , options , new DefaultProblemFactory ( Locale . getDefault ( ) ) ) , false ) ; ICompilationUnit sourceUnit = new CompilationUnit ( source , testName , null ) ; CompilationResult compilationResult = new CompilationResult ( sourceUnit , <NUM_LIT:0> , <NUM_LIT:0> , <NUM_LIT:0> ) ; CompilationUnitDeclaration unit = parser . dietParse ( sourceUnit , compilationResult , cursorLocation ) ; checkParse ( expectedCompletion , expectedParentCompletion , expectedUnitToString , expectedCompletionIdentifier , expectedReplacedSource , testName , parser , unit ) ; } public void checkMethodParse ( char [ ] source , int cursorLocation , String expectedCompletion , String expectedParentCompletion , String expectedUnitToString , String expectedCompletionIdentifier , String expectedReplacedSource , String [ ] expectedLabels , String testName ) { CompilerOptions options = new CompilerOptions ( getCompilerOptions ( ) ) ; CompletionParser parser = new CompletionParser ( new ProblemReporter ( DefaultErrorHandlingPolicies . proceedWithAllProblems ( ) , options , new DefaultProblemFactory ( Locale . getDefault ( ) ) ) , false ) ; ICompilationUnit sourceUnit = new CompilationUnit ( source , testName , null ) ; CompilationResult compilationResult = new CompilationResult ( sourceUnit , <NUM_LIT:0> , <NUM_LIT:0> , <NUM_LIT:0> ) ; CompilationUnitDeclaration unit = parser . dietParse ( sourceUnit , compilationResult , cursorLocation ) ; ASTNode foundMethod = null ; if ( unit . types != null ) { for ( int i = <NUM_LIT:0> ; i < unit . types . length ; i ++ ) { TypeDeclaration type = unit . types [ i ] ; ASTNode method = findMethod ( type , cursorLocation ) ; if ( method != null ) { foundMethod = method ; break ; } } } if ( foundMethod != null ) { if ( foundMethod instanceof AbstractMethodDeclaration ) { parser . parseBlockStatements ( ( AbstractMethodDeclaration ) foundMethod , unit ) ; } else { TypeDeclaration type = ( TypeDeclaration ) foundMethod ; if ( type . fields != null ) { done : for ( int i = <NUM_LIT:0> ; i < type . fields . length ; i ++ ) { FieldDeclaration field = type . fields [ i ] ; if ( field . declarationSourceStart <= cursorLocation && ( cursorLocation <= field . declarationSourceEnd || field . declarationSourceEnd == <NUM_LIT:0> ) ) { if ( field instanceof Initializer ) { parser . parseBlockStatements ( ( Initializer ) field , type , unit ) ; break ; } break done ; } } } } } checkParse ( expectedCompletion , expectedParentCompletion , expectedUnitToString , expectedCompletionIdentifier , expectedReplacedSource , testName , parser , unit ) ; } public void checkMethodParse ( char [ ] source , int cursorLocation , String expectedCompletion , String expectedUnitToString , String expectedCompletionIdentifier , String expectedReplacedSource , String testName ) { this . checkMethodParse ( source , cursorLocation , expectedCompletion , null , expectedUnitToString , expectedCompletionIdentifier , expectedReplacedSource , null , testName ) ; } public void checkMethodParse ( char [ ] source , int cursorLocation , String expectedCompletion , String expectedParentCompletion , String expectedUnitToString , String expectedCompletionIdentifier , String expectedReplacedSource , String testName ) { this . checkMethodParse ( source , cursorLocation , expectedCompletion , expectedParentCompletion , expectedUnitToString , expectedCompletionIdentifier , expectedReplacedSource , null , testName ) ; } public void checkMethodParse ( char [ ] source , int cursorLocation , String expectedCompletion , String expectedUnitToString , String expectedCompletionIdentifier , String expectedReplacedSource , String [ ] expectedLabels , String testName ) { this . checkMethodParse ( source , cursorLocation , expectedCompletion , null , expectedUnitToString , expectedCompletionIdentifier , expectedReplacedSource , expectedLabels , testName ) ; } private void checkParse ( String expectedCompletion , String expectedParentCompletion , String expectedUnitToString , String expectedCompletionIdentifier , String expectedReplacedSource , String testName , CompletionParser parser , CompilationUnitDeclaration unit ) { String computedCompletion = parser . assistNode == null ? NONE : parser . assistNode . toString ( ) ; String computedParentCompletion = NULL ; if ( expectedParentCompletion != null ) { computedParentCompletion = parser . assistNodeParent == null ? NONE : parser . assistNodeParent . toString ( ) ; } String computedUnitToString = unit . toString ( ) ; if ( ! expectedCompletion . equals ( computedCompletion ) ) { System . out . println ( Util . displayString ( computedCompletion ) ) ; } if ( expectedParentCompletion != null ) { if ( ! expectedParentCompletion . equals ( computedParentCompletion ) ) { System . out . println ( Util . displayString ( computedParentCompletion ) ) ; } } if ( ! expectedUnitToString . equals ( computedUnitToString ) ) { System . out . println ( Util . displayString ( computedUnitToString ) ) ; } String computedCompletionIdentifier = NULL ; if ( expectedCompletionIdentifier != null ) { char [ ] chars = ( ( CompletionScanner ) parser . scanner ) . completionIdentifier ; computedCompletionIdentifier = chars == null ? NONE : new String ( chars ) ; } String computedReplacedSource = NULL ; if ( expectedReplacedSource != null ) { char [ ] chars = null ; if ( parser . assistNode != null ) { chars = CharOperation . subarray ( parser . scanner . source , parser . assistNode . sourceStart , parser . assistNode . sourceEnd + <NUM_LIT:1> ) ; } else { if ( parser . assistIdentifier ( ) != null ) { if ( ( ( CompletionScanner ) parser . scanner ) . completedIdentifierEnd >= ( ( CompletionScanner ) parser . scanner ) . completedIdentifierStart ) { chars = CharOperation . subarray ( parser . scanner . source , ( ( CompletionScanner ) parser . scanner ) . completedIdentifierStart , ( ( CompletionScanner ) parser . scanner ) . completedIdentifierEnd + <NUM_LIT:1> ) ; } } } computedReplacedSource = chars == null ? NONE : new String ( chars ) ; } assertEquals ( testName , concatResults ( expectedCompletion , expectedParentCompletion , expectedUnitToString , expectedCompletionIdentifier , expectedReplacedSource ) , concatResults ( computedCompletion , computedParentCompletion , computedUnitToString , computedCompletionIdentifier , computedReplacedSource ) ) ; } private String concatResults ( String completionNode , String parentCompletionNode , String unitToString , String completionIdentifier , String replacedSource ) { StringBuffer buffer = new StringBuffer ( ) ; buffer . append ( "<STR_LIT>" ) ; buffer . append ( completionNode ) ; buffer . append ( "<STR_LIT>" ) ; buffer . append ( parentCompletionNode ) ; buffer . append ( "<STR_LIT>" ) ; buffer . append ( completionIdentifier ) ; buffer . append ( "<STR_LIT>" ) ; buffer . append ( replacedSource ) ; buffer . append ( "<STR_LIT>" ) ; buffer . append ( unitToString ) ; return buffer . toString ( ) ; } private ASTNode findMethod ( TypeDeclaration type , int cursorLocation ) { if ( type . methods != null ) { for ( int i = <NUM_LIT:0> ; i < type . methods . length ; i ++ ) { AbstractMethodDeclaration method = type . methods [ i ] ; if ( method . declarationSourceStart <= cursorLocation && ( cursorLocation <= method . declarationSourceEnd || method . declarationSourceEnd == <NUM_LIT:0> ) ) { return method ; } } } if ( type . memberTypes != null ) { for ( int i = <NUM_LIT:0> ; i < type . memberTypes . length ; i ++ ) { TypeDeclaration memberType = type . memberTypes [ i ] ; ASTNode method = findMethod ( memberType , cursorLocation ) ; if ( method != null ) { return method ; } } } if ( type . fields != null ) { for ( int i = <NUM_LIT:0> ; i < type . fields . length ; i ++ ) { FieldDeclaration field = type . fields [ i ] ; if ( field instanceof Initializer && field . declarationSourceStart <= cursorLocation && ( cursorLocation <= field . declarationSourceEnd || field . declarationSourceEnd == <NUM_LIT:0> ) ) { return type ; } } } return null ; } protected void runTestCheckDietParse ( String compilationUnit , String completeBehind , String expectedCompletionNodeToString , String expectedUnitDisplayString , String expectedCompletionIdentifier , String expectedReplacedSource , String testName ) { int cursorLocation = compilationUnit . indexOf ( completeBehind ) + completeBehind . length ( ) - <NUM_LIT:1> ; this . checkDietParse ( compilationUnit . toCharArray ( ) , cursorLocation , expectedCompletionNodeToString , expectedUnitDisplayString , expectedCompletionIdentifier , expectedReplacedSource , testName ) ; } protected void runTestCheckMethodParse ( String compilationUnit , String completeBehind , String expectedCompletionNodeToString , String expectedUnitDisplayString , String expectedCompletionIdentifier , String expectedReplacedSource , String [ ] expectedLabels , String testName ) { int completeBehindStart = compilationUnit . indexOf ( completeBehind ) ; assertTrue ( "<STR_LIT>" , completeBehindStart >= <NUM_LIT:0> ) ; int cursorLocation = completeBehindStart + completeBehind . length ( ) - <NUM_LIT:1> ; this . checkMethodParse ( compilationUnit . toCharArray ( ) , cursorLocation , expectedCompletionNodeToString , expectedUnitDisplayString , expectedCompletionIdentifier , expectedReplacedSource , expectedLabels , testName ) ; } protected void runTestCheckMethodParse ( String compilationUnit , String completeBehind , String expectedCompletionNodeToString , String expectedUnitDisplayString , String expectedCompletionIdentifier , String expectedReplacedSource , String testName ) { this . runTestCheckMethodParse ( compilationUnit , completeBehind , expectedCompletionNodeToString , expectedUnitDisplayString , expectedCompletionIdentifier , expectedReplacedSource , null , testName ) ; } } </s>
|
<s> package org . eclipse . jdt . core . tests . compiler . parser ; import java . util . Locale ; import junit . framework . Test ; import org . eclipse . jdt . core . tests . util . AbstractCompilerTest ; import org . eclipse . jdt . core . tests . util . Util ; import org . eclipse . jdt . internal . compiler . CompilationResult ; import org . eclipse . jdt . internal . compiler . DefaultErrorHandlingPolicies ; import org . eclipse . jdt . internal . compiler . ast . CompilationUnitDeclaration ; import org . eclipse . jdt . internal . compiler . batch . CompilationUnit ; import org . eclipse . jdt . internal . compiler . classfmt . ClassFileConstants ; import org . eclipse . jdt . internal . compiler . env . ICompilationUnit ; import org . eclipse . jdt . internal . compiler . impl . CompilerOptions ; import org . eclipse . jdt . internal . compiler . parser . Parser ; import org . eclipse . jdt . internal . compiler . problem . DefaultProblemFactory ; import org . eclipse . jdt . internal . compiler . problem . ProblemReporter ; public class StatementRecoveryTest extends AbstractCompilerTest { public static final boolean ONLY_DIET_PLUS_BODY_WITH_STATEMENT_RECOVERY = false ; public static boolean optimizeStringLiterals = false ; public static long sourceLevel = ClassFileConstants . JDK1_3 ; static { } public static Test suite ( ) { return buildAllCompliancesTestSuite ( StatementRecoveryTest . class ) ; } public StatementRecoveryTest ( String testName ) { super ( testName ) ; } public void checkParse ( char [ ] source , String expectedDietUnitToString , String expectedDietWithStatementRecoveryUnitToString , String expectedDietPlusBodyUnitToString , String expectedDietPlusBodyWithStatementRecoveryUnitToString , String expectedFullUnitToString , String expectedFullWithStatementRecoveryUnitToString , String testName ) { if ( ! ONLY_DIET_PLUS_BODY_WITH_STATEMENT_RECOVERY ) { Parser parser = new Parser ( new ProblemReporter ( DefaultErrorHandlingPolicies . proceedWithAllProblems ( ) , new CompilerOptions ( getCompilerOptions ( ) ) , new DefaultProblemFactory ( Locale . getDefault ( ) ) ) , optimizeStringLiterals ) ; parser . setMethodsFullRecovery ( false ) ; parser . setStatementsRecovery ( false ) ; ICompilationUnit sourceUnit = new CompilationUnit ( source , testName , null ) ; CompilationResult compilationResult = new CompilationResult ( sourceUnit , <NUM_LIT:0> , <NUM_LIT:0> , <NUM_LIT:0> ) ; CompilationUnitDeclaration computedUnit = parser . dietParse ( sourceUnit , compilationResult ) ; String computedUnitToString = computedUnit . toString ( ) ; if ( ! expectedDietUnitToString . equals ( computedUnitToString ) ) { System . out . println ( Util . displayString ( computedUnitToString ) ) ; } assertEquals ( "<STR_LIT>" + testName , expectedDietUnitToString , computedUnitToString ) ; } if ( ! ONLY_DIET_PLUS_BODY_WITH_STATEMENT_RECOVERY ) { Parser parser = new Parser ( new ProblemReporter ( DefaultErrorHandlingPolicies . proceedWithAllProblems ( ) , new CompilerOptions ( getCompilerOptions ( ) ) , new DefaultProblemFactory ( Locale . getDefault ( ) ) ) , optimizeStringLiterals ) ; ICompilationUnit sourceUnit = new CompilationUnit ( source , testName , null ) ; CompilationResult compilationResult = new CompilationResult ( sourceUnit , <NUM_LIT:0> , <NUM_LIT:0> , <NUM_LIT:0> ) ; CompilationUnitDeclaration computedUnit = parser . dietParse ( sourceUnit , compilationResult ) ; String computedUnitToString = computedUnit . toString ( ) ; if ( ! expectedDietWithStatementRecoveryUnitToString . equals ( computedUnitToString ) ) { System . out . println ( Util . displayString ( computedUnitToString ) ) ; } assertEquals ( "<STR_LIT>" + testName , expectedDietWithStatementRecoveryUnitToString , computedUnitToString ) ; } if ( ! ONLY_DIET_PLUS_BODY_WITH_STATEMENT_RECOVERY ) { Parser parser = new Parser ( new ProblemReporter ( DefaultErrorHandlingPolicies . proceedWithAllProblems ( ) , new CompilerOptions ( getCompilerOptions ( ) ) , new DefaultProblemFactory ( Locale . getDefault ( ) ) ) , optimizeStringLiterals ) ; parser . setMethodsFullRecovery ( false ) ; parser . setStatementsRecovery ( false ) ; ICompilationUnit sourceUnit = new CompilationUnit ( source , testName , null ) ; CompilationResult compilationResult = new CompilationResult ( sourceUnit , <NUM_LIT:0> , <NUM_LIT:0> , <NUM_LIT:0> ) ; CompilationUnitDeclaration computedUnit = parser . dietParse ( sourceUnit , compilationResult ) ; String computedUnitToString = computedUnit . toString ( ) ; if ( ! expectedDietUnitToString . equals ( computedUnitToString ) ) { System . out . println ( Util . displayString ( computedUnitToString ) ) ; } assertEquals ( "<STR_LIT>" + testName , expectedDietUnitToString , computedUnitToString ) ; if ( computedUnit . types != null ) { for ( int i = <NUM_LIT:0> , length = computedUnit . types . length ; i < length ; i ++ ) { computedUnit . types [ i ] . parseMethods ( parser , computedUnit ) ; } } computedUnitToString = computedUnit . toString ( ) ; if ( ! expectedDietPlusBodyUnitToString . equals ( computedUnitToString ) ) { System . out . println ( Util . displayString ( computedUnitToString ) ) ; } assertEquals ( "<STR_LIT>" + testName , expectedDietPlusBodyUnitToString , computedUnitToString ) ; } { Parser parser = new Parser ( new ProblemReporter ( DefaultErrorHandlingPolicies . proceedWithAllProblems ( ) , new CompilerOptions ( getCompilerOptions ( ) ) , new DefaultProblemFactory ( Locale . getDefault ( ) ) ) , optimizeStringLiterals ) ; ICompilationUnit sourceUnit = new CompilationUnit ( source , testName , null ) ; CompilationResult compilationResult = new CompilationResult ( sourceUnit , <NUM_LIT:0> , <NUM_LIT:0> , <NUM_LIT:0> ) ; CompilationUnitDeclaration computedUnit = parser . dietParse ( sourceUnit , compilationResult ) ; String computedUnitToString = computedUnit . toString ( ) ; if ( ! expectedDietWithStatementRecoveryUnitToString . equals ( computedUnitToString ) ) { System . out . println ( Util . displayString ( computedUnitToString ) ) ; } assertEquals ( "<STR_LIT>" + testName , expectedDietWithStatementRecoveryUnitToString , computedUnitToString ) ; if ( computedUnit . types != null ) { for ( int i = <NUM_LIT:0> , length = computedUnit . types . length ; i < length ; i ++ ) { computedUnit . types [ i ] . parseMethods ( parser , computedUnit ) ; } } computedUnitToString = computedUnit . toString ( ) ; if ( ! expectedDietPlusBodyWithStatementRecoveryUnitToString . equals ( computedUnitToString ) ) { System . out . println ( Util . displayString ( computedUnitToString ) ) ; } assertEquals ( "<STR_LIT>" + testName , expectedDietPlusBodyWithStatementRecoveryUnitToString , computedUnitToString ) ; } if ( ! ONLY_DIET_PLUS_BODY_WITH_STATEMENT_RECOVERY ) { Parser parser = new Parser ( new ProblemReporter ( DefaultErrorHandlingPolicies . proceedWithAllProblems ( ) , new CompilerOptions ( getCompilerOptions ( ) ) , new DefaultProblemFactory ( Locale . getDefault ( ) ) ) , optimizeStringLiterals ) ; parser . setMethodsFullRecovery ( false ) ; parser . setStatementsRecovery ( false ) ; ICompilationUnit sourceUnit = new CompilationUnit ( source , testName , null ) ; CompilationResult compilationResult = new CompilationResult ( sourceUnit , <NUM_LIT:0> , <NUM_LIT:0> , <NUM_LIT:0> ) ; CompilationUnitDeclaration computedUnit = parser . parse ( sourceUnit , compilationResult ) ; String computedUnitToString = computedUnit . toString ( ) ; if ( ! expectedFullUnitToString . equals ( computedUnitToString ) ) { System . out . println ( Util . displayString ( computedUnitToString ) ) ; } assertEquals ( "<STR_LIT>" + testName , expectedFullUnitToString , computedUnitToString ) ; } if ( ! ONLY_DIET_PLUS_BODY_WITH_STATEMENT_RECOVERY ) { Parser parser = new Parser ( new ProblemReporter ( DefaultErrorHandlingPolicies . proceedWithAllProblems ( ) , new CompilerOptions ( getCompilerOptions ( ) ) , new DefaultProblemFactory ( Locale . getDefault ( ) ) ) , optimizeStringLiterals ) ; ICompilationUnit sourceUnit = new CompilationUnit ( source , testName , null ) ; CompilationResult compilationResult = new CompilationResult ( sourceUnit , <NUM_LIT:0> , <NUM_LIT:0> , <NUM_LIT:0> ) ; CompilationUnitDeclaration computedUnit = parser . parse ( sourceUnit , compilationResult ) ; String computedUnitToString = computedUnit . toString ( ) ; if ( ! expectedFullWithStatementRecoveryUnitToString . equals ( computedUnitToString ) ) { System . out . println ( Util . displayString ( computedUnitToString ) ) ; } assertEquals ( "<STR_LIT>" + testName , expectedFullWithStatementRecoveryUnitToString , computedUnitToString ) ; } } public void test0001 ( ) { String s = "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" ; String expectedDietUnitToString = "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" ; String expectedDietWithStatementRecoveryUnitToString = expectedDietUnitToString ; String expectedDietPlusBodyUnitToString = "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" ; String expectedDietPlusBodyWithStatementRecoveryUnitToString = expectedDietPlusBodyUnitToString ; String expectedFullUnitToString = expectedDietPlusBodyUnitToString ; String expectedFullWithStatementRecoveryUnitToString = expectedFullUnitToString ; String testName = "<STR_LIT>" ; checkParse ( s . toCharArray ( ) , expectedDietUnitToString , expectedDietWithStatementRecoveryUnitToString , expectedDietPlusBodyUnitToString , expectedDietPlusBodyWithStatementRecoveryUnitToString , expectedFullUnitToString , expectedFullWithStatementRecoveryUnitToString , testName ) ; } public void test0002 ( ) { String s = "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" ; String expectedDietUnitToString = "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" ; String expectedDietWithStatementRecoveryUnitToString = expectedDietUnitToString ; String expectedDietPlusBodyUnitToString = "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" ; String expectedDietPlusBodyWithStatementRecoveryUnitToString = "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" ; String expectedFullUnitToString = expectedDietUnitToString ; String expectedFullWithStatementRecoveryUnitToString = expectedDietUnitToString ; String testName = "<STR_LIT>" ; checkParse ( s . toCharArray ( ) , expectedDietUnitToString , expectedDietWithStatementRecoveryUnitToString , expectedDietPlusBodyUnitToString , expectedDietPlusBodyWithStatementRecoveryUnitToString , expectedFullUnitToString , expectedFullWithStatementRecoveryUnitToString , testName ) ; } public void test0003 ( ) { String s = "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" ; String expectedDietUnitToString = "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" ; String expectedDietWithStatementRecoveryUnitToString = expectedDietUnitToString ; String expectedDietPlusBodyUnitToString = "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" ; String expectedDietPlusBodyWithStatementRecoveryUnitToString = "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" ; String expectedFullUnitToString = expectedDietUnitToString ; String expectedFullWithStatementRecoveryUnitToString = expectedDietUnitToString ; String testName = "<STR_LIT>" ; checkParse ( s . toCharArray ( ) , expectedDietUnitToString , expectedDietWithStatementRecoveryUnitToString , expectedDietPlusBodyUnitToString , expectedDietPlusBodyWithStatementRecoveryUnitToString , expectedFullUnitToString , expectedFullWithStatementRecoveryUnitToString , testName ) ; } public void test0004 ( ) { String s = "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" ; String expectedDietUnitToString = "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" ; String expectedDietWithStatementRecoveryUnitToString = expectedDietUnitToString ; String expectedDietPlusBodyUnitToString = "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" ; String expectedDietPlusBodyWithStatementRecoveryUnitToString = "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" ; String expectedFullUnitToString = expectedDietUnitToString ; String expectedFullWithStatementRecoveryUnitToString = expectedDietUnitToString ; String testName = "<STR_LIT>" ; checkParse ( s . toCharArray ( ) , expectedDietUnitToString , expectedDietWithStatementRecoveryUnitToString , expectedDietPlusBodyUnitToString , expectedDietPlusBodyWithStatementRecoveryUnitToString , expectedFullUnitToString , expectedFullWithStatementRecoveryUnitToString , testName ) ; } public void test0005 ( ) { String s = "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" ; String expectedDietUnitToString = "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" ; String expectedDietWithStatementRecoveryUnitToString = expectedDietUnitToString ; String expectedDietPlusBodyUnitToString = "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" ; String expectedDietPlusBodyWithStatementRecoveryUnitToString = "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" ; String expectedFullUnitToString = expectedDietUnitToString ; String expectedFullWithStatementRecoveryUnitToString = expectedDietUnitToString ; String testName = "<STR_LIT>" ; checkParse ( s . toCharArray ( ) , expectedDietUnitToString , expectedDietWithStatementRecoveryUnitToString , expectedDietPlusBodyUnitToString , expectedDietPlusBodyWithStatementRecoveryUnitToString , expectedFullUnitToString , expectedFullWithStatementRecoveryUnitToString , testName ) ; } public void test0006 ( ) { String s = "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" ; String expectedDietUnitToString = "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" ; String expectedDietWithStatementRecoveryUnitToString = expectedDietUnitToString ; String expectedDietPlusBodyUnitToString = "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" ; String expectedDietPlusBodyWithStatementRecoveryUnitToString = "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" ; String expectedFullUnitToString = expectedDietUnitToString ; String expectedFullWithStatementRecoveryUnitToString = expectedDietUnitToString ; String testName = "<STR_LIT>" ; checkParse ( s . toCharArray ( ) , expectedDietUnitToString , expectedDietWithStatementRecoveryUnitToString , expectedDietPlusBodyUnitToString , expectedDietPlusBodyWithStatementRecoveryUnitToString , expectedFullUnitToString , expectedFullWithStatementRecoveryUnitToString , testName ) ; } public void test0007 ( ) { String s = "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" ; String expectedDietUnitToString = "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" ; String expectedDietWithStatementRecoveryUnitToString = expectedDietUnitToString ; String expectedDietPlusBodyUnitToString = "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" ; String expectedDietPlusBodyWithStatementRecoveryUnitToString = "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" ; String expectedFullUnitToString = expectedDietUnitToString ; String expectedFullWithStatementRecoveryUnitToString = expectedDietUnitToString ; String testName = "<STR_LIT>" ; checkParse ( s . toCharArray ( ) , expectedDietUnitToString , expectedDietWithStatementRecoveryUnitToString , expectedDietPlusBodyUnitToString , expectedDietPlusBodyWithStatementRecoveryUnitToString , expectedFullUnitToString , expectedFullWithStatementRecoveryUnitToString , testName ) ; } public void test0008 ( ) { String s = "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" ; String expectedDietUnitToString = "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" ; String expectedDietWithStatementRecoveryUnitToString = expectedDietUnitToString ; String expectedDietPlusBodyUnitToString = "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" ; String expectedDietPlusBodyWithStatementRecoveryUnitToString = "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" ; String expectedFullUnitToString = expectedDietUnitToString ; String expectedFullWithStatementRecoveryUnitToString = expectedDietUnitToString ; String testName = "<STR_LIT>" ; checkParse ( s . toCharArray ( ) , expectedDietUnitToString , expectedDietWithStatementRecoveryUnitToString , expectedDietPlusBodyUnitToString , expectedDietPlusBodyWithStatementRecoveryUnitToString , expectedFullUnitToString , expectedFullWithStatementRecoveryUnitToString , testName ) ; } public void test0009 ( ) { String s = "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" ; String expectedDietUnitToString = "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" ; String expectedDietWithStatementRecoveryUnitToString = expectedDietUnitToString ; String expectedDietPlusBodyUnitToString = "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" ; String expectedDietPlusBodyWithStatementRecoveryUnitToString = "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" ; String expectedFullUnitToString = expectedDietUnitToString ; String expectedFullWithStatementRecoveryUnitToString = expectedDietUnitToString ; String testName = "<STR_LIT>" ; checkParse ( s . toCharArray ( ) , expectedDietUnitToString , expectedDietWithStatementRecoveryUnitToString , expectedDietPlusBodyUnitToString , expectedDietPlusBodyWithStatementRecoveryUnitToString , expectedFullUnitToString , expectedFullWithStatementRecoveryUnitToString , testName ) ; } public void test0010 ( ) { String s = "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" ; String expectedDietUnitToString = "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" ; String expectedDietWithStatementRecoveryUnitToString = expectedDietUnitToString ; String expectedDietPlusBodyUnitToString = "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" ; String expectedDietPlusBodyWithStatementRecoveryUnitToString = "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" ; String expectedFullUnitToString = expectedDietPlusBodyUnitToString ; String expectedFullWithStatementRecoveryUnitToString = expectedDietPlusBodyUnitToString ; String testName = "<STR_LIT>" ; checkParse ( s . toCharArray ( ) , expectedDietUnitToString , expectedDietWithStatementRecoveryUnitToString , expectedDietPlusBodyUnitToString , expectedDietPlusBodyWithStatementRecoveryUnitToString , expectedFullUnitToString , expectedFullWithStatementRecoveryUnitToString , testName ) ; } public void test0011 ( ) { String s = "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" ; String expectedDietUnitToString = "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" ; String expectedDietWithStatementRecoveryUnitToString = expectedDietUnitToString ; String expectedDietPlusBodyUnitToString = "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" ; String expectedDietPlusBodyWithStatementRecoveryUnitToString = "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" ; String expectedFullUnitToString = expectedDietUnitToString ; String expectedFullWithStatementRecoveryUnitToString = expectedDietUnitToString ; String testName = "<STR_LIT>" ; checkParse ( s . toCharArray ( ) , expectedDietUnitToString , expectedDietWithStatementRecoveryUnitToString , expectedDietPlusBodyUnitToString , expectedDietPlusBodyWithStatementRecoveryUnitToString , expectedFullUnitToString , expectedFullWithStatementRecoveryUnitToString , testName ) ; } public void test0012 ( ) { String s = "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" ; String expectedDietUnitToString = "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" ; String expectedDietWithStatementRecoveryUnitToString = expectedDietUnitToString ; String expectedDietPlusBodyUnitToString = "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" ; String expectedDietPlusBodyWithStatementRecoveryUnitToString = "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" ; String expectedFullUnitToString = expectedDietUnitToString ; String expectedFullWithStatementRecoveryUnitToString = expectedDietUnitToString ; String testName = "<STR_LIT>" ; checkParse ( s . toCharArray ( ) , expectedDietUnitToString , expectedDietWithStatementRecoveryUnitToString , expectedDietPlusBodyUnitToString , expectedDietPlusBodyWithStatementRecoveryUnitToString , expectedFullUnitToString , expectedFullWithStatementRecoveryUnitToString , testName ) ; } public void test0013 ( ) { String s = "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" ; String expectedDietUnitToString = "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" ; String expectedDietWithStatementRecoveryUnitToString = expectedDietUnitToString ; String expectedDietPlusBodyUnitToString = "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" ; String expectedDietPlusBodyWithStatementRecoveryUnitToString = "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" ; String expectedFullUnitToString = expectedDietUnitToString ; String expectedFullWithStatementRecoveryUnitToString = expectedDietUnitToString ; String testName = "<STR_LIT>" ; checkParse ( s . toCharArray ( ) , expectedDietUnitToString , expectedDietWithStatementRecoveryUnitToString , expectedDietPlusBodyUnitToString , expectedDietPlusBodyWithStatementRecoveryUnitToString , expectedFullUnitToString , expectedFullWithStatementRecoveryUnitToString , testName ) ; } public void test0014 ( ) { String s = "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" ; String expectedDietUnitToString = "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" ; String expectedDietWithStatementRecoveryUnitToString = expectedDietUnitToString ; String expectedDietPlusBodyUnitToString = "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" ; String expectedDietPlusBodyWithStatementRecoveryUnitToString = "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" ; String expectedFullUnitToString = expectedDietUnitToString ; String expectedFullWithStatementRecoveryUnitToString = expectedDietUnitToString ; String testName = "<STR_LIT>" ; checkParse ( s . toCharArray ( ) , expectedDietUnitToString , expectedDietWithStatementRecoveryUnitToString , expectedDietPlusBodyUnitToString , expectedDietPlusBodyWithStatementRecoveryUnitToString , expectedFullUnitToString , expectedFullWithStatementRecoveryUnitToString , testName ) ; } public void test0015 ( ) { String s = "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" ; String expectedDietUnitToString = "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" ; String expectedDietWithStatementRecoveryUnitToString = expectedDietUnitToString ; String expectedDietPlusBodyUnitToString = "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" ; String expectedDietPlusBodyWithStatementRecoveryUnitToString = "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" ; String expectedFullUnitToString = expectedDietUnitToString ; String expectedFullWithStatementRecoveryUnitToString = expectedDietUnitToString ; String testName = "<STR_LIT>" ; checkParse ( s . toCharArray ( ) , expectedDietUnitToString , expectedDietWithStatementRecoveryUnitToString , expectedDietPlusBodyUnitToString , expectedDietPlusBodyWithStatementRecoveryUnitToString , expectedFullUnitToString , expectedFullWithStatementRecoveryUnitToString , testName ) ; } public void test0016 ( ) { String s = "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" ; String expectedDietUnitToString = "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" ; String expectedDietWithStatementRecoveryUnitToString = expectedDietUnitToString ; String expectedDietPlusBodyUnitToString = "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" ; String expectedDietPlusBodyWithStatementRecoveryUnitToString = "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" ; String expectedFullUnitToString = expectedDietUnitToString ; String expectedFullWithStatementRecoveryUnitToString = expectedDietUnitToString ; String testName = "<STR_LIT>" ; checkParse ( s . toCharArray ( ) , expectedDietUnitToString , expectedDietWithStatementRecoveryUnitToString , expectedDietPlusBodyUnitToString , expectedDietPlusBodyWithStatementRecoveryUnitToString , expectedFullUnitToString , expectedFullWithStatementRecoveryUnitToString , testName ) ; } public void test0017 ( ) { String s = "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" ; String expectedDietUnitToString = "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" ; String expectedDietWithStatementRecoveryUnitToString = expectedDietUnitToString ; String expectedDietPlusBodyUnitToString = "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" ; String expectedDietPlusBodyWithStatementRecoveryUnitToString = "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" ; String expectedFullUnitToString = expectedDietUnitToString ; String expectedFullWithStatementRecoveryUnitToString = expectedDietUnitToString ; String testName = "<STR_LIT>" ; checkParse ( s . toCharArray ( ) , expectedDietUnitToString , expectedDietWithStatementRecoveryUnitToString , expectedDietPlusBodyUnitToString , expectedDietPlusBodyWithStatementRecoveryUnitToString , expectedFullUnitToString , expectedFullWithStatementRecoveryUnitToString , testName ) ; } public void test0018 ( ) { String s = "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" ; String expectedDietUnitToString = "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" ; String expectedDietWithStatementRecoveryUnitToString = expectedDietUnitToString ; String expectedDietPlusBodyUnitToString = "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" ; String expectedDietPlusBodyWithStatementRecoveryUnitToString = "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" ; String expectedFullUnitToString = expectedDietUnitToString ; String expectedFullWithStatementRecoveryUnitToString = expectedDietUnitToString ; String testName = "<STR_LIT>" ; checkParse ( s . toCharArray ( ) , expectedDietUnitToString , expectedDietWithStatementRecoveryUnitToString , expectedDietPlusBodyUnitToString , expectedDietPlusBodyWithStatementRecoveryUnitToString , expectedFullUnitToString , expectedFullWithStatementRecoveryUnitToString , testName ) ; } public void test0019 ( ) { String s = "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" ; String expectedDietUnitToString = "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" ; String expectedDietWithStatementRecoveryUnitToString = expectedDietUnitToString ; String expectedDietPlusBodyUnitToString = "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" ; String expectedDietPlusBodyWithStatementRecoveryUnitToString = "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" ; String expectedFullUnitToString = expectedDietUnitToString ; String expectedFullWithStatementRecoveryUnitToString = expectedDietUnitToString ; String testName = "<STR_LIT>" ; checkParse ( s . toCharArray ( ) , expectedDietUnitToString , expectedDietWithStatementRecoveryUnitToString , expectedDietPlusBodyUnitToString , expectedDietPlusBodyWithStatementRecoveryUnitToString , expectedFullUnitToString , expectedFullWithStatementRecoveryUnitToString , testName ) ; } public void test0020 ( ) { String s = "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" ; String expectedDietUnitToString = "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" ; String expectedDietWithStatementRecoveryUnitToString = expectedDietUnitToString ; String expectedDietPlusBodyUnitToString = "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" ; String expectedDietPlusBodyWithStatementRecoveryUnitToString = "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" ; String expectedFullUnitToString = expectedDietUnitToString ; String expectedFullWithStatementRecoveryUnitToString = expectedDietUnitToString ; String testName = "<STR_LIT>" ; checkParse ( s . toCharArray ( ) , expectedDietUnitToString , expectedDietWithStatementRecoveryUnitToString , expectedDietPlusBodyUnitToString , expectedDietPlusBodyWithStatementRecoveryUnitToString , expectedFullUnitToString , expectedFullWithStatementRecoveryUnitToString , testName ) ; } public void test0021 ( ) { String s = "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" ; String expectedDietUnitToString = "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" ; String expectedDietWithStatementRecoveryUnitToString = expectedDietUnitToString ; String expectedDietPlusBodyUnitToString = "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" ; String expectedDietPlusBodyWithStatementRecoveryUnitToString = "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" ; String expectedFullUnitToString = expectedDietPlusBodyUnitToString ; String expectedFullWithStatementRecoveryUnitToString = expectedDietPlusBodyUnitToString ; String testName = "<STR_LIT>" ; checkParse ( s . toCharArray ( ) , expectedDietUnitToString , expectedDietWithStatementRecoveryUnitToString , expectedDietPlusBodyUnitToString , expectedDietPlusBodyWithStatementRecoveryUnitToString , expectedFullUnitToString , expectedFullWithStatementRecoveryUnitToString , testName ) ; } public void test0022 ( ) { String s = "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" ; String expectedDietUnitToString = "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" ; String expectedDietWithStatementRecoveryUnitToString = expectedDietUnitToString ; String expectedDietPlusBodyUnitToString = "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" ; String expectedDietPlusBodyWithStatementRecoveryUnitToString = "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" ; String expectedFullUnitToString = expectedDietUnitToString ; String expectedFullWithStatementRecoveryUnitToString = expectedDietUnitToString ; String testName = "<STR_LIT>" ; checkParse ( s . toCharArray ( ) , expectedDietUnitToString , expectedDietWithStatementRecoveryUnitToString , expectedDietPlusBodyUnitToString , expectedDietPlusBodyWithStatementRecoveryUnitToString , expectedFullUnitToString , expectedFullWithStatementRecoveryUnitToString , testName ) ; } public void test0023 ( ) { String s = "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" ; String expectedDietUnitToString = "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" ; String expectedDietWithStatementRecoveryUnitToString = expectedDietUnitToString ; String expectedDietPlusBodyUnitToString = "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" ; String expectedDietPlusBodyWithStatementRecoveryUnitToString = "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" ; String expectedFullUnitToString = expectedDietUnitToString ; String expectedFullWithStatementRecoveryUnitToString = expectedDietUnitToString ; String testName = "<STR_LIT>" ; checkParse ( s . toCharArray ( ) , expectedDietUnitToString , expectedDietWithStatementRecoveryUnitToString , expectedDietPlusBodyUnitToString , expectedDietPlusBodyWithStatementRecoveryUnitToString , expectedFullUnitToString , expectedFullWithStatementRecoveryUnitToString , testName ) ; } public void test0024 ( ) { String s = "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" ; String expectedDietUnitToString = "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" ; String expectedDietWithStatementRecoveryUnitToString = expectedDietUnitToString ; String expectedDietPlusBodyUnitToString = "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" ; String expectedDietPlusBodyWithStatementRecoveryUnitToString = "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" ; String expectedFullUnitToString = expectedDietUnitToString ; String expectedFullWithStatementRecoveryUnitToString = expectedDietUnitToString ; String testName = "<STR_LIT>" ; checkParse ( s . toCharArray ( ) , expectedDietUnitToString , expectedDietWithStatementRecoveryUnitToString , expectedDietPlusBodyUnitToString , expectedDietPlusBodyWithStatementRecoveryUnitToString , expectedFullUnitToString , expectedFullWithStatementRecoveryUnitToString , testName ) ; } public void test0025 ( ) { String s = "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" ; String expectedDietUnitToString = "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" ; String expectedDietWithStatementRecoveryUnitToString = expectedDietUnitToString ; String expectedDietPlusBodyUnitToString = "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" ; String expectedDietPlusBodyWithStatementRecoveryUnitToString = "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" ; String expectedFullUnitToString = expectedDietUnitToString ; String expectedFullWithStatementRecoveryUnitToString = expectedDietUnitToString ; String testName = "<STR_LIT>" ; checkParse ( s . toCharArray ( ) , expectedDietUnitToString , expectedDietWithStatementRecoveryUnitToString , expectedDietPlusBodyUnitToString , expectedDietPlusBodyWithStatementRecoveryUnitToString , expectedFullUnitToString , expectedFullWithStatementRecoveryUnitToString , testName ) ; } public void test0026 ( ) { String s = "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" ; String expectedDietUnitToString = "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" ; String expectedDietWithStatementRecoveryUnitToString = expectedDietUnitToString ; String expectedDietPlusBodyUnitToString = "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" ; String expectedDietPlusBodyWithStatementRecoveryUnitToString = "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" ; String expectedFullUnitToString = expectedDietUnitToString ; String expectedFullWithStatementRecoveryUnitToString = expectedDietUnitToString ; String testName = "<STR_LIT>" ; checkParse ( s . toCharArray ( ) , expectedDietUnitToString , expectedDietWithStatementRecoveryUnitToString , expectedDietPlusBodyUnitToString , expectedDietPlusBodyWithStatementRecoveryUnitToString , expectedFullUnitToString , expectedFullWithStatementRecoveryUnitToString , testName ) ; } public void test0027 ( ) { String s = "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" ; String expectedDietUnitToString = "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" ; String expectedDietWithStatementRecoveryUnitToString = expectedDietUnitToString ; String expectedDietPlusBodyUnitToString = "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" ; String expectedDietPlusBodyWithStatementRecoveryUnitToString = "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" ; String expectedFullUnitToString = expectedDietUnitToString ; String expectedFullWithStatementRecoveryUnitToString = expectedDietUnitToString ; String testName = "<STR_LIT>" ; checkParse ( s . toCharArray ( ) , expectedDietUnitToString , expectedDietWithStatementRecoveryUnitToString , expectedDietPlusBodyUnitToString , expectedDietPlusBodyWithStatementRecoveryUnitToString , expectedFullUnitToString , expectedFullWithStatementRecoveryUnitToString , testName ) ; } public void test0028 ( ) { String s = "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" ; String expectedDietUnitToString = "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" ; String expectedDietWithStatementRecoveryUnitToString = expectedDietUnitToString ; String expectedDietPlusBodyUnitToString = "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" ; String expectedDietPlusBodyWithStatementRecoveryUnitToString = "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" ; String expectedFullUnitToString = expectedDietUnitToString ; String expectedFullWithStatementRecoveryUnitToString = expectedDietUnitToString ; String testName = "<STR_LIT>" ; checkParse ( s . toCharArray ( ) , expectedDietUnitToString , expectedDietWithStatementRecoveryUnitToString , expectedDietPlusBodyUnitToString , expectedDietPlusBodyWithStatementRecoveryUnitToString , expectedFullUnitToString , expectedFullWithStatementRecoveryUnitToString , testName ) ; } public void test0029 ( ) { String s = "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" ; String expectedDietUnitToString = "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" ; String expectedDietWithStatementRecoveryUnitToString = expectedDietUnitToString ; String expectedDietPlusBodyUnitToString = "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" ; String expectedDietPlusBodyWithStatementRecoveryUnitToString = "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" ; String expectedFullUnitToString = expectedDietUnitToString ; String expectedFullWithStatementRecoveryUnitToString = expectedDietUnitToString ; String testName = "<STR_LIT>" ; checkParse ( s . toCharArray ( ) , expectedDietUnitToString , expectedDietWithStatementRecoveryUnitToString , expectedDietPlusBodyUnitToString , expectedDietPlusBodyWithStatementRecoveryUnitToString , expectedFullUnitToString , expectedFullWithStatementRecoveryUnitToString , testName ) ; } public void test0030 ( ) { String s = "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" ; String expectedDietUnitToString = "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" ; String expectedDietWithStatementRecoveryUnitToString = expectedDietUnitToString ; String expectedDietPlusBodyUnitToString = "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" ; String expectedDietPlusBodyWithStatementRecoveryUnitToString = "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" ; String expectedFullUnitToString = expectedDietUnitToString ; String expectedFullWithStatementRecoveryUnitToString = expectedDietUnitToString ; String testName = "<STR_LIT>" ; checkParse ( s . toCharArray ( ) , expectedDietUnitToString , expectedDietWithStatementRecoveryUnitToString , expectedDietPlusBodyUnitToString , expectedDietPlusBodyWithStatementRecoveryUnitToString , expectedFullUnitToString , expectedFullWithStatementRecoveryUnitToString , testName ) ; } public void test0031 ( ) { String s = "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" ; String expectedDietUnitToString = "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" ; String expectedDietWithStatementRecoveryUnitToString = expectedDietUnitToString ; String expectedDietPlusBodyUnitToString = "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" ; String expectedDietPlusBodyWithStatementRecoveryUnitToString = "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" ; String expectedFullUnitToString = expectedDietUnitToString ; String expectedFullWithStatementRecoveryUnitToString = expectedDietUnitToString ; String testName = "<STR_LIT>" ; checkParse ( s . toCharArray ( ) , expectedDietUnitToString , expectedDietWithStatementRecoveryUnitToString , expectedDietPlusBodyUnitToString , expectedDietPlusBodyWithStatementRecoveryUnitToString , expectedFullUnitToString , expectedFullWithStatementRecoveryUnitToString , testName ) ; } public void test0032 ( ) { String s = "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" ; String expectedDietUnitToString = "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" ; String expectedDietWithStatementRecoveryUnitToString = expectedDietUnitToString ; String expectedDietPlusBodyUnitToString = "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" ; String expectedDietPlusBodyWithStatementRecoveryUnitToString = "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" ; String expectedFullUnitToString = expectedDietUnitToString ; String expectedFullWithStatementRecoveryUnitToString = expectedDietUnitToString ; String testName = "<STR_LIT>" ; checkParse ( s . toCharArray ( ) , expectedDietUnitToString , expectedDietWithStatementRecoveryUnitToString , expectedDietPlusBodyUnitToString , expectedDietPlusBodyWithStatementRecoveryUnitToString , expectedFullUnitToString , expectedFullWithStatementRecoveryUnitToString , testName ) ; } public void test0033 ( ) { String s = "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" ; String expectedDietUnitToString = "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" ; String expectedDietWithStatementRecoveryUnitToString = expectedDietUnitToString ; String expectedDietPlusBodyUnitToString = "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" ; String expectedDietPlusBodyWithStatementRecoveryUnitToString = "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" ; String expectedFullUnitToString = expectedDietUnitToString ; String expectedFullWithStatementRecoveryUnitToString = expectedDietUnitToString ; String testName = "<STR_LIT>" ; checkParse ( s . toCharArray ( ) , expectedDietUnitToString , expectedDietWithStatementRecoveryUnitToString , expectedDietPlusBodyUnitToString , expectedDietPlusBodyWithStatementRecoveryUnitToString , expectedFullUnitToString , expectedFullWithStatementRecoveryUnitToString , testName ) ; } public void test0034 ( ) { String s = "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" ; String expectedDietUnitToString = "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" ; String expectedDietWithStatementRecoveryUnitToString = expectedDietUnitToString ; String expectedDietPlusBodyUnitToString = "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" ; String expectedDietPlusBodyWithStatementRecoveryUnitToString = "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" ; String expectedFullUnitToString = expectedDietUnitToString ; String expectedFullWithStatementRecoveryUnitToString = expectedDietUnitToString ; String testName = "<STR_LIT>" ; checkParse ( s . toCharArray ( ) , expectedDietUnitToString , expectedDietWithStatementRecoveryUnitToString , expectedDietPlusBodyUnitToString , expectedDietPlusBodyWithStatementRecoveryUnitToString , expectedFullUnitToString , expectedFullWithStatementRecoveryUnitToString , testName ) ; } public void test0035 ( ) { String s = "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" ; String expectedDietUnitToString = "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" ; String expectedDietWithStatementRecoveryUnitToString = expectedDietUnitToString ; String expectedDietPlusBodyUnitToString = "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" ; String expectedDietPlusBodyWithStatementRecoveryUnitToString = "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" ; String expectedFullUnitToString = expectedDietUnitToString ; String expectedFullWithStatementRecoveryUnitToString = expectedDietUnitToString ; String testName = "<STR_LIT>" ; checkParse ( s . toCharArray ( ) , expectedDietUnitToString , expectedDietWithStatementRecoveryUnitToString , expectedDietPlusBodyUnitToString , expectedDietPlusBodyWithStatementRecoveryUnitToString , expectedFullUnitToString , expectedFullWithStatementRecoveryUnitToString , testName ) ; } public void test0036 ( ) { String s = "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" ; String expectedDietUnitToString = "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" ; String expectedDietWithStatementRecoveryUnitToString = expectedDietUnitToString ; String expectedDietPlusBodyUnitToString = "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" ; String expectedDietPlusBodyWithStatementRecoveryUnitToString = "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" ; String expectedFullUnitToString = expectedDietUnitToString ; String expectedFullWithStatementRecoveryUnitToString = expectedDietUnitToString ; String testName = "<STR_LIT>" ; checkParse ( s . toCharArray ( ) , expectedDietUnitToString , expectedDietWithStatementRecoveryUnitToString , expectedDietPlusBodyUnitToString , expectedDietPlusBodyWithStatementRecoveryUnitToString , expectedFullUnitToString , expectedFullWithStatementRecoveryUnitToString , testName ) ; } public void test0037 ( ) { String s = "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" ; String expectedDietUnitToString = "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" ; String expectedDietWithStatementRecoveryUnitToString = expectedDietUnitToString ; String expectedDietPlusBodyUnitToString = "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" ; String expectedDietPlusBodyWithStatementRecoveryUnitToString = "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" ; String expectedFullUnitToString = expectedDietUnitToString ; String expectedFullWithStatementRecoveryUnitToString = expectedDietUnitToString ; String testName = "<STR_LIT>" ; checkParse ( s . toCharArray ( ) , expectedDietUnitToString , expectedDietWithStatementRecoveryUnitToString , expectedDietPlusBodyUnitToString , expectedDietPlusBodyWithStatementRecoveryUnitToString , expectedFullUnitToString , expectedFullWithStatementRecoveryUnitToString , testName ) ; } public void test0038 ( ) { String s = "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT:}>" ; String expectedDietUnitToString = "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" ; String expectedDietWithStatementRecoveryUnitToString = expectedDietUnitToString ; String expectedDietPlusBodyUnitToString = "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" ; String expectedDietPlusBodyWithStatementRecoveryUnitToString = "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" ; String expectedFullUnitToString = "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" ; String expectedFullWithStatementRecoveryUnitToString = expectedFullUnitToString ; String testName = "<STR_LIT>" ; checkParse ( s . toCharArray ( ) , expectedDietUnitToString , expectedDietWithStatementRecoveryUnitToString , expectedDietPlusBodyUnitToString , expectedDietPlusBodyWithStatementRecoveryUnitToString , expectedFullUnitToString , expectedFullWithStatementRecoveryUnitToString , testName ) ; } public void test0039 ( ) { String s = "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" ; String expectedDietUnitToString = "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" ; String expectedDietWithStatementRecoveryUnitToString = expectedDietUnitToString ; String expectedDietPlusBodyUnitToString = "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" ; String expectedDietPlusBodyWithStatementRecoveryUnitToString = "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" ; String expectedFullUnitToString = expectedDietUnitToString ; String expectedFullWithStatementRecoveryUnitToString = expectedDietUnitToString ; String testName = "<STR_LIT>" ; checkParse ( s . toCharArray ( ) , expectedDietUnitToString , expectedDietWithStatementRecoveryUnitToString , expectedDietPlusBodyUnitToString , expectedDietPlusBodyWithStatementRecoveryUnitToString , expectedFullUnitToString , expectedFullWithStatementRecoveryUnitToString , testName ) ; } public void test0040 ( ) { String s = "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" ; String expectedDietUnitToString = "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" ; String expectedDietWithStatementRecoveryUnitToString = expectedDietUnitToString ; String expectedDietPlusBodyUnitToString = "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" ; String expectedDietPlusBodyWithStatementRecoveryUnitToString = "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" ; String expectedFullUnitToString = expectedDietUnitToString ; String expectedFullWithStatementRecoveryUnitToString = expectedDietUnitToString ; String testName = "<STR_LIT>" ; checkParse ( s . toCharArray ( ) , expectedDietUnitToString , expectedDietWithStatementRecoveryUnitToString , expectedDietPlusBodyUnitToString , expectedDietPlusBodyWithStatementRecoveryUnitToString , expectedFullUnitToString , expectedFullWithStatementRecoveryUnitToString , testName ) ; } public void test0041 ( ) { String s = "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" ; String expectedDietUnitToString = "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" ; String expectedDietWithStatementRecoveryUnitToString = expectedDietUnitToString ; String expectedDietPlusBodyUnitToString = "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" ; String expectedDietPlusBodyWithStatementRecoveryUnitToString = "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" ; String expectedFullUnitToString = expectedDietUnitToString ; String expectedFullWithStatementRecoveryUnitToString = expectedDietUnitToString ; String testName = "<STR_LIT>" ; checkParse ( s . toCharArray ( ) , expectedDietUnitToString , expectedDietWithStatementRecoveryUnitToString , expectedDietPlusBodyUnitToString , expectedDietPlusBodyWithStatementRecoveryUnitToString , expectedFullUnitToString , expectedFullWithStatementRecoveryUnitToString , testName ) ; } public void test0042 ( ) { String s = "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" ; String expectedDietUnitToString = "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" ; String expectedDietWithStatementRecoveryUnitToString = expectedDietUnitToString ; String expectedDietPlusBodyUnitToString = "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" ; String expectedDietPlusBodyWithStatementRecoveryUnitToString = "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" ; String expectedFullUnitToString = expectedDietUnitToString ; String expectedFullWithStatementRecoveryUnitToString = expectedDietUnitToString ; String testName = "<STR_LIT>" ; checkParse ( s . toCharArray ( ) , expectedDietUnitToString , expectedDietWithStatementRecoveryUnitToString , expectedDietPlusBodyUnitToString , expectedDietPlusBodyWithStatementRecoveryUnitToString , expectedFullUnitToString , expectedFullWithStatementRecoveryUnitToString , testName ) ; } public void test0043 ( ) { String s = "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" ; String expectedDietUnitToString = "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" ; String expectedDietWithStatementRecoveryUnitToString = expectedDietUnitToString ; String expectedDietPlusBodyUnitToString = "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" ; String expectedDietPlusBodyWithStatementRecoveryUnitToString = "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" ; String expectedFullUnitToString = expectedDietUnitToString ; String expectedFullWithStatementRecoveryUnitToString = expectedDietUnitToString ; String testName = "<STR_LIT>" ; checkParse ( s . toCharArray ( ) , expectedDietUnitToString , expectedDietWithStatementRecoveryUnitToString , expectedDietPlusBodyUnitToString , expectedDietPlusBodyWithStatementRecoveryUnitToString , expectedFullUnitToString , expectedFullWithStatementRecoveryUnitToString , testName ) ; } public void test0044 ( ) { String s = "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT:n>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT:n>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT:n>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT:n>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" ; String expectedDietUnitToString = "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" ; String expectedDietWithStatementRecoveryUnitToString = expectedDietUnitToString ; String expectedDietPlusBodyUnitToString = "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" ; String expectedDietPlusBodyWithStatementRecoveryUnitToString = "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" ; String expectedFullUnitToString = expectedDietUnitToString ; String expectedFullWithStatementRecoveryUnitToString = expectedDietUnitToString ; String testName = "<STR_LIT>" ; checkParse ( s . toCharArray ( ) , expectedDietUnitToString , expectedDietWithStatementRecoveryUnitToString , expectedDietPlusBodyUnitToString , expectedDietPlusBodyWithStatementRecoveryUnitToString , expectedFullUnitToString , expectedFullWithStatementRecoveryUnitToString , testName ) ; } public void test0045 ( ) { String s = "<STR_LIT>" + "<STR_LIT:n>" + "<STR_LIT>" + "<STR_LIT:n>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT:n>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT:n>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT:n>" + "<STR_LIT>" ; String expectedDietUnitToString = "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" ; String expectedDietWithStatementRecoveryUnitToString = expectedDietUnitToString ; String expectedDietPlusBodyUnitToString = "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" ; String expectedDietPlusBodyWithStatementRecoveryUnitToString = "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" ; String expectedFullUnitToString = expectedDietUnitToString ; String expectedFullWithStatementRecoveryUnitToString = expectedDietUnitToString ; String testName = "<STR_LIT>" ; checkParse ( s . toCharArray ( ) , expectedDietUnitToString , expectedDietWithStatementRecoveryUnitToString , expectedDietPlusBodyUnitToString , expectedDietPlusBodyWithStatementRecoveryUnitToString , expectedFullUnitToString , expectedFullWithStatementRecoveryUnitToString , testName ) ; } public void test0046 ( ) { String s = "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" ; String expectedDietUnitToString = "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" ; String expectedDietWithStatementRecoveryUnitToString = expectedDietUnitToString ; String expectedDietPlusBodyUnitToString = "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" ; String expectedDietPlusBodyWithStatementRecoveryUnitToString = "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" ; String expectedFullUnitToString = expectedDietUnitToString ; String expectedFullWithStatementRecoveryUnitToString = expectedDietUnitToString ; String testName = "<STR_LIT>" ; checkParse ( s . toCharArray ( ) , expectedDietUnitToString , expectedDietWithStatementRecoveryUnitToString , expectedDietPlusBodyUnitToString , expectedDietPlusBodyWithStatementRecoveryUnitToString , expectedFullUnitToString , expectedFullWithStatementRecoveryUnitToString , testName ) ; } public void test0047 ( ) { String s = "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" ; String expectedDietUnitToString = "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" ; String expectedDietWithStatementRecoveryUnitToString = expectedDietUnitToString ; String expectedDietPlusBodyUnitToString = "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" ; String expectedDietPlusBodyWithStatementRecoveryUnitToString = "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" ; String expectedFullUnitToString = expectedDietUnitToString ; String expectedFullWithStatementRecoveryUnitToString = expectedDietUnitToString ; String testName = "<STR_LIT>" ; checkParse ( s . toCharArray ( ) , expectedDietUnitToString , expectedDietWithStatementRecoveryUnitToString , expectedDietPlusBodyUnitToString , expectedDietPlusBodyWithStatementRecoveryUnitToString , expectedFullUnitToString , expectedFullWithStatementRecoveryUnitToString , testName ) ; } } </s>
|
<s> package org . eclipse . jdt . core . tests . compiler . parser ; import junit . framework . Test ; public class SelectionTest extends AbstractSelectionTest { static { } public static Test suite ( ) { return buildAllCompliancesTestSuite ( SelectionTest . class ) ; } public SelectionTest ( String testName ) { super ( testName ) ; } public void test01 ( ) { String str = "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" ; String selectionStartBehind = "<STR_LIT>" ; String selectionEndBehind = "<STR_LIT>" ; String expectedCompletionNodeToString = "<STR_LIT>" ; String completionIdentifier = "<STR_LIT>" ; String expectedUnitDisplayString = "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" ; String expectedReplacedSource = "<STR_LIT>" ; String testName = "<STR_LIT>" ; int selectionStart = str . indexOf ( selectionStartBehind ) + selectionStartBehind . length ( ) ; int selectionEnd = str . indexOf ( selectionEndBehind ) + selectionEndBehind . length ( ) - <NUM_LIT:1> ; this . checkDietParse ( str . toCharArray ( ) , selectionStart , selectionEnd , expectedCompletionNodeToString , expectedUnitDisplayString , completionIdentifier , expectedReplacedSource , testName ) ; } public void test02 ( ) { String str = "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" ; String selectionStartBehind = "<STR_LIT>" ; String selectionEndBehind = "<STR_LIT>" ; String expectedCompletionNodeToString = "<STR_LIT>" ; String completionIdentifier = "<STR_LIT>" ; String expectedUnitDisplayString = "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" ; String expectedReplacedSource = "<STR_LIT>" ; String testName = "<STR_LIT>" ; int selectionStart = str . indexOf ( selectionStartBehind ) + selectionStartBehind . length ( ) ; int selectionEnd = str . indexOf ( selectionEndBehind ) + selectionEndBehind . length ( ) - <NUM_LIT:1> ; this . checkDietParse ( str . toCharArray ( ) , selectionStart , selectionEnd , expectedCompletionNodeToString , expectedUnitDisplayString , completionIdentifier , expectedReplacedSource , testName ) ; } public void test03 ( ) { String str = "<STR_LIT>" + "<STR_LIT>" ; String selectionStartBehind = "<STR_LIT>" ; String selectionEndBehind = "<STR_LIT>" ; String expectedCompletionNodeToString = "<STR_LIT>" ; String completionIdentifier = "<STR_LIT>" ; String expectedUnitDisplayString = "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" ; String expectedReplacedSource = "<STR_LIT>" ; String testName = "<STR_LIT>" ; int selectionStart = str . indexOf ( selectionStartBehind ) + selectionStartBehind . length ( ) ; int selectionEnd = str . indexOf ( selectionEndBehind ) + selectionEndBehind . length ( ) - <NUM_LIT:1> ; this . checkDietParse ( str . toCharArray ( ) , selectionStart , selectionEnd , expectedCompletionNodeToString , expectedUnitDisplayString , completionIdentifier , expectedReplacedSource , testName ) ; } public void test04 ( ) { String str = "<STR_LIT>" + "<STR_LIT>" ; String selectionStartBehind = "<STR_LIT>" ; String selectionEndBehind = "<STR_LIT>" ; String expectedCompletionNodeToString = "<STR_LIT>" ; String completionIdentifier = "<STR_LIT>" ; String expectedUnitDisplayString = "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" ; String expectedReplacedSource = "<STR_LIT>" ; String testName = "<STR_LIT>" ; int selectionStart = str . indexOf ( selectionStartBehind ) + selectionStartBehind . length ( ) ; int selectionEnd = str . indexOf ( selectionEndBehind ) + selectionEndBehind . length ( ) - <NUM_LIT:1> ; this . checkDietParse ( str . toCharArray ( ) , selectionStart , selectionEnd , expectedCompletionNodeToString , expectedUnitDisplayString , completionIdentifier , expectedReplacedSource , testName ) ; } public void test05 ( ) { String str = "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" ; String selectionStartBehind = "<STR_LIT>" ; String selectionEndBehind = "<STR_LIT>" ; String expectedCompletionNodeToString = "<STR_LIT>" ; String completionIdentifier = "<STR_LIT>" ; String expectedUnitDisplayString = "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" ; String expectedReplacedSource = "<STR_LIT>" ; String testName = "<STR_LIT>" ; int selectionStart = str . indexOf ( selectionStartBehind ) + selectionStartBehind . length ( ) ; int selectionEnd = str . indexOf ( selectionEndBehind ) + selectionEndBehind . length ( ) - <NUM_LIT:1> ; this . checkMethodParse ( str . toCharArray ( ) , selectionStart , selectionEnd , expectedCompletionNodeToString , expectedUnitDisplayString , completionIdentifier , expectedReplacedSource , testName ) ; } public void test06 ( ) { String str = "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" ; String selectionStartBehind = "<STR_LIT>" ; String selectionEndBehind = "<STR_LIT>" ; String expectedCompletionNodeToString = "<STR_LIT>" ; String completionIdentifier = "<STR_LIT>" ; String expectedUnitDisplayString = "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" ; String expectedReplacedSource = "<STR_LIT>" ; String testName = "<STR_LIT>" ; int selectionStart = str . indexOf ( selectionStartBehind ) + selectionStartBehind . length ( ) ; int selectionEnd = str . indexOf ( selectionEndBehind ) + selectionEndBehind . length ( ) - <NUM_LIT:1> ; this . checkMethodParse ( str . toCharArray ( ) , selectionStart , selectionEnd , expectedCompletionNodeToString , expectedUnitDisplayString , completionIdentifier , expectedReplacedSource , testName ) ; } public void test07 ( ) { String str = "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" ; String selectionStartBehind = "<STR_LIT>" ; String selectionEndBehind = "<STR_LIT>" ; String expectedCompletionNodeToString = "<STR_LIT>" ; String completionIdentifier = "<STR_LIT:bar>" ; String expectedUnitDisplayString = "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" ; String expectedReplacedSource = "<STR_LIT>" ; String testName = "<STR_LIT>" ; int selectionStart = str . indexOf ( selectionStartBehind ) + selectionStartBehind . length ( ) ; int selectionEnd = str . indexOf ( selectionEndBehind ) + selectionEndBehind . length ( ) - <NUM_LIT:1> ; this . checkMethodParse ( str . toCharArray ( ) , selectionStart , selectionEnd , expectedCompletionNodeToString , expectedUnitDisplayString , completionIdentifier , expectedReplacedSource , testName ) ; } public void test08 ( ) { String str = "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" ; String selectionStartBehind = "<STR_LIT>" ; String selectionEndBehind = "<STR_LIT>" ; String expectedCompletionNodeToString = "<STR_LIT>" ; String completionIdentifier = "<STR_LIT>" ; String expectedUnitDisplayString = "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" ; String expectedReplacedSource = "<STR_LIT>" ; String testName = "<STR_LIT>" ; int selectionStart = str . indexOf ( selectionStartBehind ) + selectionStartBehind . length ( ) ; int selectionEnd = str . indexOf ( selectionEndBehind ) + selectionEndBehind . length ( ) - <NUM_LIT:1> ; this . checkMethodParse ( str . toCharArray ( ) , selectionStart , selectionEnd , expectedCompletionNodeToString , expectedUnitDisplayString , completionIdentifier , expectedReplacedSource , testName ) ; } public void test09 ( ) { String str = "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" ; String selectionStartBehind = "<STR_LIT>" ; String selectionEndBehind = "<STR_LIT>" ; String expectedCompletionNodeToString = "<STR_LIT>" ; String completionIdentifier = "<STR_LIT>" ; String expectedUnitDisplayString = "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" ; String expectedReplacedSource = "<STR_LIT>" ; String testName = "<STR_LIT>" ; int selectionStart = str . indexOf ( selectionStartBehind ) + selectionStartBehind . length ( ) ; int selectionEnd = str . indexOf ( selectionEndBehind ) + selectionEndBehind . length ( ) - <NUM_LIT:1> ; this . checkMethodParse ( str . toCharArray ( ) , selectionStart , selectionEnd , expectedCompletionNodeToString , expectedUnitDisplayString , completionIdentifier , expectedReplacedSource , testName ) ; } public void test10 ( ) { String str = "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" ; String selectionStartBehind = "<STR_LIT>" ; String selectionEndBehind = "<STR_LIT>" ; String expectedCompletionNodeToString = "<STR_LIT>" ; String completionIdentifier = "<STR_LIT:x>" ; String expectedUnitDisplayString = "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" ; String expectedReplacedSource = "<STR_LIT>" ; String testName = "<STR_LIT>" ; int selectionStart = str . indexOf ( selectionStartBehind ) + selectionStartBehind . length ( ) ; int selectionEnd = str . indexOf ( selectionEndBehind ) + selectionEndBehind . length ( ) - <NUM_LIT:1> ; this . checkMethodParse ( str . toCharArray ( ) , selectionStart , selectionEnd , expectedCompletionNodeToString , expectedUnitDisplayString , completionIdentifier , expectedReplacedSource , testName ) ; } public void test11 ( ) { String str = "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" ; String selectionStartBehind = "<STR_LIT>" ; String selectionEndBehind = "<STR_LIT>" ; String expectedCompletionNodeToString = "<STR_LIT>" ; String completionIdentifier = "<STR_LIT:X>" ; String expectedUnitDisplayString = "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" ; String expectedReplacedSource = "<STR_LIT>" ; String testName = "<STR_LIT>" ; int selectionStart = str . indexOf ( selectionStartBehind ) + selectionStartBehind . length ( ) ; int selectionEnd = str . indexOf ( selectionEndBehind ) + selectionEndBehind . length ( ) - <NUM_LIT:1> ; this . checkMethodParse ( str . toCharArray ( ) , selectionStart , selectionEnd , expectedCompletionNodeToString , expectedUnitDisplayString , completionIdentifier , expectedReplacedSource , testName ) ; } public void test12 ( ) { String str = "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" ; String selectionStartBehind = "<STR_LIT>" ; String selectionEndBehind = "<STR_LIT>" ; String expectedCompletionNodeToString = "<STR_LIT>" ; String completionIdentifier = "<STR_LIT:Y>" ; String expectedUnitDisplayString = "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" ; String expectedReplacedSource = "<STR_LIT>" ; String testName = "<STR_LIT>" ; int selectionStart = str . indexOf ( selectionStartBehind ) + selectionStartBehind . length ( ) ; int selectionEnd = str . indexOf ( selectionEndBehind ) + selectionEndBehind . length ( ) - <NUM_LIT:1> ; this . checkMethodParse ( str . toCharArray ( ) , selectionStart , selectionEnd , expectedCompletionNodeToString , expectedUnitDisplayString , completionIdentifier , expectedReplacedSource , testName ) ; } public void test13 ( ) { String str = "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" ; String selectionStartBehind = "<STR_LIT>" ; String selectionEndBehind = "<STR_LIT>" ; String expectedCompletionNodeToString = "<STR_LIT>" ; String completionIdentifier = "<STR_LIT>" ; String expectedUnitDisplayString = "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" ; String expectedReplacedSource = "<STR_LIT>" ; String testName = "<STR_LIT>" ; int selectionStart = str . indexOf ( selectionStartBehind ) + selectionStartBehind . length ( ) ; int selectionEnd = str . indexOf ( selectionEndBehind ) + selectionEndBehind . length ( ) - <NUM_LIT:1> ; this . checkMethodParse ( str . toCharArray ( ) , selectionStart , selectionEnd , expectedCompletionNodeToString , expectedUnitDisplayString , completionIdentifier , expectedReplacedSource , testName ) ; } public void test14 ( ) { String str = "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" ; String selectionStartBehind = "<STR_LIT>" ; String selectionEndBehind = "<STR_LIT>" ; String expectedCompletionNodeToString = "<STR_LIT>" ; String completionIdentifier = "<STR_LIT>" ; String expectedUnitDisplayString = "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" ; String expectedReplacedSource = "<STR_LIT>" ; String testName = "<STR_LIT>" ; int selectionStart = str . indexOf ( selectionStartBehind ) + selectionStartBehind . length ( ) ; int selectionEnd = str . indexOf ( selectionEndBehind ) + selectionEndBehind . length ( ) - <NUM_LIT:1> ; this . checkMethodParse ( str . toCharArray ( ) , selectionStart , selectionEnd , expectedCompletionNodeToString , expectedUnitDisplayString , completionIdentifier , expectedReplacedSource , testName ) ; } public void test15 ( ) { String str = "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" ; String selectionStartBehind = "<STR_LIT>" ; String selectionEndBehind = "<STR_LIT>" ; String expectedCompletionNodeToString = "<STR_LIT>" ; String completionIdentifier = "<STR_LIT>" ; String expectedUnitDisplayString = "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" ; String expectedReplacedSource = "<STR_LIT>" ; String testName = "<STR_LIT>" ; int selectionStart = str . indexOf ( selectionStartBehind ) + selectionStartBehind . length ( ) ; int selectionEnd = str . indexOf ( selectionEndBehind ) + selectionEndBehind . length ( ) - <NUM_LIT:1> ; this . checkMethodParse ( str . toCharArray ( ) , selectionStart , selectionEnd , expectedCompletionNodeToString , expectedUnitDisplayString , completionIdentifier , expectedReplacedSource , testName ) ; } public void test16 ( ) { String str = "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" ; String selectionStartBehind = "<STR_LIT>" ; String selectionEndBehind = "<STR_LIT>" ; String expectedCompletionNodeToString = "<STR_LIT>" ; String completionIdentifier = "<STR_LIT>" ; String expectedUnitDisplayString = "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" ; String expectedReplacedSource = "<STR_LIT>" ; String testName = "<STR_LIT>" ; int selectionStart = str . indexOf ( selectionStartBehind ) + selectionStartBehind . length ( ) ; int selectionEnd = str . indexOf ( selectionEndBehind ) + selectionEndBehind . length ( ) - <NUM_LIT:1> ; this . checkMethodParse ( str . toCharArray ( ) , selectionStart , selectionEnd , expectedCompletionNodeToString , expectedUnitDisplayString , completionIdentifier , expectedReplacedSource , testName ) ; } public void test17 ( ) { String str = "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" ; String selectionStartBehind = "<STR_LIT>" ; String selectionEndBehind = "<STR_LIT>" ; String expectedCompletionNodeToString = "<STR_LIT>" ; String completionIdentifier = "<STR_LIT>" ; String expectedUnitDisplayString = "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" ; String expectedReplacedSource = "<STR_LIT>" ; String testName = "<STR_LIT>" ; int selectionStart = str . indexOf ( selectionStartBehind ) + selectionStartBehind . length ( ) ; int selectionEnd = str . indexOf ( selectionEndBehind ) + selectionEndBehind . length ( ) - <NUM_LIT:1> ; this . checkMethodParse ( str . toCharArray ( ) , selectionStart , selectionEnd , expectedCompletionNodeToString , expectedUnitDisplayString , completionIdentifier , expectedReplacedSource , testName ) ; } public void test18 ( ) { String str = "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" ; String selectionStartBehind = "<STR_LIT>" ; String selectionEndBehind = "<STR_LIT>" ; String expectedCompletionNodeToString = "<STR_LIT>" + "<STR_LIT>" ; String completionIdentifier = "<STR_LIT>" ; String expectedUnitDisplayString = "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" ; String expectedReplacedSource = "<STR_LIT>" ; String testName = "<STR_LIT>" ; int selectionStart = str . indexOf ( selectionStartBehind ) + selectionStartBehind . length ( ) ; int selectionEnd = str . indexOf ( selectionEndBehind ) + selectionEndBehind . length ( ) - <NUM_LIT:1> ; this . checkMethodParse ( str . toCharArray ( ) , selectionStart , selectionEnd , expectedCompletionNodeToString , expectedUnitDisplayString , completionIdentifier , expectedReplacedSource , testName ) ; } public void test19 ( ) { String str = "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" ; String selectionStartBehind = "<STR_LIT>" ; String selectionEndBehind = "<STR_LIT>" ; String expectedCompletionNodeToString = "<STR_LIT>" ; String completionIdentifier = "<STR_LIT>" ; String expectedUnitDisplayString = "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" ; String expectedReplacedSource = "<STR_LIT>" ; String testName = "<STR_LIT>" ; int selectionStart = str . indexOf ( selectionStartBehind ) + selectionStartBehind . length ( ) ; int selectionEnd = str . indexOf ( selectionEndBehind ) + selectionEndBehind . length ( ) - <NUM_LIT:1> ; this . checkMethodParse ( str . toCharArray ( ) , selectionStart , selectionEnd , expectedCompletionNodeToString , expectedUnitDisplayString , completionIdentifier , expectedReplacedSource , testName ) ; } public void test20 ( ) { String str = "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" ; String selectionStartBehind = "<STR_LIT>" ; String selectionEndBehind = "<STR_LIT>" ; String expectedCompletionNodeToString = "<STR_LIT>" ; String completionIdentifier = "<STR_LIT:y>" ; String expectedUnitDisplayString = "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" ; String expectedReplacedSource = "<STR_LIT>" ; String testName = "<STR_LIT>" ; int selectionStart = str . indexOf ( selectionStartBehind ) + selectionStartBehind . length ( ) ; int selectionEnd = str . indexOf ( selectionEndBehind ) + selectionEndBehind . length ( ) - <NUM_LIT:1> ; this . checkDietParse ( str . toCharArray ( ) , selectionStart , selectionEnd , expectedCompletionNodeToString , expectedUnitDisplayString , completionIdentifier , expectedReplacedSource , testName ) ; } public void test21 ( ) { String str = "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" ; String selectionStartBehind = "<STR_LIT>" ; String selectionEndBehind = "<STR_LIT>" ; String expectedCompletionNodeToString = "<STR_LIT>" ; String completionIdentifier = "<STR_LIT>" ; String expectedUnitDisplayString = "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" ; String expectedReplacedSource = "<STR_LIT>" ; String testName = "<STR_LIT>" ; int selectionStart = str . indexOf ( selectionStartBehind ) + selectionStartBehind . length ( ) ; int selectionEnd = str . indexOf ( selectionEndBehind ) + selectionEndBehind . length ( ) - <NUM_LIT:1> ; this . checkDietParse ( str . toCharArray ( ) , selectionStart , selectionEnd , expectedCompletionNodeToString , expectedUnitDisplayString , completionIdentifier , expectedReplacedSource , testName ) ; } public void test22 ( ) { String str = "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" ; String selectionStartBehind = "<STR_LIT>" ; String selectionEndBehind = "<STR_LIT>" ; String expectedCompletionNodeToString = "<STR_LIT>" ; String completionIdentifier = "<STR_LIT>" ; String expectedUnitDisplayString = "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" ; String expectedReplacedSource = "<STR_LIT>" ; String testName = "<STR_LIT>" ; int selectionStart = str . indexOf ( selectionStartBehind ) + selectionStartBehind . length ( ) ; int selectionEnd = str . indexOf ( selectionEndBehind ) + selectionEndBehind . length ( ) - <NUM_LIT:1> ; this . checkDietParse ( str . toCharArray ( ) , selectionStart , selectionEnd , expectedCompletionNodeToString , expectedUnitDisplayString , completionIdentifier , expectedReplacedSource , testName ) ; } public void test23 ( ) { String str = "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" ; String selectionStartBehind = "<STR_LIT>" ; String selectionEndBehind = "<STR_LIT>" ; String expectedCompletionNodeToString = "<STR_LIT>" ; String completionIdentifier = "<STR_LIT:String>" ; String expectedUnitDisplayString = "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" ; String expectedReplacedSource = "<STR_LIT:String>" ; String testName = "<STR_LIT>" ; int selectionStart = str . indexOf ( selectionStartBehind ) + selectionStartBehind . length ( ) ; int selectionEnd = str . indexOf ( selectionEndBehind ) + selectionEndBehind . length ( ) - <NUM_LIT:1> ; this . checkMethodParse ( str . toCharArray ( ) , selectionStart , selectionEnd , expectedCompletionNodeToString , expectedUnitDisplayString , completionIdentifier , expectedReplacedSource , testName ) ; } public void test24 ( ) { String str = "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" ; String selectionStartBehind = "<STR_LIT>" ; String selectionEndBehind = "<STR_LIT>" ; String expectedCompletionNodeToString = "<STR_LIT>" ; String completionIdentifier = "<STR_LIT>" ; String expectedUnitDisplayString = "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" ; String expectedReplacedSource = "<STR_LIT>" ; String testName = "<STR_LIT>" ; int selectionStart = str . indexOf ( selectionStartBehind ) + selectionStartBehind . length ( ) ; int selectionEnd = str . indexOf ( selectionEndBehind ) + selectionEndBehind . length ( ) - <NUM_LIT:1> ; this . checkMethodParse ( str . toCharArray ( ) , selectionStart , selectionEnd , expectedCompletionNodeToString , expectedUnitDisplayString , completionIdentifier , expectedReplacedSource , testName ) ; } public void test25 ( ) { String str = "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" ; String selectionStartBehind = "<STR_LIT>" ; String selectionEndBehind = "<STR_LIT>" ; String expectedCompletionNodeToString = "<STR_LIT>" ; String completionIdentifier = "<STR_LIT>" ; String expectedUnitDisplayString = "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" ; String expectedReplacedSource = "<STR_LIT>" ; String testName = "<STR_LIT>" ; int selectionStart = str . indexOf ( selectionStartBehind ) + selectionStartBehind . length ( ) ; int selectionEnd = str . indexOf ( selectionEndBehind ) + selectionEndBehind . length ( ) - <NUM_LIT:1> ; this . checkMethodParse ( str . toCharArray ( ) , selectionStart , selectionEnd , expectedCompletionNodeToString , expectedUnitDisplayString , completionIdentifier , expectedReplacedSource , testName ) ; } public void test26 ( ) { String str = "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" ; String selectionStartBehind = "<STR_LIT>" ; String selectionEndBehind = "<STR_LIT>" ; String expectedCompletionNodeToString = "<STR_LIT>" ; String completionIdentifier = "<STR_LIT>" ; String expectedUnitDisplayString = "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" ; String expectedReplacedSource = "<STR_LIT>" ; String testName = "<STR_LIT>" ; int selectionStart = str . indexOf ( selectionStartBehind ) + selectionStartBehind . length ( ) ; int selectionEnd = str . indexOf ( selectionEndBehind ) + selectionEndBehind . length ( ) - <NUM_LIT:1> ; this . checkMethodParse ( str . toCharArray ( ) , selectionStart , selectionEnd , expectedCompletionNodeToString , expectedUnitDisplayString , completionIdentifier , expectedReplacedSource , testName ) ; } public void test27 ( ) { String str = "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" ; String selectionStartBehind = "<STR_LIT>" ; String selectionEndBehind = "<STR_LIT>" ; String expectedCompletionNodeToString = "<STR_LIT>" ; String completionIdentifier = "<STR_LIT>" ; String expectedUnitDisplayString = "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" ; String expectedReplacedSource = "<STR_LIT>" ; String testName = "<STR_LIT>" ; int selectionStart = str . indexOf ( selectionStartBehind ) + selectionStartBehind . length ( ) ; int selectionEnd = str . indexOf ( selectionEndBehind ) + selectionEndBehind . length ( ) - <NUM_LIT:1> ; this . checkMethodParse ( str . toCharArray ( ) , selectionStart , selectionEnd , expectedCompletionNodeToString , expectedUnitDisplayString , completionIdentifier , expectedReplacedSource , testName ) ; } public void test28 ( ) { String str = "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" ; String selectionStartBehind = "<STR_LIT>" ; String selectionEndBehind = "<STR_LIT>" ; String expectedCompletionNodeToString = "<STR_LIT>" ; String completionIdentifier = "<STR_LIT>" ; String expectedUnitDisplayString = "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" ; String expectedReplacedSource = "<STR_LIT>" ; String testName = "<STR_LIT>" ; int selectionStart = str . indexOf ( selectionStartBehind ) + selectionStartBehind . length ( ) ; int selectionEnd = str . indexOf ( selectionEndBehind ) + selectionEndBehind . length ( ) - <NUM_LIT:1> ; this . checkMethodParse ( str . toCharArray ( ) , selectionStart , selectionEnd , expectedCompletionNodeToString , expectedUnitDisplayString , completionIdentifier , expectedReplacedSource , testName ) ; } public void test29 ( ) { String str = "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" ; String selectionStartBehind = "<STR_LIT>" ; String selectionEndBehind = "<STR_LIT>" ; String expectedCompletionNodeToString = "<STR_LIT>" ; String completionIdentifier = "<STR_LIT>" ; String expectedUnitDisplayString = "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" ; String expectedReplacedSource = "<STR_LIT>" ; String testName = "<STR_LIT>" ; int selectionStart = str . indexOf ( selectionStartBehind ) + selectionStartBehind . length ( ) ; int selectionEnd = str . indexOf ( selectionEndBehind ) + selectionEndBehind . length ( ) - <NUM_LIT:1> ; this . checkMethodParse ( str . toCharArray ( ) , selectionStart , selectionEnd , expectedCompletionNodeToString , expectedUnitDisplayString , completionIdentifier , expectedReplacedSource , testName ) ; } public void test30 ( ) { String str = "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" ; String selectionStartBehind = "<STR_LIT>" ; String selectionEndBehind = "<STR_LIT>" ; String expectedCompletionNodeToString = "<STR_LIT>" ; String completionIdentifier = "<STR_LIT>" ; String expectedUnitDisplayString = "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" ; String expectedReplacedSource = "<STR_LIT>" ; String testName = "<STR_LIT>" ; int selectionStart = str . indexOf ( selectionStartBehind ) + selectionStartBehind . length ( ) ; int selectionEnd = str . indexOf ( selectionEndBehind ) + selectionEndBehind . length ( ) - <NUM_LIT:1> ; this . checkMethodParse ( str . toCharArray ( ) , selectionStart , selectionEnd , expectedCompletionNodeToString , expectedUnitDisplayString , completionIdentifier , expectedReplacedSource , testName ) ; } public void test31 ( ) { String str = "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" ; String selectionStartBehind = "<STR_LIT>" ; String selectionEndBehind = "<STR_LIT:Y>" ; String expectedCompletionNodeToString = "<STR_LIT>" ; String completionIdentifier = "<STR_LIT:Y>" ; String expectedUnitDisplayString = "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" ; String expectedReplacedSource = "<STR_LIT:Y>" ; String testName = "<STR_LIT>" ; int selectionStart = str . indexOf ( selectionStartBehind ) + selectionStartBehind . length ( ) ; int selectionEnd = str . indexOf ( selectionEndBehind ) + selectionEndBehind . length ( ) - <NUM_LIT:1> ; this . checkDietParse ( str . toCharArray ( ) , selectionStart , selectionEnd , expectedCompletionNodeToString , expectedUnitDisplayString , completionIdentifier , expectedReplacedSource , testName ) ; } public void test32 ( ) { String str = "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" ; String selectionStartBehind = "<STR_LIT>" ; String selectionEndBehind = "<STR_LIT>" ; String expectedCompletionNodeToString = "<STR_LIT>" ; String completionIdentifier = "<STR_LIT>" ; String expectedUnitDisplayString = "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" ; String expectedReplacedSource = "<STR_LIT>" ; String testName = "<STR_LIT>" ; int selectionStart = str . indexOf ( selectionStartBehind ) + selectionStartBehind . length ( ) ; int selectionEnd = str . indexOf ( selectionEndBehind ) + selectionEndBehind . length ( ) - <NUM_LIT:1> ; this . checkMethodParse ( str . toCharArray ( ) , selectionStart , selectionEnd , expectedCompletionNodeToString , expectedUnitDisplayString , completionIdentifier , expectedReplacedSource , testName ) ; } public void test33 ( ) { String str = "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" ; String selectionStartBehind = "<STR_LIT>" ; String selectionEndBehind = "<STR_LIT>" ; String expectedCompletionNodeToString = "<STR_LIT>" ; String completionIdentifier = "<STR_LIT>" ; String expectedUnitDisplayString = "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" ; String expectedReplacedSource = "<STR_LIT>" ; String testName = "<STR_LIT>" ; int selectionStart = str . indexOf ( selectionStartBehind ) + selectionStartBehind . length ( ) ; int selectionEnd = str . indexOf ( selectionEndBehind ) + selectionEndBehind . length ( ) - <NUM_LIT:1> ; this . checkDietParse ( str . toCharArray ( ) , selectionStart , selectionEnd , expectedCompletionNodeToString , expectedUnitDisplayString , completionIdentifier , expectedReplacedSource , testName ) ; } public void test34 ( ) { String str = "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" ; String selectionStartBehind = "<STR_LIT>" ; String selectionEndBehind = "<STR_LIT>" ; String expectedCompletionNodeToString = NONE ; String completionIdentifier = NONE ; String expectedUnitDisplayString = "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" ; String expectedReplacedSource = NONE ; String testName = "<STR_LIT>" ; int selectionStart = str . indexOf ( selectionStartBehind ) + selectionStartBehind . length ( ) ; int selectionEnd = str . indexOf ( selectionEndBehind ) + selectionEndBehind . length ( ) - <NUM_LIT:1> ; this . checkMethodParse ( str . toCharArray ( ) , selectionStart , selectionEnd , expectedCompletionNodeToString , expectedUnitDisplayString , completionIdentifier , expectedReplacedSource , testName ) ; } public void test35 ( ) { String str = "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" ; String selectionStartBehind = "<STR_LIT>" ; String selectionEndBehind = "<STR_LIT>" ; String expectedCompletionNodeToString = "<STR_LIT>" ; String completionIdentifier = "<STR_LIT>" ; String expectedUnitDisplayString = "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" ; String expectedReplacedSource = "<STR_LIT>" ; String testName = "<STR_LIT>" ; int selectionStart = str . indexOf ( selectionStartBehind ) + selectionStartBehind . length ( ) ; int selectionEnd = str . indexOf ( selectionEndBehind ) + selectionEndBehind . length ( ) - <NUM_LIT:1> ; this . checkMethodParse ( str . toCharArray ( ) , selectionStart , selectionEnd , expectedCompletionNodeToString , expectedUnitDisplayString , completionIdentifier , expectedReplacedSource , testName ) ; } public void test36 ( ) { String str = "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" ; String selectionStartBehind = "<STR_LIT>" ; String selectionEndBehind = "<STR_LIT>" ; String expectedCompletionNodeToString = "<STR_LIT>" ; String completionIdentifier = "<STR_LIT>" ; String expectedUnitDisplayString = "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" ; String expectedReplacedSource = "<STR_LIT>" ; String testName = "<STR_LIT>" ; int selectionStart = str . indexOf ( selectionStartBehind ) + selectionStartBehind . length ( ) ; int selectionEnd = str . indexOf ( selectionEndBehind ) + selectionEndBehind . length ( ) - <NUM_LIT:1> ; this . checkMethodParse ( str . toCharArray ( ) , selectionStart , selectionEnd , expectedCompletionNodeToString , expectedUnitDisplayString , completionIdentifier , expectedReplacedSource , testName ) ; } public void test37 ( ) { String str = "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" ; String selectionStartBehind = "<STR_LIT>" ; String selectionEndBehind = "<STR_LIT>" ; String expectedCompletionNodeToString = "<STR_LIT>" ; String completionIdentifier = "<STR_LIT>" ; String expectedUnitDisplayString = "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" ; String expectedReplacedSource = "<STR_LIT>" ; String testName = "<STR_LIT>" ; int selectionStart = str . indexOf ( selectionStartBehind ) + selectionStartBehind . length ( ) ; int selectionEnd = str . indexOf ( selectionEndBehind ) + selectionEndBehind . length ( ) - <NUM_LIT:1> ; this . checkMethodParse ( str . toCharArray ( ) , selectionStart , selectionEnd , expectedCompletionNodeToString , expectedUnitDisplayString , completionIdentifier , expectedReplacedSource , testName ) ; } public void test38 ( ) { String str = "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" ; String selectionStartBehind = "<STR_LIT>" ; String selectionEndBehind = "<STR_LIT>" ; String expectedCompletionNodeToString = "<STR_LIT>" ; String completionIdentifier = "<STR_LIT>" ; String expectedUnitDisplayString = "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" ; String expectedReplacedSource = "<STR_LIT>" ; String testName = "<STR_LIT>" ; int selectionStart = str . indexOf ( selectionStartBehind ) + selectionStartBehind . length ( ) ; int selectionEnd = str . indexOf ( selectionEndBehind ) + selectionEndBehind . length ( ) - <NUM_LIT:1> ; this . checkMethodParse ( str . toCharArray ( ) , selectionStart , selectionEnd , expectedCompletionNodeToString , expectedUnitDisplayString , completionIdentifier , expectedReplacedSource , testName ) ; } public void test39 ( ) { String str = "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" ; String selectionStartBehind = "<STR_LIT>" ; String selectionEndBehind = "<STR_LIT>" ; String expectedCompletionNodeToString = "<STR_LIT>" ; String completionIdentifier = "<STR_LIT>" ; String expectedUnitDisplayString = "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" ; String expectedReplacedSource = "<STR_LIT>" ; String testName = "<STR_LIT>" ; int selectionStart = str . indexOf ( selectionStartBehind ) + selectionStartBehind . length ( ) ; int selectionEnd = str . indexOf ( selectionEndBehind ) + selectionEndBehind . length ( ) - <NUM_LIT:1> ; this . checkDietParse ( str . toCharArray ( ) , selectionStart , selectionEnd , expectedCompletionNodeToString , expectedUnitDisplayString , completionIdentifier , expectedReplacedSource , testName ) ; } public void test40 ( ) { String str = "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" ; String selection = "<STR_LIT>" ; String expectedCompletionNodeToString = "<STR_LIT>" ; String completionIdentifier = "<STR_LIT>" ; String expectedUnitDisplayString = "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" ; String expectedReplacedSource = "<STR_LIT>" ; String testName = "<STR_LIT>" ; int selectionStart = str . indexOf ( selection ) ; int selectionEnd = str . indexOf ( selection ) + selection . length ( ) - <NUM_LIT:1> ; this . checkDietParse ( str . toCharArray ( ) , selectionStart , selectionEnd , expectedCompletionNodeToString , expectedUnitDisplayString , completionIdentifier , expectedReplacedSource , testName ) ; } public void test41 ( ) { String str = "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" ; String selection = "<STR_LIT>" ; String expectedCompletionNodeToString = "<STR_LIT>" ; String completionIdentifier = "<STR_LIT>" ; String expectedUnitDisplayString = "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" ; String expectedReplacedSource = "<STR_LIT>" ; String testName = "<STR_LIT>" ; int selectionStart = str . indexOf ( selection ) ; int selectionEnd = str . indexOf ( selection ) + selection . length ( ) - <NUM_LIT:1> ; this . checkMethodParse ( str . toCharArray ( ) , selectionStart , selectionEnd , expectedCompletionNodeToString , expectedUnitDisplayString , completionIdentifier , expectedReplacedSource , testName ) ; } public void test42 ( ) { String str = "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" ; String selection = "<STR_LIT>" ; String expectedCompletionNodeToString = "<STR_LIT>" ; String completionIdentifier = "<STR_LIT>" ; String expectedUnitDisplayString = "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" ; String expectedReplacedSource = "<STR_LIT>" ; String testName = "<STR_LIT>" ; int selectionStart = str . indexOf ( selection ) ; int selectionEnd = str . indexOf ( selection ) + selection . length ( ) - <NUM_LIT:1> ; this . checkDietParse ( str . toCharArray ( ) , selectionStart , selectionEnd , expectedCompletionNodeToString , expectedUnitDisplayString , completionIdentifier , expectedReplacedSource , testName ) ; } public void test43 ( ) { String str = "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" ; String selection = "<STR_LIT>" ; String expectedCompletionNodeToString = "<STR_LIT>" ; String completionIdentifier = "<STR_LIT>" ; String expectedUnitDisplayString = "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" ; String expectedReplacedSource = "<STR_LIT>" ; String testName = "<STR_LIT>" ; int selectionStart = str . indexOf ( selection ) ; int selectionEnd = str . indexOf ( selection ) + selection . length ( ) - <NUM_LIT:1> ; this . checkMethodParse ( str . toCharArray ( ) , selectionStart , selectionEnd , expectedCompletionNodeToString , expectedUnitDisplayString , completionIdentifier , expectedReplacedSource , testName ) ; } public void test44 ( ) { String str = "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" ; String selection = "<STR_LIT>" ; String expectedCompletionNodeToString = "<STR_LIT>" ; String completionIdentifier = "<STR_LIT>" ; String expectedUnitDisplayString = "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" ; String expectedReplacedSource = "<STR_LIT>" ; String testName = "<STR_LIT>" ; int selectionStart = str . indexOf ( selection ) ; int selectionEnd = str . indexOf ( selection ) + selection . length ( ) - <NUM_LIT:1> ; this . checkDietParse ( str . toCharArray ( ) , selectionStart , selectionEnd , expectedCompletionNodeToString , expectedUnitDisplayString , completionIdentifier , expectedReplacedSource , testName ) ; } public void test45 ( ) { String str = "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" ; String selection = "<STR_LIT>" ; String expectedCompletionNodeToString = "<STR_LIT>" ; String completionIdentifier = "<STR_LIT>" ; String expectedUnitDisplayString = "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" ; String expectedReplacedSource = "<STR_LIT>" ; String testName = "<STR_LIT>" ; int selectionStart = str . indexOf ( selection ) ; int selectionEnd = str . indexOf ( selection ) + selection . length ( ) - <NUM_LIT:1> ; this . checkMethodParse ( str . toCharArray ( ) , selectionStart , selectionEnd , expectedCompletionNodeToString , expectedUnitDisplayString , completionIdentifier , expectedReplacedSource , testName ) ; } public void test46 ( ) { String str = "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" ; String selection = "<STR_LIT>" ; String expectedCompletionNodeToString = "<STR_LIT>" ; String completionIdentifier = "<STR_LIT>" ; String expectedUnitDisplayString = "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" ; String expectedReplacedSource = "<STR_LIT>" ; String testName = "<STR_LIT>" ; int selectionStart = str . indexOf ( selection ) ; int selectionEnd = str . indexOf ( selection ) + selection . length ( ) - <NUM_LIT:1> ; this . checkMethodParse ( str . toCharArray ( ) , selectionStart , selectionEnd , expectedCompletionNodeToString , expectedUnitDisplayString , completionIdentifier , expectedReplacedSource , testName ) ; } public void test47 ( ) { String str = "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" ; String selection = "<STR_LIT>" ; String expectedCompletionNodeToString = "<STR_LIT>" ; String completionIdentifier = "<STR_LIT>" ; String expectedUnitDisplayString = "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" ; String expectedReplacedSource = "<STR_LIT>" ; String testName = "<STR_LIT>" ; int selectionStart = str . indexOf ( selection ) ; int selectionEnd = str . indexOf ( selection ) + selection . length ( ) - <NUM_LIT:1> ; this . checkMethodParse ( str . toCharArray ( ) , selectionStart , selectionEnd , expectedCompletionNodeToString , expectedUnitDisplayString , completionIdentifier , expectedReplacedSource , testName ) ; } public void test48 ( ) { String str = "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" ; String selection = "<STR_LIT>" ; String expectedCompletionNodeToString = "<STR_LIT>" ; String completionIdentifier = "<STR_LIT>" ; String expectedUnitDisplayString = "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" ; String expectedReplacedSource = "<STR_LIT>" ; String testName = "<STR_LIT>" ; int selectionStart = str . indexOf ( selection ) ; int selectionEnd = str . indexOf ( selection ) + selection . length ( ) - <NUM_LIT:1> ; this . checkDietParse ( str . toCharArray ( ) , selectionStart , selectionEnd , expectedCompletionNodeToString , expectedUnitDisplayString , completionIdentifier , expectedReplacedSource , testName ) ; } public void test49 ( ) { String str = "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" ; String selection = "<STR_LIT:X>" ; String expectedCompletionNodeToString = "<STR_LIT>" + "<STR_LIT>" ; String completionIdentifier = "<STR_LIT:X>" ; String expectedUnitDisplayString = "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" ; String expectedReplacedSource = "<STR_LIT>" ; String testName = "<STR_LIT>" ; int selectionStart = str . lastIndexOf ( selection ) ; int selectionEnd = str . lastIndexOf ( selection ) + selection . length ( ) - <NUM_LIT:1> ; this . checkDietParse ( str . toCharArray ( ) , selectionStart , selectionEnd , expectedCompletionNodeToString , expectedUnitDisplayString , completionIdentifier , expectedReplacedSource , testName ) ; } public void test50 ( ) { String str = "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" ; String selection = "<STR_LIT>" ; String expectedCompletionNodeToString = "<STR_LIT>" ; String completionIdentifier = "<STR_LIT>" ; String expectedUnitDisplayString = "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" ; String expectedReplacedSource = "<STR_LIT>" ; String testName = "<STR_LIT>" ; int selectionStart = str . indexOf ( selection ) ; int selectionEnd = str . indexOf ( selection ) + selection . length ( ) - <NUM_LIT:1> ; this . checkMethodParse ( str . toCharArray ( ) , selectionStart , selectionEnd , expectedCompletionNodeToString , expectedUnitDisplayString , completionIdentifier , expectedReplacedSource , testName ) ; } public void test51 ( ) { String str = "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" ; String selection = "<STR_LIT>" ; String expectedCompletionNodeToString = "<STR_LIT>" ; String completionIdentifier = "<STR_LIT>" ; String expectedUnitDisplayString = "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" ; String expectedReplacedSource = "<STR_LIT>" ; String testName = "<STR_LIT>" ; int selectionStart = str . indexOf ( selection ) ; int selectionEnd = str . indexOf ( selection ) + selection . length ( ) - <NUM_LIT:1> ; this . checkMethodParse ( str . toCharArray ( ) , selectionStart , selectionEnd , expectedCompletionNodeToString , expectedUnitDisplayString , completionIdentifier , expectedReplacedSource , testName ) ; } public void test52 ( ) { String str = "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" ; String selection = "<STR_LIT>" ; String expectedCompletionNodeToString = "<STR_LIT>" ; String completionIdentifier = "<STR_LIT>" ; String expectedUnitDisplayString = "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" ; String expectedReplacedSource = "<STR_LIT>" ; String testName = "<STR_LIT>" ; int selectionStart = str . indexOf ( selection ) ; int selectionEnd = str . indexOf ( selection ) + selection . length ( ) - <NUM_LIT:1> ; this . checkMethodParse ( str . toCharArray ( ) , selectionStart , selectionEnd , expectedCompletionNodeToString , expectedUnitDisplayString , completionIdentifier , expectedReplacedSource , testName ) ; } public void test53 ( ) { String str = "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" ; String selection = "<STR_LIT>" ; String expectedCompletionNodeToString = "<STR_LIT>" ; String completionIdentifier = "<STR_LIT>" ; String expectedUnitDisplayString = "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" ; String expectedReplacedSource = "<STR_LIT>" ; String testName = "<STR_LIT>" ; int selectionStart = str . indexOf ( selection ) ; int selectionEnd = str . indexOf ( selection ) + selection . length ( ) - <NUM_LIT:1> ; this . checkMethodParse ( str . toCharArray ( ) , selectionStart , selectionEnd , expectedCompletionNodeToString , expectedUnitDisplayString , completionIdentifier , expectedReplacedSource , testName ) ; } public void test54 ( ) { String str = "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" ; String selection = "<STR_LIT:Test>" ; String expectedCompletionNodeToString = "<STR_LIT>" ; String completionIdentifier = "<STR_LIT:Test>" ; String expectedUnitDisplayString = "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" ; String expectedReplacedSource = "<STR_LIT:Test>" ; String testName = "<STR_LIT>" ; int selectionStart = str . indexOf ( selection ) ; int selectionEnd = str . indexOf ( selection ) + selection . length ( ) - <NUM_LIT:1> ; this . checkMethodParse ( str . toCharArray ( ) , selectionStart , selectionEnd , expectedCompletionNodeToString , expectedUnitDisplayString , completionIdentifier , expectedReplacedSource , testName ) ; } public void test55 ( ) { String str = "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" ; String selection = "<STR_LIT>" ; String expectedCompletionNodeToString = "<STR_LIT>" ; String completionIdentifier = "<STR_LIT>" ; String expectedUnitDisplayString = "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" ; String expectedReplacedSource = "<STR_LIT>" ; String testName = "<STR_LIT>" ; int selectionStart = str . indexOf ( selection ) ; int selectionEnd = str . indexOf ( selection ) + selection . length ( ) - <NUM_LIT:1> ; this . checkMethodParse ( str . toCharArray ( ) , selectionStart , selectionEnd , expectedCompletionNodeToString , expectedUnitDisplayString , completionIdentifier , expectedReplacedSource , testName ) ; } } </s>
|
<s> package org . eclipse . jdt . core . tests . compiler . parser ; import org . eclipse . jdt . core . compiler . CategorizedProblem ; import org . eclipse . jdt . internal . compiler . ISourceElementRequestor ; import org . eclipse . jdt . internal . compiler . ast . Expression ; import org . eclipse . jdt . internal . compiler . ast . ImportReference ; public class TestSourceElementRequestor implements ISourceElementRequestor { public TestSourceElementRequestor ( ) { super ( ) ; } public void acceptAnnotationTypeReference ( char [ ] [ ] typeName , int sourceStart , int sourceEnd ) { } public void acceptAnnotationTypeReference ( char [ ] typeName , int sourcePosition ) { } public void acceptConstructorReference ( char [ ] typeName , int argCount , int sourcePosition ) { } public void acceptFieldReference ( char [ ] fieldName , int sourcePosition ) { } public void acceptImport ( int declarationStart , int declarationEnd , int nameStart , int nameEnd , char [ ] [ ] tokens , boolean onDemand , int modifiers ) { } public void acceptImport ( int declarationStart , int declarationEnd , char [ ] [ ] tokens , boolean onDemand , int modifiers ) { } public void acceptLineSeparatorPositions ( int [ ] positions ) { } public void acceptMethodReference ( char [ ] methodName , int argCount , int sourcePosition ) { } public void acceptPackage ( ImportReference importReference ) { } public void acceptProblem ( CategorizedProblem problem ) { } public void acceptTypeReference ( char [ ] [ ] typeName , int sourceStart , int sourceEnd ) { } public void acceptTypeReference ( char [ ] typeName , int sourcePosition ) { } public void acceptUnknownReference ( char [ ] [ ] name , int sourceStart , int sourceEnd ) { } public void acceptUnknownReference ( char [ ] name , int sourcePosition ) { } public void enterCompilationUnit ( ) { } public void enterConstructor ( MethodInfo methodInfo ) { } public void enterField ( FieldInfo fieldInfo ) { } public void enterMethod ( MethodInfo methodInfo ) { } public void enterType ( TypeInfo typeInfo ) { } public void exitCompilationUnit ( int declarationEnd ) { } public void exitConstructor ( int declarationEnd ) { } public void exitField ( int initializationStart , int declarationEnd , int declarationSourceEnd ) { } public void exitMethod ( int declarationEnd , Expression defaultValue ) { } public void enterInitializer ( int sourceStart , int sourceEnd ) { } public void exitInitializer ( int sourceEnd ) { } public void exitType ( int declarationEnd ) { } } </s>
|
<s> package org . eclipse . jdt . core . tests . compiler . parser ; import junit . framework . Test ; public class ExplicitConstructorInvocationCompletionTest extends AbstractCompletionTest { public ExplicitConstructorInvocationCompletionTest ( String testName ) { super ( testName ) ; } public static Test suite ( ) { return buildAllCompliancesTestSuite ( ExplicitConstructorInvocationCompletionTest . class ) ; } public void testPrimarySuper ( ) { this . runTestCheckMethodParse ( "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" , "<STR_LIT>" , "<STR_LIT>" , "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" , "<STR_LIT>" , "<STR_LIT>" , "<STR_LIT>" ) ; } public void testPrimaryThis ( ) { this . runTestCheckMethodParse ( "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" , "<STR_LIT>" , "<STR_LIT>" , "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" , "<STR_LIT>" , "<STR_LIT>" , "<STR_LIT>" ) ; } public void testSuper ( ) { this . runTestCheckMethodParse ( "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" , "<STR_LIT>" , "<STR_LIT>" , "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" , "<STR_LIT>" , "<STR_LIT>" , "<STR_LIT>" ) ; } public void testThis ( ) { this . runTestCheckMethodParse ( "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" , "<STR_LIT>" , "<STR_LIT>" , "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" , "<STR_LIT>" , "<STR_LIT>" , "<STR_LIT>" ) ; } public void testWrapperNameSuper ( ) { this . runTestCheckMethodParse ( "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" , "<STR_LIT>" , "<STR_LIT>" , "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" , "<STR_LIT:x>" , "<STR_LIT>" , "<STR_LIT>" ) ; } public void testWrapperNameThis ( ) { this . runTestCheckMethodParse ( "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" , "<STR_LIT>" , "<STR_LIT>" , "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" , "<STR_LIT:x>" , "<STR_LIT>" , "<STR_LIT>" ) ; } public void testWrapperPrimarySuper ( ) { this . runTestCheckMethodParse ( "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" , "<STR_LIT>" , "<STR_LIT>" , "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" , "<STR_LIT:x>" , "<STR_LIT>" , "<STR_LIT>" ) ; } public void testWrapperSuper ( ) { this . runTestCheckMethodParse ( "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" , "<STR_LIT:x>" , "<STR_LIT>" , "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" , "<STR_LIT:x>" , "<STR_LIT>" , "<STR_LIT>" ) ; } public void testWrapperThis ( ) { this . runTestCheckMethodParse ( "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" , "<STR_LIT:x>" , "<STR_LIT>" , "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" , "<STR_LIT:x>" , "<STR_LIT>" , "<STR_LIT>" ) ; } } </s>
|
<s> package org . eclipse . jdt . core . tests . compiler . parser ; import java . util . Locale ; import org . eclipse . jdt . core . compiler . CategorizedProblem ; import org . eclipse . jdt . core . tests . util . AbstractCompilerTest ; import org . eclipse . jdt . core . tests . util . Util ; import org . eclipse . jdt . internal . compiler . CompilationResult ; import org . eclipse . jdt . internal . compiler . DefaultErrorHandlingPolicies ; import org . eclipse . jdt . internal . compiler . batch . CompilationUnit ; import org . eclipse . jdt . internal . compiler . classfmt . ClassFileConstants ; import org . eclipse . jdt . internal . compiler . env . ICompilationUnit ; import org . eclipse . jdt . internal . compiler . impl . CompilerOptions ; import org . eclipse . jdt . internal . compiler . parser . Parser ; import org . eclipse . jdt . internal . compiler . problem . DefaultProblem ; import org . eclipse . jdt . internal . compiler . problem . DefaultProblemFactory ; import org . eclipse . jdt . internal . compiler . problem . ProblemReporter ; public class SyntaxErrorTest extends AbstractCompilerTest { public static boolean optimizeStringLiterals = false ; public static long sourceLevel = ClassFileConstants . JDK1_3 ; public SyntaxErrorTest ( String testName ) { super ( testName ) ; } public void checkParse ( char [ ] source , String expectedSyntaxErrorDiagnosis , String testName ) { Parser parser = new Parser ( new ProblemReporter ( DefaultErrorHandlingPolicies . proceedWithAllProblems ( ) , new CompilerOptions ( getCompilerOptions ( ) ) , new DefaultProblemFactory ( Locale . getDefault ( ) ) ) , optimizeStringLiterals ) ; ICompilationUnit sourceUnit = new CompilationUnit ( source , testName , null ) ; CompilationResult compilationResult = new CompilationResult ( sourceUnit , <NUM_LIT:0> , <NUM_LIT:0> , <NUM_LIT:0> ) ; parser . parse ( sourceUnit , compilationResult ) ; StringBuffer buffer = new StringBuffer ( <NUM_LIT:100> ) ; if ( compilationResult . hasProblems ( ) || compilationResult . hasTasks ( ) ) { CategorizedProblem [ ] problems = compilationResult . getAllProblems ( ) ; int count = problems . length ; int problemCount = <NUM_LIT:0> ; char [ ] unitSource = compilationResult . compilationUnit . getContents ( ) ; for ( int i = <NUM_LIT:0> ; i < count ; i ++ ) { if ( problems [ i ] != null ) { if ( problemCount == <NUM_LIT:0> ) buffer . append ( "<STR_LIT>" ) ; problemCount ++ ; buffer . append ( problemCount + ( problems [ i ] . isError ( ) ? "<STR_LIT>" : "<STR_LIT>" ) ) ; buffer . append ( "<STR_LIT>" + new String ( problems [ i ] . getOriginatingFileName ( ) ) . replace ( '<CHAR_LIT:/>' , '<STR_LIT:\\>' ) ) ; try { buffer . append ( ( ( DefaultProblem ) problems [ i ] ) . errorReportSource ( unitSource ) ) ; buffer . append ( "<STR_LIT:n>" ) ; buffer . append ( problems [ i ] . getMessage ( ) ) ; buffer . append ( "<STR_LIT:n>" ) ; } catch ( Exception e ) { } buffer . append ( "<STR_LIT>" ) ; } } } String computedSyntaxErrorDiagnosis = buffer . toString ( ) ; assertEquals ( "<STR_LIT>" + testName , Util . convertToIndependantLineDelimiter ( expectedSyntaxErrorDiagnosis ) , Util . convertToIndependantLineDelimiter ( computedSyntaxErrorDiagnosis ) ) ; } public void test01 ( ) { String s = "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" ; String expectedSyntaxErrorDiagnosis = "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" ; String testName = "<STR_LIT>" ; checkParse ( s . toCharArray ( ) , expectedSyntaxErrorDiagnosis , testName ) ; } public void test02 ( ) { String s = "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" ; String expectedSyntaxErrorDiagnosis = "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" ; String testName = "<STR_LIT>" ; checkParse ( s . toCharArray ( ) , expectedSyntaxErrorDiagnosis , testName ) ; } public void test03 ( ) { String s = "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" ; String expectedSyntaxErrorDiagnosis = "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" ; String testName = "<STR_LIT>" ; checkParse ( s . toCharArray ( ) , expectedSyntaxErrorDiagnosis , testName ) ; } public void test04 ( ) { String s = "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" ; String expectedSyntaxErrorDiagnosis = "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" ; String testName = "<STR_LIT>" ; checkParse ( s . toCharArray ( ) , expectedSyntaxErrorDiagnosis , testName ) ; } public void test05 ( ) { String s = "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" ; String expectedSyntaxErrorDiagnosis = "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" ; String testName = "<STR_LIT>" ; checkParse ( s . toCharArray ( ) , expectedSyntaxErrorDiagnosis , testName ) ; } public void test06 ( ) { String s = "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" ; String expectedSyntaxErrorDiagnosis = "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" ; String testName = "<STR_LIT>" ; checkParse ( s . toCharArray ( ) , expectedSyntaxErrorDiagnosis , testName ) ; } public void test07 ( ) { String s = "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" ; String expectedSyntaxErrorDiagnosis = "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" ; String testName = "<STR_LIT>" ; checkParse ( s . toCharArray ( ) , expectedSyntaxErrorDiagnosis , testName ) ; } public void test08 ( ) { String s = "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" ; String expectedSyntaxErrorDiagnosis = "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" ; String testName = "<STR_LIT>" ; checkParse ( s . toCharArray ( ) , expectedSyntaxErrorDiagnosis , testName ) ; } public void test09 ( ) { String s = "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" ; String expectedSyntaxErrorDiagnosis = "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" ; String testName = "<STR_LIT>" ; checkParse ( s . toCharArray ( ) , expectedSyntaxErrorDiagnosis , testName ) ; } public void test10 ( ) { String s = "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" ; String expectedSyntaxErrorDiagnosis = "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" ; String testName = "<STR_LIT>" ; checkParse ( s . toCharArray ( ) , expectedSyntaxErrorDiagnosis , testName ) ; } public void test11 ( ) { String s = "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" ; String expectedSyntaxErrorDiagnosis = "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" ; String testName = "<STR_LIT>" ; checkParse ( s . toCharArray ( ) , expectedSyntaxErrorDiagnosis , testName ) ; } public void test12 ( ) { String s = "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" ; String expectedSyntaxErrorDiagnosis = "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" ; String testName = "<STR_LIT>" ; checkParse ( s . toCharArray ( ) , expectedSyntaxErrorDiagnosis , testName ) ; } public void test13 ( ) { String s = "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" ; String expectedSyntaxErrorDiagnosis = "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" ; String testName = "<STR_LIT>" ; checkParse ( s . toCharArray ( ) , expectedSyntaxErrorDiagnosis , testName ) ; } } </s>
|
<s> package org . eclipse . jdt . core . tests . compiler . parser ; import java . util . Locale ; import java . util . Map ; import java . util . StringTokenizer ; import junit . framework . Test ; import org . eclipse . jdt . internal . codeassist . complete . CompletionJavadoc ; import org . eclipse . jdt . internal . codeassist . complete . CompletionOnJavadocTag ; import org . eclipse . jdt . internal . codeassist . complete . CompletionParser ; import org . eclipse . jdt . internal . compiler . CompilationResult ; import org . eclipse . jdt . internal . compiler . DefaultErrorHandlingPolicies ; import org . eclipse . jdt . internal . compiler . ast . ASTNode ; import org . eclipse . jdt . internal . compiler . batch . CompilationUnit ; import org . eclipse . jdt . internal . compiler . classfmt . ClassFileConstants ; import org . eclipse . jdt . internal . compiler . env . ICompilationUnit ; import org . eclipse . jdt . internal . compiler . impl . CompilerOptions ; import org . eclipse . jdt . internal . compiler . parser . JavadocTagConstants ; import org . eclipse . jdt . internal . compiler . problem . DefaultProblemFactory ; import org . eclipse . jdt . internal . compiler . problem . ProblemReporter ; public class JavadocCompletionParserTest extends AbstractCompletionTest implements JavadocTagConstants { public static int INLINE_ALL_TAGS_LENGTH = <NUM_LIT:0> ; public static int BLOCK_ALL_TAGS_LENGTH = <NUM_LIT:0> ; static { for ( int i = <NUM_LIT:0> ; i < INLINE_TAGS_LENGTH ; i ++ ) { INLINE_ALL_TAGS_LENGTH += INLINE_TAGS [ i ] . length ; } for ( int i = <NUM_LIT:0> ; i < BLOCK_TAGS_LENGTH ; i ++ ) { BLOCK_ALL_TAGS_LENGTH += BLOCK_TAGS [ i ] . length ; } } CompletionJavadoc javadoc ; String sourceLevel ; public JavadocCompletionParserTest ( String testName ) { super ( testName ) ; } static { } public static Test suite ( ) { return buildAllCompliancesTestSuite ( JavadocCompletionParserTest . class ) ; } protected void setUp ( ) throws Exception { super . setUp ( ) ; this . sourceLevel = null ; } protected void assertCompletionNodeResult ( String source , String expected ) { ASTNode completionNode = this . javadoc . getCompletionNode ( ) ; assertNotNull ( "<STR_LIT>" , completionNode ) ; String actual = this . javadoc . getCompletionNode ( ) . toString ( ) ; if ( ! expected . equals ( actual ) ) { System . out . println ( "<STR_LIT>" ) ; System . out . print ( getName ( ) ) ; System . out . println ( "<STR_LIT>" ) ; String toDisplay = new String ( org . eclipse . jdt . core . tests . util . Util . displayString ( new String ( actual ) , <NUM_LIT:2> ) . toCharArray ( ) ) ; System . out . println ( toDisplay ) ; System . out . println ( "<STR_LIT>" ) ; System . out . println ( source ) ; } assertEquals ( "<STR_LIT>" , expected , actual ) ; } protected Map getCompilerOptions ( ) { Map options = super . getCompilerOptions ( ) ; if ( this . sourceLevel == null ) { return options ; } options . put ( CompilerOptions . OPTION_Source , this . sourceLevel ) ; return options ; } protected void verifyCompletionInJavadoc ( String source , String after ) { CompilerOptions options = new CompilerOptions ( getCompilerOptions ( ) ) ; CompletionParser parser = new CompletionParser ( new ProblemReporter ( DefaultErrorHandlingPolicies . proceedWithAllProblems ( ) , options , new DefaultProblemFactory ( Locale . getDefault ( ) ) ) , false ) ; ICompilationUnit sourceUnit = new CompilationUnit ( source . toCharArray ( ) , "<STR_LIT>" , null ) ; CompilationResult compilationResult = new CompilationResult ( sourceUnit , <NUM_LIT:0> , <NUM_LIT:0> , <NUM_LIT:0> ) ; int cursorLocation = source . indexOf ( after ) + after . length ( ) - <NUM_LIT:1> ; parser . dietParse ( sourceUnit , compilationResult , cursorLocation ) ; assertNotNull ( "<STR_LIT>" , parser . assistNodeParent ) ; assertEquals ( "<STR_LIT>" , CompletionJavadoc . class , parser . assistNodeParent . getClass ( ) ) ; this . javadoc = ( CompletionJavadoc ) parser . assistNodeParent ; } protected void verifyCompletionOnJavadocTag ( char [ ] tag , char [ ] [ ] expectedTags , boolean inline ) { assertTrue ( "<STR_LIT>" , this . javadoc . getCompletionNode ( ) instanceof CompletionOnJavadocTag ) ; CompletionOnJavadocTag completionTag = ( CompletionOnJavadocTag ) this . javadoc . getCompletionNode ( ) ; StringBuffer expected = new StringBuffer ( "<STR_LIT>" ) ; if ( inline ) expected . append ( '<CHAR_LIT>' ) ; expected . append ( '<CHAR_LIT>' ) ; if ( tag != null ) expected . append ( tag ) ; if ( inline ) expected . append ( '<CHAR_LIT:}>' ) ; if ( expectedTags != null ) { expected . append ( "<STR_LIT>" ) ; int length = expectedTags . length ; for ( int i = <NUM_LIT:0> ; i < length ; i ++ ) { expected . append ( "<STR_LIT>" ) ; expected . append ( expectedTags [ i ] ) ; } expected . append ( '<STR_LIT:\n>' ) ; } expected . append ( "<STR_LIT:>>" ) ; if ( expectedTags == null ) { assertEquals ( "<STR_LIT>" , expected . toString ( ) , completionTag . toString ( ) ) ; } else { String completionTagString = completionTag . toString ( ) ; StringTokenizer completionTagTokenizer = new StringTokenizer ( completionTagString , "<STR_LIT:n>" ) ; StringBuffer completionTagBuffer = new StringBuffer ( completionTagString . length ( ) ) ; boolean possibleLine = false , newLine = false ; while ( completionTagTokenizer . hasMoreTokens ( ) ) { String line = completionTagTokenizer . nextToken ( ) ; if ( line . startsWith ( "<STR_LIT>" ) ) { if ( ! possibleLine ) { possibleLine = true ; completionTagBuffer . append ( "<STR_LIT>" ) ; } } else { if ( newLine ) completionTagBuffer . append ( '<STR_LIT:\n>' ) ; completionTagBuffer . append ( line ) ; } newLine = true ; } assertEquals ( "<STR_LIT>" , expected . toString ( ) , completionTagBuffer . toString ( ) ) ; } } protected void verifyAllTagsCompletion ( ) { char [ ] [ ] allTags = { TAG_AUTHOR , TAG_DEPRECATED , TAG_EXCEPTION , TAG_PARAM , TAG_RETURN , TAG_SEE , TAG_VERSION , TAG_CATEGORY , TAG_SINCE , TAG_SERIAL , TAG_SERIAL_DATA , TAG_SERIAL_FIELD , TAG_THROWS , TAG_LINK , TAG_DOC_ROOT , } ; char [ ] [ ] additionalTags = null ; if ( this . complianceLevel == ClassFileConstants . JDK1_4 ) { additionalTags = new char [ ] [ ] { TAG_INHERITDOC , TAG_LINKPLAIN , TAG_VALUE } ; } else if ( this . complianceLevel > ClassFileConstants . JDK1_4 ) { additionalTags = new char [ ] [ ] { TAG_INHERITDOC , TAG_LINKPLAIN , TAG_VALUE , TAG_CODE , TAG_LITERAL } ; } if ( additionalTags != null ) { int length = allTags . length ; int add = additionalTags . length ; System . arraycopy ( allTags , <NUM_LIT:0> , allTags = new char [ length + add ] [ ] , <NUM_LIT:0> , length ) ; System . arraycopy ( additionalTags , <NUM_LIT:0> , allTags , length , add ) ; } verifyCompletionOnJavadocTag ( null , allTags , false ) ; } public void test001 ( ) { String source = "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" ; verifyCompletionInJavadoc ( source , "<STR_LIT:@>" ) ; verifyAllTagsCompletion ( ) ; } public void test002 ( ) { String source = "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" ; verifyCompletionInJavadoc ( source , "<STR_LIT>" ) ; verifyCompletionOnJavadocTag ( "<STR_LIT:none>" . toCharArray ( ) , null , false ) ; } public void test003 ( ) { String source = "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" ; verifyCompletionInJavadoc ( source , "<STR_LIT>" ) ; char [ ] [ ] allTags = this . complianceLevel == ClassFileConstants . JDK1_3 ? new char [ ] [ ] { TAG_VERSION } : new char [ ] [ ] { TAG_VERSION , TAG_VALUE } ; verifyCompletionOnJavadocTag ( new char [ ] { '<CHAR_LIT>' } , allTags , false ) ; } public void test004 ( ) { String source = "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" ; verifyCompletionInJavadoc ( source , "<STR_LIT>" ) ; verifyCompletionOnJavadocTag ( "<STR_LIT>" . toCharArray ( ) , new char [ ] [ ] { TAG_DEPRECATED } , false ) ; } public void test005 ( ) { String source = "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" ; verifyCompletionInJavadoc ( source , "<STR_LIT>" ) ; char [ ] [ ] allTags = this . complianceLevel == ClassFileConstants . JDK1_3 ? new char [ ] [ ] { TAG_LINK } : new char [ ] [ ] { TAG_LINK , TAG_LINKPLAIN } ; verifyCompletionOnJavadocTag ( "<STR_LIT>" . toCharArray ( ) , allTags , false ) ; } public void test006 ( ) { String source = "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" ; verifyCompletionInJavadoc ( source , "<STR_LIT:@>" ) ; char [ ] [ ] allTags = { TAG_LINK , TAG_DOC_ROOT , } ; char [ ] [ ] additionalTags = null ; if ( this . complianceLevel == ClassFileConstants . JDK1_4 ) { additionalTags = new char [ ] [ ] { TAG_INHERITDOC , TAG_LINKPLAIN , TAG_VALUE } ; } else if ( this . complianceLevel > ClassFileConstants . JDK1_4 ) { additionalTags = new char [ ] [ ] { TAG_INHERITDOC , TAG_LINKPLAIN , TAG_VALUE , TAG_CODE , TAG_LITERAL } ; } if ( additionalTags != null ) { int length = allTags . length ; int add = additionalTags . length ; System . arraycopy ( allTags , <NUM_LIT:0> , allTags = new char [ length + add ] [ ] , <NUM_LIT:0> , length ) ; System . arraycopy ( additionalTags , <NUM_LIT:0> , allTags , length , add ) ; } verifyCompletionOnJavadocTag ( null , allTags , false ) ; } public void test007 ( ) { String source = "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" ; verifyCompletionInJavadoc ( source , "<STR_LIT:@>" ) ; verifyAllTagsCompletion ( ) ; } public void test008 ( ) { this . sourceLevel = CompilerOptions . VERSION_1_3 ; String source = "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" ; verifyCompletionInJavadoc ( source , "<STR_LIT:@>" ) ; verifyAllTagsCompletion ( ) ; } public void test010 ( ) { String source = "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" ; verifyCompletionInJavadoc ( source , "<STR_LIT>" ) ; assertCompletionNodeResult ( source , "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT:>>" ) ; } public void test011 ( ) { String source = "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" ; verifyCompletionInJavadoc ( source , "<STR_LIT>" ) ; assertCompletionNodeResult ( source , "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT:>>" ) ; } public void test012 ( ) { String source = "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" ; verifyCompletionInJavadoc ( source , "<STR_LIT>" ) ; assertCompletionNodeResult ( source , "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT:>>" ) ; } public void test013 ( ) { String source = "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" ; verifyCompletionInJavadoc ( source , "<STR_LIT>" ) ; assertCompletionNodeResult ( source , "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT:>>" ) ; } public void test014 ( ) { String source = "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" ; verifyCompletionInJavadoc ( source , "<STR_LIT>" ) ; assertCompletionNodeResult ( source , "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT:>>" ) ; } public void test015 ( ) { String source = "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" ; verifyCompletionInJavadoc ( source , "<STR_LIT>" ) ; assertCompletionNodeResult ( source , "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT:>>" ) ; } public void test020 ( ) { String source = "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" ; verifyCompletionInJavadoc ( source , "<STR_LIT>" ) ; verifyCompletionOnJavadocTag ( "<STR_LIT:s>" . toCharArray ( ) , new char [ ] [ ] { TAG_SEE , TAG_SINCE , TAG_SERIAL , TAG_SERIAL_DATA , TAG_SERIAL_FIELD } , false ) ; CompletionOnJavadocTag completionTag = ( CompletionOnJavadocTag ) this . javadoc . getCompletionNode ( ) ; assertEquals ( "<STR_LIT>" , <NUM_LIT:24> , completionTag . tagSourceStart ) ; assertEquals ( "<STR_LIT>" , <NUM_LIT> , completionTag . tagSourceEnd + <NUM_LIT:1> ) ; } public void test021 ( ) { String source = "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" ; verifyCompletionInJavadoc ( source , "<STR_LIT>" ) ; verifyCompletionOnJavadocTag ( "<STR_LIT>" . toCharArray ( ) , new char [ ] [ ] { TAG_SEE , TAG_SERIAL , TAG_SERIAL_DATA , TAG_SERIAL_FIELD } , false ) ; CompletionOnJavadocTag completionTag = ( CompletionOnJavadocTag ) this . javadoc . getCompletionNode ( ) ; assertEquals ( "<STR_LIT>" , <NUM_LIT:24> , completionTag . tagSourceStart ) ; assertEquals ( "<STR_LIT>" , <NUM_LIT> , completionTag . tagSourceEnd + <NUM_LIT:1> ) ; } public void test022 ( ) { String source = "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" ; verifyCompletionInJavadoc ( source , "<STR_LIT>" ) ; verifyCompletionOnJavadocTag ( "<STR_LIT>" . toCharArray ( ) , new char [ ] [ ] { TAG_SEE } , false ) ; CompletionOnJavadocTag completionTag = ( CompletionOnJavadocTag ) this . javadoc . getCompletionNode ( ) ; assertEquals ( "<STR_LIT>" , <NUM_LIT:24> , completionTag . tagSourceStart ) ; assertEquals ( "<STR_LIT>" , <NUM_LIT> , completionTag . tagSourceEnd + <NUM_LIT:1> ) ; } public void test023 ( ) { String source = "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" ; verifyCompletionInJavadoc ( source , "<STR_LIT>" ) ; verifyCompletionOnJavadocTag ( "<STR_LIT>" . toCharArray ( ) , null , false ) ; CompletionOnJavadocTag completionTag = ( CompletionOnJavadocTag ) this . javadoc . getCompletionNode ( ) ; assertEquals ( "<STR_LIT>" , <NUM_LIT:24> , completionTag . tagSourceStart ) ; assertEquals ( "<STR_LIT>" , <NUM_LIT:32> , completionTag . tagSourceEnd + <NUM_LIT:1> ) ; } public void test024 ( ) { String source = "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" ; verifyCompletionInJavadoc ( source , "<STR_LIT>" ) ; verifyCompletionOnJavadocTag ( "<STR_LIT>" . toCharArray ( ) , null , false ) ; CompletionOnJavadocTag completionTag = ( CompletionOnJavadocTag ) this . javadoc . getCompletionNode ( ) ; assertEquals ( "<STR_LIT>" , <NUM_LIT:24> , completionTag . tagSourceStart ) ; assertEquals ( "<STR_LIT>" , <NUM_LIT:32> , completionTag . tagSourceEnd + <NUM_LIT:1> ) ; } public void test025 ( ) { String source = "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" ; verifyCompletionInJavadoc ( source , "<STR_LIT>" ) ; char [ ] [ ] allTags = { TAG_LINK , TAG_DOC_ROOT , } ; char [ ] [ ] additionalTags = null ; if ( this . complianceLevel == ClassFileConstants . JDK1_4 ) { additionalTags = new char [ ] [ ] { TAG_INHERITDOC , TAG_LINKPLAIN , TAG_VALUE } ; } else if ( this . complianceLevel > ClassFileConstants . JDK1_4 ) { additionalTags = new char [ ] [ ] { TAG_INHERITDOC , TAG_LINKPLAIN , TAG_VALUE , TAG_CODE , TAG_LITERAL } ; } if ( additionalTags != null ) { int length = allTags . length ; int add = additionalTags . length ; System . arraycopy ( allTags , <NUM_LIT:0> , allTags = new char [ length + add ] [ ] , <NUM_LIT:0> , length ) ; System . arraycopy ( additionalTags , <NUM_LIT:0> , allTags , length , add ) ; } verifyCompletionOnJavadocTag ( "<STR_LIT>" . toCharArray ( ) , allTags , false ) ; CompletionOnJavadocTag completionTag = ( CompletionOnJavadocTag ) this . javadoc . getCompletionNode ( ) ; int start = source . indexOf ( "<STR_LIT>" ) ; assertEquals ( "<STR_LIT>" , start , completionTag . tagSourceStart ) ; int end = source . indexOf ( '<CHAR_LIT:>>' ) ; assertEquals ( "<STR_LIT>" , end , completionTag . tagSourceEnd ) ; } public void test026 ( ) { String source = "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" ; verifyCompletionInJavadoc ( source , "<STR_LIT>" ) ; char [ ] [ ] allTags = this . complianceLevel == ClassFileConstants . JDK1_3 ? new char [ ] [ ] { TAG_LINK } : ( this . complianceLevel == ClassFileConstants . JDK1_4 ? new char [ ] [ ] { TAG_LINK , TAG_LINKPLAIN } : new char [ ] [ ] { TAG_LINK , TAG_LINKPLAIN , TAG_LITERAL } ) ; verifyCompletionOnJavadocTag ( "<STR_LIT>" . toCharArray ( ) , allTags , false ) ; CompletionOnJavadocTag completionTag = ( CompletionOnJavadocTag ) this . javadoc . getCompletionNode ( ) ; int start = source . indexOf ( "<STR_LIT>" ) ; assertEquals ( "<STR_LIT>" , start , completionTag . tagSourceStart ) ; int end = source . indexOf ( '<CHAR_LIT:>>' ) ; assertEquals ( "<STR_LIT>" , end , completionTag . tagSourceEnd ) ; } public void test027 ( ) { String source = "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" ; verifyCompletionInJavadoc ( source , "<STR_LIT>" ) ; char [ ] [ ] allTags = this . complianceLevel == ClassFileConstants . JDK1_3 ? new char [ ] [ ] { TAG_LINK } : new char [ ] [ ] { TAG_LINK , TAG_LINKPLAIN } ; verifyCompletionOnJavadocTag ( "<STR_LIT>" . toCharArray ( ) , allTags , false ) ; CompletionOnJavadocTag completionTag = ( CompletionOnJavadocTag ) this . javadoc . getCompletionNode ( ) ; int start = source . indexOf ( "<STR_LIT>" ) ; assertEquals ( "<STR_LIT>" , start , completionTag . tagSourceStart ) ; int end = source . indexOf ( '<CHAR_LIT:>>' ) ; assertEquals ( "<STR_LIT>" , end , completionTag . tagSourceEnd ) ; } public void test028 ( ) { String source = "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" ; verifyCompletionInJavadoc ( source , "<STR_LIT>" ) ; char [ ] [ ] allTags = { TAG_LINK , TAG_DOC_ROOT , } ; char [ ] [ ] additionalTags = null ; if ( this . complianceLevel == ClassFileConstants . JDK1_4 ) { additionalTags = new char [ ] [ ] { TAG_INHERITDOC , TAG_LINKPLAIN , TAG_VALUE } ; } else if ( this . complianceLevel > ClassFileConstants . JDK1_4 ) { additionalTags = new char [ ] [ ] { TAG_INHERITDOC , TAG_LINKPLAIN , TAG_VALUE , TAG_CODE , TAG_LITERAL } ; } if ( additionalTags != null ) { int length = allTags . length ; int add = additionalTags . length ; System . arraycopy ( allTags , <NUM_LIT:0> , allTags = new char [ length + add ] [ ] , <NUM_LIT:0> , length ) ; System . arraycopy ( additionalTags , <NUM_LIT:0> , allTags , length , add ) ; } verifyCompletionOnJavadocTag ( "<STR_LIT>" . toCharArray ( ) , allTags , false ) ; CompletionOnJavadocTag completionTag = ( CompletionOnJavadocTag ) this . javadoc . getCompletionNode ( ) ; int start = source . indexOf ( "<STR_LIT>" ) ; assertEquals ( "<STR_LIT>" , start , completionTag . tagSourceStart ) ; int end = source . indexOf ( '<CHAR_LIT>' ) ; assertEquals ( "<STR_LIT>" , end , completionTag . tagSourceEnd ) ; } public void test029 ( ) { String source = "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" ; verifyCompletionInJavadoc ( source , "<STR_LIT>" ) ; char [ ] [ ] allTags = this . complianceLevel == ClassFileConstants . JDK1_3 ? new char [ ] [ ] { TAG_LINK } : ( this . complianceLevel == ClassFileConstants . JDK1_4 ? new char [ ] [ ] { TAG_LINK , TAG_LINKPLAIN } : new char [ ] [ ] { TAG_LINK , TAG_LINKPLAIN , TAG_LITERAL } ) ; verifyCompletionOnJavadocTag ( "<STR_LIT>" . toCharArray ( ) , allTags , false ) ; CompletionOnJavadocTag completionTag = ( CompletionOnJavadocTag ) this . javadoc . getCompletionNode ( ) ; int start = source . indexOf ( "<STR_LIT>" ) ; assertEquals ( "<STR_LIT>" , start , completionTag . tagSourceStart ) ; int end = source . indexOf ( "<STR_LIT>" ) ; assertEquals ( "<STR_LIT>" , end , completionTag . tagSourceEnd ) ; } public void test030 ( ) { String source = "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" ; verifyCompletionInJavadoc ( source , "<STR_LIT>" ) ; char [ ] [ ] allTags = this . complianceLevel == ClassFileConstants . JDK1_3 ? new char [ ] [ ] { TAG_LINK } : new char [ ] [ ] { TAG_LINK , TAG_LINKPLAIN } ; verifyCompletionOnJavadocTag ( "<STR_LIT>" . toCharArray ( ) , allTags , false ) ; CompletionOnJavadocTag completionTag = ( CompletionOnJavadocTag ) this . javadoc . getCompletionNode ( ) ; int start = source . indexOf ( "<STR_LIT>" ) ; assertEquals ( "<STR_LIT>" , start , completionTag . tagSourceStart ) ; int end = source . indexOf ( '<CHAR_LIT>' ) ; assertEquals ( "<STR_LIT>" , end , completionTag . tagSourceEnd ) ; } } </s>
|
<s> package org . eclipse . jdt . core . tests . compiler . parser ; import java . util . Locale ; import junit . framework . Test ; import org . eclipse . jdt . core . compiler . CategorizedProblem ; import org . eclipse . jdt . core . compiler . CharOperation ; import org . eclipse . jdt . core . tests . util . AbstractCompilerTest ; import org . eclipse . jdt . internal . compiler . ISourceElementRequestor ; import org . eclipse . jdt . internal . compiler . SourceElementParser ; import org . eclipse . jdt . internal . compiler . ast . Expression ; import org . eclipse . jdt . internal . compiler . ast . ImportReference ; import org . eclipse . jdt . internal . compiler . batch . CompilationUnit ; import org . eclipse . jdt . internal . compiler . classfmt . ClassFileConstants ; import org . eclipse . jdt . internal . compiler . env . ICompilationUnit ; import org . eclipse . jdt . internal . compiler . impl . CompilerOptions ; import org . eclipse . jdt . internal . compiler . problem . DefaultProblemFactory ; public class SourceElementParserTest extends AbstractCompilerTest implements ISourceElementRequestor { private SourceType currentType ; private SourceMethod currentMethod ; private SourceField currentField ; private SourceInitializer currentInitializer ; private char [ ] source ; private SourcePackage currentPackage ; private SourceImport [ ] currentImports ; private int numberOfImports ; public SourceElementParserTest ( String testName ) { super ( testName ) ; } public SourceElementParserTest ( String testName , char [ ] source ) { super ( testName ) ; this . source = source ; } static { } public static Test suite ( ) { return buildAllCompliancesTestSuite ( SourceElementParserTest . class ) ; } public void acceptAnnotationTypeReference ( char [ ] [ ] typeName , int sourceStart , int sourceEnd ) { } public void acceptAnnotationTypeReference ( char [ ] typeName , int sourcePosition ) { } public void acceptConstructorReference ( char [ ] typeName , int argCount , int sourcePosition ) { if ( currentMethod == null ) { if ( currentType != null ) { StringBuffer buffer = new StringBuffer ( ) ; buffer . append ( typeName ) . append ( "<STR_LIT:(>" ) . append ( argCount ) . append ( "<STR_LIT>" ) ; currentType . setDefaultConstructor ( buffer . toString ( ) ) ; } return ; } if ( currentMethod . isConstructor ( ) ) { StringBuffer buffer = new StringBuffer ( ) ; buffer . append ( typeName ) . append ( "<STR_LIT:(>" ) . append ( argCount ) . append ( "<STR_LIT>" ) ; currentMethod . setExplicitConstructorCall ( buffer . toString ( ) ) ; } else { if ( currentType != null ) { StringBuffer buffer = new StringBuffer ( ) ; buffer . append ( typeName ) . append ( "<STR_LIT:(>" ) . append ( argCount ) . append ( "<STR_LIT>" ) ; currentType . setDefaultConstructor ( buffer . toString ( ) ) ; } } } public void acceptFieldReference ( char [ ] fieldName , int sourcePosition ) { } public void acceptImport ( int declarationStart , int declarationEnd , int nameStart , int nameEnd , char [ ] [ ] tokens , boolean onDemand , int modifiers ) { addImport ( new SourceImport ( declarationStart , declarationEnd , CharOperation . concatWith ( tokens , '<CHAR_LIT:.>' ) , onDemand , modifiers , source ) ) ; } public void acceptImport ( int declarationStart , int declarationEnd , char [ ] [ ] tokens , boolean onDemand , int modifiers ) { addImport ( new SourceImport ( declarationStart , declarationEnd , CharOperation . concatWith ( tokens , '<CHAR_LIT:.>' ) , onDemand , modifiers , source ) ) ; } public void acceptLineSeparatorPositions ( int [ ] positions ) { } public void acceptMethodReference ( char [ ] methodName , int argCount , int sourcePosition ) { } public void acceptPackage ( ImportReference importReference ) { currentPackage = new SourcePackage ( importReference . declarationSourceStart , importReference . declarationSourceEnd , CharOperation . concatWith ( importReference . getImportName ( ) , '<CHAR_LIT:.>' ) , source ) ; } public void acceptProblem ( CategorizedProblem problem ) { } public void acceptTypeReference ( char [ ] [ ] typeName , int sourceStart , int sourceEnd ) { } public void acceptTypeReference ( char [ ] typeName , int sourcePosition ) { } public void acceptUnknownReference ( char [ ] [ ] name , int sourceStart , int sourceEnd ) { } public void acceptUnknownReference ( char [ ] name , int sourcePosition ) { } protected void addImport ( SourceImport sourceImport ) { if ( currentImports == null ) { currentImports = new SourceImport [ <NUM_LIT:4> ] ; } if ( numberOfImports == currentImports . length ) { System . arraycopy ( currentImports , <NUM_LIT:0> , currentImports = new SourceImport [ numberOfImports * <NUM_LIT:2> ] , <NUM_LIT:0> , numberOfImports ) ; } currentImports [ numberOfImports ++ ] = sourceImport ; } public void dietParse ( String s , String testName ) { this . dietParse ( s , testName , false ) ; } public void dietParse ( String s , String testName , boolean recordLocalDeclaration ) { this . source = s . toCharArray ( ) ; reset ( ) ; SourceElementParser parser = new SourceElementParser ( this , new DefaultProblemFactory ( Locale . getDefault ( ) ) , new CompilerOptions ( getCompilerOptions ( ) ) , recordLocalDeclaration , true ) ; ICompilationUnit sourceUnit = new CompilationUnit ( source , testName , null ) ; parser . parseCompilationUnit ( sourceUnit , false , null ) ; } public static String displayModifiers ( int modifiers ) { StringBuffer buffer = new StringBuffer ( ) ; if ( ( modifiers & ClassFileConstants . AccPublic ) != <NUM_LIT:0> ) buffer . append ( "<STR_LIT>" ) ; if ( ( modifiers & ClassFileConstants . AccProtected ) != <NUM_LIT:0> ) buffer . append ( "<STR_LIT>" ) ; if ( ( modifiers & ClassFileConstants . AccPrivate ) != <NUM_LIT:0> ) buffer . append ( "<STR_LIT>" ) ; if ( ( modifiers & ClassFileConstants . AccFinal ) != <NUM_LIT:0> ) buffer . append ( "<STR_LIT>" ) ; if ( ( modifiers & ClassFileConstants . AccStatic ) != <NUM_LIT:0> ) buffer . append ( "<STR_LIT>" ) ; if ( ( modifiers & ClassFileConstants . AccAbstract ) != <NUM_LIT:0> ) buffer . append ( "<STR_LIT>" ) ; if ( ( modifiers & ClassFileConstants . AccNative ) != <NUM_LIT:0> ) buffer . append ( "<STR_LIT>" ) ; if ( ( modifiers & ClassFileConstants . AccSynchronized ) != <NUM_LIT:0> ) buffer . append ( "<STR_LIT>" ) ; return buffer . toString ( ) ; } public void enterType ( TypeInfo typeInfo ) { if ( currentType == null ) { currentType = new SourceType ( null , typeInfo . declarationStart , typeInfo . modifiers , typeInfo . name , typeInfo . nameSourceStart , typeInfo . nameSourceEnd , typeInfo . superclass , typeInfo . superinterfaces , source ) ; currentType . setPackage ( currentPackage ) ; setImports ( ) ; } else { SourceType memberType ; currentType . addMemberType ( memberType = new SourceType ( currentType . getName ( ) , typeInfo . declarationStart , typeInfo . modifiers , typeInfo . name , typeInfo . nameSourceStart , typeInfo . nameSourceEnd , typeInfo . superclass , typeInfo . superinterfaces , source ) ) ; memberType . parent = currentType ; currentType = memberType ; } if ( typeInfo . typeParameters != null ) { for ( int i = <NUM_LIT:0> , length = typeInfo . typeParameters . length ; i < length ; i ++ ) { TypeParameterInfo typeParameterInfo = typeInfo . typeParameters [ i ] ; addTypeParameter ( typeParameterInfo ) ; } } } public void enterCompilationUnit ( ) { } public void enterConstructor ( MethodInfo methodInfo ) { enterAbtractMethod ( methodInfo ) ; } public void enterField ( FieldInfo fieldInfo ) { currentType . addField ( currentField = new SourceField ( fieldInfo . declarationStart , fieldInfo . modifiers , fieldInfo . type , fieldInfo . name , fieldInfo . nameSourceStart , fieldInfo . nameSourceEnd , source ) ) ; } public void enterInitializer ( int declarationSourceStart , int modifiers ) { currentType . addField ( currentInitializer = new SourceInitializer ( declarationSourceStart , modifiers ) ) ; } public void exitInitializer ( int declarationSourceEnd ) { currentInitializer . setDeclarationSourceEnd ( declarationSourceEnd ) ; } public void enterMethod ( MethodInfo methodInfo ) { enterAbtractMethod ( methodInfo ) ; } protected void enterAbtractMethod ( MethodInfo methodInfo ) { currentType . addMethod ( currentMethod = new SourceMethod ( methodInfo . declarationStart , methodInfo . modifiers , methodInfo . returnType , methodInfo . name , methodInfo . nameSourceStart , methodInfo . nameSourceEnd , methodInfo . parameterTypes , methodInfo . parameterNames , methodInfo . exceptionTypes , source ) ) ; if ( methodInfo . typeParameters != null ) { for ( int i = <NUM_LIT:0> , length = methodInfo . typeParameters . length ; i < length ; i ++ ) { TypeParameterInfo typeParameterInfo = methodInfo . typeParameters [ i ] ; addTypeParameter ( typeParameterInfo ) ; } } } public void addTypeParameter ( TypeParameterInfo typeParameterInfo ) { if ( currentMethod . typeParameterNames == null ) { currentMethod . typeParameterNames = new char [ ] [ ] { typeParameterInfo . name } ; currentMethod . typeParameterBounds = new char [ ] [ ] [ ] { typeParameterInfo . bounds } ; } else { int length = currentMethod . typeParameterNames . length ; System . arraycopy ( currentMethod . typeParameterNames , <NUM_LIT:0> , currentMethod . typeParameterNames = new char [ length + <NUM_LIT:1> ] [ ] , <NUM_LIT:0> , length ) ; currentMethod . typeParameterNames [ length ] = typeParameterInfo . name ; System . arraycopy ( currentMethod . typeParameterBounds , <NUM_LIT:0> , currentMethod . typeParameterBounds = new char [ length + <NUM_LIT:1> ] [ ] [ ] , <NUM_LIT:0> , length ) ; currentMethod . typeParameterBounds [ length ] = typeParameterInfo . bounds ; } } public void exitType ( int declarationEnd ) { currentType . setDeclarationSourceEnd ( declarationEnd ) ; if ( currentType . parent != null ) { currentType = currentType . parent ; } } public void exitCompilationUnit ( int declarationEnd ) { } public void exitConstructor ( int declarationEnd ) { exitAbstractMethod ( declarationEnd ) ; } public void exitField ( int initializationStart , int declarationEnd , int declarationSourceEnd ) { currentField . setDeclarationSourceEnd ( declarationEnd ) ; } public void exitMethod ( int declarationEnd , Expression defaultValue ) { exitAbstractMethod ( declarationEnd ) ; } protected void exitAbstractMethod ( int declarationEnd ) { currentMethod . setDeclarationSourceEnd ( declarationEnd ) ; } public void fullParse ( String s , String testName ) { this . fullParse ( s , testName , false ) ; } public void fullParse ( String s , String testName , boolean recordLocalDeclaration ) { this . source = s . toCharArray ( ) ; reset ( ) ; SourceElementParser parser = new SourceElementParser ( this , new DefaultProblemFactory ( Locale . getDefault ( ) ) , new CompilerOptions ( getCompilerOptions ( ) ) , recordLocalDeclaration , true ) ; ICompilationUnit sourceUnit = new CompilationUnit ( source , testName , null ) ; parser . parseCompilationUnit ( sourceUnit , true , null ) ; } public void reset ( ) { currentType = null ; currentMethod = null ; currentField = null ; currentPackage = null ; currentImports = null ; numberOfImports = <NUM_LIT:0> ; } public void setImports ( ) { if ( currentImports == null ) return ; if ( numberOfImports != currentImports . length ) { System . arraycopy ( currentImports , <NUM_LIT:0> , currentImports = new SourceImport [ numberOfImports ] , <NUM_LIT:0> , numberOfImports ) ; } currentType . setImports ( currentImports ) ; } public void test01 ( ) { String s = "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT:n>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT:n>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT:n>" + "<STR_LIT>" + "<STR_LIT:\\>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" ; String expectedUnitToString = "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT:}>" ; String testName = "<STR_LIT>" ; fullParse ( s , testName ) ; assertEquals ( "<STR_LIT>" , <NUM_LIT> , currentType . getDeclarationSourceStart ( ) ) ; assertEquals ( "<STR_LIT>" , <NUM_LIT> , currentType . getDeclarationSourceEnd ( ) ) ; SourceField [ ] fields = currentType . getFields ( ) ; assertTrue ( "<STR_LIT>" , fields != null ) ; assertEquals ( "<STR_LIT>" , <NUM_LIT:2> , fields . length ) ; assertEquals ( "<STR_LIT>" , <NUM_LIT> , fields [ <NUM_LIT:0> ] . getDeclarationSourceStart ( ) ) ; assertEquals ( "<STR_LIT>" , <NUM_LIT> , fields [ <NUM_LIT:0> ] . getDeclarationSourceEnd ( ) ) ; assertEquals ( "<STR_LIT>" , <NUM_LIT> , fields [ <NUM_LIT:1> ] . getDeclarationSourceStart ( ) ) ; assertEquals ( "<STR_LIT>" , <NUM_LIT> , fields [ <NUM_LIT:1> ] . getDeclarationSourceEnd ( ) ) ; SourceMethod [ ] methods = currentType . getMethods ( ) ; assertTrue ( "<STR_LIT>" , methods != null ) ; assertEquals ( "<STR_LIT>" , <NUM_LIT:3> , methods . length ) ; assertEquals ( "<STR_LIT>" , <NUM_LIT> , methods [ <NUM_LIT:0> ] . getDeclarationSourceStart ( ) ) ; assertEquals ( "<STR_LIT>" , <NUM_LIT> , methods [ <NUM_LIT:0> ] . getDeclarationSourceEnd ( ) ) ; assertEquals ( "<STR_LIT>" , <NUM_LIT> , methods [ <NUM_LIT:1> ] . getDeclarationSourceStart ( ) ) ; assertEquals ( "<STR_LIT>" , <NUM_LIT> , methods [ <NUM_LIT:1> ] . getDeclarationSourceEnd ( ) ) ; assertEquals ( "<STR_LIT>" , <NUM_LIT> , methods [ <NUM_LIT:2> ] . getDeclarationSourceStart ( ) ) ; assertEquals ( "<STR_LIT>" , <NUM_LIT> , methods [ <NUM_LIT:2> ] . getDeclarationSourceEnd ( ) ) ; assertEquals ( "<STR_LIT>" , "<STR_LIT:foo>" , methods [ <NUM_LIT:0> ] . getActualName ( ) ) ; assertEquals ( "<STR_LIT>" , "<STR_LIT:bar>" + "<STR_LIT:\\>" + "<STR_LIT>" , methods [ <NUM_LIT:1> ] . getActualName ( ) ) ; assertEquals ( "<STR_LIT>" + testName , expectedUnitToString , currentType . toString ( ) ) ; } public void test02 ( ) { String s = "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" ; String expectedUnitToString = "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT:}>" ; String testName = "<STR_LIT>" ; fullParse ( s , testName ) ; assertEquals ( "<STR_LIT>" , <NUM_LIT:0> , currentType . getDeclarationSourceStart ( ) ) ; assertEquals ( "<STR_LIT>" , <NUM_LIT> , currentType . getDeclarationSourceEnd ( ) ) ; assertEquals ( "<STR_LIT>" + testName , expectedUnitToString , currentType . toString ( ) ) ; } public void test03 ( ) { String s = "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT:n>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT:n>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT:n>" + "<STR_LIT>" + "<STR_LIT:\\>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" ; String expectedUnitToString = "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT:}>" ; String testName = "<STR_LIT>" ; dietParse ( s , testName ) ; assertEquals ( "<STR_LIT>" , <NUM_LIT> , currentType . getDeclarationSourceStart ( ) ) ; assertEquals ( "<STR_LIT>" , <NUM_LIT> , currentType . getDeclarationSourceEnd ( ) ) ; SourceField [ ] fields = currentType . getFields ( ) ; assertTrue ( "<STR_LIT>" , fields != null ) ; assertEquals ( "<STR_LIT>" , <NUM_LIT:2> , fields . length ) ; assertEquals ( "<STR_LIT>" , <NUM_LIT> , fields [ <NUM_LIT:0> ] . getDeclarationSourceStart ( ) ) ; assertEquals ( "<STR_LIT>" , <NUM_LIT> , fields [ <NUM_LIT:0> ] . getDeclarationSourceEnd ( ) ) ; assertEquals ( "<STR_LIT>" , <NUM_LIT> , fields [ <NUM_LIT:1> ] . getDeclarationSourceStart ( ) ) ; assertEquals ( "<STR_LIT>" , <NUM_LIT> , fields [ <NUM_LIT:1> ] . getDeclarationSourceEnd ( ) ) ; SourceMethod [ ] methods = currentType . getMethods ( ) ; assertTrue ( "<STR_LIT>" , methods != null ) ; assertEquals ( "<STR_LIT>" , <NUM_LIT:3> , methods . length ) ; assertEquals ( "<STR_LIT>" , <NUM_LIT> , methods [ <NUM_LIT:0> ] . getDeclarationSourceStart ( ) ) ; assertEquals ( "<STR_LIT>" , <NUM_LIT> , methods [ <NUM_LIT:0> ] . getDeclarationSourceEnd ( ) ) ; assertEquals ( "<STR_LIT>" , <NUM_LIT> , methods [ <NUM_LIT:1> ] . getDeclarationSourceStart ( ) ) ; assertEquals ( "<STR_LIT>" , <NUM_LIT> , methods [ <NUM_LIT:1> ] . getDeclarationSourceEnd ( ) ) ; assertEquals ( "<STR_LIT>" , <NUM_LIT> , methods [ <NUM_LIT:2> ] . getDeclarationSourceStart ( ) ) ; assertEquals ( "<STR_LIT>" , <NUM_LIT> , methods [ <NUM_LIT:2> ] . getDeclarationSourceEnd ( ) ) ; assertEquals ( "<STR_LIT>" , "<STR_LIT:foo>" , methods [ <NUM_LIT:0> ] . getActualName ( ) ) ; assertEquals ( "<STR_LIT>" , "<STR_LIT:bar>" + "<STR_LIT:\\>" + "<STR_LIT>" , methods [ <NUM_LIT:1> ] . getActualName ( ) ) ; assertEquals ( "<STR_LIT>" + testName , expectedUnitToString , currentType . toString ( ) ) ; } public void test04 ( ) { String s = "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" ; String expectedUnitToString = "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT:}>" ; String testName = "<STR_LIT>" ; fullParse ( s , testName ) ; assertEquals ( "<STR_LIT>" , <NUM_LIT> , currentType . getDeclarationSourceStart ( ) ) ; assertEquals ( "<STR_LIT>" , <NUM_LIT> , currentType . getDeclarationSourceEnd ( ) ) ; SourceField [ ] fields = currentType . getFields ( ) ; assertTrue ( "<STR_LIT>" , fields != null ) ; assertEquals ( "<STR_LIT>" , <NUM_LIT:2> , fields . length ) ; assertEquals ( "<STR_LIT>" , <NUM_LIT> , fields [ <NUM_LIT:0> ] . getDeclarationSourceStart ( ) ) ; assertEquals ( "<STR_LIT>" , <NUM_LIT> , fields [ <NUM_LIT:0> ] . getDeclarationSourceEnd ( ) ) ; assertEquals ( "<STR_LIT>" , <NUM_LIT> , fields [ <NUM_LIT:1> ] . getDeclarationSourceStart ( ) ) ; assertEquals ( "<STR_LIT>" , <NUM_LIT> , fields [ <NUM_LIT:1> ] . getDeclarationSourceEnd ( ) ) ; SourceMethod [ ] methods = currentType . getMethods ( ) ; assertTrue ( "<STR_LIT>" , methods != null ) ; assertEquals ( "<STR_LIT>" , <NUM_LIT:3> , methods . length ) ; assertEquals ( "<STR_LIT>" , <NUM_LIT> , methods [ <NUM_LIT:0> ] . getDeclarationSourceStart ( ) ) ; assertEquals ( "<STR_LIT>" , <NUM_LIT> , methods [ <NUM_LIT:0> ] . getDeclarationSourceEnd ( ) ) ; assertEquals ( "<STR_LIT>" , <NUM_LIT> , methods [ <NUM_LIT:1> ] . getDeclarationSourceStart ( ) ) ; assertEquals ( "<STR_LIT>" , <NUM_LIT> , methods [ <NUM_LIT:1> ] . getDeclarationSourceEnd ( ) ) ; assertEquals ( "<STR_LIT>" , <NUM_LIT> , methods [ <NUM_LIT:2> ] . getDeclarationSourceStart ( ) ) ; assertEquals ( "<STR_LIT>" , <NUM_LIT> , methods [ <NUM_LIT:2> ] . getDeclarationSourceEnd ( ) ) ; assertEquals ( "<STR_LIT>" , "<STR_LIT:foo>" , methods [ <NUM_LIT:0> ] . getActualName ( ) ) ; assertEquals ( "<STR_LIT>" , "<STR_LIT:bar>" , methods [ <NUM_LIT:1> ] . getActualName ( ) ) ; assertEquals ( "<STR_LIT>" + testName , expectedUnitToString , currentType . toString ( ) ) ; } public void test05 ( ) { String s = "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" ; String expectedUnitToString = "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT:}>" ; String testName = "<STR_LIT>" ; dietParse ( s , testName ) ; assertEquals ( "<STR_LIT>" , <NUM_LIT> , currentType . getDeclarationSourceStart ( ) ) ; assertEquals ( "<STR_LIT>" , <NUM_LIT> , currentType . getDeclarationSourceEnd ( ) ) ; SourceField [ ] fields = currentType . getFields ( ) ; assertTrue ( "<STR_LIT>" , fields != null ) ; assertEquals ( "<STR_LIT>" , <NUM_LIT:2> , fields . length ) ; assertEquals ( "<STR_LIT>" , <NUM_LIT> , fields [ <NUM_LIT:0> ] . getDeclarationSourceStart ( ) ) ; assertEquals ( "<STR_LIT>" , <NUM_LIT> , fields [ <NUM_LIT:0> ] . getDeclarationSourceEnd ( ) ) ; assertEquals ( "<STR_LIT>" , <NUM_LIT> , fields [ <NUM_LIT:1> ] . getDeclarationSourceStart ( ) ) ; assertEquals ( "<STR_LIT>" , <NUM_LIT> , fields [ <NUM_LIT:1> ] . getDeclarationSourceEnd ( ) ) ; SourceMethod [ ] methods = currentType . getMethods ( ) ; assertTrue ( "<STR_LIT>" , methods != null ) ; assertEquals ( "<STR_LIT>" , <NUM_LIT:3> , methods . length ) ; assertEquals ( "<STR_LIT>" , <NUM_LIT> , methods [ <NUM_LIT:0> ] . getDeclarationSourceStart ( ) ) ; assertEquals ( "<STR_LIT>" , <NUM_LIT> , methods [ <NUM_LIT:0> ] . getDeclarationSourceEnd ( ) ) ; assertEquals ( "<STR_LIT>" , <NUM_LIT> , methods [ <NUM_LIT:1> ] . getDeclarationSourceStart ( ) ) ; assertEquals ( "<STR_LIT>" , <NUM_LIT> , methods [ <NUM_LIT:1> ] . getDeclarationSourceEnd ( ) ) ; assertEquals ( "<STR_LIT>" , <NUM_LIT> , methods [ <NUM_LIT:2> ] . getDeclarationSourceStart ( ) ) ; assertEquals ( "<STR_LIT>" , <NUM_LIT> , methods [ <NUM_LIT:2> ] . getDeclarationSourceEnd ( ) ) ; assertEquals ( "<STR_LIT>" , "<STR_LIT:foo>" , methods [ <NUM_LIT:0> ] . getActualName ( ) ) ; assertEquals ( "<STR_LIT>" , "<STR_LIT:bar>" , methods [ <NUM_LIT:1> ] . getActualName ( ) ) ; assertEquals ( "<STR_LIT>" + testName , expectedUnitToString , currentType . toString ( ) ) ; } public void test06 ( ) { String s = "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" ; String expectedUnitToString = "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT:}>" ; String testName = "<STR_LIT>" ; dietParse ( s , testName ) ; assertEquals ( "<STR_LIT>" , <NUM_LIT> , currentType . getDeclarationSourceStart ( ) ) ; assertEquals ( "<STR_LIT>" , <NUM_LIT> , currentType . getDeclarationSourceEnd ( ) ) ; SourceField [ ] fields = currentType . getFields ( ) ; assertTrue ( "<STR_LIT>" , fields != null ) ; assertEquals ( "<STR_LIT>" , <NUM_LIT:5> , fields . length ) ; assertEquals ( "<STR_LIT>" , <NUM_LIT> , fields [ <NUM_LIT:0> ] . getDeclarationSourceStart ( ) ) ; assertEquals ( "<STR_LIT>" , <NUM_LIT> , fields [ <NUM_LIT:0> ] . getDeclarationSourceEnd ( ) ) ; assertEquals ( "<STR_LIT>" , <NUM_LIT> , fields [ <NUM_LIT:1> ] . getDeclarationSourceStart ( ) ) ; assertEquals ( "<STR_LIT>" , <NUM_LIT> , fields [ <NUM_LIT:1> ] . getDeclarationSourceEnd ( ) ) ; assertEquals ( "<STR_LIT>" , <NUM_LIT> , fields [ <NUM_LIT:2> ] . getDeclarationSourceStart ( ) ) ; assertEquals ( "<STR_LIT>" , <NUM_LIT> , fields [ <NUM_LIT:2> ] . getDeclarationSourceEnd ( ) ) ; assertEquals ( "<STR_LIT>" , <NUM_LIT> , fields [ <NUM_LIT:3> ] . getDeclarationSourceStart ( ) ) ; assertEquals ( "<STR_LIT>" , <NUM_LIT> , fields [ <NUM_LIT:3> ] . getDeclarationSourceEnd ( ) ) ; assertEquals ( "<STR_LIT>" , <NUM_LIT> , fields [ <NUM_LIT:4> ] . getDeclarationSourceStart ( ) ) ; assertEquals ( "<STR_LIT>" , <NUM_LIT> , fields [ <NUM_LIT:4> ] . getDeclarationSourceEnd ( ) ) ; SourceMethod [ ] methods = currentType . getMethods ( ) ; assertTrue ( "<STR_LIT>" , methods != null ) ; assertEquals ( "<STR_LIT>" , <NUM_LIT:3> , methods . length ) ; assertEquals ( "<STR_LIT>" , <NUM_LIT> , methods [ <NUM_LIT:0> ] . getDeclarationSourceStart ( ) ) ; assertEquals ( "<STR_LIT>" , <NUM_LIT> , methods [ <NUM_LIT:0> ] . getDeclarationSourceEnd ( ) ) ; assertEquals ( "<STR_LIT>" , <NUM_LIT> , methods [ <NUM_LIT:1> ] . getDeclarationSourceStart ( ) ) ; assertEquals ( "<STR_LIT>" , <NUM_LIT> , methods [ <NUM_LIT:1> ] . getDeclarationSourceEnd ( ) ) ; assertEquals ( "<STR_LIT>" , <NUM_LIT> , methods [ <NUM_LIT:2> ] . getDeclarationSourceStart ( ) ) ; assertEquals ( "<STR_LIT>" , <NUM_LIT> , methods [ <NUM_LIT:2> ] . getDeclarationSourceEnd ( ) ) ; assertEquals ( "<STR_LIT>" , "<STR_LIT:foo>" , methods [ <NUM_LIT:0> ] . getActualName ( ) ) ; assertEquals ( "<STR_LIT>" , "<STR_LIT:bar>" , methods [ <NUM_LIT:1> ] . getActualName ( ) ) ; assertEquals ( "<STR_LIT>" , "<STR_LIT>" , methods [ <NUM_LIT:2> ] . getActualName ( ) ) ; assertEquals ( "<STR_LIT>" + testName , expectedUnitToString , currentType . toString ( ) ) ; } public void test07 ( ) { String s = "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" ; String expectedUnitToString = "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT:}>" ; String testName = "<STR_LIT>" ; fullParse ( s , testName ) ; assertEquals ( "<STR_LIT>" , <NUM_LIT> , currentType . getDeclarationSourceStart ( ) ) ; assertEquals ( "<STR_LIT>" , <NUM_LIT> , currentType . getDeclarationSourceEnd ( ) ) ; SourceField [ ] fields = currentType . getFields ( ) ; assertTrue ( "<STR_LIT>" , fields != null ) ; assertEquals ( "<STR_LIT>" , <NUM_LIT:5> , fields . length ) ; assertEquals ( "<STR_LIT>" , <NUM_LIT> , fields [ <NUM_LIT:0> ] . getDeclarationSourceStart ( ) ) ; assertEquals ( "<STR_LIT>" , <NUM_LIT> , fields [ <NUM_LIT:0> ] . getDeclarationSourceEnd ( ) ) ; assertEquals ( "<STR_LIT>" , <NUM_LIT> , fields [ <NUM_LIT:1> ] . getDeclarationSourceStart ( ) ) ; assertEquals ( "<STR_LIT>" , <NUM_LIT> , fields [ <NUM_LIT:1> ] . getDeclarationSourceEnd ( ) ) ; assertEquals ( "<STR_LIT>" , <NUM_LIT> , fields [ <NUM_LIT:2> ] . getDeclarationSourceStart ( ) ) ; assertEquals ( "<STR_LIT>" , <NUM_LIT> , fields [ <NUM_LIT:2> ] . getDeclarationSourceEnd ( ) ) ; assertEquals ( "<STR_LIT>" , <NUM_LIT> , fields [ <NUM_LIT:3> ] . getDeclarationSourceStart ( ) ) ; assertEquals ( "<STR_LIT>" , <NUM_LIT> , fields [ <NUM_LIT:3> ] . getDeclarationSourceEnd ( ) ) ; assertEquals ( "<STR_LIT>" , <NUM_LIT> , fields [ <NUM_LIT:4> ] . getDeclarationSourceStart ( ) ) ; assertEquals ( "<STR_LIT>" , <NUM_LIT> , fields [ <NUM_LIT:4> ] . getDeclarationSourceEnd ( ) ) ; SourceMethod [ ] methods = currentType . getMethods ( ) ; assertTrue ( "<STR_LIT>" , methods != null ) ; assertEquals ( "<STR_LIT>" , <NUM_LIT:3> , methods . length ) ; assertEquals ( "<STR_LIT>" , <NUM_LIT> , methods [ <NUM_LIT:0> ] . getDeclarationSourceStart ( ) ) ; assertEquals ( "<STR_LIT>" , <NUM_LIT> , methods [ <NUM_LIT:0> ] . getDeclarationSourceEnd ( ) ) ; assertEquals ( "<STR_LIT>" , <NUM_LIT> , methods [ <NUM_LIT:1> ] . getDeclarationSourceStart ( ) ) ; assertEquals ( "<STR_LIT>" , <NUM_LIT> , methods [ <NUM_LIT:1> ] . getDeclarationSourceEnd ( ) ) ; assertEquals ( "<STR_LIT>" , <NUM_LIT> , methods [ <NUM_LIT:2> ] . getDeclarationSourceStart ( ) ) ; assertEquals ( "<STR_LIT>" , <NUM_LIT> , methods [ <NUM_LIT:2> ] . getDeclarationSourceEnd ( ) ) ; assertEquals ( "<STR_LIT>" , "<STR_LIT:foo>" , methods [ <NUM_LIT:0> ] . getActualName ( ) ) ; assertEquals ( "<STR_LIT>" , "<STR_LIT:bar>" , methods [ <NUM_LIT:1> ] . getActualName ( ) ) ; assertEquals ( "<STR_LIT>" , "<STR_LIT>" , methods [ <NUM_LIT:2> ] . getActualName ( ) ) ; assertEquals ( "<STR_LIT>" + testName , expectedUnitToString , currentType . toString ( ) ) ; } public void test08 ( ) { String s = "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" ; String expectedUnitToString = "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT:}>" ; String testName = "<STR_LIT>" ; dietParse ( s , testName ) ; assertEquals ( "<STR_LIT>" , <NUM_LIT:0> , currentType . getDeclarationSourceStart ( ) ) ; assertEquals ( "<STR_LIT>" , <NUM_LIT> , currentType . getDeclarationSourceEnd ( ) ) ; SourceField [ ] fields = currentType . getFields ( ) ; assertTrue ( "<STR_LIT>" , fields == null ) ; SourceMethod [ ] methods = currentType . getMethods ( ) ; assertTrue ( "<STR_LIT>" , methods != null ) ; assertEquals ( "<STR_LIT>" , <NUM_LIT:3> , methods . length ) ; assertEquals ( "<STR_LIT>" , <NUM_LIT> , methods [ <NUM_LIT:0> ] . getDeclarationSourceStart ( ) ) ; assertEquals ( "<STR_LIT>" , <NUM_LIT:100> , methods [ <NUM_LIT:0> ] . getDeclarationSourceEnd ( ) ) ; assertEquals ( "<STR_LIT>" , <NUM_LIT> , methods [ <NUM_LIT:1> ] . getDeclarationSourceStart ( ) ) ; assertEquals ( "<STR_LIT>" , <NUM_LIT> , methods [ <NUM_LIT:1> ] . getDeclarationSourceEnd ( ) ) ; assertEquals ( "<STR_LIT>" , <NUM_LIT> , methods [ <NUM_LIT:2> ] . getDeclarationSourceStart ( ) ) ; assertEquals ( "<STR_LIT>" , <NUM_LIT> , methods [ <NUM_LIT:2> ] . getDeclarationSourceEnd ( ) ) ; assertEquals ( "<STR_LIT>" , "<STR_LIT:foo>" , methods [ <NUM_LIT:0> ] . getActualName ( ) ) ; assertEquals ( "<STR_LIT>" , "<STR_LIT:bar>" , methods [ <NUM_LIT:1> ] . getActualName ( ) ) ; assertEquals ( "<STR_LIT>" , "<STR_LIT>" , methods [ <NUM_LIT:2> ] . getActualName ( ) ) ; assertEquals ( "<STR_LIT>" + testName , expectedUnitToString , currentType . toString ( ) ) ; } public void test09 ( ) { String s = "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" ; String expectedUnitToString = "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT:}>" ; String testName = "<STR_LIT>" ; fullParse ( s , testName ) ; assertEquals ( "<STR_LIT>" , <NUM_LIT:0> , currentType . getDeclarationSourceStart ( ) ) ; assertEquals ( "<STR_LIT>" , <NUM_LIT> , currentType . getDeclarationSourceEnd ( ) ) ; SourceField [ ] fields = currentType . getFields ( ) ; assertTrue ( "<STR_LIT>" , fields == null ) ; SourceMethod [ ] methods = currentType . getMethods ( ) ; assertTrue ( "<STR_LIT>" , methods != null ) ; assertEquals ( "<STR_LIT>" , <NUM_LIT:3> , methods . length ) ; assertEquals ( "<STR_LIT>" , <NUM_LIT> , methods [ <NUM_LIT:0> ] . getDeclarationSourceStart ( ) ) ; assertEquals ( "<STR_LIT>" , <NUM_LIT:100> , methods [ <NUM_LIT:0> ] . getDeclarationSourceEnd ( ) ) ; assertEquals ( "<STR_LIT>" , <NUM_LIT> , methods [ <NUM_LIT:1> ] . getDeclarationSourceStart ( ) ) ; assertEquals ( "<STR_LIT>" , <NUM_LIT> , methods [ <NUM_LIT:1> ] . getDeclarationSourceEnd ( ) ) ; assertEquals ( "<STR_LIT>" , <NUM_LIT> , methods [ <NUM_LIT:2> ] . getDeclarationSourceStart ( ) ) ; assertEquals ( "<STR_LIT>" , <NUM_LIT> , methods [ <NUM_LIT:2> ] . getDeclarationSourceEnd ( ) ) ; assertEquals ( "<STR_LIT>" , "<STR_LIT:foo>" , methods [ <NUM_LIT:0> ] . getActualName ( ) ) ; assertEquals ( "<STR_LIT>" , "<STR_LIT:bar>" , methods [ <NUM_LIT:1> ] . getActualName ( ) ) ; assertEquals ( "<STR_LIT>" , "<STR_LIT>" , methods [ <NUM_LIT:2> ] . getActualName ( ) ) ; assertEquals ( "<STR_LIT>" + testName , expectedUnitToString , currentType . toString ( ) ) ; } public void test10 ( ) { String s = "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" ; String expectedUnitToString = "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT:}>" ; String testName = "<STR_LIT>" ; dietParse ( s , testName ) ; assertEquals ( "<STR_LIT>" , <NUM_LIT:0> , currentType . getDeclarationSourceStart ( ) ) ; assertEquals ( "<STR_LIT>" , <NUM_LIT> , currentType . getDeclarationSourceEnd ( ) ) ; SourceField [ ] fields = currentType . getFields ( ) ; assertTrue ( "<STR_LIT>" , fields == null ) ; SourceMethod [ ] methods = currentType . getMethods ( ) ; assertTrue ( "<STR_LIT>" , methods != null ) ; assertEquals ( "<STR_LIT>" , <NUM_LIT:3> , methods . length ) ; assertEquals ( "<STR_LIT>" , <NUM_LIT> , methods [ <NUM_LIT:0> ] . getDeclarationSourceStart ( ) ) ; assertEquals ( "<STR_LIT>" , <NUM_LIT:100> , methods [ <NUM_LIT:0> ] . getDeclarationSourceEnd ( ) ) ; assertEquals ( "<STR_LIT>" , <NUM_LIT> , methods [ <NUM_LIT:1> ] . getDeclarationSourceStart ( ) ) ; assertEquals ( "<STR_LIT>" , <NUM_LIT> , methods [ <NUM_LIT:1> ] . getDeclarationSourceEnd ( ) ) ; assertEquals ( "<STR_LIT>" , <NUM_LIT> , methods [ <NUM_LIT:2> ] . getDeclarationSourceStart ( ) ) ; assertEquals ( "<STR_LIT>" , <NUM_LIT> , methods [ <NUM_LIT:2> ] . getDeclarationSourceEnd ( ) ) ; assertEquals ( "<STR_LIT>" , "<STR_LIT:foo>" , methods [ <NUM_LIT:0> ] . getActualName ( ) ) ; assertEquals ( "<STR_LIT>" , "<STR_LIT:bar>" , methods [ <NUM_LIT:1> ] . getActualName ( ) ) ; assertEquals ( "<STR_LIT>" , "<STR_LIT>" , methods [ <NUM_LIT:2> ] . getActualName ( ) ) ; assertEquals ( "<STR_LIT>" + testName , expectedUnitToString , currentType . toString ( ) ) ; } public void test11 ( ) { String s = "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" ; String expectedUnitToString = "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT:}>" ; String testName = "<STR_LIT>" ; fullParse ( s , testName ) ; assertEquals ( "<STR_LIT>" , <NUM_LIT:0> , currentType . getDeclarationSourceStart ( ) ) ; assertEquals ( "<STR_LIT>" , <NUM_LIT> , currentType . getDeclarationSourceEnd ( ) ) ; SourceField [ ] fields = currentType . getFields ( ) ; assertTrue ( "<STR_LIT>" , fields != null ) ; assertEquals ( "<STR_LIT>" , <NUM_LIT> , fields [ <NUM_LIT:0> ] . getDeclarationSourceStart ( ) ) ; assertEquals ( "<STR_LIT>" , <NUM_LIT> , fields [ <NUM_LIT:0> ] . getDeclarationSourceEnd ( ) ) ; assertEquals ( "<STR_LIT>" , <NUM_LIT> , fields [ <NUM_LIT:1> ] . getDeclarationSourceStart ( ) ) ; assertEquals ( "<STR_LIT>" , <NUM_LIT> , fields [ <NUM_LIT:1> ] . getDeclarationSourceEnd ( ) ) ; SourceMethod [ ] methods = currentType . getMethods ( ) ; assertTrue ( "<STR_LIT>" , methods != null ) ; assertEquals ( "<STR_LIT>" , <NUM_LIT:4> , methods . length ) ; assertEquals ( "<STR_LIT>" , <NUM_LIT> , methods [ <NUM_LIT:0> ] . getDeclarationSourceStart ( ) ) ; assertEquals ( "<STR_LIT>" , <NUM_LIT> , methods [ <NUM_LIT:0> ] . getDeclarationSourceEnd ( ) ) ; assertEquals ( "<STR_LIT>" , <NUM_LIT> , methods [ <NUM_LIT:1> ] . getDeclarationSourceStart ( ) ) ; assertEquals ( "<STR_LIT>" , <NUM_LIT> , methods [ <NUM_LIT:1> ] . getDeclarationSourceEnd ( ) ) ; assertEquals ( "<STR_LIT>" , <NUM_LIT> , methods [ <NUM_LIT:2> ] . getDeclarationSourceStart ( ) ) ; assertEquals ( "<STR_LIT>" , <NUM_LIT> , methods [ <NUM_LIT:2> ] . getDeclarationSourceEnd ( ) ) ; assertEquals ( "<STR_LIT>" , <NUM_LIT> , methods [ <NUM_LIT:3> ] . getDeclarationSourceStart ( ) ) ; assertEquals ( "<STR_LIT>" , <NUM_LIT> , methods [ <NUM_LIT:3> ] . getDeclarationSourceEnd ( ) ) ; assertEquals ( "<STR_LIT>" , "<STR_LIT:foo>" , methods [ <NUM_LIT:0> ] . getActualName ( ) ) ; assertEquals ( "<STR_LIT>" , "<STR_LIT:baz>" , methods [ <NUM_LIT:1> ] . getActualName ( ) ) ; assertEquals ( "<STR_LIT>" , "<STR_LIT:bar>" , methods [ <NUM_LIT:2> ] . getActualName ( ) ) ; assertEquals ( "<STR_LIT>" , "<STR_LIT>" , methods [ <NUM_LIT:3> ] . getActualName ( ) ) ; assertEquals ( "<STR_LIT>" + testName , expectedUnitToString , currentType . toString ( ) ) ; } public void test12 ( ) { String s = "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT:n>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT:n>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" ; String expectedUnitToString = "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT:}>" ; String testName = "<STR_LIT>" ; fullParse ( s , testName ) ; assertEquals ( "<STR_LIT>" , <NUM_LIT> , currentType . getDeclarationSourceStart ( ) ) ; assertEquals ( "<STR_LIT>" , <NUM_LIT> , currentType . getDeclarationSourceEnd ( ) ) ; SourceField [ ] fields = currentType . getFields ( ) ; assertTrue ( "<STR_LIT>" , fields != null ) ; assertEquals ( "<STR_LIT>" , <NUM_LIT:1> , fields . length ) ; assertEquals ( "<STR_LIT>" , <NUM_LIT> , fields [ <NUM_LIT:0> ] . getDeclarationSourceStart ( ) ) ; assertEquals ( "<STR_LIT>" , <NUM_LIT> , fields [ <NUM_LIT:0> ] . getDeclarationSourceEnd ( ) ) ; SourceMethod [ ] methods = currentType . getMethods ( ) ; assertTrue ( "<STR_LIT>" , methods != null ) ; assertEquals ( "<STR_LIT>" , <NUM_LIT:4> , methods . length ) ; assertEquals ( "<STR_LIT>" , <NUM_LIT> , methods [ <NUM_LIT:0> ] . getDeclarationSourceStart ( ) ) ; assertEquals ( "<STR_LIT>" , <NUM_LIT> , methods [ <NUM_LIT:0> ] . getDeclarationSourceEnd ( ) ) ; assertEquals ( "<STR_LIT>" , <NUM_LIT> , methods [ <NUM_LIT:1> ] . getDeclarationSourceStart ( ) ) ; assertEquals ( "<STR_LIT>" , <NUM_LIT> , methods [ <NUM_LIT:1> ] . getDeclarationSourceEnd ( ) ) ; assertEquals ( "<STR_LIT>" , <NUM_LIT> , methods [ <NUM_LIT:2> ] . getDeclarationSourceStart ( ) ) ; assertEquals ( "<STR_LIT>" , <NUM_LIT> , methods [ <NUM_LIT:2> ] . getDeclarationSourceEnd ( ) ) ; assertEquals ( "<STR_LIT>" , <NUM_LIT> , methods [ <NUM_LIT:3> ] . getDeclarationSourceStart ( ) ) ; assertEquals ( "<STR_LIT>" , <NUM_LIT> , methods [ <NUM_LIT:3> ] . getDeclarationSourceEnd ( ) ) ; assertEquals ( "<STR_LIT>" , "<STR_LIT:foo>" , methods [ <NUM_LIT:0> ] . getActualName ( ) ) ; assertEquals ( "<STR_LIT>" , "<STR_LIT:baz>" , methods [ <NUM_LIT:1> ] . getActualName ( ) ) ; assertEquals ( "<STR_LIT>" , "<STR_LIT:bar>" , methods [ <NUM_LIT:2> ] . getActualName ( ) ) ; assertEquals ( "<STR_LIT>" , "<STR_LIT>" , methods [ <NUM_LIT:3> ] . getActualName ( ) ) ; assertEquals ( "<STR_LIT>" + testName , expectedUnitToString , currentType . toString ( ) ) ; } public void test13 ( ) { String s = "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT:n>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT:n>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" ; String expectedUnitToString = "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT:}>" ; String testName = "<STR_LIT>" ; fullParse ( s , testName ) ; assertEquals ( "<STR_LIT>" , <NUM_LIT> , currentType . getDeclarationSourceStart ( ) ) ; assertEquals ( "<STR_LIT>" , <NUM_LIT> , currentType . getDeclarationSourceEnd ( ) ) ; SourceField [ ] fields = currentType . getFields ( ) ; assertTrue ( "<STR_LIT>" , fields != null ) ; assertEquals ( "<STR_LIT>" , <NUM_LIT:1> , fields . length ) ; assertEquals ( "<STR_LIT>" , <NUM_LIT> , fields [ <NUM_LIT:0> ] . getDeclarationSourceStart ( ) ) ; assertEquals ( "<STR_LIT>" , <NUM_LIT> , fields [ <NUM_LIT:0> ] . getDeclarationSourceEnd ( ) ) ; SourceMethod [ ] methods = currentType . getMethods ( ) ; assertTrue ( "<STR_LIT>" , methods != null ) ; assertEquals ( "<STR_LIT>" , <NUM_LIT:4> , methods . length ) ; assertEquals ( "<STR_LIT>" , <NUM_LIT> , methods [ <NUM_LIT:0> ] . getDeclarationSourceStart ( ) ) ; assertEquals ( "<STR_LIT>" , <NUM_LIT> , methods [ <NUM_LIT:0> ] . getDeclarationSourceEnd ( ) ) ; assertEquals ( "<STR_LIT>" , <NUM_LIT> , methods [ <NUM_LIT:1> ] . getDeclarationSourceStart ( ) ) ; assertEquals ( "<STR_LIT>" , <NUM_LIT> , methods [ <NUM_LIT:1> ] . getDeclarationSourceEnd ( ) ) ; assertEquals ( "<STR_LIT>" , <NUM_LIT> , methods [ <NUM_LIT:2> ] . getDeclarationSourceStart ( ) ) ; assertEquals ( "<STR_LIT>" , <NUM_LIT> , methods [ <NUM_LIT:2> ] . getDeclarationSourceEnd ( ) ) ; assertEquals ( "<STR_LIT>" , <NUM_LIT> , methods [ <NUM_LIT:3> ] . getDeclarationSourceStart ( ) ) ; assertEquals ( "<STR_LIT>" , <NUM_LIT> , methods [ <NUM_LIT:3> ] . getDeclarationSourceEnd ( ) ) ; assertEquals ( "<STR_LIT>" , "<STR_LIT:foo>" , methods [ <NUM_LIT:0> ] . getActualName ( ) ) ; assertEquals ( "<STR_LIT>" , "<STR_LIT:baz>" , methods [ <NUM_LIT:1> ] . getActualName ( ) ) ; assertEquals ( "<STR_LIT>" , "<STR_LIT:bar>" , methods [ <NUM_LIT:2> ] . getActualName ( ) ) ; assertEquals ( "<STR_LIT>" , "<STR_LIT>" , methods [ <NUM_LIT:3> ] . getActualName ( ) ) ; assertEquals ( "<STR_LIT>" + testName , expectedUnitToString , currentType . toString ( ) ) ; } public void test14 ( ) { String s = "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT:n>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT:n>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" ; String expectedUnitToString = "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT:}>" ; String testName = "<STR_LIT>" ; dietParse ( s , testName ) ; assertEquals ( "<STR_LIT>" , <NUM_LIT> , currentType . getDeclarationSourceStart ( ) ) ; assertEquals ( "<STR_LIT>" , <NUM_LIT> , currentType . getDeclarationSourceEnd ( ) ) ; SourceField [ ] fields = currentType . getFields ( ) ; assertTrue ( "<STR_LIT>" , fields == null ) ; SourceMethod [ ] methods = currentType . getMethods ( ) ; assertTrue ( "<STR_LIT>" , methods != null ) ; assertEquals ( "<STR_LIT>" , <NUM_LIT:3> , methods . length ) ; assertEquals ( "<STR_LIT>" , <NUM_LIT> , methods [ <NUM_LIT:0> ] . getDeclarationSourceStart ( ) ) ; assertEquals ( "<STR_LIT>" , <NUM_LIT> , methods [ <NUM_LIT:0> ] . getDeclarationSourceEnd ( ) ) ; assertEquals ( "<STR_LIT>" , <NUM_LIT> , methods [ <NUM_LIT:1> ] . getDeclarationSourceStart ( ) ) ; assertEquals ( "<STR_LIT>" , <NUM_LIT> , methods [ <NUM_LIT:1> ] . getDeclarationSourceEnd ( ) ) ; assertEquals ( "<STR_LIT>" , <NUM_LIT> , methods [ <NUM_LIT:2> ] . getDeclarationSourceStart ( ) ) ; assertEquals ( "<STR_LIT>" , <NUM_LIT> , methods [ <NUM_LIT:2> ] . getDeclarationSourceEnd ( ) ) ; assertEquals ( "<STR_LIT>" , "<STR_LIT:foo>" , methods [ <NUM_LIT:0> ] . getActualName ( ) ) ; assertEquals ( "<STR_LIT>" , "<STR_LIT:bar>" , methods [ <NUM_LIT:1> ] . getActualName ( ) ) ; assertEquals ( "<STR_LIT>" , "<STR_LIT>" , methods [ <NUM_LIT:2> ] . getActualName ( ) ) ; assertEquals ( "<STR_LIT>" + testName , expectedUnitToString , currentType . toString ( ) ) ; } public void test15 ( ) { String s = "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" ; String expectedUnitToString = "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT:}>" ; String testName = "<STR_LIT>" ; fullParse ( s , testName ) ; assertEquals ( "<STR_LIT>" , <NUM_LIT:0> , currentType . getDeclarationSourceStart ( ) ) ; assertEquals ( "<STR_LIT>" , <NUM_LIT> , currentType . getDeclarationSourceEnd ( ) ) ; SourceField [ ] fields = currentType . getFields ( ) ; assertTrue ( "<STR_LIT>" , fields == null ) ; SourceMethod [ ] methods = currentType . getMethods ( ) ; assertTrue ( "<STR_LIT>" , methods == null ) ; SourceType [ ] members = currentType . getMemberTypes ( ) ; assertTrue ( "<STR_LIT>" , members != null ) ; assertEquals ( "<STR_LIT>" , <NUM_LIT:1> , members . length ) ; fields = members [ <NUM_LIT:0> ] . getFields ( ) ; assertTrue ( "<STR_LIT>" , fields != null ) ; assertEquals ( "<STR_LIT>" , <NUM_LIT:2> , fields . length ) ; assertEquals ( "<STR_LIT>" , <NUM_LIT> , fields [ <NUM_LIT:0> ] . getDeclarationSourceStart ( ) ) ; assertEquals ( "<STR_LIT>" , <NUM_LIT> , fields [ <NUM_LIT:0> ] . getDeclarationSourceEnd ( ) ) ; assertEquals ( "<STR_LIT>" , <NUM_LIT> , fields [ <NUM_LIT:1> ] . getDeclarationSourceStart ( ) ) ; assertEquals ( "<STR_LIT>" , <NUM_LIT> , fields [ <NUM_LIT:1> ] . getDeclarationSourceEnd ( ) ) ; methods = members [ <NUM_LIT:0> ] . getMethods ( ) ; assertTrue ( "<STR_LIT>" , methods != null ) ; assertEquals ( "<STR_LIT>" , <NUM_LIT:3> , methods . length ) ; assertEquals ( "<STR_LIT>" , <NUM_LIT> , methods [ <NUM_LIT:0> ] . getDeclarationSourceStart ( ) ) ; assertEquals ( "<STR_LIT>" , <NUM_LIT> , methods [ <NUM_LIT:0> ] . getDeclarationSourceEnd ( ) ) ; assertEquals ( "<STR_LIT>" , <NUM_LIT> , methods [ <NUM_LIT:1> ] . getDeclarationSourceStart ( ) ) ; assertEquals ( "<STR_LIT>" , <NUM_LIT> , methods [ <NUM_LIT:1> ] . getDeclarationSourceEnd ( ) ) ; assertEquals ( "<STR_LIT>" , <NUM_LIT> , methods [ <NUM_LIT:2> ] . getDeclarationSourceStart ( ) ) ; assertEquals ( "<STR_LIT>" , <NUM_LIT> , methods [ <NUM_LIT:2> ] . getDeclarationSourceEnd ( ) ) ; assertEquals ( "<STR_LIT>" , "<STR_LIT:foo>" , methods [ <NUM_LIT:0> ] . getActualName ( ) ) ; assertEquals ( "<STR_LIT>" , "<STR_LIT:bar>" , methods [ <NUM_LIT:1> ] . getActualName ( ) ) ; assertEquals ( "<STR_LIT>" , "<STR_LIT:baz>" , methods [ <NUM_LIT:2> ] . getActualName ( ) ) ; SourceType member = members [ <NUM_LIT:0> ] ; assertEquals ( "<STR_LIT>" , <NUM_LIT> , member . getDeclarationSourceStart ( ) ) ; assertEquals ( "<STR_LIT>" , <NUM_LIT> , member . getDeclarationSourceEnd ( ) ) ; assertEquals ( "<STR_LIT>" + testName , expectedUnitToString , currentType . toString ( ) ) ; } public void test16 ( ) { String s = "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" ; String expectedUnitToString = "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT:}>" ; String testName = "<STR_LIT>" ; dietParse ( s , testName ) ; assertEquals ( "<STR_LIT>" , <NUM_LIT:0> , currentType . getDeclarationSourceStart ( ) ) ; assertEquals ( "<STR_LIT>" , <NUM_LIT> , currentType . getDeclarationSourceEnd ( ) ) ; SourceField [ ] fields = currentType . getFields ( ) ; assertTrue ( "<STR_LIT>" , fields == null ) ; SourceMethod [ ] methods = currentType . getMethods ( ) ; assertTrue ( "<STR_LIT>" , methods == null ) ; SourceType [ ] members = currentType . getMemberTypes ( ) ; assertTrue ( "<STR_LIT>" , members != null ) ; assertEquals ( "<STR_LIT>" , <NUM_LIT:1> , members . length ) ; fields = members [ <NUM_LIT:0> ] . getFields ( ) ; assertTrue ( "<STR_LIT>" , fields != null ) ; assertEquals ( "<STR_LIT>" , <NUM_LIT:2> , fields . length ) ; assertEquals ( "<STR_LIT>" , <NUM_LIT> , fields [ <NUM_LIT:0> ] . getDeclarationSourceStart ( ) ) ; assertEquals ( "<STR_LIT>" , <NUM_LIT> , fields [ <NUM_LIT:0> ] . getDeclarationSourceEnd ( ) ) ; assertEquals ( "<STR_LIT>" , <NUM_LIT> , fields [ <NUM_LIT:1> ] . getDeclarationSourceStart ( ) ) ; assertEquals ( "<STR_LIT>" , <NUM_LIT> , fields [ <NUM_LIT:1> ] . getDeclarationSourceEnd ( ) ) ; methods = members [ <NUM_LIT:0> ] . getMethods ( ) ; assertTrue ( "<STR_LIT>" , methods != null ) ; assertEquals ( "<STR_LIT>" , <NUM_LIT:3> , methods . length ) ; assertEquals ( "<STR_LIT>" , <NUM_LIT> , methods [ <NUM_LIT:0> ] . getDeclarationSourceStart ( ) ) ; assertEquals ( "<STR_LIT>" , <NUM_LIT> , methods [ <NUM_LIT:0> ] . getDeclarationSourceEnd ( ) ) ; assertEquals ( "<STR_LIT>" , <NUM_LIT> , methods [ <NUM_LIT:1> ] . getDeclarationSourceStart ( ) ) ; assertEquals ( "<STR_LIT>" , <NUM_LIT> , methods [ <NUM_LIT:1> ] . getDeclarationSourceEnd ( ) ) ; assertEquals ( "<STR_LIT>" , <NUM_LIT> , methods [ <NUM_LIT:2> ] . getDeclarationSourceStart ( ) ) ; assertEquals ( "<STR_LIT>" , <NUM_LIT> , methods [ <NUM_LIT:2> ] . getDeclarationSourceEnd ( ) ) ; assertEquals ( "<STR_LIT>" , "<STR_LIT:foo>" , methods [ <NUM_LIT:0> ] . getActualName ( ) ) ; assertEquals ( "<STR_LIT>" , "<STR_LIT:bar>" , methods [ <NUM_LIT:1> ] . getActualName ( ) ) ; assertEquals ( "<STR_LIT>" , "<STR_LIT:baz>" , methods [ <NUM_LIT:2> ] . getActualName ( ) ) ; SourceType member = members [ <NUM_LIT:0> ] ; assertEquals ( "<STR_LIT>" , <NUM_LIT> , member . getDeclarationSourceStart ( ) ) ; assertEquals ( "<STR_LIT>" , <NUM_LIT> , member . getDeclarationSourceEnd ( ) ) ; assertEquals ( "<STR_LIT>" + testName , expectedUnitToString , currentType . toString ( ) ) ; } public void test17 ( ) { String s = "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" ; String expectedUnitToString = "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT:}>" ; String testName = "<STR_LIT>" ; fullParse ( s , testName ) ; assertEquals ( "<STR_LIT>" , <NUM_LIT:0> , currentType . getDeclarationSourceStart ( ) ) ; assertEquals ( "<STR_LIT>" , <NUM_LIT> , currentType . getDeclarationSourceEnd ( ) ) ; SourceField [ ] fields = currentType . getFields ( ) ; assertTrue ( "<STR_LIT>" , fields != null ) ; assertEquals ( "<STR_LIT>" , <NUM_LIT:2> , fields . length ) ; assertEquals ( "<STR_LIT>" , <NUM_LIT> , fields [ <NUM_LIT:0> ] . getDeclarationSourceStart ( ) ) ; assertEquals ( "<STR_LIT>" , <NUM_LIT> , fields [ <NUM_LIT:0> ] . getDeclarationSourceEnd ( ) ) ; assertEquals ( "<STR_LIT>" , <NUM_LIT> , fields [ <NUM_LIT:1> ] . getDeclarationSourceStart ( ) ) ; assertEquals ( "<STR_LIT>" , <NUM_LIT> , fields [ <NUM_LIT:1> ] . getDeclarationSourceEnd ( ) ) ; SourceMethod [ ] methods = currentType . getMethods ( ) ; assertTrue ( "<STR_LIT>" , methods != null ) ; assertEquals ( "<STR_LIT>" , <NUM_LIT:2> , methods . length ) ; assertEquals ( "<STR_LIT>" , <NUM_LIT> , methods [ <NUM_LIT:0> ] . getDeclarationSourceStart ( ) ) ; assertEquals ( "<STR_LIT>" , <NUM_LIT> , methods [ <NUM_LIT:0> ] . getDeclarationSourceEnd ( ) ) ; assertEquals ( "<STR_LIT>" , <NUM_LIT> , methods [ <NUM_LIT:1> ] . getDeclarationSourceStart ( ) ) ; assertEquals ( "<STR_LIT>" , <NUM_LIT> , methods [ <NUM_LIT:1> ] . getDeclarationSourceEnd ( ) ) ; assertEquals ( "<STR_LIT>" , "<STR_LIT:bar>" , methods [ <NUM_LIT:0> ] . getActualName ( ) ) ; assertEquals ( "<STR_LIT>" , "<STR_LIT:baz>" , methods [ <NUM_LIT:1> ] . getActualName ( ) ) ; SourceType [ ] members = currentType . getMemberTypes ( ) ; assertTrue ( "<STR_LIT>" , members != null ) ; assertEquals ( "<STR_LIT>" , <NUM_LIT:1> , members . length ) ; fields = members [ <NUM_LIT:0> ] . getFields ( ) ; assertTrue ( "<STR_LIT>" , fields == null ) ; methods = members [ <NUM_LIT:0> ] . getMethods ( ) ; assertTrue ( "<STR_LIT>" , methods != null ) ; assertEquals ( "<STR_LIT>" , <NUM_LIT:1> , methods . length ) ; assertEquals ( "<STR_LIT>" , <NUM_LIT> , methods [ <NUM_LIT:0> ] . getDeclarationSourceStart ( ) ) ; assertEquals ( "<STR_LIT>" , <NUM_LIT> , methods [ <NUM_LIT:0> ] . getDeclarationSourceEnd ( ) ) ; assertEquals ( "<STR_LIT>" , "<STR_LIT:foo>" , methods [ <NUM_LIT:0> ] . getActualName ( ) ) ; SourceType member = members [ <NUM_LIT:0> ] ; assertEquals ( "<STR_LIT>" , <NUM_LIT> , member . getDeclarationSourceStart ( ) ) ; assertEquals ( "<STR_LIT>" , <NUM_LIT> , member . getDeclarationSourceEnd ( ) ) ; assertEquals ( "<STR_LIT>" + testName , expectedUnitToString , currentType . toString ( ) ) ; } public void test18 ( ) { String s = "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" ; String expectedUnitToString = "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT:}>" ; String testName = "<STR_LIT>" ; dietParse ( s , testName ) ; assertEquals ( "<STR_LIT>" , <NUM_LIT:0> , currentType . getDeclarationSourceStart ( ) ) ; assertEquals ( "<STR_LIT>" , <NUM_LIT> , currentType . getDeclarationSourceEnd ( ) ) ; SourceField [ ] fields = currentType . getFields ( ) ; assertTrue ( "<STR_LIT>" , fields != null ) ; assertEquals ( "<STR_LIT>" , <NUM_LIT:2> , fields . length ) ; assertEquals ( "<STR_LIT>" , <NUM_LIT> , fields [ <NUM_LIT:0> ] . getDeclarationSourceStart ( ) ) ; assertEquals ( "<STR_LIT>" , <NUM_LIT> , fields [ <NUM_LIT:0> ] . getDeclarationSourceEnd ( ) ) ; assertEquals ( "<STR_LIT>" , <NUM_LIT> , fields [ <NUM_LIT:1> ] . getDeclarationSourceStart ( ) ) ; assertEquals ( "<STR_LIT>" , <NUM_LIT> , fields [ <NUM_LIT:1> ] . getDeclarationSourceEnd ( ) ) ; SourceMethod [ ] methods = currentType . getMethods ( ) ; assertTrue ( "<STR_LIT>" , methods != null ) ; assertEquals ( "<STR_LIT>" , <NUM_LIT:2> , methods . length ) ; assertEquals ( "<STR_LIT>" , <NUM_LIT> , methods [ <NUM_LIT:0> ] . getDeclarationSourceStart ( ) ) ; assertEquals ( "<STR_LIT>" , <NUM_LIT> , methods [ <NUM_LIT:0> ] . getDeclarationSourceEnd ( ) ) ; assertEquals ( "<STR_LIT>" , <NUM_LIT> , methods [ <NUM_LIT:1> ] . getDeclarationSourceStart ( ) ) ; assertEquals ( "<STR_LIT>" , <NUM_LIT> , methods [ <NUM_LIT:1> ] . getDeclarationSourceEnd ( ) ) ; assertEquals ( "<STR_LIT>" , "<STR_LIT:bar>" , methods [ <NUM_LIT:0> ] . getActualName ( ) ) ; assertEquals ( "<STR_LIT>" , "<STR_LIT:baz>" , methods [ <NUM_LIT:1> ] . getActualName ( ) ) ; SourceType [ ] members = currentType . getMemberTypes ( ) ; assertTrue ( "<STR_LIT>" , members != null ) ; assertEquals ( "<STR_LIT>" , <NUM_LIT:1> , members . length ) ; fields = members [ <NUM_LIT:0> ] . getFields ( ) ; assertTrue ( "<STR_LIT>" , fields == null ) ; methods = members [ <NUM_LIT:0> ] . getMethods ( ) ; assertTrue ( "<STR_LIT>" , methods != null ) ; assertEquals ( "<STR_LIT>" , <NUM_LIT:1> , methods . length ) ; assertEquals ( "<STR_LIT>" , <NUM_LIT> , methods [ <NUM_LIT:0> ] . getDeclarationSourceStart ( ) ) ; assertEquals ( "<STR_LIT>" , <NUM_LIT> , methods [ <NUM_LIT:0> ] . getDeclarationSourceEnd ( ) ) ; assertEquals ( "<STR_LIT>" , "<STR_LIT:foo>" , methods [ <NUM_LIT:0> ] . getActualName ( ) ) ; SourceType member = members [ <NUM_LIT:0> ] ; assertEquals ( "<STR_LIT>" , <NUM_LIT> , member . getDeclarationSourceStart ( ) ) ; assertEquals ( "<STR_LIT>" , <NUM_LIT> , member . getDeclarationSourceEnd ( ) ) ; assertEquals ( "<STR_LIT>" + testName , expectedUnitToString , currentType . toString ( ) ) ; } public void test19 ( ) { String s = "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" ; String expectedUnitToString = "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT:}>" ; String testName = "<STR_LIT>" ; fullParse ( s , testName ) ; assertEquals ( "<STR_LIT>" , <NUM_LIT:0> , currentType . getDeclarationSourceStart ( ) ) ; assertEquals ( "<STR_LIT>" , <NUM_LIT> , currentType . getDeclarationSourceEnd ( ) ) ; SourceField [ ] fields = currentType . getFields ( ) ; assertTrue ( "<STR_LIT>" , fields != null ) ; assertEquals ( "<STR_LIT>" , <NUM_LIT:2> , fields . length ) ; assertEquals ( "<STR_LIT>" , <NUM_LIT> , fields [ <NUM_LIT:0> ] . getDeclarationSourceStart ( ) ) ; assertEquals ( "<STR_LIT>" , <NUM_LIT> , fields [ <NUM_LIT:0> ] . getDeclarationSourceEnd ( ) ) ; assertEquals ( "<STR_LIT>" , <NUM_LIT> , fields [ <NUM_LIT:1> ] . getDeclarationSourceStart ( ) ) ; assertEquals ( "<STR_LIT>" , <NUM_LIT> , fields [ <NUM_LIT:1> ] . getDeclarationSourceEnd ( ) ) ; SourceMethod [ ] methods = currentType . getMethods ( ) ; assertTrue ( "<STR_LIT>" , methods != null ) ; assertEquals ( "<STR_LIT>" , <NUM_LIT:3> , methods . length ) ; assertEquals ( "<STR_LIT>" , <NUM_LIT> , methods [ <NUM_LIT:0> ] . getDeclarationSourceStart ( ) ) ; assertEquals ( "<STR_LIT>" , <NUM_LIT> , methods [ <NUM_LIT:0> ] . getDeclarationSourceEnd ( ) ) ; assertEquals ( "<STR_LIT>" , <NUM_LIT> , methods [ <NUM_LIT:1> ] . getDeclarationSourceStart ( ) ) ; assertEquals ( "<STR_LIT>" , <NUM_LIT> , methods [ <NUM_LIT:1> ] . getDeclarationSourceEnd ( ) ) ; assertEquals ( "<STR_LIT>" , <NUM_LIT> , methods [ <NUM_LIT:2> ] . getDeclarationSourceStart ( ) ) ; assertEquals ( "<STR_LIT>" , <NUM_LIT> , methods [ <NUM_LIT:2> ] . getDeclarationSourceEnd ( ) ) ; assertEquals ( "<STR_LIT>" , "<STR_LIT:foo>" , methods [ <NUM_LIT:0> ] . getActualName ( ) ) ; assertEquals ( "<STR_LIT>" , "<STR_LIT:bar>" , methods [ <NUM_LIT:1> ] . getActualName ( ) ) ; assertEquals ( "<STR_LIT>" , "<STR_LIT:baz>" , methods [ <NUM_LIT:2> ] . getActualName ( ) ) ; SourceType [ ] members = currentType . getMemberTypes ( ) ; assertTrue ( "<STR_LIT>" , members == null ) ; assertEquals ( "<STR_LIT>" + testName , expectedUnitToString , currentType . toString ( ) ) ; } public void test20 ( ) { String s = "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" ; String expectedUnitToString = "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT:}>" ; String testName = "<STR_LIT>" ; fullParse ( s , testName ) ; assertEquals ( "<STR_LIT>" , <NUM_LIT:0> , currentType . getDeclarationSourceStart ( ) ) ; assertEquals ( "<STR_LIT>" , <NUM_LIT> , currentType . getDeclarationSourceEnd ( ) ) ; SourceField [ ] fields = currentType . getFields ( ) ; assertTrue ( "<STR_LIT>" , fields != null ) ; assertEquals ( "<STR_LIT>" , <NUM_LIT:3> , fields . length ) ; assertEquals ( "<STR_LIT>" , <NUM_LIT> , fields [ <NUM_LIT:0> ] . getDeclarationSourceStart ( ) ) ; assertEquals ( "<STR_LIT>" , <NUM_LIT> , fields [ <NUM_LIT:0> ] . getDeclarationSourceEnd ( ) ) ; assertEquals ( "<STR_LIT>" , <NUM_LIT> , fields [ <NUM_LIT:1> ] . getDeclarationSourceStart ( ) ) ; assertEquals ( "<STR_LIT>" , <NUM_LIT> , fields [ <NUM_LIT:1> ] . getDeclarationSourceEnd ( ) ) ; assertEquals ( "<STR_LIT>" , <NUM_LIT> , fields [ <NUM_LIT:2> ] . getDeclarationSourceStart ( ) ) ; assertEquals ( "<STR_LIT>" , <NUM_LIT> , fields [ <NUM_LIT:2> ] . getDeclarationSourceEnd ( ) ) ; SourceMethod [ ] methods = currentType . getMethods ( ) ; assertTrue ( "<STR_LIT>" , methods != null ) ; assertEquals ( "<STR_LIT>" , <NUM_LIT:3> , methods . length ) ; assertEquals ( "<STR_LIT>" , <NUM_LIT> , methods [ <NUM_LIT:0> ] . getDeclarationSourceStart ( ) ) ; assertEquals ( "<STR_LIT>" , <NUM_LIT> , methods [ <NUM_LIT:0> ] . getDeclarationSourceEnd ( ) ) ; assertEquals ( "<STR_LIT>" , <NUM_LIT> , methods [ <NUM_LIT:1> ] . getDeclarationSourceStart ( ) ) ; assertEquals ( "<STR_LIT>" , <NUM_LIT> , methods [ <NUM_LIT:1> ] . getDeclarationSourceEnd ( ) ) ; assertEquals ( "<STR_LIT>" , <NUM_LIT> , methods [ <NUM_LIT:2> ] . getDeclarationSourceStart ( ) ) ; assertEquals ( "<STR_LIT>" , <NUM_LIT> , methods [ <NUM_LIT:2> ] . getDeclarationSourceEnd ( ) ) ; assertEquals ( "<STR_LIT>" , "<STR_LIT:foo>" , methods [ <NUM_LIT:0> ] . getActualName ( ) ) ; assertEquals ( "<STR_LIT>" , "<STR_LIT:bar>" , methods [ <NUM_LIT:1> ] . getActualName ( ) ) ; assertEquals ( "<STR_LIT>" , "<STR_LIT:baz>" , methods [ <NUM_LIT:2> ] . getActualName ( ) ) ; SourceType [ ] members = currentType . getMemberTypes ( ) ; assertTrue ( "<STR_LIT>" , members == null ) ; assertEquals ( "<STR_LIT>" + testName , expectedUnitToString , currentType . toString ( ) ) ; } public void test21 ( ) { String s = "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" ; String expectedUnitToString = "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT:}>" ; String testName = "<STR_LIT>" ; dietParse ( s , testName ) ; assertEquals ( "<STR_LIT>" , <NUM_LIT:0> , currentType . getDeclarationSourceStart ( ) ) ; assertEquals ( "<STR_LIT>" , <NUM_LIT> , currentType . getDeclarationSourceEnd ( ) ) ; SourceField [ ] fields = currentType . getFields ( ) ; assertTrue ( "<STR_LIT>" , fields != null ) ; assertEquals ( "<STR_LIT>" , <NUM_LIT:3> , fields . length ) ; assertEquals ( "<STR_LIT>" , <NUM_LIT> , fields [ <NUM_LIT:0> ] . getDeclarationSourceStart ( ) ) ; assertEquals ( "<STR_LIT>" , <NUM_LIT> , fields [ <NUM_LIT:0> ] . getDeclarationSourceEnd ( ) ) ; assertEquals ( "<STR_LIT>" , <NUM_LIT> , fields [ <NUM_LIT:1> ] . getDeclarationSourceStart ( ) ) ; assertEquals ( "<STR_LIT>" , <NUM_LIT> , fields [ <NUM_LIT:1> ] . getDeclarationSourceEnd ( ) ) ; assertEquals ( "<STR_LIT>" , <NUM_LIT> , fields [ <NUM_LIT:2> ] . getDeclarationSourceStart ( ) ) ; assertEquals ( "<STR_LIT>" , <NUM_LIT> , fields [ <NUM_LIT:2> ] . getDeclarationSourceEnd ( ) ) ; SourceMethod [ ] methods = currentType . getMethods ( ) ; assertTrue ( "<STR_LIT>" , methods != null ) ; assertEquals ( "<STR_LIT>" , <NUM_LIT:3> , methods . length ) ; assertEquals ( "<STR_LIT>" , <NUM_LIT> , methods [ <NUM_LIT:0> ] . getDeclarationSourceStart ( ) ) ; assertEquals ( "<STR_LIT>" , <NUM_LIT> , methods [ <NUM_LIT:0> ] . getDeclarationSourceEnd ( ) ) ; assertEquals ( "<STR_LIT>" , <NUM_LIT> , methods [ <NUM_LIT:1> ] . getDeclarationSourceStart ( ) ) ; assertEquals ( "<STR_LIT>" , <NUM_LIT> , methods [ <NUM_LIT:1> ] . getDeclarationSourceEnd ( ) ) ; assertEquals ( "<STR_LIT>" , <NUM_LIT> , methods [ <NUM_LIT:2> ] . getDeclarationSourceStart ( ) ) ; assertEquals ( "<STR_LIT>" , <NUM_LIT> , methods [ <NUM_LIT:2> ] . getDeclarationSourceEnd ( ) ) ; assertEquals ( "<STR_LIT>" , "<STR_LIT:foo>" , methods [ <NUM_LIT:0> ] . getActualName ( ) ) ; assertEquals ( "<STR_LIT>" , "<STR_LIT:bar>" , methods [ <NUM_LIT:1> ] . getActualName ( ) ) ; assertEquals ( "<STR_LIT>" , "<STR_LIT:baz>" , methods [ <NUM_LIT:2> ] . getActualName ( ) ) ; SourceType [ ] members = currentType . getMemberTypes ( ) ; assertTrue ( "<STR_LIT>" , members == null ) ; assertEquals ( "<STR_LIT>" + testName , expectedUnitToString , currentType . toString ( ) ) ; } public void test22 ( ) { String s = "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" ; String expectedUnitToString = "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT:}>" ; String testName = "<STR_LIT>" ; fullParse ( s , testName ) ; assertEquals ( "<STR_LIT>" , <NUM_LIT:0> , currentType . getDeclarationSourceStart ( ) ) ; assertEquals ( "<STR_LIT>" , <NUM_LIT> , currentType . getDeclarationSourceEnd ( ) ) ; SourceField [ ] fields = currentType . getFields ( ) ; assertTrue ( "<STR_LIT>" , fields == null ) ; SourceMethod [ ] methods = currentType . getMethods ( ) ; assertTrue ( "<STR_LIT>" , methods != null ) ; assertEquals ( "<STR_LIT>" , <NUM_LIT:1> , methods . length ) ; assertEquals ( "<STR_LIT>" , <NUM_LIT:32> , methods [ <NUM_LIT:0> ] . getDeclarationSourceStart ( ) ) ; assertEquals ( "<STR_LIT>" , <NUM_LIT> , methods [ <NUM_LIT:0> ] . getDeclarationSourceEnd ( ) ) ; assertEquals ( "<STR_LIT>" , "<STR_LIT:foo>" , methods [ <NUM_LIT:0> ] . getActualName ( ) ) ; SourceType [ ] members = currentType . getMemberTypes ( ) ; assertTrue ( "<STR_LIT>" , members == null ) ; assertEquals ( "<STR_LIT>" + testName , expectedUnitToString , currentType . toString ( ) ) ; } public void test23 ( ) { String s = "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" ; String expectedUnitToString = "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT:}>" ; String testName = "<STR_LIT>" ; fullParse ( s , testName ) ; assertEquals ( "<STR_LIT>" , <NUM_LIT:0> , currentType . getDeclarationSourceStart ( ) ) ; assertEquals ( "<STR_LIT>" , <NUM_LIT> , currentType . getDeclarationSourceEnd ( ) ) ; SourceField [ ] fields = currentType . getFields ( ) ; assertTrue ( "<STR_LIT>" , fields == null ) ; SourceMethod [ ] methods = currentType . getMethods ( ) ; assertTrue ( "<STR_LIT>" , methods != null ) ; assertEquals ( "<STR_LIT>" , <NUM_LIT:2> , methods . length ) ; assertEquals ( "<STR_LIT>" , <NUM_LIT> , methods [ <NUM_LIT:0> ] . getDeclarationSourceStart ( ) ) ; assertEquals ( "<STR_LIT>" , <NUM_LIT> , methods [ <NUM_LIT:0> ] . getDeclarationSourceEnd ( ) ) ; assertEquals ( "<STR_LIT>" , <NUM_LIT> , methods [ <NUM_LIT:1> ] . getDeclarationSourceStart ( ) ) ; assertEquals ( "<STR_LIT>" , <NUM_LIT> , methods [ <NUM_LIT:1> ] . getDeclarationSourceEnd ( ) ) ; assertEquals ( "<STR_LIT>" , "<STR_LIT:foo>" , methods [ <NUM_LIT:0> ] . getActualName ( ) ) ; assertEquals ( "<STR_LIT>" , "<STR_LIT:bar>" , methods [ <NUM_LIT:1> ] . getActualName ( ) ) ; SourceType [ ] members = currentType . getMemberTypes ( ) ; assertTrue ( "<STR_LIT>" , members == null ) ; assertEquals ( "<STR_LIT>" + testName , expectedUnitToString , currentType . toString ( ) ) ; } public void test24 ( ) { String s = "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" ; String expectedUnitToString = "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT:}>" ; String testName = "<STR_LIT>" ; fullParse ( s , testName ) ; assertEquals ( "<STR_LIT>" , <NUM_LIT:0> , currentType . getDeclarationSourceStart ( ) ) ; assertEquals ( "<STR_LIT>" , <NUM_LIT> , currentType . getDeclarationSourceEnd ( ) ) ; SourceField [ ] fields = currentType . getFields ( ) ; assertTrue ( "<STR_LIT>" , fields == null ) ; SourceMethod [ ] methods = currentType . getMethods ( ) ; assertTrue ( "<STR_LIT>" , methods != null ) ; assertEquals ( "<STR_LIT>" , <NUM_LIT:2> , methods . length ) ; assertEquals ( "<STR_LIT>" , <NUM_LIT> , methods [ <NUM_LIT:0> ] . getDeclarationSourceStart ( ) ) ; assertEquals ( "<STR_LIT>" , <NUM_LIT> , methods [ <NUM_LIT:0> ] . getDeclarationSourceEnd ( ) ) ; assertEquals ( "<STR_LIT>" , <NUM_LIT> , methods [ <NUM_LIT:1> ] . getDeclarationSourceStart ( ) ) ; assertEquals ( "<STR_LIT>" , <NUM_LIT> , methods [ <NUM_LIT:1> ] . getDeclarationSourceEnd ( ) ) ; assertEquals ( "<STR_LIT>" , "<STR_LIT:foo>" , methods [ <NUM_LIT:0> ] . getActualName ( ) ) ; assertEquals ( "<STR_LIT>" , "<STR_LIT:bar>" , methods [ <NUM_LIT:1> ] . getActualName ( ) ) ; SourceType [ ] members = currentType . getMemberTypes ( ) ; assertTrue ( "<STR_LIT>" , members == null ) ; assertEquals ( "<STR_LIT>" + testName , expectedUnitToString , currentType . toString ( ) ) ; } public void test25 ( ) { String s = "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" ; String expectedUnitToString = "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT:}>" ; String testName = "<STR_LIT>" ; fullParse ( s , testName ) ; assertEquals ( "<STR_LIT>" , <NUM_LIT:0> , currentType . getDeclarationSourceStart ( ) ) ; assertEquals ( "<STR_LIT>" , <NUM_LIT> , currentType . getDeclarationSourceEnd ( ) ) ; assertTrue ( "<STR_LIT>" , currentType . getInterfaceNames ( ) != null ) ; assertEquals ( "<STR_LIT>" , <NUM_LIT:1> , currentType . getInterfaceNames ( ) . length ) ; SourceField [ ] fields = currentType . getFields ( ) ; assertTrue ( "<STR_LIT>" , fields == null ) ; SourceMethod [ ] methods = currentType . getMethods ( ) ; assertTrue ( "<STR_LIT>" , methods != null ) ; assertEquals ( "<STR_LIT>" , <NUM_LIT:2> , methods . length ) ; assertEquals ( "<STR_LIT>" , <NUM_LIT> , methods [ <NUM_LIT:0> ] . getDeclarationSourceStart ( ) ) ; assertEquals ( "<STR_LIT>" , <NUM_LIT> , methods [ <NUM_LIT:0> ] . getDeclarationSourceEnd ( ) ) ; assertEquals ( "<STR_LIT>" , <NUM_LIT> , methods [ <NUM_LIT:1> ] . getDeclarationSourceStart ( ) ) ; assertEquals ( "<STR_LIT>" , <NUM_LIT> , methods [ <NUM_LIT:1> ] . getDeclarationSourceEnd ( ) ) ; assertEquals ( "<STR_LIT>" , "<STR_LIT:foo>" , methods [ <NUM_LIT:0> ] . getActualName ( ) ) ; assertEquals ( "<STR_LIT>" , "<STR_LIT:bar>" , methods [ <NUM_LIT:1> ] . getActualName ( ) ) ; SourceType [ ] members = currentType . getMemberTypes ( ) ; assertTrue ( "<STR_LIT>" , members == null ) ; assertEquals ( "<STR_LIT>" + testName , expectedUnitToString , currentType . toString ( ) ) ; } public void test26 ( ) { String s = "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" ; String expectedUnitToString = "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT:}>" ; String testName = "<STR_LIT>" ; fullParse ( s , testName ) ; assertEquals ( "<STR_LIT>" , <NUM_LIT:0> , currentType . getDeclarationSourceStart ( ) ) ; assertEquals ( "<STR_LIT>" , <NUM_LIT> , currentType . getDeclarationSourceEnd ( ) ) ; assertTrue ( "<STR_LIT>" , currentType . getInterfaceNames ( ) == null ) ; SourceField [ ] fields = currentType . getFields ( ) ; assertTrue ( "<STR_LIT>" , fields == null ) ; SourceMethod [ ] methods = currentType . getMethods ( ) ; assertTrue ( "<STR_LIT>" , methods == null ) ; SourceType [ ] members = currentType . getMemberTypes ( ) ; assertTrue ( "<STR_LIT>" , members != null ) ; assertEquals ( "<STR_LIT>" , <NUM_LIT:1> , members . length ) ; assertEquals ( "<STR_LIT>" , <NUM_LIT> , members [ <NUM_LIT:0> ] . getDeclarationSourceStart ( ) ) ; assertEquals ( "<STR_LIT>" , <NUM_LIT> , members [ <NUM_LIT:0> ] . getDeclarationSourceEnd ( ) ) ; methods = members [ <NUM_LIT:0> ] . getMethods ( ) ; assertTrue ( "<STR_LIT>" , methods != null ) ; assertEquals ( "<STR_LIT>" , <NUM_LIT:1> , methods . length ) ; assertEquals ( "<STR_LIT>" , <NUM_LIT> , methods [ <NUM_LIT:0> ] . getDeclarationSourceStart ( ) ) ; assertEquals ( "<STR_LIT>" , <NUM_LIT> , methods [ <NUM_LIT:0> ] . getDeclarationSourceEnd ( ) ) ; assertEquals ( "<STR_LIT>" , "<STR_LIT:bar>" , methods [ <NUM_LIT:0> ] . getActualName ( ) ) ; members = members [ <NUM_LIT:0> ] . getMemberTypes ( ) ; assertTrue ( "<STR_LIT>" , members == null ) ; assertEquals ( "<STR_LIT>" + testName , expectedUnitToString , currentType . toString ( ) ) ; } public void test27 ( ) { String s = "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" ; String expectedUnitToString = "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT:}>" ; String testName = "<STR_LIT>" ; fullParse ( s , testName ) ; assertEquals ( "<STR_LIT>" , <NUM_LIT:0> , currentType . getDeclarationSourceStart ( ) ) ; assertEquals ( "<STR_LIT>" , <NUM_LIT> , currentType . getDeclarationSourceEnd ( ) ) ; assertTrue ( "<STR_LIT>" , currentType . getInterfaceNames ( ) == null ) ; SourceField [ ] fields = currentType . getFields ( ) ; assertTrue ( "<STR_LIT>" , fields == null ) ; SourceMethod [ ] methods = currentType . getMethods ( ) ; assertTrue ( "<STR_LIT>" , methods == null ) ; SourceType [ ] members = currentType . getMemberTypes ( ) ; assertTrue ( "<STR_LIT>" , members != null ) ; assertEquals ( "<STR_LIT>" , <NUM_LIT:1> , members . length ) ; assertEquals ( "<STR_LIT>" , <NUM_LIT> , members [ <NUM_LIT:0> ] . getDeclarationSourceStart ( ) ) ; assertEquals ( "<STR_LIT>" , <NUM_LIT> , members [ <NUM_LIT:0> ] . getDeclarationSourceEnd ( ) ) ; methods = members [ <NUM_LIT:0> ] . getMethods ( ) ; assertTrue ( "<STR_LIT>" , methods != null ) ; assertEquals ( "<STR_LIT>" , <NUM_LIT:1> , methods . length ) ; assertEquals ( "<STR_LIT>" , <NUM_LIT> , methods [ <NUM_LIT:0> ] . getDeclarationSourceStart ( ) ) ; assertEquals ( "<STR_LIT>" , <NUM_LIT> , methods [ <NUM_LIT:0> ] . getDeclarationSourceEnd ( ) ) ; assertEquals ( "<STR_LIT>" , "<STR_LIT:bar>" , methods [ <NUM_LIT:0> ] . getActualName ( ) ) ; members = members [ <NUM_LIT:0> ] . getMemberTypes ( ) ; assertTrue ( "<STR_LIT>" , members == null ) ; assertEquals ( "<STR_LIT>" + testName , expectedUnitToString , currentType . toString ( ) ) ; } public void test28 ( ) { String s = "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" ; String expectedUnitToString = "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT:}>" ; String testName = "<STR_LIT>" ; fullParse ( s , testName ) ; assertEquals ( "<STR_LIT>" , <NUM_LIT:0> , currentType . getDeclarationSourceStart ( ) ) ; assertEquals ( "<STR_LIT>" , <NUM_LIT> , currentType . getDeclarationSourceEnd ( ) ) ; assertTrue ( "<STR_LIT>" , currentType . getInterfaceNames ( ) == null ) ; SourceField [ ] fields = currentType . getFields ( ) ; assertTrue ( "<STR_LIT>" , fields == null ) ; SourceMethod [ ] methods = currentType . getMethods ( ) ; assertTrue ( "<STR_LIT>" , methods == null ) ; SourceType [ ] members = currentType . getMemberTypes ( ) ; assertTrue ( "<STR_LIT>" , members != null ) ; assertEquals ( "<STR_LIT>" , <NUM_LIT:1> , members . length ) ; assertEquals ( "<STR_LIT>" , <NUM_LIT> , members [ <NUM_LIT:0> ] . getDeclarationSourceStart ( ) ) ; assertEquals ( "<STR_LIT>" , <NUM_LIT> , members [ <NUM_LIT:0> ] . getDeclarationSourceEnd ( ) ) ; methods = members [ <NUM_LIT:0> ] . getMethods ( ) ; assertTrue ( "<STR_LIT>" , methods == null ) ; members = members [ <NUM_LIT:0> ] . getMemberTypes ( ) ; assertTrue ( "<STR_LIT>" , members == null ) ; assertEquals ( "<STR_LIT>" + testName , expectedUnitToString , currentType . toString ( ) ) ; } public void test29 ( ) { String s = "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" ; String expectedUnitToString = "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT:}>" ; String testName = "<STR_LIT>" ; fullParse ( s , testName ) ; assertEquals ( "<STR_LIT>" , <NUM_LIT> , currentType . getDeclarationSourceStart ( ) ) ; assertEquals ( "<STR_LIT>" , <NUM_LIT> , currentType . getDeclarationSourceEnd ( ) ) ; assertTrue ( "<STR_LIT>" , currentType . getInterfaceNames ( ) == null ) ; SourceField [ ] fields = currentType . getFields ( ) ; assertTrue ( "<STR_LIT>" , fields != null ) ; assertEquals ( "<STR_LIT>" , <NUM_LIT:1> , fields . length ) ; assertEquals ( "<STR_LIT>" , <NUM_LIT> , fields [ <NUM_LIT:0> ] . getDeclarationSourceStart ( ) ) ; assertEquals ( "<STR_LIT>" , <NUM_LIT> , fields [ <NUM_LIT:0> ] . getDeclarationSourceEnd ( ) ) ; SourceMethod [ ] methods = currentType . getMethods ( ) ; assertTrue ( "<STR_LIT>" , methods != null ) ; assertEquals ( "<STR_LIT>" , <NUM_LIT:3> , methods . length ) ; assertEquals ( "<STR_LIT>" , <NUM_LIT> , methods [ <NUM_LIT:0> ] . getDeclarationSourceStart ( ) ) ; assertEquals ( "<STR_LIT>" , <NUM_LIT> , methods [ <NUM_LIT:0> ] . getDeclarationSourceEnd ( ) ) ; assertEquals ( "<STR_LIT>" , <NUM_LIT> , methods [ <NUM_LIT:1> ] . getDeclarationSourceStart ( ) ) ; assertEquals ( "<STR_LIT>" , <NUM_LIT> , methods [ <NUM_LIT:1> ] . getDeclarationSourceEnd ( ) ) ; assertEquals ( "<STR_LIT>" , <NUM_LIT> , methods [ <NUM_LIT:2> ] . getDeclarationSourceStart ( ) ) ; assertEquals ( "<STR_LIT>" , <NUM_LIT> , methods [ <NUM_LIT:2> ] . getDeclarationSourceEnd ( ) ) ; assertEquals ( "<STR_LIT>" , "<STR_LIT:foo>" , methods [ <NUM_LIT:0> ] . getActualName ( ) ) ; assertEquals ( "<STR_LIT>" , "<STR_LIT:bar>" , methods [ <NUM_LIT:1> ] . getActualName ( ) ) ; assertEquals ( "<STR_LIT>" , "<STR_LIT>" , methods [ <NUM_LIT:2> ] . getActualName ( ) ) ; SourceType [ ] members = currentType . getMemberTypes ( ) ; assertTrue ( "<STR_LIT>" , members == null ) ; assertEquals ( "<STR_LIT>" + testName , expectedUnitToString , currentType . toString ( ) ) ; } public void test30 ( ) { String s = "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" ; String expectedUnitToString = "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT:}>" ; String testName = "<STR_LIT>" ; dietParse ( s , testName ) ; assertEquals ( "<STR_LIT>" , <NUM_LIT> , currentType . getDeclarationSourceStart ( ) ) ; assertEquals ( "<STR_LIT>" , <NUM_LIT> , currentType . getDeclarationSourceEnd ( ) ) ; assertTrue ( "<STR_LIT>" , currentType . getInterfaceNames ( ) == null ) ; SourceField [ ] fields = currentType . getFields ( ) ; assertTrue ( "<STR_LIT>" , fields != null ) ; assertEquals ( "<STR_LIT>" , <NUM_LIT:1> , fields . length ) ; assertEquals ( "<STR_LIT>" , <NUM_LIT> , fields [ <NUM_LIT:0> ] . getDeclarationSourceStart ( ) ) ; assertEquals ( "<STR_LIT>" , <NUM_LIT> , fields [ <NUM_LIT:0> ] . getDeclarationSourceEnd ( ) ) ; SourceMethod [ ] methods = currentType . getMethods ( ) ; assertTrue ( "<STR_LIT>" , methods != null ) ; assertEquals ( "<STR_LIT>" , <NUM_LIT:3> , methods . length ) ; assertEquals ( "<STR_LIT>" , <NUM_LIT> , methods [ <NUM_LIT:0> ] . getDeclarationSourceStart ( ) ) ; assertEquals ( "<STR_LIT>" , <NUM_LIT> , methods [ <NUM_LIT:0> ] . getDeclarationSourceEnd ( ) ) ; assertEquals ( "<STR_LIT>" , <NUM_LIT> , methods [ <NUM_LIT:1> ] . getDeclarationSourceStart ( ) ) ; assertEquals ( "<STR_LIT>" , <NUM_LIT> , methods [ <NUM_LIT:1> ] . getDeclarationSourceEnd ( ) ) ; assertEquals ( "<STR_LIT>" , <NUM_LIT> , methods [ <NUM_LIT:2> ] . getDeclarationSourceStart ( ) ) ; assertEquals ( "<STR_LIT>" , <NUM_LIT> , methods [ <NUM_LIT:2> ] . getDeclarationSourceEnd ( ) ) ; assertEquals ( "<STR_LIT>" , "<STR_LIT:foo>" , methods [ <NUM_LIT:0> ] . getActualName ( ) ) ; assertEquals ( "<STR_LIT>" , "<STR_LIT:bar>" , methods [ <NUM_LIT:1> ] . getActualName ( ) ) ; assertEquals ( "<STR_LIT>" , "<STR_LIT>" , methods [ <NUM_LIT:2> ] . getActualName ( ) ) ; SourceType [ ] members = currentType . getMemberTypes ( ) ; assertTrue ( "<STR_LIT>" , members == null ) ; assertEquals ( "<STR_LIT>" + testName , expectedUnitToString , currentType . toString ( ) ) ; } public void test31 ( ) { String s = "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" ; String expectedUnitToString = "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT:}>" ; String testName = "<STR_LIT>" ; fullParse ( s , testName ) ; assertEquals ( "<STR_LIT>" , <NUM_LIT> , currentType . getDeclarationSourceStart ( ) ) ; assertEquals ( "<STR_LIT>" , <NUM_LIT> , currentType . getDeclarationSourceEnd ( ) ) ; assertTrue ( "<STR_LIT>" , currentType . getInterfaceNames ( ) == null ) ; SourceField [ ] fields = currentType . getFields ( ) ; assertTrue ( "<STR_LIT>" , fields != null ) ; assertEquals ( "<STR_LIT>" , <NUM_LIT:1> , fields . length ) ; assertEquals ( "<STR_LIT>" , <NUM_LIT> , fields [ <NUM_LIT:0> ] . getDeclarationSourceStart ( ) ) ; assertEquals ( "<STR_LIT>" , <NUM_LIT> , fields [ <NUM_LIT:0> ] . getDeclarationSourceEnd ( ) ) ; SourceMethod [ ] methods = currentType . getMethods ( ) ; assertTrue ( "<STR_LIT>" , methods != null ) ; assertEquals ( "<STR_LIT>" , <NUM_LIT:3> , methods . length ) ; assertEquals ( "<STR_LIT>" , <NUM_LIT> , methods [ <NUM_LIT:0> ] . getDeclarationSourceStart ( ) ) ; assertEquals ( "<STR_LIT>" , <NUM_LIT> , methods [ <NUM_LIT:0> ] . getDeclarationSourceEnd ( ) ) ; assertEquals ( "<STR_LIT>" , <NUM_LIT> , methods [ <NUM_LIT:1> ] . getDeclarationSourceStart ( ) ) ; assertEquals ( "<STR_LIT>" , <NUM_LIT> , methods [ <NUM_LIT:1> ] . getDeclarationSourceEnd ( ) ) ; assertEquals ( "<STR_LIT>" , <NUM_LIT> , methods [ <NUM_LIT:2> ] . getDeclarationSourceStart ( ) ) ; assertEquals ( "<STR_LIT>" , <NUM_LIT> , methods [ <NUM_LIT:2> ] . getDeclarationSourceEnd ( ) ) ; assertEquals ( "<STR_LIT>" , "<STR_LIT:foo>" , methods [ <NUM_LIT:0> ] . getActualName ( ) ) ; assertEquals ( "<STR_LIT>" , "<STR_LIT:bar>" , methods [ <NUM_LIT:1> ] . getActualName ( ) ) ; assertEquals ( "<STR_LIT>" , "<STR_LIT>" , methods [ <NUM_LIT:2> ] . getActualName ( ) ) ; SourceType [ ] members = currentType . getMemberTypes ( ) ; assertTrue ( "<STR_LIT>" , members == null ) ; assertEquals ( "<STR_LIT>" + testName , expectedUnitToString , currentType . toString ( ) ) ; } public void test32 ( ) { String s = "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" ; String expectedUnitToString = "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT:}>" ; String testName = "<STR_LIT>" ; fullParse ( s , testName ) ; assertEquals ( "<STR_LIT>" , <NUM_LIT> , currentType . getDeclarationSourceStart ( ) ) ; assertEquals ( "<STR_LIT>" , <NUM_LIT> , currentType . getDeclarationSourceEnd ( ) ) ; assertTrue ( "<STR_LIT>" , currentType . getInterfaceNames ( ) == null ) ; SourceField [ ] fields = currentType . getFields ( ) ; assertTrue ( "<STR_LIT>" , fields == null ) ; SourceMethod [ ] methods = currentType . getMethods ( ) ; assertTrue ( "<STR_LIT>" , methods != null ) ; assertEquals ( "<STR_LIT>" , <NUM_LIT:1> , methods . length ) ; assertEquals ( "<STR_LIT>" , <NUM_LIT> , methods [ <NUM_LIT:0> ] . getDeclarationSourceStart ( ) ) ; assertEquals ( "<STR_LIT>" , <NUM_LIT> , methods [ <NUM_LIT:0> ] . getDeclarationSourceEnd ( ) ) ; assertEquals ( "<STR_LIT>" , "<STR_LIT:foo>" , methods [ <NUM_LIT:0> ] . getActualName ( ) ) ; SourceType [ ] members = currentType . getMemberTypes ( ) ; assertTrue ( "<STR_LIT>" , members == null ) ; assertEquals ( "<STR_LIT>" + testName , expectedUnitToString , currentType . toString ( ) ) ; } public void test33 ( ) { String s = "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" ; String expectedUnitToString = "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT:}>" ; String testName = "<STR_LIT>" ; dietParse ( s , testName ) ; assertEquals ( "<STR_LIT>" , <NUM_LIT> , currentType . getDeclarationSourceStart ( ) ) ; assertEquals ( "<STR_LIT>" , <NUM_LIT> , currentType . getDeclarationSourceEnd ( ) ) ; assertTrue ( "<STR_LIT>" , currentType . getInterfaceNames ( ) == null ) ; SourceField [ ] fields = currentType . getFields ( ) ; assertTrue ( "<STR_LIT>" , fields == null ) ; SourceMethod [ ] methods = currentType . getMethods ( ) ; assertTrue ( "<STR_LIT>" , methods != null ) ; assertEquals ( "<STR_LIT>" , <NUM_LIT:1> , methods . length ) ; assertEquals ( "<STR_LIT>" , <NUM_LIT> , methods [ <NUM_LIT:0> ] . getDeclarationSourceStart ( ) ) ; assertEquals ( "<STR_LIT>" , <NUM_LIT> , methods [ <NUM_LIT:0> ] . getDeclarationSourceEnd ( ) ) ; assertEquals ( "<STR_LIT>" , "<STR_LIT:foo>" , methods [ <NUM_LIT:0> ] . getActualName ( ) ) ; SourceType [ ] members = currentType . getMemberTypes ( ) ; assertTrue ( "<STR_LIT>" , members == null ) ; assertEquals ( "<STR_LIT>" + testName , expectedUnitToString , currentType . toString ( ) ) ; } public void test34 ( ) { String s = "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" ; String expectedUnitToString = "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT:}>" ; String testName = "<STR_LIT>" ; fullParse ( s , testName ) ; assertEquals ( "<STR_LIT>" , <NUM_LIT> , currentType . getDeclarationSourceStart ( ) ) ; assertEquals ( "<STR_LIT>" , <NUM_LIT> , currentType . getDeclarationSourceEnd ( ) ) ; assertTrue ( "<STR_LIT>" , currentType . getInterfaceNames ( ) == null ) ; SourceField [ ] fields = currentType . getFields ( ) ; assertTrue ( "<STR_LIT>" , fields != null ) ; assertEquals ( "<STR_LIT>" , <NUM_LIT:1> , fields . length ) ; assertEquals ( "<STR_LIT>" , <NUM_LIT> , fields [ <NUM_LIT:0> ] . getDeclarationSourceStart ( ) ) ; assertEquals ( "<STR_LIT>" , <NUM_LIT> , fields [ <NUM_LIT:0> ] . getDeclarationSourceEnd ( ) ) ; SourceMethod [ ] methods = currentType . getMethods ( ) ; assertTrue ( "<STR_LIT>" , methods != null ) ; assertEquals ( "<STR_LIT>" , <NUM_LIT:3> , methods . length ) ; assertEquals ( "<STR_LIT>" , <NUM_LIT> , methods [ <NUM_LIT:0> ] . getDeclarationSourceStart ( ) ) ; assertEquals ( "<STR_LIT>" , <NUM_LIT> , methods [ <NUM_LIT:0> ] . getDeclarationSourceEnd ( ) ) ; assertEquals ( "<STR_LIT>" , <NUM_LIT> , methods [ <NUM_LIT:1> ] . getDeclarationSourceStart ( ) ) ; assertEquals ( "<STR_LIT>" , <NUM_LIT> , methods [ <NUM_LIT:1> ] . getDeclarationSourceEnd ( ) ) ; assertEquals ( "<STR_LIT>" , <NUM_LIT> , methods [ <NUM_LIT:2> ] . getDeclarationSourceStart ( ) ) ; assertEquals ( "<STR_LIT>" , <NUM_LIT> , methods [ <NUM_LIT:2> ] . getDeclarationSourceEnd ( ) ) ; assertEquals ( "<STR_LIT>" , "<STR_LIT:foo>" , methods [ <NUM_LIT:0> ] . getActualName ( ) ) ; assertEquals ( "<STR_LIT>" , "<STR_LIT:bar>" , methods [ <NUM_LIT:1> ] . getActualName ( ) ) ; assertEquals ( "<STR_LIT>" , "<STR_LIT>" , methods [ <NUM_LIT:2> ] . getActualName ( ) ) ; SourceType [ ] members = currentType . getMemberTypes ( ) ; assertTrue ( "<STR_LIT>" , members == null ) ; assertEquals ( "<STR_LIT>" + testName , expectedUnitToString , currentType . toString ( ) ) ; } public void test35 ( ) { String s = "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" ; String expectedUnitToString = "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT:}>" ; String testName = "<STR_LIT>" ; fullParse ( s , testName ) ; assertEquals ( "<STR_LIT>" , <NUM_LIT> , currentType . getDeclarationSourceStart ( ) ) ; assertEquals ( "<STR_LIT>" , <NUM_LIT> , currentType . getDeclarationSourceEnd ( ) ) ; assertTrue ( "<STR_LIT>" , currentType . getInterfaceNames ( ) == null ) ; SourceField [ ] fields = currentType . getFields ( ) ; assertTrue ( "<STR_LIT>" , fields == null ) ; SourceMethod [ ] methods = currentType . getMethods ( ) ; assertTrue ( "<STR_LIT>" , methods != null ) ; assertEquals ( "<STR_LIT>" , <NUM_LIT:3> , methods . length ) ; assertEquals ( "<STR_LIT>" , <NUM_LIT> , methods [ <NUM_LIT:0> ] . getDeclarationSourceStart ( ) ) ; assertEquals ( "<STR_LIT>" , <NUM_LIT> , methods [ <NUM_LIT:0> ] . getDeclarationSourceEnd ( ) ) ; assertEquals ( "<STR_LIT>" , <NUM_LIT> , methods [ <NUM_LIT:1> ] . getDeclarationSourceStart ( ) ) ; assertEquals ( "<STR_LIT>" , <NUM_LIT> , methods [ <NUM_LIT:1> ] . getDeclarationSourceEnd ( ) ) ; assertEquals ( "<STR_LIT>" , <NUM_LIT> , methods [ <NUM_LIT:2> ] . getDeclarationSourceStart ( ) ) ; assertEquals ( "<STR_LIT>" , <NUM_LIT> , methods [ <NUM_LIT:2> ] . getDeclarationSourceEnd ( ) ) ; assertEquals ( "<STR_LIT>" , "<STR_LIT:foo>" , methods [ <NUM_LIT:0> ] . getActualName ( ) ) ; assertEquals ( "<STR_LIT>" , "<STR_LIT:bar>" , methods [ <NUM_LIT:1> ] . getActualName ( ) ) ; assertEquals ( "<STR_LIT>" , "<STR_LIT>" , methods [ <NUM_LIT:2> ] . getActualName ( ) ) ; SourceType [ ] members = currentType . getMemberTypes ( ) ; assertTrue ( "<STR_LIT>" , members == null ) ; assertEquals ( "<STR_LIT>" + testName , expectedUnitToString , currentType . toString ( ) ) ; } public void test36 ( ) { String s = "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" ; String expectedUnitToString = "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT:}>" ; String testName = "<STR_LIT>" ; dietParse ( s , testName ) ; assertEquals ( "<STR_LIT>" , <NUM_LIT> , currentType . getDeclarationSourceStart ( ) ) ; assertEquals ( "<STR_LIT>" , <NUM_LIT> , currentType . getDeclarationSourceEnd ( ) ) ; assertTrue ( "<STR_LIT>" , currentType . getInterfaceNames ( ) == null ) ; SourceField [ ] fields = currentType . getFields ( ) ; assertTrue ( "<STR_LIT>" , fields == null ) ; SourceMethod [ ] methods = currentType . getMethods ( ) ; assertTrue ( "<STR_LIT>" , methods != null ) ; assertEquals ( "<STR_LIT>" , <NUM_LIT:3> , methods . length ) ; assertEquals ( "<STR_LIT>" , <NUM_LIT> , methods [ <NUM_LIT:0> ] . getDeclarationSourceStart ( ) ) ; assertEquals ( "<STR_LIT>" , <NUM_LIT> , methods [ <NUM_LIT:0> ] . getDeclarationSourceEnd ( ) ) ; assertEquals ( "<STR_LIT>" , <NUM_LIT> , methods [ <NUM_LIT:1> ] . getDeclarationSourceStart ( ) ) ; assertEquals ( "<STR_LIT>" , <NUM_LIT> , methods [ <NUM_LIT:1> ] . getDeclarationSourceEnd ( ) ) ; assertEquals ( "<STR_LIT>" , <NUM_LIT> , methods [ <NUM_LIT:2> ] . getDeclarationSourceStart ( ) ) ; assertEquals ( "<STR_LIT>" , <NUM_LIT> , methods [ <NUM_LIT:2> ] . getDeclarationSourceEnd ( ) ) ; assertEquals ( "<STR_LIT>" , "<STR_LIT:foo>" , methods [ <NUM_LIT:0> ] . getActualName ( ) ) ; assertEquals ( "<STR_LIT>" , "<STR_LIT:bar>" , methods [ <NUM_LIT:1> ] . getActualName ( ) ) ; assertEquals ( "<STR_LIT>" , "<STR_LIT>" , methods [ <NUM_LIT:2> ] . getActualName ( ) ) ; SourceType [ ] members = currentType . getMemberTypes ( ) ; assertTrue ( "<STR_LIT>" , members == null ) ; assertEquals ( "<STR_LIT>" + testName , expectedUnitToString , currentType . toString ( ) ) ; } public void test37 ( ) { String s = "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" ; String expectedUnitToString = "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT:}>" ; String testName = "<STR_LIT>" ; fullParse ( s , testName ) ; assertEquals ( "<STR_LIT>" , <NUM_LIT:0> , currentType . getDeclarationSourceStart ( ) ) ; assertEquals ( "<STR_LIT>" , <NUM_LIT> , currentType . getDeclarationSourceEnd ( ) ) ; assertTrue ( "<STR_LIT>" , currentType . getInterfaceNames ( ) == null ) ; SourceField [ ] fields = currentType . getFields ( ) ; assertTrue ( "<STR_LIT>" , fields != null ) ; assertEquals ( "<STR_LIT>" , <NUM_LIT:1> , fields . length ) ; assertEquals ( "<STR_LIT>" , <NUM_LIT> , fields [ <NUM_LIT:0> ] . getDeclarationSourceStart ( ) ) ; assertEquals ( "<STR_LIT>" , <NUM_LIT> , fields [ <NUM_LIT:0> ] . getDeclarationSourceEnd ( ) ) ; SourceMethod [ ] methods = currentType . getMethods ( ) ; assertTrue ( "<STR_LIT>" , methods != null ) ; assertEquals ( "<STR_LIT>" , <NUM_LIT:1> , methods . length ) ; assertEquals ( "<STR_LIT>" , <NUM_LIT> , methods [ <NUM_LIT:0> ] . getDeclarationSourceStart ( ) ) ; assertEquals ( "<STR_LIT>" , <NUM_LIT> , methods [ <NUM_LIT:0> ] . getDeclarationSourceEnd ( ) ) ; assertEquals ( "<STR_LIT>" , "<STR_LIT:foo>" , methods [ <NUM_LIT:0> ] . getActualName ( ) ) ; SourceType [ ] members = currentType . getMemberTypes ( ) ; assertTrue ( "<STR_LIT>" , members != null ) ; assertEquals ( "<STR_LIT>" , <NUM_LIT:1> , members . length ) ; assertEquals ( "<STR_LIT>" , <NUM_LIT> , members [ <NUM_LIT:0> ] . getDeclarationSourceStart ( ) ) ; assertEquals ( "<STR_LIT>" , <NUM_LIT> , members [ <NUM_LIT:0> ] . getDeclarationSourceEnd ( ) ) ; fields = members [ <NUM_LIT:0> ] . getFields ( ) ; assertTrue ( "<STR_LIT>" , fields != null ) ; assertEquals ( "<STR_LIT>" , <NUM_LIT:1> , fields . length ) ; assertEquals ( "<STR_LIT>" , <NUM_LIT> , fields [ <NUM_LIT:0> ] . getDeclarationSourceStart ( ) ) ; assertEquals ( "<STR_LIT>" , <NUM_LIT> , fields [ <NUM_LIT:0> ] . getDeclarationSourceEnd ( ) ) ; methods = members [ <NUM_LIT:0> ] . getMethods ( ) ; assertTrue ( "<STR_LIT>" , methods == null ) ; assertEquals ( "<STR_LIT>" + testName , expectedUnitToString , currentType . toString ( ) ) ; } public void test38 ( ) { String s = "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" ; String expectedUnitToString = "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT:}>" ; String testName = "<STR_LIT>" ; dietParse ( s , testName ) ; assertEquals ( "<STR_LIT>" , <NUM_LIT:0> , currentType . getDeclarationSourceStart ( ) ) ; assertEquals ( "<STR_LIT>" , <NUM_LIT> , currentType . getDeclarationSourceEnd ( ) ) ; assertTrue ( "<STR_LIT>" , currentType . getInterfaceNames ( ) == null ) ; SourceField [ ] fields = currentType . getFields ( ) ; assertTrue ( "<STR_LIT>" , fields != null ) ; assertEquals ( "<STR_LIT>" , <NUM_LIT:1> , fields . length ) ; assertEquals ( "<STR_LIT>" , <NUM_LIT> , fields [ <NUM_LIT:0> ] . getDeclarationSourceStart ( ) ) ; assertEquals ( "<STR_LIT>" , <NUM_LIT> , fields [ <NUM_LIT:0> ] . getDeclarationSourceEnd ( ) ) ; SourceMethod [ ] methods = currentType . getMethods ( ) ; assertTrue ( "<STR_LIT>" , methods != null ) ; assertEquals ( "<STR_LIT>" , <NUM_LIT:1> , methods . length ) ; assertEquals ( "<STR_LIT>" , <NUM_LIT> , methods [ <NUM_LIT:0> ] . getDeclarationSourceStart ( ) ) ; assertEquals ( "<STR_LIT>" , <NUM_LIT> , methods [ <NUM_LIT:0> ] . getDeclarationSourceEnd ( ) ) ; assertEquals ( "<STR_LIT>" , "<STR_LIT:foo>" , methods [ <NUM_LIT:0> ] . getActualName ( ) ) ; SourceType [ ] members = currentType . getMemberTypes ( ) ; assertTrue ( "<STR_LIT>" , members != null ) ; assertEquals ( "<STR_LIT>" , <NUM_LIT:1> , members . length ) ; assertEquals ( "<STR_LIT>" , <NUM_LIT> , members [ <NUM_LIT:0> ] . getDeclarationSourceStart ( ) ) ; assertEquals ( "<STR_LIT>" , <NUM_LIT> , members [ <NUM_LIT:0> ] . getDeclarationSourceEnd ( ) ) ; fields = members [ <NUM_LIT:0> ] . getFields ( ) ; assertTrue ( "<STR_LIT>" , fields != null ) ; assertEquals ( "<STR_LIT>" , <NUM_LIT:1> , fields . length ) ; assertEquals ( "<STR_LIT>" , <NUM_LIT> , fields [ <NUM_LIT:0> ] . getDeclarationSourceStart ( ) ) ; assertEquals ( "<STR_LIT>" , <NUM_LIT> , fields [ <NUM_LIT:0> ] . getDeclarationSourceEnd ( ) ) ; methods = members [ <NUM_LIT:0> ] . getMethods ( ) ; assertTrue ( "<STR_LIT>" , methods == null ) ; assertEquals ( "<STR_LIT>" + testName , expectedUnitToString , currentType . toString ( ) ) ; } public void test39 ( ) { String s = "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" ; String expectedUnitToString = "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT:}>" ; String testName = "<STR_LIT>" ; fullParse ( s , testName ) ; assertEquals ( "<STR_LIT>" , <NUM_LIT:0> , currentType . getDeclarationSourceStart ( ) ) ; assertEquals ( "<STR_LIT>" , <NUM_LIT> , currentType . getDeclarationSourceEnd ( ) ) ; assertTrue ( "<STR_LIT>" , currentType . getInterfaceNames ( ) == null ) ; SourceField [ ] fields = currentType . getFields ( ) ; assertTrue ( "<STR_LIT>" , fields != null ) ; assertEquals ( "<STR_LIT>" , <NUM_LIT:2> , fields . length ) ; assertEquals ( "<STR_LIT>" , <NUM_LIT> , fields [ <NUM_LIT:0> ] . getDeclarationSourceStart ( ) ) ; assertEquals ( "<STR_LIT>" , <NUM_LIT> , fields [ <NUM_LIT:0> ] . getDeclarationSourceEnd ( ) ) ; assertEquals ( "<STR_LIT>" , <NUM_LIT> , fields [ <NUM_LIT:1> ] . getDeclarationSourceStart ( ) ) ; assertEquals ( "<STR_LIT>" , <NUM_LIT> , fields [ <NUM_LIT:1> ] . getDeclarationSourceEnd ( ) ) ; SourceMethod [ ] methods = currentType . getMethods ( ) ; assertTrue ( "<STR_LIT>" , methods != null ) ; assertEquals ( "<STR_LIT>" , <NUM_LIT:1> , methods . length ) ; assertEquals ( "<STR_LIT>" , <NUM_LIT> , methods [ <NUM_LIT:0> ] . getDeclarationSourceStart ( ) ) ; assertEquals ( "<STR_LIT>" , <NUM_LIT> , methods [ <NUM_LIT:0> ] . getDeclarationSourceEnd ( ) ) ; assertEquals ( "<STR_LIT>" , "<STR_LIT:foo>" , methods [ <NUM_LIT:0> ] . getActualName ( ) ) ; SourceType [ ] members = currentType . getMemberTypes ( ) ; assertTrue ( "<STR_LIT>" , members != null ) ; assertEquals ( "<STR_LIT>" , <NUM_LIT:1> , members . length ) ; assertEquals ( "<STR_LIT>" , <NUM_LIT> , members [ <NUM_LIT:0> ] . getDeclarationSourceStart ( ) ) ; assertEquals ( "<STR_LIT>" , <NUM_LIT> , members [ <NUM_LIT:0> ] . getDeclarationSourceEnd ( ) ) ; fields = members [ <NUM_LIT:0> ] . getFields ( ) ; assertTrue ( "<STR_LIT>" , fields == null ) ; methods = members [ <NUM_LIT:0> ] . getMethods ( ) ; assertTrue ( "<STR_LIT>" , methods == null ) ; assertEquals ( "<STR_LIT>" + testName , expectedUnitToString , currentType . toString ( ) ) ; } public void test40 ( ) { String s = "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" ; String expectedUnitToString = "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT:}>" ; String testName = "<STR_LIT>" ; dietParse ( s , testName ) ; assertEquals ( "<STR_LIT>" , <NUM_LIT:0> , currentType . getDeclarationSourceStart ( ) ) ; assertEquals ( "<STR_LIT>" , <NUM_LIT> , currentType . getDeclarationSourceEnd ( ) ) ; assertTrue ( "<STR_LIT>" , currentType . getInterfaceNames ( ) == null ) ; SourceField [ ] fields = currentType . getFields ( ) ; assertTrue ( "<STR_LIT>" , fields != null ) ; assertEquals ( "<STR_LIT>" , <NUM_LIT:2> , fields . length ) ; assertEquals ( "<STR_LIT>" , <NUM_LIT> , fields [ <NUM_LIT:0> ] . getDeclarationSourceStart ( ) ) ; assertEquals ( "<STR_LIT>" , <NUM_LIT> , fields [ <NUM_LIT:0> ] . getDeclarationSourceEnd ( ) ) ; assertEquals ( "<STR_LIT>" , <NUM_LIT> , fields [ <NUM_LIT:1> ] . getDeclarationSourceStart ( ) ) ; assertEquals ( "<STR_LIT>" , <NUM_LIT> , fields [ <NUM_LIT:1> ] . getDeclarationSourceEnd ( ) ) ; SourceMethod [ ] methods = currentType . getMethods ( ) ; assertTrue ( "<STR_LIT>" , methods != null ) ; assertEquals ( "<STR_LIT>" , <NUM_LIT:1> , methods . length ) ; assertEquals ( "<STR_LIT>" , <NUM_LIT> , methods [ <NUM_LIT:0> ] . getDeclarationSourceStart ( ) ) ; assertEquals ( "<STR_LIT>" , <NUM_LIT> , methods [ <NUM_LIT:0> ] . getDeclarationSourceEnd ( ) ) ; assertEquals ( "<STR_LIT>" , "<STR_LIT:foo>" , methods [ <NUM_LIT:0> ] . getActualName ( ) ) ; SourceType [ ] members = currentType . getMemberTypes ( ) ; assertTrue ( "<STR_LIT>" , members != null ) ; assertEquals ( "<STR_LIT>" , <NUM_LIT:1> , members . length ) ; assertEquals ( "<STR_LIT>" , <NUM_LIT> , members [ <NUM_LIT:0> ] . getDeclarationSourceStart ( ) ) ; assertEquals ( "<STR_LIT>" , <NUM_LIT> , members [ <NUM_LIT:0> ] . getDeclarationSourceEnd ( ) ) ; fields = members [ <NUM_LIT:0> ] . getFields ( ) ; assertTrue ( "<STR_LIT>" , fields == null ) ; methods = members [ <NUM_LIT:0> ] . getMethods ( ) ; assertTrue ( "<STR_LIT>" , methods == null ) ; assertEquals ( "<STR_LIT>" + testName , expectedUnitToString , currentType . toString ( ) ) ; } public void test41 ( ) { String s = "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT:\\>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" ; String expectedUnitToString = "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT:}>" ; String testName = "<STR_LIT>" ; fullParse ( s , testName ) ; assertEquals ( "<STR_LIT>" , <NUM_LIT:0> , currentType . getDeclarationSourceStart ( ) ) ; assertEquals ( "<STR_LIT>" , <NUM_LIT> , currentType . getDeclarationSourceEnd ( ) ) ; assertTrue ( "<STR_LIT>" , currentType . getInterfaceNames ( ) == null ) ; SourceField [ ] fields = currentType . getFields ( ) ; assertTrue ( "<STR_LIT>" , fields == null ) ; SourceMethod [ ] methods = currentType . getMethods ( ) ; assertTrue ( "<STR_LIT>" , methods != null ) ; assertEquals ( "<STR_LIT>" , <NUM_LIT:2> , methods . length ) ; assertEquals ( "<STR_LIT>" , <NUM_LIT> , methods [ <NUM_LIT:0> ] . getDeclarationSourceStart ( ) ) ; assertEquals ( "<STR_LIT>" , <NUM_LIT> , methods [ <NUM_LIT:0> ] . getDeclarationSourceEnd ( ) ) ; assertEquals ( "<STR_LIT>" , <NUM_LIT> , methods [ <NUM_LIT:1> ] . getDeclarationSourceStart ( ) ) ; assertEquals ( "<STR_LIT>" , <NUM_LIT> , methods [ <NUM_LIT:1> ] . getDeclarationSourceEnd ( ) ) ; assertEquals ( "<STR_LIT>" , "<STR_LIT>" + "<STR_LIT:\\>" + "<STR_LIT>" , methods [ <NUM_LIT:0> ] . getActualName ( ) ) ; assertEquals ( "<STR_LIT>" , "<STR_LIT:foo>" , methods [ <NUM_LIT:1> ] . getActualName ( ) ) ; SourceType [ ] members = currentType . getMemberTypes ( ) ; assertTrue ( "<STR_LIT>" , members == null ) ; assertEquals ( "<STR_LIT>" + testName , expectedUnitToString , currentType . toString ( ) ) ; } public void test42 ( ) { String s = "<STR_LIT>" + "<STR_LIT>" ; String expectedUnitToString = "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT:}>" ; String testName = "<STR_LIT>" ; fullParse ( s , testName ) ; assertEquals ( "<STR_LIT>" , <NUM_LIT:0> , currentType . getDeclarationSourceStart ( ) ) ; assertEquals ( "<STR_LIT>" , <NUM_LIT> , currentType . getDeclarationSourceEnd ( ) ) ; assertTrue ( "<STR_LIT>" , currentType . getInterfaceNames ( ) == null ) ; SourceField [ ] fields = currentType . getFields ( ) ; assertTrue ( "<STR_LIT>" , fields != null ) ; assertEquals ( "<STR_LIT>" , <NUM_LIT:1> , fields . length ) ; assertEquals ( "<STR_LIT>" , <NUM_LIT:20> , fields [ <NUM_LIT:0> ] . getDeclarationSourceStart ( ) ) ; assertEquals ( "<STR_LIT>" , <NUM_LIT:24> , fields [ <NUM_LIT:0> ] . getDeclarationSourceEnd ( ) ) ; SourceMethod [ ] methods = currentType . getMethods ( ) ; assertTrue ( "<STR_LIT>" , methods == null ) ; SourceType [ ] members = currentType . getMemberTypes ( ) ; assertTrue ( "<STR_LIT>" , members == null ) ; assertEquals ( "<STR_LIT>" + testName , expectedUnitToString , currentType . toString ( ) ) ; } public void test43 ( ) { String s = "<STR_LIT>" + "<STR_LIT>" ; String expectedUnitToString = "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT:}>" ; String testName = "<STR_LIT>" ; dietParse ( s , testName ) ; assertEquals ( "<STR_LIT>" , <NUM_LIT:0> , currentType . getDeclarationSourceStart ( ) ) ; assertEquals ( "<STR_LIT>" , <NUM_LIT> , currentType . getDeclarationSourceEnd ( ) ) ; assertTrue ( "<STR_LIT>" , currentType . getInterfaceNames ( ) == null ) ; SourceField [ ] fields = currentType . getFields ( ) ; assertTrue ( "<STR_LIT>" , fields != null ) ; assertEquals ( "<STR_LIT>" , <NUM_LIT:1> , fields . length ) ; assertEquals ( "<STR_LIT>" , <NUM_LIT:20> , fields [ <NUM_LIT:0> ] . getDeclarationSourceStart ( ) ) ; assertEquals ( "<STR_LIT>" , <NUM_LIT:24> , fields [ <NUM_LIT:0> ] . getDeclarationSourceEnd ( ) ) ; SourceMethod [ ] methods = currentType . getMethods ( ) ; assertTrue ( "<STR_LIT>" , methods == null ) ; SourceType [ ] members = currentType . getMemberTypes ( ) ; assertTrue ( "<STR_LIT>" , members == null ) ; assertEquals ( "<STR_LIT>" + testName , expectedUnitToString , currentType . toString ( ) ) ; } public void test44 ( ) { String s = "<STR_LIT>" + "<STR_LIT>" ; String expectedUnitToString = "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT:}>" ; String testName = "<STR_LIT>" ; fullParse ( s , testName ) ; assertEquals ( "<STR_LIT>" , <NUM_LIT:0> , currentType . getDeclarationSourceStart ( ) ) ; assertEquals ( "<STR_LIT>" , <NUM_LIT:31> , currentType . getDeclarationSourceEnd ( ) ) ; assertTrue ( "<STR_LIT>" , currentType . getInterfaceNames ( ) == null ) ; SourceField [ ] fields = currentType . getFields ( ) ; assertTrue ( "<STR_LIT>" , fields != null ) ; assertEquals ( "<STR_LIT>" , <NUM_LIT:2> , fields . length ) ; assertEquals ( "<STR_LIT>" , <NUM_LIT:20> , fields [ <NUM_LIT:0> ] . getDeclarationSourceStart ( ) ) ; assertEquals ( "<STR_LIT>" , <NUM_LIT> , fields [ <NUM_LIT:0> ] . getDeclarationSourceEnd ( ) ) ; assertEquals ( "<STR_LIT>" , <NUM_LIT:20> , fields [ <NUM_LIT:1> ] . getDeclarationSourceStart ( ) ) ; assertEquals ( "<STR_LIT>" , <NUM_LIT> , fields [ <NUM_LIT:1> ] . getDeclarationSourceEnd ( ) ) ; SourceMethod [ ] methods = currentType . getMethods ( ) ; assertTrue ( "<STR_LIT>" , methods == null ) ; SourceType [ ] members = currentType . getMemberTypes ( ) ; assertTrue ( "<STR_LIT>" , members == null ) ; assertEquals ( "<STR_LIT>" + testName , expectedUnitToString , currentType . toString ( ) ) ; } public void test45 ( ) { String s = "<STR_LIT>" + "<STR_LIT>" ; String expectedUnitToString = "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT:}>" ; String testName = "<STR_LIT>" ; dietParse ( s , testName ) ; assertEquals ( "<STR_LIT>" , <NUM_LIT:0> , currentType . getDeclarationSourceStart ( ) ) ; assertEquals ( "<STR_LIT>" , <NUM_LIT:31> , currentType . getDeclarationSourceEnd ( ) ) ; assertTrue ( "<STR_LIT>" , currentType . getInterfaceNames ( ) == null ) ; SourceField [ ] fields = currentType . getFields ( ) ; assertTrue ( "<STR_LIT>" , fields != null ) ; assertEquals ( "<STR_LIT>" , <NUM_LIT:2> , fields . length ) ; assertEquals ( "<STR_LIT>" , <NUM_LIT:20> , fields [ <NUM_LIT:0> ] . getDeclarationSourceStart ( ) ) ; assertEquals ( "<STR_LIT>" , <NUM_LIT> , fields [ <NUM_LIT:0> ] . getDeclarationSourceEnd ( ) ) ; assertEquals ( "<STR_LIT>" , <NUM_LIT:20> , fields [ <NUM_LIT:1> ] . getDeclarationSourceStart ( ) ) ; assertEquals ( "<STR_LIT>" , <NUM_LIT> , fields [ <NUM_LIT:1> ] . getDeclarationSourceEnd ( ) ) ; SourceMethod [ ] methods = currentType . getMethods ( ) ; assertTrue ( "<STR_LIT>" , methods == null ) ; SourceType [ ] members = currentType . getMemberTypes ( ) ; assertTrue ( "<STR_LIT>" , members == null ) ; assertEquals ( "<STR_LIT>" + testName , expectedUnitToString , currentType . toString ( ) ) ; } public void test46 ( ) { String s = "<STR_LIT>" + "<STR_LIT>" ; String expectedUnitToString = "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT:}>" ; String testName = "<STR_LIT>" ; fullParse ( s , testName ) ; assertEquals ( "<STR_LIT>" , <NUM_LIT:0> , currentType . getDeclarationSourceStart ( ) ) ; assertEquals ( "<STR_LIT>" , <NUM_LIT> , currentType . getDeclarationSourceEnd ( ) ) ; assertTrue ( "<STR_LIT>" , currentType . getInterfaceNames ( ) == null ) ; SourceField [ ] fields = currentType . getFields ( ) ; assertTrue ( "<STR_LIT>" , fields != null ) ; assertEquals ( "<STR_LIT>" , <NUM_LIT:1> , fields . length ) ; assertEquals ( "<STR_LIT>" , <NUM_LIT:20> , fields [ <NUM_LIT:0> ] . getDeclarationSourceStart ( ) ) ; assertEquals ( "<STR_LIT>" , <NUM_LIT> , fields [ <NUM_LIT:0> ] . getDeclarationSourceEnd ( ) ) ; SourceMethod [ ] methods = currentType . getMethods ( ) ; assertTrue ( "<STR_LIT>" , methods == null ) ; SourceType [ ] members = currentType . getMemberTypes ( ) ; assertTrue ( "<STR_LIT>" , members == null ) ; assertEquals ( "<STR_LIT>" + testName , expectedUnitToString , currentType . toString ( ) ) ; } public void test47 ( ) { String s = "<STR_LIT>" + "<STR_LIT>" ; String expectedUnitToString = "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT:}>" ; String testName = "<STR_LIT>" ; dietParse ( s , testName ) ; assertEquals ( "<STR_LIT>" , <NUM_LIT:0> , currentType . getDeclarationSourceStart ( ) ) ; assertEquals ( "<STR_LIT>" , <NUM_LIT> , currentType . getDeclarationSourceEnd ( ) ) ; assertTrue ( "<STR_LIT>" , currentType . getInterfaceNames ( ) == null ) ; SourceField [ ] fields = currentType . getFields ( ) ; assertTrue ( "<STR_LIT>" , fields != null ) ; assertEquals ( "<STR_LIT>" , <NUM_LIT:1> , fields . length ) ; assertEquals ( "<STR_LIT>" , <NUM_LIT:20> , fields [ <NUM_LIT:0> ] . getDeclarationSourceStart ( ) ) ; assertEquals ( "<STR_LIT>" , <NUM_LIT> , fields [ <NUM_LIT:0> ] . getDeclarationSourceEnd ( ) ) ; SourceMethod [ ] methods = currentType . getMethods ( ) ; assertTrue ( "<STR_LIT>" , methods == null ) ; SourceType [ ] members = currentType . getMemberTypes ( ) ; assertTrue ( "<STR_LIT>" , members == null ) ; assertEquals ( "<STR_LIT>" + testName , expectedUnitToString , currentType . toString ( ) ) ; } public void test48 ( ) { String s = "<STR_LIT>" + "<STR_LIT>" ; String expectedUnitToString = "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT:}>" ; String testName = "<STR_LIT>" ; fullParse ( s , testName ) ; assertEquals ( "<STR_LIT>" , <NUM_LIT:0> , currentType . getDeclarationSourceStart ( ) ) ; assertEquals ( "<STR_LIT>" , <NUM_LIT> , currentType . getDeclarationSourceEnd ( ) ) ; assertTrue ( "<STR_LIT>" , currentType . getInterfaceNames ( ) != null ) ; assertEquals ( "<STR_LIT>" , <NUM_LIT:2> , currentType . getInterfaceNames ( ) . length ) ; SourceField [ ] fields = currentType . getFields ( ) ; assertTrue ( "<STR_LIT>" , fields == null ) ; SourceMethod [ ] methods = currentType . getMethods ( ) ; assertTrue ( "<STR_LIT>" , methods == null ) ; SourceType [ ] members = currentType . getMemberTypes ( ) ; assertTrue ( "<STR_LIT>" , members == null ) ; assertEquals ( "<STR_LIT>" + testName , expectedUnitToString , currentType . toString ( ) ) ; } public void test49 ( ) { String s = "<STR_LIT>" + "<STR_LIT>" ; String expectedUnitToString = "<STR_LIT>" + "<STR_LIT:}>" ; String testName = "<STR_LIT>" ; dietParse ( s , testName ) ; assertEquals ( "<STR_LIT>" , <NUM_LIT:0> , currentType . getDeclarationSourceStart ( ) ) ; assertEquals ( "<STR_LIT>" , <NUM_LIT> , currentType . getDeclarationSourceEnd ( ) ) ; assertTrue ( "<STR_LIT>" , currentType . getInterfaceNames ( ) != null ) ; assertEquals ( "<STR_LIT>" , <NUM_LIT:2> , currentType . getInterfaceNames ( ) . length ) ; SourceField [ ] fields = currentType . getFields ( ) ; assertTrue ( "<STR_LIT>" , fields == null ) ; SourceMethod [ ] methods = currentType . getMethods ( ) ; assertTrue ( "<STR_LIT>" , methods == null ) ; SourceType [ ] members = currentType . getMemberTypes ( ) ; assertTrue ( "<STR_LIT>" , members == null ) ; assertEquals ( "<STR_LIT>" + testName , expectedUnitToString , currentType . toString ( ) ) ; } public void test50 ( ) { String s = "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" ; String expectedUnitToString = "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT:}>" ; String testName = "<STR_LIT>" ; fullParse ( s , testName ) ; assertEquals ( "<STR_LIT>" , <NUM_LIT:0> , currentType . getDeclarationSourceStart ( ) ) ; assertEquals ( "<STR_LIT>" , <NUM_LIT> , currentType . getDeclarationSourceEnd ( ) ) ; assertTrue ( "<STR_LIT>" , currentType . getInterfaceNames ( ) == null ) ; SourceField [ ] fields = currentType . getFields ( ) ; assertTrue ( "<STR_LIT>" , fields != null ) ; assertEquals ( "<STR_LIT>" , <NUM_LIT:1> , fields . length ) ; assertEquals ( "<STR_LIT>" , <NUM_LIT> , fields [ <NUM_LIT:0> ] . getDeclarationSourceStart ( ) ) ; assertEquals ( "<STR_LIT>" , <NUM_LIT> , fields [ <NUM_LIT:0> ] . getDeclarationSourceEnd ( ) ) ; SourceMethod [ ] methods = currentType . getMethods ( ) ; assertTrue ( "<STR_LIT>" , methods == null ) ; SourceType [ ] members = currentType . getMemberTypes ( ) ; assertTrue ( "<STR_LIT>" , members == null ) ; assertEquals ( "<STR_LIT>" + testName , expectedUnitToString , currentType . toString ( ) ) ; } public void test51 ( ) { String s = "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" ; String expectedUnitToString = "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT:}>" ; String testName = "<STR_LIT>" ; dietParse ( s , testName ) ; assertEquals ( "<STR_LIT>" , <NUM_LIT:0> , currentType . getDeclarationSourceStart ( ) ) ; assertEquals ( "<STR_LIT>" , <NUM_LIT> , currentType . getDeclarationSourceEnd ( ) ) ; assertTrue ( "<STR_LIT>" , currentType . getInterfaceNames ( ) == null ) ; SourceField [ ] fields = currentType . getFields ( ) ; assertTrue ( "<STR_LIT>" , fields != null ) ; assertEquals ( "<STR_LIT>" , <NUM_LIT:1> , fields . length ) ; assertEquals ( "<STR_LIT>" , <NUM_LIT> , fields [ <NUM_LIT:0> ] . getDeclarationSourceStart ( ) ) ; assertEquals ( "<STR_LIT>" , <NUM_LIT> , fields [ <NUM_LIT:0> ] . getDeclarationSourceEnd ( ) ) ; SourceMethod [ ] methods = currentType . getMethods ( ) ; assertTrue ( "<STR_LIT>" , methods == null ) ; SourceType [ ] members = currentType . getMemberTypes ( ) ; assertTrue ( "<STR_LIT>" , members == null ) ; assertEquals ( "<STR_LIT>" + testName , expectedUnitToString , currentType . toString ( ) ) ; } public void test52 ( ) { String s = "<STR_LIT>" ; String expectedUnitToString = "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT:}>" ; String testName = "<STR_LIT>" ; fullParse ( s , testName ) ; assertEquals ( "<STR_LIT>" , <NUM_LIT:0> , currentType . getDeclarationSourceStart ( ) ) ; assertEquals ( "<STR_LIT>" , <NUM_LIT> , currentType . getDeclarationSourceEnd ( ) ) ; assertTrue ( "<STR_LIT>" , currentType . getInterfaceNames ( ) == null ) ; SourceField [ ] fields = currentType . getFields ( ) ; assertTrue ( "<STR_LIT>" , fields != null ) ; assertEquals ( "<STR_LIT>" , <NUM_LIT:1> , fields . length ) ; assertEquals ( "<STR_LIT>" , <NUM_LIT> , fields [ <NUM_LIT:0> ] . getDeclarationSourceStart ( ) ) ; assertEquals ( "<STR_LIT>" , <NUM_LIT> , fields [ <NUM_LIT:0> ] . getDeclarationSourceEnd ( ) ) ; SourceMethod [ ] methods = currentType . getMethods ( ) ; assertTrue ( "<STR_LIT>" , methods != null ) ; assertEquals ( "<STR_LIT>" , <NUM_LIT:15> , methods [ <NUM_LIT:0> ] . getDeclarationSourceStart ( ) ) ; assertEquals ( "<STR_LIT>" , <NUM_LIT> , methods [ <NUM_LIT:0> ] . getDeclarationSourceEnd ( ) ) ; assertEquals ( "<STR_LIT>" , <NUM_LIT:30> , methods [ <NUM_LIT:1> ] . getDeclarationSourceStart ( ) ) ; assertEquals ( "<STR_LIT>" , <NUM_LIT> , methods [ <NUM_LIT:1> ] . getDeclarationSourceEnd ( ) ) ; assertEquals ( "<STR_LIT>" , "<STR_LIT:foo>" , methods [ <NUM_LIT:0> ] . getActualName ( ) ) ; assertEquals ( "<STR_LIT>" , "<STR_LIT:bar>" , methods [ <NUM_LIT:1> ] . getActualName ( ) ) ; SourceType [ ] members = currentType . getMemberTypes ( ) ; assertTrue ( "<STR_LIT>" , members == null ) ; assertEquals ( "<STR_LIT>" + testName , expectedUnitToString , currentType . toString ( ) ) ; } public void test53 ( ) { String s = "<STR_LIT>" ; String expectedUnitToString = "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT:}>" ; String testName = "<STR_LIT>" ; fullParse ( s , testName ) ; assertEquals ( "<STR_LIT>" , <NUM_LIT:0> , currentType . getDeclarationSourceStart ( ) ) ; assertEquals ( "<STR_LIT>" , <NUM_LIT> , currentType . getDeclarationSourceEnd ( ) ) ; assertTrue ( "<STR_LIT>" , currentType . getInterfaceNames ( ) == null ) ; SourceField [ ] fields = currentType . getFields ( ) ; assertTrue ( "<STR_LIT>" , fields != null ) ; assertEquals ( "<STR_LIT>" , <NUM_LIT:1> , fields . length ) ; assertEquals ( "<STR_LIT>" , <NUM_LIT> , fields [ <NUM_LIT:0> ] . getDeclarationSourceStart ( ) ) ; assertEquals ( "<STR_LIT>" , <NUM_LIT> , fields [ <NUM_LIT:0> ] . getDeclarationSourceEnd ( ) ) ; SourceMethod [ ] methods = currentType . getMethods ( ) ; assertTrue ( "<STR_LIT>" , methods != null ) ; assertEquals ( "<STR_LIT>" , <NUM_LIT:1> , methods . length ) ; assertEquals ( "<STR_LIT>" , <NUM_LIT:15> , methods [ <NUM_LIT:0> ] . getDeclarationSourceStart ( ) ) ; assertEquals ( "<STR_LIT>" , <NUM_LIT> , methods [ <NUM_LIT:0> ] . getDeclarationSourceEnd ( ) ) ; assertEquals ( "<STR_LIT>" , "<STR_LIT:foo>" , methods [ <NUM_LIT:0> ] . getActualName ( ) ) ; SourceType [ ] members = currentType . getMemberTypes ( ) ; assertTrue ( "<STR_LIT>" , members == null ) ; assertEquals ( "<STR_LIT>" + testName , expectedUnitToString , currentType . toString ( ) ) ; } public void test54 ( ) { String s = "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" ; String expectedUnitToString = "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT:}>" ; String testName = "<STR_LIT>" ; fullParse ( s , testName ) ; assertEquals ( "<STR_LIT>" , <NUM_LIT:0> , currentType . getDeclarationSourceStart ( ) ) ; assertEquals ( "<STR_LIT>" , <NUM_LIT> , currentType . getDeclarationSourceEnd ( ) ) ; assertTrue ( "<STR_LIT>" , currentType . getInterfaceNames ( ) == null ) ; SourceField [ ] fields = currentType . getFields ( ) ; assertTrue ( "<STR_LIT>" , fields != null ) ; assertEquals ( "<STR_LIT>" , <NUM_LIT:2> , fields . length ) ; assertEquals ( "<STR_LIT>" , <NUM_LIT> , fields [ <NUM_LIT:0> ] . getDeclarationSourceStart ( ) ) ; assertEquals ( "<STR_LIT>" , <NUM_LIT> , fields [ <NUM_LIT:0> ] . getDeclarationSourceEnd ( ) ) ; assertEquals ( "<STR_LIT>" , <NUM_LIT> , fields [ <NUM_LIT:1> ] . getDeclarationSourceStart ( ) ) ; assertEquals ( "<STR_LIT>" , <NUM_LIT> , fields [ <NUM_LIT:1> ] . getDeclarationSourceEnd ( ) ) ; SourceMethod [ ] methods = currentType . getMethods ( ) ; assertTrue ( "<STR_LIT>" , methods != null ) ; assertEquals ( "<STR_LIT>" , <NUM_LIT:2> , methods . length ) ; assertEquals ( "<STR_LIT>" , <NUM_LIT:20> , methods [ <NUM_LIT:0> ] . getDeclarationSourceStart ( ) ) ; assertEquals ( "<STR_LIT>" , <NUM_LIT> , methods [ <NUM_LIT:0> ] . getDeclarationSourceEnd ( ) ) ; assertEquals ( "<STR_LIT>" , <NUM_LIT> , methods [ <NUM_LIT:1> ] . getDeclarationSourceStart ( ) ) ; assertEquals ( "<STR_LIT>" , <NUM_LIT> , methods [ <NUM_LIT:1> ] . getDeclarationSourceEnd ( ) ) ; assertEquals ( "<STR_LIT>" , "<STR_LIT:foo>" , methods [ <NUM_LIT:0> ] . getActualName ( ) ) ; assertEquals ( "<STR_LIT>" , "<STR_LIT:bar>" , methods [ <NUM_LIT:1> ] . getActualName ( ) ) ; SourceType [ ] members = currentType . getMemberTypes ( ) ; assertTrue ( "<STR_LIT>" , members == null ) ; assertEquals ( "<STR_LIT>" + testName , expectedUnitToString , currentType . toString ( ) ) ; } public void test55 ( ) { String s = "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" ; String expectedUnitToString = "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT:}>" ; String testName = "<STR_LIT>" ; dietParse ( s , testName ) ; assertEquals ( "<STR_LIT>" , <NUM_LIT:0> , currentType . getDeclarationSourceStart ( ) ) ; assertEquals ( "<STR_LIT>" , <NUM_LIT> , currentType . getDeclarationSourceEnd ( ) ) ; assertTrue ( "<STR_LIT>" , currentType . getInterfaceNames ( ) == null ) ; SourceField [ ] fields = currentType . getFields ( ) ; assertTrue ( "<STR_LIT>" , fields != null ) ; assertEquals ( "<STR_LIT>" , <NUM_LIT:2> , fields . length ) ; assertEquals ( "<STR_LIT>" , <NUM_LIT> , fields [ <NUM_LIT:0> ] . getDeclarationSourceStart ( ) ) ; assertEquals ( "<STR_LIT>" , <NUM_LIT> , fields [ <NUM_LIT:0> ] . getDeclarationSourceEnd ( ) ) ; assertEquals ( "<STR_LIT>" , <NUM_LIT> , fields [ <NUM_LIT:1> ] . getDeclarationSourceStart ( ) ) ; assertEquals ( "<STR_LIT>" , <NUM_LIT> , fields [ <NUM_LIT:1> ] . getDeclarationSourceEnd ( ) ) ; SourceMethod [ ] methods = currentType . getMethods ( ) ; assertTrue ( "<STR_LIT>" , methods != null ) ; assertEquals ( "<STR_LIT>" , <NUM_LIT:2> , methods . length ) ; assertEquals ( "<STR_LIT>" , <NUM_LIT:20> , methods [ <NUM_LIT:0> ] . getDeclarationSourceStart ( ) ) ; assertEquals ( "<STR_LIT>" , <NUM_LIT> , methods [ <NUM_LIT:0> ] . getDeclarationSourceEnd ( ) ) ; assertEquals ( "<STR_LIT>" , <NUM_LIT> , methods [ <NUM_LIT:1> ] . getDeclarationSourceStart ( ) ) ; assertEquals ( "<STR_LIT>" , <NUM_LIT> , methods [ <NUM_LIT:1> ] . getDeclarationSourceEnd ( ) ) ; assertEquals ( "<STR_LIT>" , "<STR_LIT:foo>" , methods [ <NUM_LIT:0> ] . getActualName ( ) ) ; assertEquals ( "<STR_LIT>" , "<STR_LIT:bar>" , methods [ <NUM_LIT:1> ] . getActualName ( ) ) ; SourceType [ ] members = currentType . getMemberTypes ( ) ; assertTrue ( "<STR_LIT>" , members == null ) ; assertEquals ( "<STR_LIT>" + testName , expectedUnitToString , currentType . toString ( ) ) ; } public void test56 ( ) { String s = "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" ; String expectedUnitToString = "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT:}>" ; String testName = "<STR_LIT>" ; fullParse ( s , testName ) ; assertEquals ( "<STR_LIT>" , <NUM_LIT:0> , currentType . getDeclarationSourceStart ( ) ) ; assertEquals ( "<STR_LIT>" , <NUM_LIT> , currentType . getDeclarationSourceEnd ( ) ) ; assertTrue ( "<STR_LIT>" , currentType . getInterfaceNames ( ) == null ) ; SourceField [ ] fields = currentType . getFields ( ) ; assertTrue ( "<STR_LIT>" , fields != null ) ; assertEquals ( "<STR_LIT>" , <NUM_LIT:2> , fields . length ) ; assertEquals ( "<STR_LIT>" , <NUM_LIT:16> , fields [ <NUM_LIT:0> ] . getDeclarationSourceStart ( ) ) ; assertEquals ( "<STR_LIT>" , <NUM_LIT:24> , fields [ <NUM_LIT:0> ] . getDeclarationSourceEnd ( ) ) ; assertEquals ( "<STR_LIT>" , <NUM_LIT> , fields [ <NUM_LIT:1> ] . getDeclarationSourceStart ( ) ) ; assertEquals ( "<STR_LIT>" , <NUM_LIT> , fields [ <NUM_LIT:1> ] . getDeclarationSourceEnd ( ) ) ; SourceMethod [ ] methods = currentType . getMethods ( ) ; assertTrue ( "<STR_LIT>" , methods != null ) ; assertEquals ( "<STR_LIT>" , <NUM_LIT:1> , methods . length ) ; assertEquals ( "<STR_LIT>" , <NUM_LIT> , methods [ <NUM_LIT:0> ] . getDeclarationSourceStart ( ) ) ; assertEquals ( "<STR_LIT>" , <NUM_LIT> , methods [ <NUM_LIT:0> ] . getDeclarationSourceEnd ( ) ) ; assertEquals ( "<STR_LIT>" , "<STR_LIT:foo>" , methods [ <NUM_LIT:0> ] . getActualName ( ) ) ; SourceType [ ] members = currentType . getMemberTypes ( ) ; assertTrue ( "<STR_LIT>" , members == null ) ; assertEquals ( "<STR_LIT>" + testName , expectedUnitToString , currentType . toString ( ) ) ; } public void test57 ( ) { String s = "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" ; String expectedUnitToString = "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT:}>" ; String testName = "<STR_LIT>" ; dietParse ( s , testName ) ; assertEquals ( "<STR_LIT>" , <NUM_LIT:0> , currentType . getDeclarationSourceStart ( ) ) ; assertEquals ( "<STR_LIT>" , <NUM_LIT> , currentType . getDeclarationSourceEnd ( ) ) ; assertTrue ( "<STR_LIT>" , currentType . getInterfaceNames ( ) == null ) ; SourceField [ ] fields = currentType . getFields ( ) ; assertTrue ( "<STR_LIT>" , fields != null ) ; assertEquals ( "<STR_LIT>" , <NUM_LIT:2> , fields . length ) ; assertEquals ( "<STR_LIT>" , <NUM_LIT:16> , fields [ <NUM_LIT:0> ] . getDeclarationSourceStart ( ) ) ; assertEquals ( "<STR_LIT>" , <NUM_LIT:24> , fields [ <NUM_LIT:0> ] . getDeclarationSourceEnd ( ) ) ; assertEquals ( "<STR_LIT>" , <NUM_LIT> , fields [ <NUM_LIT:1> ] . getDeclarationSourceStart ( ) ) ; assertEquals ( "<STR_LIT>" , <NUM_LIT> , fields [ <NUM_LIT:1> ] . getDeclarationSourceEnd ( ) ) ; SourceMethod [ ] methods = currentType . getMethods ( ) ; assertTrue ( "<STR_LIT>" , methods != null ) ; assertEquals ( "<STR_LIT>" , <NUM_LIT:1> , methods . length ) ; assertEquals ( "<STR_LIT>" , <NUM_LIT> , methods [ <NUM_LIT:0> ] . getDeclarationSourceStart ( ) ) ; assertEquals ( "<STR_LIT>" , <NUM_LIT> , methods [ <NUM_LIT:0> ] . getDeclarationSourceEnd ( ) ) ; assertEquals ( "<STR_LIT>" , "<STR_LIT:foo>" , methods [ <NUM_LIT:0> ] . getActualName ( ) ) ; SourceType [ ] members = currentType . getMemberTypes ( ) ; assertTrue ( "<STR_LIT>" , members == null ) ; assertEquals ( "<STR_LIT>" + testName , expectedUnitToString , currentType . toString ( ) ) ; } public void test58 ( ) { String s = "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" ; String expectedUnitToString = "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT:}>" ; String testName = "<STR_LIT>" ; fullParse ( s , testName ) ; assertEquals ( "<STR_LIT>" , <NUM_LIT:0> , currentType . getDeclarationSourceStart ( ) ) ; assertEquals ( "<STR_LIT>" , <NUM_LIT> , currentType . getDeclarationSourceEnd ( ) ) ; assertTrue ( "<STR_LIT>" , currentType . getInterfaceNames ( ) == null ) ; SourceField [ ] fields = currentType . getFields ( ) ; assertTrue ( "<STR_LIT>" , fields == null ) ; SourceMethod [ ] methods = currentType . getMethods ( ) ; assertTrue ( "<STR_LIT>" , methods != null ) ; assertEquals ( "<STR_LIT>" , <NUM_LIT:1> , methods . length ) ; assertEquals ( "<STR_LIT>" , <NUM_LIT> , methods [ <NUM_LIT:0> ] . getDeclarationSourceStart ( ) ) ; assertEquals ( "<STR_LIT>" , <NUM_LIT> , methods [ <NUM_LIT:0> ] . getDeclarationSourceEnd ( ) ) ; assertEquals ( "<STR_LIT>" , "<STR_LIT:foo>" , methods [ <NUM_LIT:0> ] . getActualName ( ) ) ; SourceType [ ] members = currentType . getMemberTypes ( ) ; assertTrue ( "<STR_LIT>" , members == null ) ; assertEquals ( "<STR_LIT>" + testName , expectedUnitToString , currentType . toString ( ) ) ; } public void test59 ( ) { String s = "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" ; String expectedUnitToString = "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT:}>" ; String testName = "<STR_LIT>" ; fullParse ( s , testName ) ; assertEquals ( "<STR_LIT>" , <NUM_LIT:0> , currentType . getDeclarationSourceStart ( ) ) ; assertEquals ( "<STR_LIT>" , <NUM_LIT> , currentType . getDeclarationSourceEnd ( ) ) ; assertTrue ( "<STR_LIT>" , currentType . getInterfaceNames ( ) == null ) ; SourceField [ ] fields = currentType . getFields ( ) ; assertTrue ( "<STR_LIT>" , fields == null ) ; SourceMethod [ ] methods = currentType . getMethods ( ) ; assertTrue ( "<STR_LIT>" , methods != null ) ; assertEquals ( "<STR_LIT>" , <NUM_LIT:1> , methods . length ) ; assertEquals ( "<STR_LIT>" , <NUM_LIT:20> , methods [ <NUM_LIT:0> ] . getDeclarationSourceStart ( ) ) ; assertEquals ( "<STR_LIT>" , <NUM_LIT> , methods [ <NUM_LIT:0> ] . getDeclarationSourceEnd ( ) ) ; assertEquals ( "<STR_LIT>" , "<STR_LIT:foo>" , methods [ <NUM_LIT:0> ] . getActualName ( ) ) ; SourceType [ ] members = currentType . getMemberTypes ( ) ; assertTrue ( "<STR_LIT>" , members == null ) ; assertEquals ( "<STR_LIT>" + testName , expectedUnitToString , currentType . toString ( ) ) ; } public void test60 ( ) { String s = "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" ; String expectedUnitToString = "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT:}>" ; String testName = "<STR_LIT>" ; fullParse ( s , testName ) ; assertEquals ( "<STR_LIT>" , <NUM_LIT:0> , currentType . getDeclarationSourceStart ( ) ) ; assertEquals ( "<STR_LIT>" , <NUM_LIT> , currentType . getDeclarationSourceEnd ( ) ) ; assertTrue ( "<STR_LIT>" , currentType . getInterfaceNames ( ) == null ) ; SourceField [ ] fields = currentType . getFields ( ) ; assertTrue ( "<STR_LIT>" , fields == null ) ; SourceMethod [ ] methods = currentType . getMethods ( ) ; assertTrue ( "<STR_LIT>" , methods != null ) ; assertEquals ( "<STR_LIT>" , <NUM_LIT:2> , methods . length ) ; assertEquals ( "<STR_LIT>" , <NUM_LIT> , methods [ <NUM_LIT:0> ] . getDeclarationSourceStart ( ) ) ; assertEquals ( "<STR_LIT>" , <NUM_LIT> , methods [ <NUM_LIT:0> ] . getDeclarationSourceEnd ( ) ) ; assertEquals ( "<STR_LIT>" , <NUM_LIT> , methods [ <NUM_LIT:1> ] . getDeclarationSourceStart ( ) ) ; assertEquals ( "<STR_LIT>" , <NUM_LIT> , methods [ <NUM_LIT:1> ] . getDeclarationSourceEnd ( ) ) ; assertEquals ( "<STR_LIT>" , "<STR_LIT:foo>" , methods [ <NUM_LIT:0> ] . getActualName ( ) ) ; assertEquals ( "<STR_LIT>" , "<STR_LIT>" , methods [ <NUM_LIT:1> ] . getActualName ( ) ) ; SourceType [ ] members = currentType . getMemberTypes ( ) ; assertTrue ( "<STR_LIT>" , members == null ) ; assertEquals ( "<STR_LIT>" + testName , expectedUnitToString , currentType . toString ( ) ) ; } public void test61 ( ) { String s = "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" ; String expectedUnitToString = "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT:}>" ; String testName = "<STR_LIT>" ; fullParse ( s , testName ) ; assertEquals ( "<STR_LIT>" , <NUM_LIT:0> , currentType . getDeclarationSourceStart ( ) ) ; assertEquals ( "<STR_LIT>" , <NUM_LIT> , currentType . getDeclarationSourceEnd ( ) ) ; assertTrue ( "<STR_LIT>" , currentType . getInterfaceNames ( ) == null ) ; SourceField [ ] fields = currentType . getFields ( ) ; assertTrue ( "<STR_LIT>" , fields != null ) ; assertEquals ( "<STR_LIT>" , <NUM_LIT> , fields [ <NUM_LIT:0> ] . getDeclarationSourceStart ( ) ) ; assertEquals ( "<STR_LIT>" , <NUM_LIT> , fields [ <NUM_LIT:0> ] . getDeclarationSourceEnd ( ) ) ; SourceMethod [ ] methods = currentType . getMethods ( ) ; assertTrue ( "<STR_LIT>" , methods == null ) ; SourceType [ ] members = currentType . getMemberTypes ( ) ; assertTrue ( "<STR_LIT>" , members == null ) ; assertEquals ( "<STR_LIT>" + testName , expectedUnitToString , currentType . toString ( ) ) ; } public void test62 ( ) { String s = "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" ; String expectedUnitToString = "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT:}>" ; String testName = "<STR_LIT>" ; fullParse ( s , testName ) ; assertEquals ( "<STR_LIT>" , <NUM_LIT:0> , currentType . getDeclarationSourceStart ( ) ) ; assertEquals ( "<STR_LIT>" , <NUM_LIT> , currentType . getDeclarationSourceEnd ( ) ) ; assertTrue ( "<STR_LIT>" , currentType . getInterfaceNames ( ) == null ) ; SourceField [ ] fields = currentType . getFields ( ) ; assertTrue ( "<STR_LIT>" , fields == null ) ; SourceMethod [ ] methods = currentType . getMethods ( ) ; assertTrue ( "<STR_LIT>" , methods != null ) ; assertEquals ( "<STR_LIT>" , <NUM_LIT:1> , methods . length ) ; assertEquals ( "<STR_LIT>" , <NUM_LIT> , methods [ <NUM_LIT:0> ] . getDeclarationSourceStart ( ) ) ; assertEquals ( "<STR_LIT>" , <NUM_LIT> , methods [ <NUM_LIT:0> ] . getDeclarationSourceEnd ( ) ) ; assertEquals ( "<STR_LIT>" , "<STR_LIT:foo>" , methods [ <NUM_LIT:0> ] . getActualName ( ) ) ; SourceType [ ] members = currentType . getMemberTypes ( ) ; assertTrue ( "<STR_LIT>" , members == null ) ; assertEquals ( "<STR_LIT>" + testName , expectedUnitToString , currentType . toString ( ) ) ; } public void test63 ( ) { String s = "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" ; String expectedUnitToString = "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT:}>" ; String testName = "<STR_LIT>" ; fullParse ( s , testName ) ; assertEquals ( "<STR_LIT>" , <NUM_LIT:0> , currentType . getDeclarationSourceStart ( ) ) ; assertEquals ( "<STR_LIT>" , <NUM_LIT> , currentType . getDeclarationSourceEnd ( ) ) ; assertTrue ( "<STR_LIT>" , currentType . getInterfaceNames ( ) == null ) ; SourceField [ ] fields = currentType . getFields ( ) ; assertTrue ( "<STR_LIT>" , fields != null ) ; assertEquals ( "<STR_LIT>" , <NUM_LIT:1> , fields . length ) ; assertEquals ( "<STR_LIT>" , <NUM_LIT> , fields [ <NUM_LIT:0> ] . getDeclarationSourceStart ( ) ) ; assertEquals ( "<STR_LIT>" , <NUM_LIT> , fields [ <NUM_LIT:0> ] . getDeclarationSourceEnd ( ) ) ; SourceMethod [ ] methods = currentType . getMethods ( ) ; assertTrue ( "<STR_LIT>" , methods != null ) ; assertEquals ( "<STR_LIT>" , <NUM_LIT:1> , methods . length ) ; assertEquals ( "<STR_LIT>" , <NUM_LIT> , methods [ <NUM_LIT:0> ] . getDeclarationSourceStart ( ) ) ; assertEquals ( "<STR_LIT>" , <NUM_LIT> , methods [ <NUM_LIT:0> ] . getDeclarationSourceEnd ( ) ) ; assertEquals ( "<STR_LIT>" , "<STR_LIT:foo>" , methods [ <NUM_LIT:0> ] . getActualName ( ) ) ; SourceType [ ] members = currentType . getMemberTypes ( ) ; assertTrue ( "<STR_LIT>" , members == null ) ; assertEquals ( "<STR_LIT>" + testName , expectedUnitToString , currentType . toString ( ) ) ; } public void test64 ( ) { String s = "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" ; String expectedUnitToString = "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT:}>" ; String testName = "<STR_LIT>" ; dietParse ( s , testName ) ; assertEquals ( "<STR_LIT>" , <NUM_LIT:0> , currentType . getDeclarationSourceStart ( ) ) ; assertEquals ( "<STR_LIT>" , <NUM_LIT> , currentType . getDeclarationSourceEnd ( ) ) ; assertTrue ( "<STR_LIT>" , currentType . getInterfaceNames ( ) == null ) ; SourceField [ ] fields = currentType . getFields ( ) ; assertTrue ( "<STR_LIT>" , fields != null ) ; assertEquals ( "<STR_LIT>" , <NUM_LIT:1> , fields . length ) ; assertEquals ( "<STR_LIT>" , <NUM_LIT> , fields [ <NUM_LIT:0> ] . getDeclarationSourceStart ( ) ) ; assertEquals ( "<STR_LIT>" , <NUM_LIT> , fields [ <NUM_LIT:0> ] . getDeclarationSourceEnd ( ) ) ; SourceMethod [ ] methods = currentType . getMethods ( ) ; assertTrue ( "<STR_LIT>" , methods != null ) ; assertEquals ( "<STR_LIT>" , <NUM_LIT:1> , methods . length ) ; assertEquals ( "<STR_LIT>" , <NUM_LIT> , methods [ <NUM_LIT:0> ] . getDeclarationSourceStart ( ) ) ; assertEquals ( "<STR_LIT>" , <NUM_LIT> , methods [ <NUM_LIT:0> ] . getDeclarationSourceEnd ( ) ) ; assertEquals ( "<STR_LIT>" , "<STR_LIT:foo>" , methods [ <NUM_LIT:0> ] . getActualName ( ) ) ; SourceType [ ] members = currentType . getMemberTypes ( ) ; assertTrue ( "<STR_LIT>" , members == null ) ; assertEquals ( "<STR_LIT>" + testName , expectedUnitToString , currentType . toString ( ) ) ; } public void test65 ( ) { String s = "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" ; String expectedUnitToString = "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT:}>" ; String testName = "<STR_LIT>" ; dietParse ( s , testName ) ; assertEquals ( "<STR_LIT>" , <NUM_LIT:0> , currentType . getDeclarationSourceStart ( ) ) ; assertEquals ( "<STR_LIT>" , <NUM_LIT> , currentType . getDeclarationSourceEnd ( ) ) ; assertTrue ( "<STR_LIT>" , currentType . getInterfaceNames ( ) == null ) ; SourceField [ ] fields = currentType . getFields ( ) ; assertTrue ( "<STR_LIT>" , fields != null ) ; assertEquals ( "<STR_LIT>" , <NUM_LIT:1> , fields . length ) ; assertEquals ( "<STR_LIT>" , <NUM_LIT> , fields [ <NUM_LIT:0> ] . getDeclarationSourceStart ( ) ) ; assertEquals ( "<STR_LIT>" , <NUM_LIT> , fields [ <NUM_LIT:0> ] . getDeclarationSourceEnd ( ) ) ; SourceMethod [ ] methods = currentType . getMethods ( ) ; assertTrue ( "<STR_LIT>" , methods != null ) ; assertEquals ( "<STR_LIT>" , <NUM_LIT:2> , methods . length ) ; assertEquals ( "<STR_LIT>" , <NUM_LIT> , methods [ <NUM_LIT:0> ] . getDeclarationSourceStart ( ) ) ; assertEquals ( "<STR_LIT>" , <NUM_LIT> , methods [ <NUM_LIT:0> ] . getDeclarationSourceEnd ( ) ) ; assertEquals ( "<STR_LIT>" , <NUM_LIT> , methods [ <NUM_LIT:1> ] . getDeclarationSourceStart ( ) ) ; assertEquals ( "<STR_LIT>" , <NUM_LIT> , methods [ <NUM_LIT:1> ] . getDeclarationSourceEnd ( ) ) ; assertEquals ( "<STR_LIT>" , "<STR_LIT:foo>" , methods [ <NUM_LIT:0> ] . getActualName ( ) ) ; assertEquals ( "<STR_LIT>" , "<STR_LIT:x>" , methods [ <NUM_LIT:1> ] . getActualName ( ) ) ; SourceType [ ] members = currentType . getMemberTypes ( ) ; assertTrue ( "<STR_LIT>" , members == null ) ; assertEquals ( "<STR_LIT>" + testName , expectedUnitToString , currentType . toString ( ) ) ; } public void test66 ( ) { String s = "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" ; String expectedUnitToString = "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT:}>" ; String testName = "<STR_LIT>" ; dietParse ( s , testName ) ; assertEquals ( "<STR_LIT>" , <NUM_LIT:0> , currentType . getDeclarationSourceStart ( ) ) ; assertEquals ( "<STR_LIT>" , <NUM_LIT> , currentType . getDeclarationSourceEnd ( ) ) ; assertTrue ( "<STR_LIT>" , currentType . getInterfaceNames ( ) == null ) ; SourceField [ ] fields = currentType . getFields ( ) ; assertTrue ( "<STR_LIT>" , fields == null ) ; SourceMethod [ ] methods = currentType . getMethods ( ) ; assertTrue ( "<STR_LIT>" , methods != null ) ; assertEquals ( "<STR_LIT>" , <NUM_LIT:2> , methods . length ) ; assertEquals ( "<STR_LIT>" , <NUM_LIT:30> , methods [ <NUM_LIT:0> ] . getDeclarationSourceStart ( ) ) ; assertEquals ( "<STR_LIT>" , <NUM_LIT> , methods [ <NUM_LIT:0> ] . getDeclarationSourceEnd ( ) ) ; assertEquals ( "<STR_LIT>" , <NUM_LIT> , methods [ <NUM_LIT:1> ] . getDeclarationSourceStart ( ) ) ; assertEquals ( "<STR_LIT>" , <NUM_LIT> , methods [ <NUM_LIT:1> ] . getDeclarationSourceEnd ( ) ) ; assertEquals ( "<STR_LIT>" , "<STR_LIT:foo>" , methods [ <NUM_LIT:0> ] . getActualName ( ) ) ; assertEquals ( "<STR_LIT>" , "<STR_LIT:x>" , methods [ <NUM_LIT:1> ] . getActualName ( ) ) ; SourceType [ ] members = currentType . getMemberTypes ( ) ; assertTrue ( "<STR_LIT>" , members == null ) ; assertEquals ( "<STR_LIT>" + testName , expectedUnitToString , currentType . toString ( ) ) ; } public void test67 ( ) { String s = "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT:}>" ; String expectedUnitToString = "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT:}>" ; String testName = "<STR_LIT>" ; dietParse ( s , testName ) ; assertEquals ( "<STR_LIT>" , <NUM_LIT:0> , currentType . getDeclarationSourceStart ( ) ) ; assertEquals ( "<STR_LIT>" , <NUM_LIT> , currentType . getDeclarationSourceEnd ( ) ) ; assertTrue ( "<STR_LIT>" , currentType . getInterfaceNames ( ) == null ) ; SourceField [ ] fields = currentType . getFields ( ) ; assertTrue ( "<STR_LIT>" , fields == null ) ; SourceMethod [ ] methods = currentType . getMethods ( ) ; assertTrue ( "<STR_LIT>" , methods != null ) ; assertEquals ( "<STR_LIT>" , <NUM_LIT:2> , methods . length ) ; assertEquals ( "<STR_LIT>" , <NUM_LIT:30> , methods [ <NUM_LIT:0> ] . getDeclarationSourceStart ( ) ) ; assertEquals ( "<STR_LIT>" , <NUM_LIT> , methods [ <NUM_LIT:0> ] . getDeclarationSourceEnd ( ) ) ; assertEquals ( "<STR_LIT>" , <NUM_LIT> , methods [ <NUM_LIT:1> ] . getDeclarationSourceStart ( ) ) ; assertEquals ( "<STR_LIT>" , <NUM_LIT> , methods [ <NUM_LIT:1> ] . getDeclarationSourceEnd ( ) ) ; assertEquals ( "<STR_LIT>" , "<STR_LIT:foo>" , methods [ <NUM_LIT:0> ] . getActualName ( ) ) ; assertEquals ( "<STR_LIT>" , "<STR_LIT:x>" , methods [ <NUM_LIT:1> ] . getActualName ( ) ) ; SourceType [ ] members = currentType . getMemberTypes ( ) ; assertTrue ( "<STR_LIT>" , members == null ) ; assertEquals ( "<STR_LIT>" + testName , expectedUnitToString , currentType . toString ( ) ) ; } public void test68 ( ) { String s = "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT:}>" ; String expectedUnitToString = "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT:}>" ; String testName = "<STR_LIT>" ; fullParse ( s , testName ) ; assertEquals ( "<STR_LIT>" , <NUM_LIT:0> , currentType . getDeclarationSourceStart ( ) ) ; assertEquals ( "<STR_LIT>" , <NUM_LIT> , currentType . getDeclarationSourceEnd ( ) ) ; assertTrue ( "<STR_LIT>" , currentType . getInterfaceNames ( ) == null ) ; SourceField [ ] fields = currentType . getFields ( ) ; assertTrue ( "<STR_LIT>" , fields == null ) ; SourceMethod [ ] methods = currentType . getMethods ( ) ; assertTrue ( "<STR_LIT>" , methods != null ) ; assertEquals ( "<STR_LIT>" , <NUM_LIT:2> , methods . length ) ; assertEquals ( "<STR_LIT>" , <NUM_LIT:30> , methods [ <NUM_LIT:0> ] . getDeclarationSourceStart ( ) ) ; assertEquals ( "<STR_LIT>" , <NUM_LIT> , methods [ <NUM_LIT:0> ] . getDeclarationSourceEnd ( ) ) ; assertEquals ( "<STR_LIT>" , <NUM_LIT> , methods [ <NUM_LIT:1> ] . getDeclarationSourceStart ( ) ) ; assertEquals ( "<STR_LIT>" , <NUM_LIT> , methods [ <NUM_LIT:1> ] . getDeclarationSourceEnd ( ) ) ; assertEquals ( "<STR_LIT>" , "<STR_LIT:foo>" , methods [ <NUM_LIT:0> ] . getActualName ( ) ) ; assertEquals ( "<STR_LIT>" , "<STR_LIT:x>" , methods [ <NUM_LIT:1> ] . getActualName ( ) ) ; SourceType [ ] members = currentType . getMemberTypes ( ) ; assertTrue ( "<STR_LIT>" , members == null ) ; assertEquals ( "<STR_LIT>" + testName , expectedUnitToString , currentType . toString ( ) ) ; } public void test69 ( ) { String s = "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT:}>" ; String expectedUnitToString = "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT:}>" ; String testName = "<STR_LIT>" ; fullParse ( s , testName ) ; assertEquals ( "<STR_LIT>" , <NUM_LIT:0> , currentType . getDeclarationSourceStart ( ) ) ; assertEquals ( "<STR_LIT>" , <NUM_LIT> , currentType . getDeclarationSourceEnd ( ) ) ; assertTrue ( "<STR_LIT>" , currentType . getInterfaceNames ( ) == null ) ; SourceField [ ] fields = currentType . getFields ( ) ; assertTrue ( "<STR_LIT>" , fields != null ) ; assertEquals ( "<STR_LIT>" , <NUM_LIT:1> , fields . length ) ; assertEquals ( "<STR_LIT>" , <NUM_LIT> , fields [ <NUM_LIT:0> ] . getDeclarationSourceStart ( ) ) ; assertEquals ( "<STR_LIT>" , <NUM_LIT> , fields [ <NUM_LIT:0> ] . getDeclarationSourceEnd ( ) ) ; SourceMethod [ ] methods = currentType . getMethods ( ) ; assertTrue ( "<STR_LIT>" , methods != null ) ; assertEquals ( "<STR_LIT>" , <NUM_LIT:2> , methods . length ) ; assertEquals ( "<STR_LIT>" , <NUM_LIT> , methods [ <NUM_LIT:0> ] . getDeclarationSourceStart ( ) ) ; assertEquals ( "<STR_LIT>" , <NUM_LIT> , methods [ <NUM_LIT:0> ] . getDeclarationSourceEnd ( ) ) ; assertEquals ( "<STR_LIT>" , <NUM_LIT> , methods [ <NUM_LIT:1> ] . getDeclarationSourceStart ( ) ) ; assertEquals ( "<STR_LIT>" , <NUM_LIT> , methods [ <NUM_LIT:1> ] . getDeclarationSourceEnd ( ) ) ; assertEquals ( "<STR_LIT>" , "<STR_LIT:foo>" , methods [ <NUM_LIT:0> ] . getActualName ( ) ) ; assertEquals ( "<STR_LIT>" , "<STR_LIT:x>" , methods [ <NUM_LIT:1> ] . getActualName ( ) ) ; SourceType [ ] members = currentType . getMemberTypes ( ) ; assertTrue ( "<STR_LIT>" , members == null ) ; assertEquals ( "<STR_LIT>" + testName , expectedUnitToString , currentType . toString ( ) ) ; } public void test70 ( ) { String s = "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT:}>" ; String expectedUnitToString = "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT:}>" ; String testName = "<STR_LIT>" ; fullParse ( s , testName ) ; assertEquals ( "<STR_LIT>" , <NUM_LIT:0> , currentType . getDeclarationSourceStart ( ) ) ; assertEquals ( "<STR_LIT>" , <NUM_LIT> , currentType . getDeclarationSourceEnd ( ) ) ; assertTrue ( "<STR_LIT>" , currentType . getInterfaceNames ( ) == null ) ; SourceField [ ] fields = currentType . getFields ( ) ; assertTrue ( "<STR_LIT>" , fields == null ) ; SourceMethod [ ] methods = currentType . getMethods ( ) ; assertTrue ( "<STR_LIT>" , methods != null ) ; assertEquals ( "<STR_LIT>" , <NUM_LIT:2> , methods . length ) ; assertEquals ( "<STR_LIT>" , <NUM_LIT:30> , methods [ <NUM_LIT:0> ] . getDeclarationSourceStart ( ) ) ; assertEquals ( "<STR_LIT>" , <NUM_LIT> , methods [ <NUM_LIT:0> ] . getDeclarationSourceEnd ( ) ) ; assertEquals ( "<STR_LIT>" , <NUM_LIT> , methods [ <NUM_LIT:1> ] . getDeclarationSourceStart ( ) ) ; assertEquals ( "<STR_LIT>" , <NUM_LIT> , methods [ <NUM_LIT:1> ] . getDeclarationSourceEnd ( ) ) ; assertEquals ( "<STR_LIT>" , "<STR_LIT:foo>" , methods [ <NUM_LIT:0> ] . getActualName ( ) ) ; assertEquals ( "<STR_LIT>" , "<STR_LIT:x>" , methods [ <NUM_LIT:1> ] . getActualName ( ) ) ; SourceType [ ] members = currentType . getMemberTypes ( ) ; assertTrue ( "<STR_LIT>" , members == null ) ; assertEquals ( "<STR_LIT>" + testName , expectedUnitToString , currentType . toString ( ) ) ; } public void test71 ( ) { String s = "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT:}>" ; String expectedUnitToString = "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT:}>" ; String testName = "<STR_LIT>" ; fullParse ( s , testName ) ; assertEquals ( "<STR_LIT>" , <NUM_LIT:0> , currentType . getDeclarationSourceStart ( ) ) ; assertEquals ( "<STR_LIT>" , <NUM_LIT> , currentType . getDeclarationSourceEnd ( ) ) ; assertTrue ( "<STR_LIT>" , currentType . getInterfaceNames ( ) == null ) ; SourceField [ ] fields = currentType . getFields ( ) ; assertTrue ( "<STR_LIT>" , fields != null ) ; assertEquals ( "<STR_LIT>" , <NUM_LIT:1> , fields . length ) ; assertEquals ( "<STR_LIT>" , <NUM_LIT:30> , fields [ <NUM_LIT:0> ] . getDeclarationSourceStart ( ) ) ; assertEquals ( "<STR_LIT>" , <NUM_LIT> , fields [ <NUM_LIT:0> ] . getDeclarationSourceEnd ( ) ) ; SourceMethod [ ] methods = currentType . getMethods ( ) ; assertTrue ( "<STR_LIT>" , methods != null ) ; assertEquals ( "<STR_LIT>" , <NUM_LIT:2> , methods . length ) ; assertEquals ( "<STR_LIT>" , <NUM_LIT> , methods [ <NUM_LIT:0> ] . getDeclarationSourceStart ( ) ) ; assertEquals ( "<STR_LIT>" , <NUM_LIT> , methods [ <NUM_LIT:0> ] . getDeclarationSourceEnd ( ) ) ; assertEquals ( "<STR_LIT>" , <NUM_LIT> , methods [ <NUM_LIT:1> ] . getDeclarationSourceStart ( ) ) ; assertEquals ( "<STR_LIT>" , <NUM_LIT> , methods [ <NUM_LIT:1> ] . getDeclarationSourceEnd ( ) ) ; assertEquals ( "<STR_LIT>" , "<STR_LIT:foo>" , methods [ <NUM_LIT:0> ] . getActualName ( ) ) ; assertEquals ( "<STR_LIT>" , "<STR_LIT:x>" , methods [ <NUM_LIT:1> ] . getActualName ( ) ) ; SourceType [ ] members = currentType . getMemberTypes ( ) ; assertTrue ( "<STR_LIT>" , members == null ) ; assertEquals ( "<STR_LIT>" + testName , expectedUnitToString , currentType . toString ( ) ) ; } public void test72 ( ) { String s = "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT:}>" ; String expectedUnitToString = "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT:}>" ; String testName = "<STR_LIT>" ; fullParse ( s , testName ) ; assertEquals ( "<STR_LIT>" + testName , expectedUnitToString , currentType . toString ( ) ) ; } public void test73 ( ) { String s = "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT:}>" ; String expectedUnitToString = "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT:}>" ; String testName = "<STR_LIT>" ; fullParse ( s , testName ) ; assertEquals ( "<STR_LIT>" + testName , expectedUnitToString , currentType . toString ( ) ) ; } public void test74 ( ) { String s = "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT:}>" ; String expectedUnitToString = "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT:}>" ; String testName = "<STR_LIT>" ; fullParse ( s , testName ) ; assertEquals ( "<STR_LIT>" + testName , expectedUnitToString , currentType . toString ( ) ) ; } public void test75 ( ) { String s = "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT:}>" ; String expectedUnitToString = "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT:}>" ; String testName = "<STR_LIT>" ; fullParse ( s , testName ) ; assertEquals ( "<STR_LIT>" + testName , expectedUnitToString , currentType . toString ( ) ) ; } public void test76 ( ) { String s = "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT:U+0020U+0020}>" + "<STR_LIT>" + "<STR_LIT>" ; String expectedUnitToString = "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT:}>" ; String testName = "<STR_LIT>" ; fullParse ( s , testName ) ; assertEquals ( "<STR_LIT>" , <NUM_LIT:0> , currentType . getDeclarationSourceStart ( ) ) ; assertEquals ( "<STR_LIT>" , <NUM_LIT> , currentType . getDeclarationSourceEnd ( ) ) ; SourceField [ ] fields = currentType . getFields ( ) ; assertTrue ( "<STR_LIT>" , fields != null ) ; assertEquals ( "<STR_LIT>" , <NUM_LIT:3> , fields . length ) ; assertEquals ( "<STR_LIT>" , <NUM_LIT:12> , fields [ <NUM_LIT:0> ] . getDeclarationSourceStart ( ) ) ; assertEquals ( "<STR_LIT>" , <NUM_LIT> , fields [ <NUM_LIT:0> ] . getDeclarationSourceEnd ( ) ) ; assertEquals ( "<STR_LIT>" , <NUM_LIT> , fields [ <NUM_LIT:1> ] . getDeclarationSourceStart ( ) ) ; assertEquals ( "<STR_LIT>" , <NUM_LIT> , fields [ <NUM_LIT:1> ] . getDeclarationSourceEnd ( ) ) ; assertEquals ( "<STR_LIT>" , <NUM_LIT> , fields [ <NUM_LIT:2> ] . getDeclarationSourceStart ( ) ) ; assertEquals ( "<STR_LIT>" , <NUM_LIT> , fields [ <NUM_LIT:2> ] . getDeclarationSourceEnd ( ) ) ; SourceMethod [ ] methods = currentType . getMethods ( ) ; assertTrue ( "<STR_LIT>" , methods == null ) ; assertEquals ( "<STR_LIT>" + testName , expectedUnitToString , currentType . toString ( ) ) ; } public void testBug99662 ( ) { String s = "<STR_LIT>" + "<STR_LIT>" ; String testName = "<STR_LIT>" ; fullParse ( s , testName ) ; assertNull ( "<STR_LIT>" , this . currentType ) ; } public void _test77 ( ) { String s = "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT:}>" ; String expectedUnitToString = "<STR_LIT>" + "<STR_LIT:}>" ; String testName = "<STR_LIT>" ; dietParse ( s , testName , true ) ; assertEquals ( "<STR_LIT>" + testName , expectedUnitToString , currentType . toString ( ) ) ; } public void _test78 ( ) { String s = "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT:}>" ; String expectedUnitToString = "<STR_LIT>" + "<STR_LIT:}>" ; String testName = "<STR_LIT>" ; fullParse ( s , testName , true ) ; assertEquals ( "<STR_LIT>" + testName , expectedUnitToString , currentType . toString ( ) ) ; } public void _test79 ( ) { String s = "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT:}>" ; String expectedUnitToString = "<STR_LIT>" + "<STR_LIT:}>" ; String testName = "<STR_LIT>" ; dietParse ( s , testName , true ) ; assertEquals ( "<STR_LIT>" + testName , expectedUnitToString , currentType . toString ( ) ) ; } public void _test80 ( ) { String s = "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT:}>" ; String expectedUnitToString = "<STR_LIT>" + "<STR_LIT:}>" ; String testName = "<STR_LIT>" ; fullParse ( s , testName , true ) ; assertEquals ( "<STR_LIT>" + testName , expectedUnitToString , currentType . toString ( ) ) ; } } </s>
|
<s> package org . eclipse . jdt . core . tests . compiler . parser ; import java . io . PrintWriter ; import java . io . StringWriter ; import java . util . Locale ; import org . eclipse . jdt . core . compiler . CategorizedProblem ; import org . eclipse . jdt . core . tests . util . AbstractCompilerTest ; import org . eclipse . jdt . core . tests . util . Util ; import org . eclipse . jdt . internal . compiler . CompilationResult ; import org . eclipse . jdt . internal . compiler . DefaultErrorHandlingPolicies ; import org . eclipse . jdt . internal . compiler . ast . CompilationUnitDeclaration ; import org . eclipse . jdt . internal . compiler . batch . CompilationUnit ; import org . eclipse . jdt . internal . compiler . classfmt . ClassFileConstants ; import org . eclipse . jdt . internal . compiler . env . ICompilationUnit ; import org . eclipse . jdt . internal . compiler . impl . CompilerOptions ; import org . eclipse . jdt . internal . compiler . parser . Parser ; import org . eclipse . jdt . internal . compiler . problem . DefaultProblem ; import org . eclipse . jdt . internal . compiler . problem . DefaultProblemFactory ; import org . eclipse . jdt . internal . compiler . problem . ProblemReporter ; public class DualParseSyntaxErrorTest extends AbstractCompilerTest { public static boolean optimizeStringLiterals = false ; public static long sourceLevel = ClassFileConstants . JDK1_3 ; public DualParseSyntaxErrorTest ( String testName ) { super ( testName ) ; } public void checkParse ( char [ ] source , String expectedSyntaxErrorDiagnosis , String testName ) { Parser parser = new Parser ( new ProblemReporter ( DefaultErrorHandlingPolicies . proceedWithAllProblems ( ) , new CompilerOptions ( getCompilerOptions ( ) ) , new DefaultProblemFactory ( Locale . getDefault ( ) ) ) , optimizeStringLiterals ) ; ICompilationUnit sourceUnit = new CompilationUnit ( source , testName , null ) ; CompilationResult compilationResult = new CompilationResult ( sourceUnit , <NUM_LIT:0> , <NUM_LIT:0> , <NUM_LIT:0> ) ; CompilationUnitDeclaration computedUnit = parser . dietParse ( sourceUnit , compilationResult ) ; if ( computedUnit . types != null ) { for ( int i = <NUM_LIT:0> , length = computedUnit . types . length ; i < length ; i ++ ) { computedUnit . types [ i ] . parseMethods ( parser , computedUnit ) ; } } StringBuffer buffer = new StringBuffer ( <NUM_LIT:100> ) ; if ( compilationResult . hasProblems ( ) || compilationResult . hasTasks ( ) ) { CategorizedProblem [ ] problems = compilationResult . getAllProblems ( ) ; int count = problems . length ; int problemCount = <NUM_LIT:0> ; char [ ] unitSource = compilationResult . compilationUnit . getContents ( ) ; for ( int i = <NUM_LIT:0> ; i < count ; i ++ ) { if ( problems [ i ] != null ) { if ( problemCount == <NUM_LIT:0> ) buffer . append ( "<STR_LIT>" ) ; problemCount ++ ; buffer . append ( problemCount + ( problems [ i ] . isError ( ) ? "<STR_LIT>" : "<STR_LIT>" ) ) ; buffer . append ( "<STR_LIT>" + new String ( problems [ i ] . getOriginatingFileName ( ) ) . replace ( '<CHAR_LIT:/>' , '<STR_LIT:\\>' ) ) ; try { buffer . append ( ( ( DefaultProblem ) problems [ i ] ) . errorReportSource ( unitSource ) ) ; buffer . append ( "<STR_LIT:n>" ) ; buffer . append ( problems [ i ] . getMessage ( ) ) ; buffer . append ( "<STR_LIT:n>" ) ; } catch ( Exception e ) { StringWriter stringWriter = new StringWriter ( ) ; e . printStackTrace ( new PrintWriter ( stringWriter ) ) ; buffer . append ( stringWriter . getBuffer ( ) ) ; } buffer . append ( "<STR_LIT>" ) ; } } } String computedSyntaxErrorDiagnosis = buffer . toString ( ) ; if ( ! Util . convertToIndependantLineDelimiter ( expectedSyntaxErrorDiagnosis ) . equals ( Util . convertToIndependantLineDelimiter ( computedSyntaxErrorDiagnosis ) ) ) { System . out . println ( Util . displayString ( computedSyntaxErrorDiagnosis ) ) ; } assertEquals ( "<STR_LIT>" + testName , Util . convertToIndependantLineDelimiter ( expectedSyntaxErrorDiagnosis ) , Util . convertToIndependantLineDelimiter ( computedSyntaxErrorDiagnosis ) ) ; } public void test01 ( ) { String s = "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" ; String expectedSyntaxErrorDiagnosis = "<STR_LIT>" ; String testName = "<STR_LIT>" ; checkParse ( s . toCharArray ( ) , expectedSyntaxErrorDiagnosis , testName ) ; } public void test02 ( ) { String s = "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" ; String expectedSyntaxErrorDiagnosis = "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" ; String testName = "<STR_LIT>" ; checkParse ( s . toCharArray ( ) , expectedSyntaxErrorDiagnosis , testName ) ; } public void test03 ( ) { String s = "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" ; String expectedSyntaxErrorDiagnosis = "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" ; String testName = "<STR_LIT>" ; checkParse ( s . toCharArray ( ) , expectedSyntaxErrorDiagnosis , testName ) ; } public void test04 ( ) { String s = "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" ; String expectedSyntaxErrorDiagnosis = "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" ; String testName = "<STR_LIT>" ; checkParse ( s . toCharArray ( ) , expectedSyntaxErrorDiagnosis , testName ) ; } public void test05 ( ) { String s = "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" ; String expectedSyntaxErrorDiagnosis = "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" ; String testName = "<STR_LIT>" ; checkParse ( s . toCharArray ( ) , expectedSyntaxErrorDiagnosis , testName ) ; } public void test06 ( ) { String s = "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" ; String expectedSyntaxErrorDiagnosis = "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" ; String testName = "<STR_LIT>" ; checkParse ( s . toCharArray ( ) , expectedSyntaxErrorDiagnosis , testName ) ; } public void test07 ( ) { String s = "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" ; String expectedSyntaxErrorDiagnosis = "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" ; String testName = "<STR_LIT>" ; checkParse ( s . toCharArray ( ) , expectedSyntaxErrorDiagnosis , testName ) ; } public void test08 ( ) { String s = "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" ; String expectedSyntaxErrorDiagnosis = "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" ; String testName = "<STR_LIT>" ; checkParse ( s . toCharArray ( ) , expectedSyntaxErrorDiagnosis , testName ) ; } public void test09 ( ) { String s = "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" ; String expectedSyntaxErrorDiagnosis = "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" ; String testName = "<STR_LIT>" ; checkParse ( s . toCharArray ( ) , expectedSyntaxErrorDiagnosis , testName ) ; } public void test10 ( ) { String s = "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" ; String expectedSyntaxErrorDiagnosis = "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" ; String testName = "<STR_LIT>" ; checkParse ( s . toCharArray ( ) , expectedSyntaxErrorDiagnosis , testName ) ; } } </s>
|
<s> package org . eclipse . jdt . core . tests . compiler . parser ; import java . util . Locale ; import java . util . Map ; import org . eclipse . jdt . core . tests . util . Util ; import org . eclipse . jdt . internal . codeassist . select . SelectionJavadoc ; import org . eclipse . jdt . internal . codeassist . select . SelectionParser ; import org . eclipse . jdt . internal . compiler . ASTVisitor ; import org . eclipse . jdt . internal . compiler . CompilationResult ; import org . eclipse . jdt . internal . compiler . DefaultErrorHandlingPolicies ; import org . eclipse . jdt . internal . compiler . ast . CompilationUnitDeclaration ; import org . eclipse . jdt . internal . compiler . ast . ConstructorDeclaration ; import org . eclipse . jdt . internal . compiler . ast . FieldDeclaration ; import org . eclipse . jdt . internal . compiler . ast . MethodDeclaration ; import org . eclipse . jdt . internal . compiler . ast . TypeDeclaration ; import org . eclipse . jdt . internal . compiler . batch . CompilationUnit ; import org . eclipse . jdt . internal . compiler . env . ICompilationUnit ; import org . eclipse . jdt . internal . compiler . impl . CompilerOptions ; import org . eclipse . jdt . internal . compiler . lookup . BlockScope ; import org . eclipse . jdt . internal . compiler . lookup . ClassScope ; import org . eclipse . jdt . internal . compiler . lookup . CompilationUnitScope ; import org . eclipse . jdt . internal . compiler . lookup . MethodScope ; import org . eclipse . jdt . internal . compiler . problem . DefaultProblemFactory ; import org . eclipse . jdt . internal . compiler . problem . ProblemReporter ; import junit . framework . Test ; public class SelectionJavadocTest extends AbstractSelectionTest { String source ; ICompilationUnit unit ; StringBuffer result ; public SelectionJavadocTest ( String testName ) { super ( testName ) ; } static { } public static Test suite ( ) { return buildAllCompliancesTestSuite ( SelectionJavadocTest . class ) ; } class JavadocSelectionVisitor extends ASTVisitor { public boolean visit ( ConstructorDeclaration constructor , ClassScope scope ) { if ( constructor . javadoc != null ) { assertTrue ( "<STR_LIT>" + constructor , constructor . javadoc instanceof SelectionJavadoc ) ; SelectionJavadocTest . this . result . append ( constructor . javadoc . toString ( ) ) ; } return super . visit ( constructor , scope ) ; } public boolean visit ( FieldDeclaration field , MethodScope scope ) { if ( field . javadoc != null ) { assertTrue ( "<STR_LIT>" + field , field . javadoc instanceof SelectionJavadoc ) ; SelectionJavadocTest . this . result . append ( field . javadoc . toString ( ) ) ; } return super . visit ( field , scope ) ; } public boolean visit ( MethodDeclaration method , ClassScope scope ) { if ( method . javadoc != null ) { assertTrue ( "<STR_LIT>" + method , method . javadoc instanceof SelectionJavadoc ) ; SelectionJavadocTest . this . result . append ( method . javadoc . toString ( ) ) ; } return super . visit ( method , scope ) ; } public boolean visit ( TypeDeclaration type , BlockScope scope ) { if ( type . javadoc != null ) { assertTrue ( "<STR_LIT>" + type , type . javadoc instanceof SelectionJavadoc ) ; SelectionJavadocTest . this . result . append ( type . javadoc . toString ( ) ) ; } return super . visit ( type , scope ) ; } public boolean visit ( TypeDeclaration type , ClassScope scope ) { if ( type . javadoc != null ) { assertTrue ( "<STR_LIT>" + type , type . javadoc instanceof SelectionJavadoc ) ; SelectionJavadocTest . this . result . append ( type . javadoc . toString ( ) ) ; } return super . visit ( type , scope ) ; } public boolean visit ( TypeDeclaration type , CompilationUnitScope scope ) { if ( type . javadoc != null ) { assertTrue ( "<STR_LIT>" + type , type . javadoc instanceof SelectionJavadoc ) ; SelectionJavadocTest . this . result . append ( type . javadoc . toString ( ) ) ; } return super . visit ( type , scope ) ; } } protected void assertValid ( String expected ) { String actual = this . result . toString ( ) ; if ( ! actual . equals ( expected ) ) { System . out . println ( "<STR_LIT>" + testName ( ) + "<STR_LIT::>" ) ; System . out . println ( Util . displayString ( actual , <NUM_LIT:3> ) ) ; System . out . println ( "<STR_LIT>" ) ; System . out . print ( Util . indentString ( this . source , <NUM_LIT:2> ) ) ; System . out . println ( "<STR_LIT>" ) ; assertEquals ( "<STR_LIT>" , expected , actual ) ; } } protected void setUp ( ) throws Exception { super . setUp ( ) ; this . unit = null ; } void setUnit ( String name , String source ) { this . source = source ; this . unit = new CompilationUnit ( source . toCharArray ( ) , name , null ) ; this . result = new StringBuffer ( ) ; } protected CompilationResult findJavadoc ( String selection ) { return findJavadoc ( selection , <NUM_LIT:1> ) ; } protected CompilationResult findJavadoc ( String selection , int occurences ) { assertNotNull ( "<STR_LIT>" , this . unit ) ; int selectionStart = source . indexOf ( selection ) ; int length = selection . length ( ) ; int selectionEnd = selectionStart + length - <NUM_LIT:1> ; for ( int i = <NUM_LIT:1> ; i < occurences ; i ++ ) { selectionStart = source . indexOf ( selection , selectionEnd ) ; selectionEnd = selectionStart + length - <NUM_LIT:1> ; } CompilerOptions options = new CompilerOptions ( getCompilerOptions ( ) ) ; SelectionParser parser = new SelectionParser ( new ProblemReporter ( DefaultErrorHandlingPolicies . proceedWithAllProblems ( ) , options , new DefaultProblemFactory ( Locale . getDefault ( ) ) ) ) ; CompilationUnitDeclaration unitDecl = parser . dietParse ( this . unit , new CompilationResult ( this . unit , <NUM_LIT:0> , <NUM_LIT:0> , <NUM_LIT:0> ) , selectionStart , selectionEnd ) ; parser . getMethodBodies ( unitDecl ) ; unitDecl . traverse ( new JavadocSelectionVisitor ( ) , unitDecl . scope ) ; return unitDecl . compilationResult ( ) ; } protected Map getCompilerOptions ( ) { Map optionsMap = super . getCompilerOptions ( ) ; optionsMap . put ( CompilerOptions . OPTION_DocCommentSupport , CompilerOptions . ENABLED ) ; optionsMap . put ( CompilerOptions . OPTION_ReportInvalidJavadoc , CompilerOptions . WARNING ) ; optionsMap . put ( CompilerOptions . OPTION_ReportInvalidJavadocTags , CompilerOptions . ENABLED ) ; return optionsMap ; } public void test01 ( ) { setUnit ( "<STR_LIT>" , "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" ) ; findJavadoc ( "<STR_LIT:foo>" ) ; assertValid ( "<STR_LIT>" ) ; } public void test02 ( ) { setUnit ( "<STR_LIT>" , "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" ) ; findJavadoc ( "<STR_LIT:foo>" ) ; assertValid ( "<STR_LIT>" ) ; } public void test03 ( ) { setUnit ( "<STR_LIT>" , "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" ) ; findJavadoc ( "<STR_LIT:Test>" , <NUM_LIT:2> ) ; assertValid ( "<STR_LIT>" ) ; } public void test04 ( ) { setUnit ( "<STR_LIT>" , "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" ) ; findJavadoc ( "<STR_LIT:Test>" , <NUM_LIT:2> ) ; assertValid ( "<STR_LIT>" ) ; } public void test05 ( ) { setUnit ( "<STR_LIT>" , "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" ) ; findJavadoc ( "<STR_LIT:field>" , <NUM_LIT:2> ) ; assertValid ( "<STR_LIT>" ) ; } public void test06 ( ) { setUnit ( "<STR_LIT>" , "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" ) ; findJavadoc ( "<STR_LIT:field>" , <NUM_LIT:2> ) ; assertValid ( "<STR_LIT>" ) ; } public void test07 ( ) { setUnit ( "<STR_LIT>" , "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" ) ; findJavadoc ( "<STR_LIT:foo>" ) ; findJavadoc ( "<STR_LIT:String>" ) ; findJavadoc ( "<STR_LIT:Test>" , <NUM_LIT:2> ) ; findJavadoc ( "<STR_LIT:foo>" , <NUM_LIT:2> ) ; findJavadoc ( "<STR_LIT:String>" , <NUM_LIT:2> ) ; findJavadoc ( "<STR_LIT:Test>" , <NUM_LIT:3> ) ; findJavadoc ( "<STR_LIT:field>" ) ; assertValid ( "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" ) ; } public void test08 ( ) { setUnit ( "<STR_LIT>" , "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" ) ; findJavadoc ( "<STR_LIT:foo>" ) ; findJavadoc ( "<STR_LIT:String>" ) ; findJavadoc ( "<STR_LIT:Test>" , <NUM_LIT:2> ) ; findJavadoc ( "<STR_LIT:foo>" , <NUM_LIT:2> ) ; findJavadoc ( "<STR_LIT:String>" , <NUM_LIT:2> ) ; findJavadoc ( "<STR_LIT:Test>" , <NUM_LIT:3> ) ; findJavadoc ( "<STR_LIT:field>" ) ; assertValid ( "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" ) ; } public void test09 ( ) { setUnit ( "<STR_LIT>" , "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" ) ; findJavadoc ( "<STR_LIT:test>" , <NUM_LIT:2> ) ; findJavadoc ( "<STR_LIT>" , <NUM_LIT:2> ) ; findJavadoc ( "<STR_LIT:Test>" , <NUM_LIT:2> ) ; findJavadoc ( "<STR_LIT:test>" , <NUM_LIT:3> ) ; findJavadoc ( "<STR_LIT>" , <NUM_LIT:3> ) ; findJavadoc ( "<STR_LIT:Test>" , <NUM_LIT:3> ) ; findJavadoc ( "<STR_LIT:field>" ) ; findJavadoc ( "<STR_LIT:test>" , <NUM_LIT:4> ) ; findJavadoc ( "<STR_LIT>" , <NUM_LIT:4> ) ; findJavadoc ( "<STR_LIT:Test>" , <NUM_LIT:4> ) ; findJavadoc ( "<STR_LIT:foo>" ) ; findJavadoc ( "<STR_LIT>" ) ; findJavadoc ( "<STR_LIT>" ) ; assertValid ( "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" ) ; } public void test10 ( ) { setUnit ( "<STR_LIT>" , "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" ) ; findJavadoc ( "<STR_LIT:test>" , <NUM_LIT:2> ) ; findJavadoc ( "<STR_LIT>" , <NUM_LIT:2> ) ; findJavadoc ( "<STR_LIT:Test>" , <NUM_LIT:2> ) ; findJavadoc ( "<STR_LIT:test>" , <NUM_LIT:3> ) ; findJavadoc ( "<STR_LIT>" , <NUM_LIT:3> ) ; findJavadoc ( "<STR_LIT:Test>" , <NUM_LIT:3> ) ; findJavadoc ( "<STR_LIT:field>" ) ; findJavadoc ( "<STR_LIT:test>" , <NUM_LIT:4> ) ; findJavadoc ( "<STR_LIT>" , <NUM_LIT:4> ) ; findJavadoc ( "<STR_LIT:Test>" , <NUM_LIT:4> ) ; findJavadoc ( "<STR_LIT:foo>" ) ; findJavadoc ( "<STR_LIT>" ) ; findJavadoc ( "<STR_LIT>" ) ; assertValid ( "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" ) ; } public void test11 ( ) { setUnit ( "<STR_LIT>" , "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" ) ; findJavadoc ( "<STR_LIT>" ) ; findJavadoc ( "<STR_LIT>" ) ; assertValid ( "<STR_LIT>" + "<STR_LIT>" ) ; } public void test12 ( ) { setUnit ( "<STR_LIT>" , "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" ) ; findJavadoc ( "<STR_LIT>" ) ; findJavadoc ( "<STR_LIT>" ) ; assertValid ( "<STR_LIT>" + "<STR_LIT>" ) ; } public void test13 ( ) { setUnit ( "<STR_LIT>" , "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" ) ; findJavadoc ( "<STR_LIT>" ) ; findJavadoc ( "<STR_LIT>" ) ; assertValid ( "<STR_LIT>" + "<STR_LIT>" ) ; } public void test14 ( ) { setUnit ( "<STR_LIT>" , "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" ) ; findJavadoc ( "<STR_LIT>" ) ; findJavadoc ( "<STR_LIT:foo>" ) ; findJavadoc ( "<STR_LIT>" , <NUM_LIT:2> ) ; findJavadoc ( "<STR_LIT:foo>" , <NUM_LIT:2> ) ; findJavadoc ( "<STR_LIT:foo>" , <NUM_LIT:3> ) ; findJavadoc ( "<STR_LIT:foo>" , <NUM_LIT:4> ) ; findJavadoc ( "<STR_LIT>" , <NUM_LIT:4> ) ; findJavadoc ( "<STR_LIT:foo>" , <NUM_LIT:5> ) ; assertValid ( "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" ) ; } public void test15 ( ) { setUnit ( "<STR_LIT>" , "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" ) ; findJavadoc ( "<STR_LIT>" ) ; findJavadoc ( "<STR_LIT:foo>" ) ; findJavadoc ( "<STR_LIT>" , <NUM_LIT:2> ) ; findJavadoc ( "<STR_LIT:foo>" , <NUM_LIT:2> ) ; findJavadoc ( "<STR_LIT:foo>" , <NUM_LIT:3> ) ; findJavadoc ( "<STR_LIT:foo>" , <NUM_LIT:4> ) ; findJavadoc ( "<STR_LIT>" , <NUM_LIT:4> ) ; findJavadoc ( "<STR_LIT:foo>" , <NUM_LIT:5> ) ; findJavadoc ( "<STR_LIT>" ) ; findJavadoc ( "<STR_LIT>" ) ; findJavadoc ( "<STR_LIT>" ) ; findJavadoc ( "<STR_LIT>" ) ; assertValid ( "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" ) ; } public void test16 ( ) { setUnit ( "<STR_LIT>" , "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" ) ; findJavadoc ( "<STR_LIT:Test>" ) ; findJavadoc ( "<STR_LIT>" ) ; findJavadoc ( "<STR_LIT:Test>" , <NUM_LIT:3> ) ; findJavadoc ( "<STR_LIT>" , <NUM_LIT:2> ) ; assertValid ( "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" ) ; } public void test17 ( ) { setUnit ( "<STR_LIT>" , "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" ) ; findJavadoc ( "<STR_LIT:Test>" ) ; findJavadoc ( "<STR_LIT>" ) ; findJavadoc ( "<STR_LIT:foo>" ) ; findJavadoc ( "<STR_LIT>" , <NUM_LIT:2> ) ; findJavadoc ( "<STR_LIT:foo>" , <NUM_LIT:2> ) ; findJavadoc ( "<STR_LIT:foo>" , <NUM_LIT:3> ) ; findJavadoc ( "<STR_LIT>" , <NUM_LIT:4> ) ; findJavadoc ( "<STR_LIT:foo>" , <NUM_LIT:4> ) ; findJavadoc ( "<STR_LIT:Test>" , <NUM_LIT:3> ) ; findJavadoc ( "<STR_LIT>" , <NUM_LIT:5> ) ; findJavadoc ( "<STR_LIT:foo>" , <NUM_LIT:5> ) ; assertValid ( "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" ) ; } public void test18 ( ) { setUnit ( "<STR_LIT>" , "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT:}>" ) ; findJavadoc ( "<STR_LIT:Test>" ) ; findJavadoc ( "<STR_LIT>" ) ; findJavadoc ( "<STR_LIT:foo>" ) ; findJavadoc ( "<STR_LIT>" , <NUM_LIT:2> ) ; findJavadoc ( "<STR_LIT:foo>" , <NUM_LIT:2> ) ; findJavadoc ( "<STR_LIT:foo>" , <NUM_LIT:3> ) ; findJavadoc ( "<STR_LIT>" , <NUM_LIT:4> ) ; findJavadoc ( "<STR_LIT:foo>" , <NUM_LIT:4> ) ; findJavadoc ( "<STR_LIT:Test>" , <NUM_LIT:3> ) ; findJavadoc ( "<STR_LIT>" , <NUM_LIT:5> ) ; findJavadoc ( "<STR_LIT:foo>" , <NUM_LIT:5> ) ; assertValid ( "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" ) ; } public void test19 ( ) { setUnit ( "<STR_LIT>" , "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT:}>" ) ; findJavadoc ( "<STR_LIT:Test>" ) ; findJavadoc ( "<STR_LIT>" ) ; findJavadoc ( "<STR_LIT:Test>" , <NUM_LIT:3> ) ; findJavadoc ( "<STR_LIT>" , <NUM_LIT:2> ) ; findJavadoc ( "<STR_LIT:Test>" , <NUM_LIT:4> ) ; findJavadoc ( "<STR_LIT>" , <NUM_LIT:3> ) ; assertValid ( "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" ) ; } public void test20 ( ) { setUnit ( "<STR_LIT>" , "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" ) ; findJavadoc ( "<STR_LIT>" ) ; findJavadoc ( "<STR_LIT:foo>" ) ; findJavadoc ( "<STR_LIT:foo>" , <NUM_LIT:2> ) ; findJavadoc ( "<STR_LIT>" , <NUM_LIT:3> ) ; findJavadoc ( "<STR_LIT:foo>" , <NUM_LIT:3> ) ; assertValid ( "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" ) ; } public void test21 ( ) { setUnit ( "<STR_LIT>" , "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT:}>" ) ; findJavadoc ( "<STR_LIT>" ) ; findJavadoc ( "<STR_LIT:foo>" ) ; findJavadoc ( "<STR_LIT:foo>" , <NUM_LIT:2> ) ; findJavadoc ( "<STR_LIT>" , <NUM_LIT:3> ) ; findJavadoc ( "<STR_LIT:foo>" , <NUM_LIT:3> ) ; assertValid ( "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" ) ; } public void test22 ( ) { setUnit ( "<STR_LIT>" , "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT:}>" ) ; findJavadoc ( "<STR_LIT:Test>" , <NUM_LIT:2> ) ; findJavadoc ( "<STR_LIT>" ) ; assertValid ( "<STR_LIT>" + "<STR_LIT>" ) ; } public void test23 ( ) { setUnit ( "<STR_LIT>" , "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" ) ; findJavadoc ( "<STR_LIT>" ) ; findJavadoc ( "<STR_LIT:foo>" ) ; findJavadoc ( "<STR_LIT:foo>" , <NUM_LIT:2> ) ; findJavadoc ( "<STR_LIT>" , <NUM_LIT:3> ) ; findJavadoc ( "<STR_LIT:foo>" , <NUM_LIT:3> ) ; assertValid ( "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" ) ; } public void test24 ( ) { setUnit ( "<STR_LIT>" , "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT:}>" ) ; findJavadoc ( "<STR_LIT>" ) ; findJavadoc ( "<STR_LIT:foo>" ) ; findJavadoc ( "<STR_LIT:foo>" , <NUM_LIT:2> ) ; findJavadoc ( "<STR_LIT>" , <NUM_LIT:3> ) ; findJavadoc ( "<STR_LIT:foo>" , <NUM_LIT:3> ) ; assertValid ( "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" ) ; } public void test25 ( ) { setUnit ( "<STR_LIT>" , "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT:}>" ) ; findJavadoc ( "<STR_LIT:Test>" , <NUM_LIT:2> ) ; findJavadoc ( "<STR_LIT>" ) ; assertValid ( "<STR_LIT>" + "<STR_LIT>" ) ; } public void test26 ( ) { setUnit ( "<STR_LIT>" , "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT:}>" ) ; CompilationResult compilationResult = findJavadoc ( "<STR_LIT>" ) ; assertEquals ( "<STR_LIT>" , "<STR_LIT>" , Util . getProblemLog ( compilationResult , false , false ) ) ; } } </s>
|
<s> package org . eclipse . jdt . core . tests . compiler . parser ; import org . eclipse . jdt . internal . compiler . classfmt . ClassFileConstants ; import org . eclipse . jdt . internal . compiler . env . ISourceField ; public class SourceField implements ISourceField { protected int modifiers ; protected char [ ] typeName ; protected char [ ] name ; protected int declarationStart ; protected int declarationEnd ; protected int nameSourceStart ; protected int nameSourceEnd ; protected char [ ] source ; public SourceField ( int declarationStart , int modifiers , char [ ] typeName , char [ ] name , int nameSourceStart , int nameSourceEnd , char [ ] source ) { this . declarationStart = declarationStart ; this . modifiers = modifiers ; this . typeName = typeName ; this . name = name ; this . nameSourceStart = nameSourceStart ; this . nameSourceEnd = nameSourceEnd ; this . source = source ; } public String displayModifiers ( ) { StringBuffer buffer = new StringBuffer ( ) ; if ( this . modifiers == <NUM_LIT:0> ) return null ; if ( ( this . modifiers & ClassFileConstants . AccPublic ) != <NUM_LIT:0> ) buffer . append ( "<STR_LIT>" ) ; if ( ( this . modifiers & ClassFileConstants . AccProtected ) != <NUM_LIT:0> ) buffer . append ( "<STR_LIT>" ) ; if ( ( this . modifiers & ClassFileConstants . AccPrivate ) != <NUM_LIT:0> ) buffer . append ( "<STR_LIT>" ) ; if ( ( this . modifiers & ClassFileConstants . AccFinal ) != <NUM_LIT:0> ) buffer . append ( "<STR_LIT>" ) ; if ( ( this . modifiers & ClassFileConstants . AccStatic ) != <NUM_LIT:0> ) buffer . append ( "<STR_LIT>" ) ; if ( ( this . modifiers & ClassFileConstants . AccAbstract ) != <NUM_LIT:0> ) buffer . append ( "<STR_LIT>" ) ; if ( ( this . modifiers & ClassFileConstants . AccNative ) != <NUM_LIT:0> ) buffer . append ( "<STR_LIT>" ) ; if ( ( this . modifiers & ClassFileConstants . AccSynchronized ) != <NUM_LIT:0> ) buffer . append ( "<STR_LIT>" ) ; return buffer . toString ( ) ; } public String getActualName ( ) { StringBuffer buffer = new StringBuffer ( ) ; buffer . append ( source , nameSourceStart , nameSourceEnd - nameSourceStart + <NUM_LIT:1> ) ; return buffer . toString ( ) ; } public int getDeclarationSourceEnd ( ) { return declarationEnd ; } public int getDeclarationSourceStart ( ) { return declarationStart ; } public char [ ] getInitializationSource ( ) { return null ; } public int getModifiers ( ) { return modifiers ; } public char [ ] getName ( ) { return name ; } public int getNameSourceEnd ( ) { return nameSourceEnd ; } public int getNameSourceStart ( ) { return nameSourceStart ; } public char [ ] getTypeName ( ) { return typeName ; } protected void setDeclarationSourceEnd ( int position ) { declarationEnd = position ; } public String tabString ( int tab ) { String s = "<STR_LIT>" ; for ( int i = tab ; i > <NUM_LIT:0> ; i -- ) s = s + "<STR_LIT:t>" ; return s ; } public String toString ( ) { return toString ( <NUM_LIT:0> ) ; } public String toString ( int tab ) { StringBuffer buffer = new StringBuffer ( ) ; buffer . append ( tabString ( tab ) ) ; String displayModifiers = displayModifiers ( ) ; if ( displayModifiers != null ) { buffer . append ( displayModifiers ) ; } buffer . append ( typeName ) . append ( "<STR_LIT:U+0020>" ) . append ( name ) ; buffer . append ( "<STR_LIT:;>" ) ; return buffer . toString ( ) ; } } </s>
|
<s> package org . eclipse . jdt . core . tests . compiler . parser ; import java . util . Locale ; import java . util . Map ; import org . eclipse . jdt . core . tests . util . AbstractCompilerTest ; import org . eclipse . jdt . core . tests . util . Util ; import org . eclipse . jdt . internal . codeassist . complete . CompletionParser ; import org . eclipse . jdt . internal . compiler . CompilationResult ; import org . eclipse . jdt . internal . compiler . DefaultErrorHandlingPolicies ; import org . eclipse . jdt . internal . compiler . SourceElementParser ; import org . eclipse . jdt . internal . compiler . ast . CompilationUnitDeclaration ; import org . eclipse . jdt . internal . compiler . batch . CompilationUnit ; import org . eclipse . jdt . internal . compiler . classfmt . ClassFileConstants ; import org . eclipse . jdt . internal . compiler . env . ICompilationUnit ; import org . eclipse . jdt . internal . compiler . impl . CompilerOptions ; import org . eclipse . jdt . internal . compiler . parser . Parser ; import org . eclipse . jdt . internal . compiler . problem . DefaultProblemFactory ; import org . eclipse . jdt . internal . compiler . problem . ProblemReporter ; public class EnumDietRecoveryTest extends AbstractCompilerTest { public static boolean optimizeStringLiterals = false ; public static long sourceLevel = ClassFileConstants . JDK1_3 ; public EnumDietRecoveryTest ( String testName ) { super ( testName ) ; } protected Map getCompilerOptions ( ) { Map options = super . getCompilerOptions ( ) ; options . put ( CompilerOptions . OPTION_Compliance , CompilerOptions . VERSION_1_5 ) ; options . put ( CompilerOptions . OPTION_Source , CompilerOptions . VERSION_1_5 ) ; options . put ( CompilerOptions . OPTION_TargetPlatform , CompilerOptions . VERSION_1_5 ) ; return options ; } public void checkParse ( char [ ] source , String expectedDietUnitToString , String expectedDietPlusBodyUnitToString , String expectedFullUnitToString , String expectedCompletionDietUnitToString , String testName ) { { Parser parser = new Parser ( new ProblemReporter ( DefaultErrorHandlingPolicies . proceedWithAllProblems ( ) , new CompilerOptions ( getCompilerOptions ( ) ) , new DefaultProblemFactory ( Locale . getDefault ( ) ) ) , optimizeStringLiterals ) ; ICompilationUnit sourceUnit = new CompilationUnit ( source , testName , null ) ; CompilationResult compilationResult = new CompilationResult ( sourceUnit , <NUM_LIT:0> , <NUM_LIT:0> , <NUM_LIT:0> ) ; CompilationUnitDeclaration computedUnit = parser . dietParse ( sourceUnit , compilationResult ) ; String computedUnitToString = computedUnit . toString ( ) ; if ( ! expectedDietUnitToString . equals ( computedUnitToString ) ) { System . out . println ( Util . displayString ( computedUnitToString ) ) ; } assertEquals ( "<STR_LIT>" + testName , expectedDietUnitToString , computedUnitToString ) ; } { Parser parser = new Parser ( new ProblemReporter ( DefaultErrorHandlingPolicies . proceedWithAllProblems ( ) , new CompilerOptions ( getCompilerOptions ( ) ) , new DefaultProblemFactory ( Locale . getDefault ( ) ) ) , optimizeStringLiterals ) ; ICompilationUnit sourceUnit = new CompilationUnit ( source , testName , null ) ; CompilationResult compilationResult = new CompilationResult ( sourceUnit , <NUM_LIT:0> , <NUM_LIT:0> , <NUM_LIT:0> ) ; CompilationUnitDeclaration computedUnit = parser . dietParse ( sourceUnit , compilationResult ) ; String computedUnitToString = computedUnit . toString ( ) ; if ( ! expectedDietUnitToString . equals ( computedUnitToString ) ) { System . out . println ( Util . displayString ( computedUnitToString ) ) ; } assertEquals ( "<STR_LIT>" + testName , expectedDietUnitToString , computedUnitToString ) ; if ( computedUnit . types != null ) { for ( int i = <NUM_LIT:0> , length = computedUnit . types . length ; i < length ; i ++ ) { computedUnit . types [ i ] . parseMethods ( parser , computedUnit ) ; } } computedUnitToString = computedUnit . toString ( ) ; if ( ! expectedDietPlusBodyUnitToString . equals ( computedUnitToString ) ) { System . out . println ( Util . displayString ( computedUnitToString ) ) ; } assertEquals ( "<STR_LIT>" + testName , expectedDietPlusBodyUnitToString , computedUnitToString ) ; } { Parser parser = new Parser ( new ProblemReporter ( DefaultErrorHandlingPolicies . proceedWithAllProblems ( ) , new CompilerOptions ( getCompilerOptions ( ) ) , new DefaultProblemFactory ( Locale . getDefault ( ) ) ) , optimizeStringLiterals ) ; ICompilationUnit sourceUnit = new CompilationUnit ( source , testName , null ) ; CompilationResult compilationResult = new CompilationResult ( sourceUnit , <NUM_LIT:0> , <NUM_LIT:0> , <NUM_LIT:0> ) ; CompilationUnitDeclaration computedUnit = parser . parse ( sourceUnit , compilationResult ) ; String computedUnitToString = computedUnit . toString ( ) ; if ( ! expectedFullUnitToString . equals ( computedUnitToString ) ) { System . out . println ( Util . displayString ( computedUnitToString ) ) ; } assertEquals ( "<STR_LIT>" + testName , expectedFullUnitToString , computedUnitToString ) ; } { SourceElementParser parser = new SourceElementParser ( new TestSourceElementRequestor ( ) , new DefaultProblemFactory ( Locale . getDefault ( ) ) , new CompilerOptions ( getCompilerOptions ( ) ) , false , true ) ; ICompilationUnit sourceUnit = new CompilationUnit ( source , testName , null ) ; CompilationResult compilationResult = new CompilationResult ( sourceUnit , <NUM_LIT:0> , <NUM_LIT:0> , <NUM_LIT:0> ) ; CompilationUnitDeclaration computedUnit = parser . dietParse ( sourceUnit , compilationResult ) ; String computedUnitToString = computedUnit . toString ( ) ; if ( ! expectedDietUnitToString . equals ( computedUnitToString ) ) { System . out . println ( Util . displayString ( computedUnitToString ) ) ; } assertEquals ( "<STR_LIT>" + testName , expectedDietUnitToString , computedUnitToString ) ; } { SourceElementParser parser = new SourceElementParser ( new TestSourceElementRequestor ( ) , new DefaultProblemFactory ( Locale . getDefault ( ) ) , new CompilerOptions ( getCompilerOptions ( ) ) , false , true ) ; ICompilationUnit sourceUnit = new CompilationUnit ( source , testName , null ) ; CompilationResult compilationResult = new CompilationResult ( sourceUnit , <NUM_LIT:0> , <NUM_LIT:0> , <NUM_LIT:0> ) ; CompilationUnitDeclaration computedUnit = parser . parse ( sourceUnit , compilationResult ) ; String computedUnitToString = computedUnit . toString ( ) ; if ( ! expectedFullUnitToString . equals ( computedUnitToString ) ) { System . out . println ( Util . displayString ( computedUnitToString ) ) ; } assertEquals ( "<STR_LIT>" + testName , expectedFullUnitToString , computedUnitToString ) ; } { CompilerOptions options = new CompilerOptions ( getCompilerOptions ( ) ) ; CompletionParser parser = new CompletionParser ( new ProblemReporter ( DefaultErrorHandlingPolicies . proceedWithAllProblems ( ) , options , new DefaultProblemFactory ( Locale . getDefault ( ) ) ) , false ) ; ICompilationUnit sourceUnit = new CompilationUnit ( source , testName , null ) ; CompilationResult compilationResult = new CompilationResult ( sourceUnit , <NUM_LIT:0> , <NUM_LIT:0> , <NUM_LIT:0> ) ; CompilationUnitDeclaration computedUnit = parser . dietParse ( sourceUnit , compilationResult , Integer . MAX_VALUE ) ; String computedUnitToString = computedUnit . toString ( ) ; if ( ! expectedCompletionDietUnitToString . equals ( computedUnitToString ) ) { System . out . println ( Util . displayString ( computedUnitToString ) ) ; } assertEquals ( "<STR_LIT>" + testName , expectedCompletionDietUnitToString , computedUnitToString ) ; } } public void test0001 ( ) { String s = "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" ; String expectedDietUnitToString = "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" ; String expectedDietPlusBodyUnitToString = "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" ; String expectedFullUnitToString = expectedDietUnitToString ; String expectedCompletionDietUnitToString = expectedDietUnitToString ; String testName = "<STR_LIT>" ; checkParse ( s . toCharArray ( ) , expectedDietUnitToString , expectedDietPlusBodyUnitToString , expectedFullUnitToString , expectedCompletionDietUnitToString , testName ) ; } public void test0002 ( ) { String s = "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" ; String expectedDietUnitToString = "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" ; String expectedDietPlusBodyUnitToString = "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" ; String expectedFullUnitToString = expectedDietUnitToString ; String expectedCompletionDietUnitToString = expectedDietUnitToString ; String testName = "<STR_LIT>" ; checkParse ( s . toCharArray ( ) , expectedDietUnitToString , expectedDietPlusBodyUnitToString , expectedFullUnitToString , expectedCompletionDietUnitToString , testName ) ; } public void test0003 ( ) { String s = "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" ; String expectedDietUnitToString = "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" ; String expectedDietPlusBodyUnitToString = "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" ; String expectedFullUnitToString = expectedDietUnitToString ; String expectedCompletionDietUnitToString = expectedDietUnitToString ; String testName = "<STR_LIT>" ; checkParse ( s . toCharArray ( ) , expectedDietUnitToString , expectedDietPlusBodyUnitToString , expectedFullUnitToString , expectedCompletionDietUnitToString , testName ) ; } public void test0004 ( ) { String s = "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" ; String expectedDietUnitToString = "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" ; String expectedDietPlusBodyUnitToString = "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" ; String expectedFullUnitToString = expectedDietUnitToString ; String expectedCompletionDietUnitToString = expectedDietUnitToString ; String testName = "<STR_LIT>" ; checkParse ( s . toCharArray ( ) , expectedDietUnitToString , expectedDietPlusBodyUnitToString , expectedFullUnitToString , expectedCompletionDietUnitToString , testName ) ; } public void test0005 ( ) { String s = "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" ; String expectedDietUnitToString = "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" ; String expectedDietPlusBodyUnitToString = "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" ; String expectedFullUnitToString = expectedDietUnitToString ; String expectedCompletionDietUnitToString = expectedDietUnitToString ; String testName = "<STR_LIT>" ; checkParse ( s . toCharArray ( ) , expectedDietUnitToString , expectedDietPlusBodyUnitToString , expectedFullUnitToString , expectedCompletionDietUnitToString , testName ) ; } public void test0006 ( ) { String s = "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" ; String expectedDietUnitToString = "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" ; String expectedDietPlusBodyUnitToString = "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" ; String expectedFullUnitToString = expectedDietUnitToString ; String expectedCompletionDietUnitToString = expectedDietUnitToString ; String testName = "<STR_LIT>" ; checkParse ( s . toCharArray ( ) , expectedDietUnitToString , expectedDietPlusBodyUnitToString , expectedFullUnitToString , expectedCompletionDietUnitToString , testName ) ; } public void test0007 ( ) { String s = "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" ; String expectedDietUnitToString = "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" ; String expectedDietPlusBodyUnitToString = "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" ; String expectedFullUnitToString = expectedDietUnitToString ; String expectedCompletionDietUnitToString = expectedDietUnitToString ; String testName = "<STR_LIT>" ; checkParse ( s . toCharArray ( ) , expectedDietUnitToString , expectedDietPlusBodyUnitToString , expectedFullUnitToString , expectedCompletionDietUnitToString , testName ) ; } public void test0008 ( ) { String s = "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" ; String expectedDietUnitToString = "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" ; String expectedDietPlusBodyUnitToString = "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" ; String expectedFullUnitToString = expectedDietPlusBodyUnitToString ; String expectedCompletionDietUnitToString = expectedDietUnitToString ; String testName = "<STR_LIT>" ; checkParse ( s . toCharArray ( ) , expectedDietUnitToString , expectedDietPlusBodyUnitToString , expectedFullUnitToString , expectedCompletionDietUnitToString , testName ) ; } public void test0009 ( ) { String s = "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" ; String expectedDietUnitToString = "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" ; String expectedDietPlusBodyUnitToString = "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" ; String expectedFullUnitToString = expectedDietUnitToString ; String expectedCompletionDietUnitToString = expectedDietUnitToString ; String testName = "<STR_LIT>" ; checkParse ( s . toCharArray ( ) , expectedDietUnitToString , expectedDietPlusBodyUnitToString , expectedFullUnitToString , expectedCompletionDietUnitToString , testName ) ; } public void test0010 ( ) { String s = "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" ; String expectedDietUnitToString = "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" ; String expectedDietPlusBodyUnitToString = "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" ; String expectedFullUnitToString = expectedDietUnitToString ; String expectedCompletionDietUnitToString = expectedDietUnitToString ; String testName = "<STR_LIT>" ; checkParse ( s . toCharArray ( ) , expectedDietUnitToString , expectedDietPlusBodyUnitToString , expectedFullUnitToString , expectedCompletionDietUnitToString , testName ) ; } public void test0011 ( ) { String s = "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" ; String expectedDietUnitToString = "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" ; String expectedDietPlusBodyUnitToString = "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" ; String expectedFullUnitToString = expectedDietUnitToString ; String expectedCompletionDietUnitToString = expectedDietUnitToString ; String testName = "<STR_LIT>" ; checkParse ( s . toCharArray ( ) , expectedDietUnitToString , expectedDietPlusBodyUnitToString , expectedFullUnitToString , expectedCompletionDietUnitToString , testName ) ; } public void test0012 ( ) { String s = "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" ; String expectedDietUnitToString = "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" ; String expectedDietPlusBodyUnitToString = "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" ; String expectedFullUnitToString = expectedDietUnitToString ; String expectedCompletionDietUnitToString = expectedDietUnitToString ; String testName = "<STR_LIT>" ; checkParse ( s . toCharArray ( ) , expectedDietUnitToString , expectedDietPlusBodyUnitToString , expectedFullUnitToString , expectedCompletionDietUnitToString , testName ) ; } public void test0013 ( ) { String s = "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" ; String expectedDietUnitToString = "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" ; String expectedDietPlusBodyUnitToString = "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" ; String expectedFullUnitToString = expectedDietUnitToString ; String expectedCompletionDietUnitToString = expectedDietUnitToString ; String testName = "<STR_LIT>" ; checkParse ( s . toCharArray ( ) , expectedDietUnitToString , expectedDietPlusBodyUnitToString , expectedFullUnitToString , expectedCompletionDietUnitToString , testName ) ; } public void test0014 ( ) { String s = "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" ; String expectedDietUnitToString = "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" ; String expectedDietPlusBodyUnitToString = "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" ; String expectedFullUnitToString = expectedDietUnitToString ; String expectedCompletionDietUnitToString = expectedDietUnitToString ; String testName = "<STR_LIT>" ; checkParse ( s . toCharArray ( ) , expectedDietUnitToString , expectedDietPlusBodyUnitToString , expectedFullUnitToString , expectedCompletionDietUnitToString , testName ) ; } public void test0015 ( ) { String s = "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" ; String expectedDietUnitToString = "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" ; String expectedDietPlusBodyUnitToString = "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" ; String expectedFullUnitToString = expectedDietUnitToString ; String expectedCompletionDietUnitToString = expectedDietUnitToString ; String testName = "<STR_LIT>" ; checkParse ( s . toCharArray ( ) , expectedDietUnitToString , expectedDietPlusBodyUnitToString , expectedFullUnitToString , expectedCompletionDietUnitToString , testName ) ; } public void test0016 ( ) { String s = "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" ; String expectedDietUnitToString = "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" ; String expectedDietPlusBodyUnitToString = "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" ; String expectedFullUnitToString = expectedDietUnitToString ; String expectedCompletionDietUnitToString = expectedDietUnitToString ; String testName = "<STR_LIT>" ; checkParse ( s . toCharArray ( ) , expectedDietUnitToString , expectedDietPlusBodyUnitToString , expectedFullUnitToString , expectedCompletionDietUnitToString , testName ) ; } public void test0017 ( ) { String s = "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" ; String expectedDietUnitToString = "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" ; String expectedDietPlusBodyUnitToString = "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" ; String expectedFullUnitToString = "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" ; String expectedCompletionDietUnitToString = expectedDietUnitToString ; String testName = "<STR_LIT>" ; checkParse ( s . toCharArray ( ) , expectedDietUnitToString , expectedDietPlusBodyUnitToString , expectedFullUnitToString , expectedCompletionDietUnitToString , testName ) ; } } </s>
|
<s> package org . eclipse . jdt . core . tests . compiler . parser ; import junit . framework . Test ; public class ClassLiteralAccessCompletionTest extends AbstractCompletionTest { public ClassLiteralAccessCompletionTest ( String testName ) { super ( testName ) ; } public static Test suite ( ) { return buildAllCompliancesTestSuite ( ClassLiteralAccessCompletionTest . class ) ; } public void testArrayType ( ) { this . runTestCheckMethodParse ( "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" , "<STR_LIT>" , "<STR_LIT>" , "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" , "<STR_LIT>" , "<STR_LIT>" , "<STR_LIT>" ) ; } public void testArrayTypeWithNonEmptyIdentifier ( ) { this . runTestCheckMethodParse ( "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" , "<STR_LIT>" , "<STR_LIT>" , "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" , "<STR_LIT>" , "<STR_LIT>" , "<STR_LIT>" ) ; } public void testPrimitiveArrayType ( ) { this . runTestCheckMethodParse ( "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" , "<STR_LIT>" , "<STR_LIT>" , "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" , "<STR_LIT>" , "<STR_LIT>" , "<STR_LIT>" ) ; } public void testPrimitiveArrayTypeWithNonEmptyIdentifier ( ) { this . runTestCheckMethodParse ( "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" , "<STR_LIT>" , "<STR_LIT>" , "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" , "<STR_LIT>" , "<STR_LIT>" , "<STR_LIT>" ) ; } public void testPrimitiveType ( ) { this . runTestCheckMethodParse ( "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" , "<STR_LIT>" , "<STR_LIT>" , "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" , "<STR_LIT>" , "<STR_LIT>" , "<STR_LIT>" ) ; } public void testPrimitiveTypeWithNonEmptyIdentifier ( ) { this . runTestCheckMethodParse ( "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" , "<STR_LIT>" , "<STR_LIT>" , "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" , "<STR_LIT>" , "<STR_LIT>" , "<STR_LIT>" ) ; } } </s>
|
<s> package org . eclipse . jdt . core . tests . compiler . parser ; import java . util . Locale ; import org . eclipse . jdt . core . compiler . CharOperation ; import org . eclipse . jdt . internal . codeassist . select . SelectionParser ; import org . eclipse . jdt . internal . codeassist . select . SelectionScanner ; import org . eclipse . jdt . internal . compiler . CompilationResult ; import org . eclipse . jdt . internal . compiler . DefaultErrorHandlingPolicies ; import org . eclipse . jdt . internal . compiler . ast . AbstractMethodDeclaration ; import org . eclipse . jdt . internal . compiler . ast . ASTNode ; import org . eclipse . jdt . internal . compiler . ast . CompilationUnitDeclaration ; import org . eclipse . jdt . internal . compiler . ast . FieldDeclaration ; import org . eclipse . jdt . internal . compiler . ast . Initializer ; import org . eclipse . jdt . internal . compiler . ast . TypeDeclaration ; import org . eclipse . jdt . internal . compiler . batch . CompilationUnit ; import org . eclipse . jdt . internal . compiler . env . ICompilationUnit ; import org . eclipse . jdt . internal . compiler . impl . CompilerOptions ; import org . eclipse . jdt . internal . compiler . problem . DefaultProblemFactory ; import org . eclipse . jdt . internal . compiler . problem . ProblemReporter ; public class SelectionTest2 extends AbstractSelectionTest { public SelectionTest2 ( String testName ) { super ( testName ) ; } boolean thereWasAnNPE = false ; private class SpecialSelectionParser extends SelectionParser { public SpecialSelectionParser ( ProblemReporter problemReporter ) { super ( problemReporter ) ; } public void doNPEInParser ( ) { this . stack = null ; } } SpecialSelectionParser createParser ( ) { CompilerOptions options = new CompilerOptions ( getCompilerOptions ( ) ) ; SpecialSelectionParser parser = new SpecialSelectionParser ( new ProblemReporter ( DefaultErrorHandlingPolicies . proceedWithAllProblems ( ) , options , new DefaultProblemFactory ( Locale . getDefault ( ) ) ) ) ; return parser ; } void checkMethodParse ( SelectionParser parser , char [ ] source , int selectionStart , int selectionEnd , String expectedSelection , String expectedUnitToString , String expectedSelectionIdentifier , String expectedSelectedSource , String testName ) { ICompilationUnit sourceUnit = new CompilationUnit ( source , testName , null ) ; CompilationResult compilationResult = new CompilationResult ( sourceUnit , <NUM_LIT:0> , <NUM_LIT:0> , <NUM_LIT:0> ) ; CompilationUnitDeclaration unit = parser . dietParse ( sourceUnit , compilationResult , selectionStart , selectionEnd ) ; ASTNode foundMethod = null ; if ( unit . types != null ) { for ( int i = <NUM_LIT:0> ; i < unit . types . length ; i ++ ) { TypeDeclaration type = unit . types [ i ] ; ASTNode method = findMethod ( type , selectionStart ) ; if ( method != null ) { foundMethod = method ; break ; } } } assertTrue ( "<STR_LIT>" , foundMethod != null ) ; if ( foundMethod instanceof AbstractMethodDeclaration ) { parser . parseBlockStatements ( ( AbstractMethodDeclaration ) foundMethod , unit ) ; } else { TypeDeclaration type = ( TypeDeclaration ) foundMethod ; if ( type . fields != null ) { for ( int i = <NUM_LIT:0> ; i < type . fields . length ; i ++ ) { FieldDeclaration field = type . fields [ i ] ; if ( field instanceof Initializer && field . sourceStart <= selectionStart && selectionStart <= field . sourceEnd ) { parser . parseBlockStatements ( ( Initializer ) field , type , unit ) ; break ; } } } } String computedUnitToString = unit . toString ( ) ; String computedCompletion = parser . assistNode == null ? NONE : parser . assistNode . toString ( ) ; assertEquals ( "<STR_LIT>" + testName , expectedSelection , computedCompletion ) ; assertEquals ( "<STR_LIT>" + testName , expectedUnitToString , computedUnitToString ) ; if ( expectedSelectionIdentifier != null ) { char [ ] chars = ( ( SelectionScanner ) parser . scanner ) . selectionIdentifier ; String computedSelectionIdentifier = chars == null ? NONE : new String ( chars ) ; assertEquals ( "<STR_LIT>" + testName , expectedSelectionIdentifier , computedSelectionIdentifier ) ; } if ( expectedSelectedSource != null ) { char [ ] chars = null ; if ( parser . assistNode != null ) { chars = CharOperation . subarray ( parser . scanner . source , parser . assistNode . sourceStart , parser . assistNode . sourceEnd + <NUM_LIT:1> ) ; } else { if ( parser . assistIdentifier ( ) != null ) { if ( ( ( SelectionScanner ) parser . scanner ) . selectionEnd >= ( ( SelectionScanner ) parser . scanner ) . selectionStart ) { chars = CharOperation . subarray ( parser . scanner . source , ( ( SelectionScanner ) parser . scanner ) . selectionStart , ( ( SelectionScanner ) parser . scanner ) . selectionEnd + <NUM_LIT:1> ) ; } } } String computedReplacedSource = chars == null ? NONE : new String ( chars ) ; assertEquals ( "<STR_LIT>" + testName , expectedSelectedSource , computedReplacedSource ) ; } } public void testBug30946 ( ) { final SpecialSelectionParser parser = createParser ( ) ; Thread query = new Thread ( new Runnable ( ) { public void run ( ) { String str = "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" ; String selection = "<STR_LIT>" ; String expectedCompletionNodeToString = "<STR_LIT>" ; String completionIdentifier = "<STR_LIT>" ; String expectedUnitDisplayString = "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" ; String expectedReplacedSource = "<STR_LIT>" ; String testName = "<STR_LIT>" ; int selectionStart = str . lastIndexOf ( selection ) ; int selectionEnd = str . lastIndexOf ( selection ) + selection . length ( ) - <NUM_LIT:1> ; try { SelectionTest2 . this . checkMethodParse ( parser , str . toCharArray ( ) , selectionStart , selectionEnd , expectedCompletionNodeToString , expectedUnitDisplayString , completionIdentifier , expectedReplacedSource , testName ) ; } catch ( NullPointerException e ) { SelectionTest2 . this . thereWasAnNPE = true ; } } } ) ; query . start ( ) ; try { Thread . sleep ( <NUM_LIT> ) ; } catch ( InterruptedException e ) { } parser . doNPEInParser ( ) ; try { Thread . sleep ( <NUM_LIT> ) ; } catch ( InterruptedException e ) { } assertTrue ( "<STR_LIT>" , ! thereWasAnNPE ) ; } } </s>
|
<s> package org . eclipse . jdt . core . tests . compiler . parser ; import java . util . Map ; import junit . framework . Test ; import org . eclipse . jdt . internal . compiler . impl . CompilerOptions ; public class EnumCompletionParserTest extends AbstractCompletionTest { public EnumCompletionParserTest ( String testName ) { super ( testName ) ; } public static Test suite ( ) { return buildAllCompliancesTestSuite ( EnumCompletionParserTest . class ) ; } protected Map getCompilerOptions ( ) { Map options = super . getCompilerOptions ( ) ; options . put ( CompilerOptions . OPTION_Compliance , CompilerOptions . VERSION_1_5 ) ; options . put ( CompilerOptions . OPTION_Source , CompilerOptions . VERSION_1_5 ) ; options . put ( CompilerOptions . OPTION_TargetPlatform , CompilerOptions . VERSION_1_5 ) ; return options ; } public void test0001 ( ) { String str = "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" ; String completeBehind = "<STR_LIT>" ; int cursorLocation = str . indexOf ( "<STR_LIT>" ) + completeBehind . length ( ) - <NUM_LIT:1> ; String expectedCompletionNodeToString = "<STR_LIT>" ; String expectedParentNodeToString = "<STR_LIT>" ; String completionIdentifier = "<STR_LIT>" ; String expectedReplacedSource = "<STR_LIT>" ; String expectedUnitDisplayString = "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" ; checkDietParse ( str . toCharArray ( ) , cursorLocation , expectedCompletionNodeToString , expectedParentNodeToString , expectedUnitDisplayString , completionIdentifier , expectedReplacedSource , "<STR_LIT>" ) ; } public void test0002 ( ) { String str = "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" ; String completeBehind = "<STR_LIT>" ; int cursorLocation = str . indexOf ( "<STR_LIT>" ) + completeBehind . length ( ) - <NUM_LIT:1> ; String expectedCompletionNodeToString = "<STR_LIT>" ; String expectedParentNodeToString = "<STR_LIT>" ; String completionIdentifier = "<STR_LIT>" ; String expectedReplacedSource = "<STR_LIT>" ; String expectedUnitDisplayString = "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" ; checkDietParse ( str . toCharArray ( ) , cursorLocation , expectedCompletionNodeToString , expectedParentNodeToString , expectedUnitDisplayString , completionIdentifier , expectedReplacedSource , "<STR_LIT>" ) ; expectedCompletionNodeToString = "<STR_LIT>" ; expectedParentNodeToString = "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT:}>" ; completionIdentifier = "<STR_LIT>" ; expectedReplacedSource = "<STR_LIT>" ; expectedUnitDisplayString = "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" ; checkMethodParse ( str . toCharArray ( ) , cursorLocation , expectedCompletionNodeToString , expectedParentNodeToString , expectedUnitDisplayString , completionIdentifier , expectedReplacedSource , "<STR_LIT>" ) ; } public void test0003 ( ) { String str = "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" ; String completeBehind = "<STR_LIT>" ; int cursorLocation = str . indexOf ( "<STR_LIT>" ) + completeBehind . length ( ) - <NUM_LIT:1> ; String expectedCompletionNodeToString = "<STR_LIT>" ; String expectedParentNodeToString = "<STR_LIT>" ; String completionIdentifier = "<STR_LIT>" ; String expectedReplacedSource = "<STR_LIT>" ; String expectedUnitDisplayString = "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" ; checkDietParse ( str . toCharArray ( ) , cursorLocation , expectedCompletionNodeToString , expectedParentNodeToString , expectedUnitDisplayString , completionIdentifier , expectedReplacedSource , "<STR_LIT>" ) ; expectedCompletionNodeToString = "<STR_LIT>" ; expectedParentNodeToString = "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT:}>" ; completionIdentifier = "<STR_LIT>" ; expectedReplacedSource = "<STR_LIT>" ; expectedUnitDisplayString = "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" ; checkMethodParse ( str . toCharArray ( ) , cursorLocation , expectedCompletionNodeToString , expectedParentNodeToString , expectedUnitDisplayString , completionIdentifier , expectedReplacedSource , "<STR_LIT>" ) ; } public void test0004 ( ) { String str = "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" ; String completeBehind = "<STR_LIT>" ; int cursorLocation = str . indexOf ( "<STR_LIT>" ) + completeBehind . length ( ) - <NUM_LIT:1> ; String expectedCompletionNodeToString = "<STR_LIT>" ; String expectedParentNodeToString = "<STR_LIT>" ; String completionIdentifier = "<STR_LIT>" ; String expectedReplacedSource = "<STR_LIT>" ; String expectedUnitDisplayString = "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" ; checkDietParse ( str . toCharArray ( ) , cursorLocation , expectedCompletionNodeToString , expectedParentNodeToString , expectedUnitDisplayString , completionIdentifier , expectedReplacedSource , "<STR_LIT>" ) ; expectedCompletionNodeToString = "<STR_LIT>" ; expectedParentNodeToString = "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT:}>" ; completionIdentifier = "<STR_LIT>" ; expectedReplacedSource = "<STR_LIT>" ; expectedUnitDisplayString = "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" ; checkMethodParse ( str . toCharArray ( ) , cursorLocation , expectedCompletionNodeToString , expectedParentNodeToString , expectedUnitDisplayString , completionIdentifier , expectedReplacedSource , "<STR_LIT>" ) ; } public void test0005 ( ) { String str = "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" ; String completeBehind = "<STR_LIT>" ; int cursorLocation = str . indexOf ( "<STR_LIT>" ) + completeBehind . length ( ) - <NUM_LIT:1> ; String expectedCompletionNodeToString = "<STR_LIT>" ; String expectedParentNodeToString = "<STR_LIT>" ; String completionIdentifier = "<STR_LIT>" ; String expectedReplacedSource = "<STR_LIT>" ; String expectedUnitDisplayString = "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" ; checkDietParse ( str . toCharArray ( ) , cursorLocation , expectedCompletionNodeToString , expectedParentNodeToString , expectedUnitDisplayString , completionIdentifier , expectedReplacedSource , "<STR_LIT>" ) ; expectedCompletionNodeToString = "<STR_LIT>" ; expectedParentNodeToString = "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT:}>" ; completionIdentifier = "<STR_LIT>" ; expectedReplacedSource = "<STR_LIT>" ; expectedUnitDisplayString = "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" ; checkMethodParse ( str . toCharArray ( ) , cursorLocation , expectedCompletionNodeToString , expectedParentNodeToString , expectedUnitDisplayString , completionIdentifier , expectedReplacedSource , "<STR_LIT>" ) ; } public void test0006 ( ) { String str = "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" ; String completeBehind = "<STR_LIT>" ; int cursorLocation = str . indexOf ( "<STR_LIT>" ) + completeBehind . length ( ) - <NUM_LIT:1> ; String expectedCompletionNodeToString = "<STR_LIT>" ; String expectedParentNodeToString = "<STR_LIT>" ; String completionIdentifier = "<STR_LIT>" ; String expectedReplacedSource = "<STR_LIT>" ; String expectedUnitDisplayString = "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" ; checkDietParse ( str . toCharArray ( ) , cursorLocation , expectedCompletionNodeToString , expectedParentNodeToString , expectedUnitDisplayString , completionIdentifier , expectedReplacedSource , "<STR_LIT>" ) ; expectedCompletionNodeToString = "<STR_LIT>" ; expectedParentNodeToString = "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT:}>" ; completionIdentifier = "<STR_LIT>" ; expectedReplacedSource = "<STR_LIT>" ; expectedUnitDisplayString = "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" ; checkMethodParse ( str . toCharArray ( ) , cursorLocation , expectedCompletionNodeToString , expectedParentNodeToString , expectedUnitDisplayString , completionIdentifier , expectedReplacedSource , "<STR_LIT>" ) ; } public void test0007 ( ) { String str = "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" ; String completeBehind = "<STR_LIT>" ; int cursorLocation = str . indexOf ( "<STR_LIT>" ) + completeBehind . length ( ) - <NUM_LIT:1> ; String expectedCompletionNodeToString = "<STR_LIT>" ; String expectedParentNodeToString = "<STR_LIT>" ; String completionIdentifier = "<STR_LIT>" ; String expectedReplacedSource = "<STR_LIT>" ; String expectedUnitDisplayString = "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" ; checkDietParse ( str . toCharArray ( ) , cursorLocation , expectedCompletionNodeToString , expectedParentNodeToString , expectedUnitDisplayString , completionIdentifier , expectedReplacedSource , "<STR_LIT>" ) ; expectedCompletionNodeToString = "<STR_LIT>" ; expectedParentNodeToString = "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT:}>" ; completionIdentifier = "<STR_LIT>" ; expectedReplacedSource = "<STR_LIT>" ; expectedUnitDisplayString = "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" ; checkMethodParse ( str . toCharArray ( ) , cursorLocation , expectedCompletionNodeToString , expectedParentNodeToString , expectedUnitDisplayString , completionIdentifier , expectedReplacedSource , "<STR_LIT>" ) ; } public void test0008 ( ) { String str = "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" ; String completeBehind = "<STR_LIT>" ; int cursorLocation = str . indexOf ( "<STR_LIT>" ) + completeBehind . length ( ) - <NUM_LIT:1> ; String expectedCompletionNodeToString = "<STR_LIT>" ; String expectedParentNodeToString = "<STR_LIT>" ; String completionIdentifier = "<STR_LIT>" ; String expectedReplacedSource = "<STR_LIT>" ; String expectedUnitDisplayString = "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" ; checkDietParse ( str . toCharArray ( ) , cursorLocation , expectedCompletionNodeToString , expectedParentNodeToString , expectedUnitDisplayString , completionIdentifier , expectedReplacedSource , "<STR_LIT>" ) ; } public void test0009 ( ) { String str = "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" ; String completeBehind = "<STR_LIT>" ; int cursorLocation = str . indexOf ( "<STR_LIT>" ) + completeBehind . length ( ) - <NUM_LIT:1> ; String expectedCompletionNodeToString = "<STR_LIT>" ; String expectedParentNodeToString = "<STR_LIT>" ; String completionIdentifier = "<STR_LIT>" ; String expectedReplacedSource = "<STR_LIT>" ; String expectedUnitDisplayString = "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" ; checkDietParse ( str . toCharArray ( ) , cursorLocation , expectedCompletionNodeToString , expectedParentNodeToString , expectedUnitDisplayString , completionIdentifier , expectedReplacedSource , "<STR_LIT>" ) ; } public void test0010 ( ) { String str = "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" ; String completeBehind = "<STR_LIT>" ; int cursorLocation = str . indexOf ( "<STR_LIT>" ) + completeBehind . length ( ) - <NUM_LIT:1> ; String expectedCompletionNodeToString = "<STR_LIT>" ; String expectedParentNodeToString = "<STR_LIT>" ; String completionIdentifier = "<STR_LIT>" ; String expectedReplacedSource = "<STR_LIT>" ; String expectedUnitDisplayString = "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" ; checkDietParse ( str . toCharArray ( ) , cursorLocation , expectedCompletionNodeToString , expectedParentNodeToString , expectedUnitDisplayString , completionIdentifier , expectedReplacedSource , "<STR_LIT>" ) ; } public void test0011 ( ) { String str = "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" ; String completeBehind = "<STR_LIT>" ; int cursorLocation = str . indexOf ( "<STR_LIT>" ) + completeBehind . length ( ) - <NUM_LIT:1> ; String expectedCompletionNodeToString = "<STR_LIT>" ; String expectedParentNodeToString = "<STR_LIT>" ; String completionIdentifier = "<STR_LIT>" ; String expectedReplacedSource = "<STR_LIT>" ; String expectedUnitDisplayString = "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" ; checkDietParse ( str . toCharArray ( ) , cursorLocation , expectedCompletionNodeToString , expectedParentNodeToString , expectedUnitDisplayString , completionIdentifier , expectedReplacedSource , "<STR_LIT>" ) ; } public void test0012 ( ) { String str = "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" ; String completeBehind = "<STR_LIT>" ; int cursorLocation = str . indexOf ( "<STR_LIT>" ) + completeBehind . length ( ) - <NUM_LIT:1> ; String expectedCompletionNodeToString = "<STR_LIT>" ; String expectedParentNodeToString = "<STR_LIT>" ; String completionIdentifier = "<STR_LIT>" ; String expectedReplacedSource = "<STR_LIT>" ; String expectedUnitDisplayString = "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" ; checkDietParse ( str . toCharArray ( ) , cursorLocation , expectedCompletionNodeToString , expectedParentNodeToString , expectedUnitDisplayString , completionIdentifier , expectedReplacedSource , "<STR_LIT>" ) ; } public void test0013 ( ) { String str = "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" ; String completeBehind = "<STR_LIT>" ; int cursorLocation = str . indexOf ( "<STR_LIT>" ) + completeBehind . length ( ) - <NUM_LIT:1> ; String expectedCompletionNodeToString = "<STR_LIT>" ; String expectedParentNodeToString = "<STR_LIT>" ; String completionIdentifier = "<STR_LIT>" ; String expectedReplacedSource = "<STR_LIT>" ; String expectedUnitDisplayString = "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" ; checkDietParse ( str . toCharArray ( ) , cursorLocation , expectedCompletionNodeToString , expectedParentNodeToString , expectedUnitDisplayString , completionIdentifier , expectedReplacedSource , "<STR_LIT>" ) ; } public void test0014 ( ) { String str = "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" ; String completeBehind = "<STR_LIT>" ; int cursorLocation = str . indexOf ( "<STR_LIT>" ) + completeBehind . length ( ) - <NUM_LIT:1> ; String expectedCompletionNodeToString = "<STR_LIT>" ; String expectedParentNodeToString = "<STR_LIT>" ; String completionIdentifier = "<STR_LIT>" ; String expectedReplacedSource = "<STR_LIT>" ; String expectedUnitDisplayString = "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" ; checkDietParse ( str . toCharArray ( ) , cursorLocation , expectedCompletionNodeToString , expectedParentNodeToString , expectedUnitDisplayString , completionIdentifier , expectedReplacedSource , "<STR_LIT>" ) ; } } </s>
|
<s> package org . eclipse . jdt . core . tests . compiler . parser ; import java . util . Locale ; import java . util . Map ; import junit . framework . Test ; import org . eclipse . jdt . core . tests . util . AbstractCompilerTest ; import org . eclipse . jdt . core . tests . util . Util ; import org . eclipse . jdt . internal . codeassist . complete . CompletionParser ; import org . eclipse . jdt . internal . compiler . CompilationResult ; import org . eclipse . jdt . internal . compiler . DefaultErrorHandlingPolicies ; import org . eclipse . jdt . internal . compiler . SourceElementParser ; import org . eclipse . jdt . internal . compiler . ast . CompilationUnitDeclaration ; import org . eclipse . jdt . internal . compiler . batch . CompilationUnit ; import org . eclipse . jdt . internal . compiler . classfmt . ClassFileConstants ; import org . eclipse . jdt . internal . compiler . env . ICompilationUnit ; import org . eclipse . jdt . internal . compiler . impl . CompilerOptions ; import org . eclipse . jdt . internal . compiler . parser . Parser ; import org . eclipse . jdt . internal . compiler . problem . DefaultProblemFactory ; import org . eclipse . jdt . internal . compiler . problem . ProblemReporter ; public class AnnotationDietRecoveryTest extends AbstractCompilerTest { private static final boolean CHECK_ALL_PARSE = true ; public static boolean optimizeStringLiterals = false ; public static long sourceLevel = ClassFileConstants . JDK1_3 ; public AnnotationDietRecoveryTest ( String testName ) { super ( testName ) ; } public static Test suite ( ) { return buildMinimalComplianceTestSuite ( testClass ( ) , F_1_5 ) ; } public static Class testClass ( ) { return AnnotationDietRecoveryTest . class ; } protected Map getCompilerOptions ( ) { Map options = super . getCompilerOptions ( ) ; options . put ( CompilerOptions . OPTION_Compliance , CompilerOptions . VERSION_1_5 ) ; options . put ( CompilerOptions . OPTION_Source , CompilerOptions . VERSION_1_5 ) ; options . put ( CompilerOptions . OPTION_TargetPlatform , CompilerOptions . VERSION_1_5 ) ; return options ; } public void checkParse ( char [ ] source , String expectedDietUnitToString , String expectedDietPlusBodyUnitToString , String expectedFullUnitToString , String expectedCompletionDietUnitToString , String testName ) { if ( CHECK_ALL_PARSE ) { Parser parser = new Parser ( new ProblemReporter ( DefaultErrorHandlingPolicies . proceedWithAllProblems ( ) , new CompilerOptions ( getCompilerOptions ( ) ) , new DefaultProblemFactory ( Locale . getDefault ( ) ) ) , optimizeStringLiterals ) ; ICompilationUnit sourceUnit = new CompilationUnit ( source , testName , null ) ; CompilationResult compilationResult = new CompilationResult ( sourceUnit , <NUM_LIT:0> , <NUM_LIT:0> , <NUM_LIT:0> ) ; CompilationUnitDeclaration computedUnit = parser . dietParse ( sourceUnit , compilationResult ) ; String computedUnitToString = computedUnit . toString ( ) ; if ( ! expectedDietUnitToString . equals ( computedUnitToString ) ) { System . out . println ( Util . displayString ( computedUnitToString ) ) ; } assertEquals ( "<STR_LIT>" + testName , expectedDietUnitToString , computedUnitToString ) ; } { Parser parser = new Parser ( new ProblemReporter ( DefaultErrorHandlingPolicies . proceedWithAllProblems ( ) , new CompilerOptions ( getCompilerOptions ( ) ) , new DefaultProblemFactory ( Locale . getDefault ( ) ) ) , optimizeStringLiterals ) ; ICompilationUnit sourceUnit = new CompilationUnit ( source , testName , null ) ; CompilationResult compilationResult = new CompilationResult ( sourceUnit , <NUM_LIT:0> , <NUM_LIT:0> , <NUM_LIT:0> ) ; CompilationUnitDeclaration computedUnit = parser . dietParse ( sourceUnit , compilationResult ) ; String computedUnitToString = computedUnit . toString ( ) ; if ( ! expectedDietUnitToString . equals ( computedUnitToString ) ) { System . out . println ( Util . displayString ( computedUnitToString ) ) ; } assertEquals ( "<STR_LIT>" + testName , expectedDietUnitToString , computedUnitToString ) ; if ( computedUnit . types != null ) { for ( int i = <NUM_LIT:0> , length = computedUnit . types . length ; i < length ; i ++ ) { computedUnit . types [ i ] . parseMethods ( parser , computedUnit ) ; } } computedUnitToString = computedUnit . toString ( ) ; if ( ! expectedDietPlusBodyUnitToString . equals ( computedUnitToString ) ) { System . out . println ( Util . displayString ( computedUnitToString ) ) ; } assertEquals ( "<STR_LIT>" + testName , expectedDietPlusBodyUnitToString , computedUnitToString ) ; } if ( CHECK_ALL_PARSE ) { Parser parser = new Parser ( new ProblemReporter ( DefaultErrorHandlingPolicies . proceedWithAllProblems ( ) , new CompilerOptions ( getCompilerOptions ( ) ) , new DefaultProblemFactory ( Locale . getDefault ( ) ) ) , optimizeStringLiterals ) ; ICompilationUnit sourceUnit = new CompilationUnit ( source , testName , null ) ; CompilationResult compilationResult = new CompilationResult ( sourceUnit , <NUM_LIT:0> , <NUM_LIT:0> , <NUM_LIT:0> ) ; CompilationUnitDeclaration computedUnit = parser . parse ( sourceUnit , compilationResult ) ; String computedUnitToString = computedUnit . toString ( ) ; if ( ! expectedFullUnitToString . equals ( computedUnitToString ) ) { System . out . println ( Util . displayString ( computedUnitToString ) ) ; } assertEquals ( "<STR_LIT>" + testName , expectedFullUnitToString , computedUnitToString ) ; } if ( CHECK_ALL_PARSE ) { SourceElementParser parser = new SourceElementParser ( new TestSourceElementRequestor ( ) , new DefaultProblemFactory ( Locale . getDefault ( ) ) , new CompilerOptions ( getCompilerOptions ( ) ) , false , true ) ; ICompilationUnit sourceUnit = new CompilationUnit ( source , testName , null ) ; CompilationResult compilationResult = new CompilationResult ( sourceUnit , <NUM_LIT:0> , <NUM_LIT:0> , <NUM_LIT:0> ) ; CompilationUnitDeclaration computedUnit = parser . dietParse ( sourceUnit , compilationResult ) ; String computedUnitToString = computedUnit . toString ( ) ; if ( ! expectedDietUnitToString . equals ( computedUnitToString ) ) { System . out . println ( Util . displayString ( computedUnitToString ) ) ; } assertEquals ( "<STR_LIT>" + testName , expectedDietUnitToString , computedUnitToString ) ; } if ( CHECK_ALL_PARSE ) { SourceElementParser parser = new SourceElementParser ( new TestSourceElementRequestor ( ) , new DefaultProblemFactory ( Locale . getDefault ( ) ) , new CompilerOptions ( getCompilerOptions ( ) ) , false , true ) ; ICompilationUnit sourceUnit = new CompilationUnit ( source , testName , null ) ; CompilationResult compilationResult = new CompilationResult ( sourceUnit , <NUM_LIT:0> , <NUM_LIT:0> , <NUM_LIT:0> ) ; CompilationUnitDeclaration computedUnit = parser . parse ( sourceUnit , compilationResult ) ; String computedUnitToString = computedUnit . toString ( ) ; if ( ! expectedFullUnitToString . equals ( computedUnitToString ) ) { System . out . println ( Util . displayString ( computedUnitToString ) ) ; } assertEquals ( "<STR_LIT>" + testName , expectedFullUnitToString , computedUnitToString ) ; } if ( CHECK_ALL_PARSE ) { CompilerOptions options = new CompilerOptions ( getCompilerOptions ( ) ) ; CompletionParser parser = new CompletionParser ( new ProblemReporter ( DefaultErrorHandlingPolicies . proceedWithAllProblems ( ) , options , new DefaultProblemFactory ( Locale . getDefault ( ) ) ) , false ) ; ICompilationUnit sourceUnit = new CompilationUnit ( source , testName , null ) ; CompilationResult compilationResult = new CompilationResult ( sourceUnit , <NUM_LIT:0> , <NUM_LIT:0> , <NUM_LIT:0> ) ; CompilationUnitDeclaration computedUnit = parser . dietParse ( sourceUnit , compilationResult , Integer . MAX_VALUE ) ; String computedUnitToString = computedUnit . toString ( ) ; if ( ! expectedCompletionDietUnitToString . equals ( computedUnitToString ) ) { System . out . println ( Util . displayString ( computedUnitToString ) ) ; } assertEquals ( "<STR_LIT>" + testName , expectedCompletionDietUnitToString , computedUnitToString ) ; } } public void test0001 ( ) { String s = "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" ; String expectedDietUnitToString = "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" ; String expectedDietPlusBodyUnitToString = expectedDietUnitToString ; String expectedFullUnitToString = expectedDietUnitToString ; String expectedCompletionDietUnitToString = expectedDietUnitToString ; String testName = "<STR_LIT>" ; checkParse ( s . toCharArray ( ) , expectedDietUnitToString , expectedDietPlusBodyUnitToString , expectedFullUnitToString , expectedCompletionDietUnitToString , testName ) ; } public void test0002 ( ) { String s = "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" ; String expectedDietUnitToString = "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" ; String expectedDietPlusBodyUnitToString = expectedDietUnitToString ; String expectedFullUnitToString = expectedDietUnitToString ; String expectedCompletionDietUnitToString = expectedDietUnitToString ; String testName = "<STR_LIT>" ; checkParse ( s . toCharArray ( ) , expectedDietUnitToString , expectedDietPlusBodyUnitToString , expectedFullUnitToString , expectedCompletionDietUnitToString , testName ) ; } public void test0003 ( ) { String s = "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" ; String expectedDietUnitToString = "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" ; String expectedDietPlusBodyUnitToString = expectedDietUnitToString ; String expectedFullUnitToString = expectedDietUnitToString ; String expectedCompletionDietUnitToString = expectedDietUnitToString ; String testName = "<STR_LIT>" ; checkParse ( s . toCharArray ( ) , expectedDietUnitToString , expectedDietPlusBodyUnitToString , expectedFullUnitToString , expectedCompletionDietUnitToString , testName ) ; } public void test0004 ( ) { String s = "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" ; String expectedDietUnitToString = "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" ; String expectedDietPlusBodyUnitToString = expectedDietUnitToString ; String expectedFullUnitToString = expectedDietUnitToString ; String expectedCompletionDietUnitToString = expectedDietUnitToString ; String testName = "<STR_LIT>" ; checkParse ( s . toCharArray ( ) , expectedDietUnitToString , expectedDietPlusBodyUnitToString , expectedFullUnitToString , expectedCompletionDietUnitToString , testName ) ; } public void test0005 ( ) { String s = "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" ; String expectedDietUnitToString = "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" ; String expectedDietPlusBodyUnitToString = "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" ; String expectedFullUnitToString = expectedDietUnitToString ; String expectedCompletionDietUnitToString = expectedDietUnitToString ; String testName = "<STR_LIT>" ; checkParse ( s . toCharArray ( ) , expectedDietUnitToString , expectedDietPlusBodyUnitToString , expectedFullUnitToString , expectedCompletionDietUnitToString , testName ) ; } public void test0006 ( ) { String s = "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" ; String expectedDietUnitToString = "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" ; String expectedDietPlusBodyUnitToString = expectedDietUnitToString ; String expectedFullUnitToString = expectedDietUnitToString ; String expectedCompletionDietUnitToString = expectedDietUnitToString ; String testName = "<STR_LIT>" ; checkParse ( s . toCharArray ( ) , expectedDietUnitToString , expectedDietPlusBodyUnitToString , expectedFullUnitToString , expectedCompletionDietUnitToString , testName ) ; } public void test0007 ( ) { String s = "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" ; String expectedDietUnitToString = "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" ; String expectedDietPlusBodyUnitToString = expectedDietUnitToString ; String expectedFullUnitToString = expectedDietUnitToString ; String expectedCompletionDietUnitToString = expectedDietUnitToString ; String testName = "<STR_LIT>" ; checkParse ( s . toCharArray ( ) , expectedDietUnitToString , expectedDietPlusBodyUnitToString , expectedFullUnitToString , expectedCompletionDietUnitToString , testName ) ; } public void test0008 ( ) { String s = "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" ; String expectedDietUnitToString = "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" ; String expectedDietPlusBodyUnitToString = "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" ; String expectedFullUnitToString = expectedDietUnitToString ; String expectedCompletionDietUnitToString = expectedDietUnitToString ; String testName = "<STR_LIT>" ; checkParse ( s . toCharArray ( ) , expectedDietUnitToString , expectedDietPlusBodyUnitToString , expectedFullUnitToString , expectedCompletionDietUnitToString , testName ) ; } public void test0009 ( ) { String s = "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" ; String expectedDietUnitToString = "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" ; String expectedDietPlusBodyUnitToString = "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" ; String expectedFullUnitToString = expectedDietUnitToString ; String expectedCompletionDietUnitToString = "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" ; String testName = "<STR_LIT>" ; checkParse ( s . toCharArray ( ) , expectedDietUnitToString , expectedDietPlusBodyUnitToString , expectedFullUnitToString , expectedCompletionDietUnitToString , testName ) ; } public void test0010 ( ) { String s = "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" ; String expectedDietUnitToString = "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" ; String expectedDietPlusBodyUnitToString = "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" ; String expectedFullUnitToString = expectedDietUnitToString ; String expectedCompletionDietUnitToString = expectedDietUnitToString ; String testName = "<STR_LIT>" ; checkParse ( s . toCharArray ( ) , expectedDietUnitToString , expectedDietPlusBodyUnitToString , expectedFullUnitToString , expectedCompletionDietUnitToString , testName ) ; } public void test0011 ( ) { String s = "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" ; String expectedDietUnitToString = "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" ; String expectedDietPlusBodyUnitToString = "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" ; String expectedFullUnitToString = expectedDietUnitToString ; String expectedCompletionDietUnitToString = expectedDietUnitToString ; String testName = "<STR_LIT>" ; checkParse ( s . toCharArray ( ) , expectedDietUnitToString , expectedDietPlusBodyUnitToString , expectedFullUnitToString , expectedCompletionDietUnitToString , testName ) ; } public void test0012 ( ) { String s = "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" ; String expectedDietUnitToString = "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" ; String expectedDietPlusBodyUnitToString = "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" ; String expectedFullUnitToString = expectedDietUnitToString ; String expectedCompletionDietUnitToString = expectedDietUnitToString ; String testName = "<STR_LIT>" ; checkParse ( s . toCharArray ( ) , expectedDietUnitToString , expectedDietPlusBodyUnitToString , expectedFullUnitToString , expectedCompletionDietUnitToString , testName ) ; } public void test0013 ( ) { String s = "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" ; String expectedDietUnitToString = "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" ; String expectedDietPlusBodyUnitToString = "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" ; String expectedFullUnitToString = expectedDietPlusBodyUnitToString ; String expectedCompletionDietUnitToString = expectedDietUnitToString ; String testName = "<STR_LIT>" ; checkParse ( s . toCharArray ( ) , expectedDietUnitToString , expectedDietPlusBodyUnitToString , expectedFullUnitToString , expectedCompletionDietUnitToString , testName ) ; } public void test0014 ( ) { String s = "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" ; String expectedDietUnitToString = "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" ; String expectedDietPlusBodyUnitToString = "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" ; String expectedFullUnitToString = expectedDietUnitToString ; String expectedCompletionDietUnitToString = expectedDietUnitToString ; String testName = "<STR_LIT>" ; checkParse ( s . toCharArray ( ) , expectedDietUnitToString , expectedDietPlusBodyUnitToString , expectedFullUnitToString , expectedCompletionDietUnitToString , testName ) ; } public void test0015 ( ) { String s = "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" ; String expectedDietUnitToString = "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" ; String expectedDietPlusBodyUnitToString = "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" ; String expectedFullUnitToString = expectedDietUnitToString ; String expectedCompletionDietUnitToString = expectedDietUnitToString ; String testName = "<STR_LIT>" ; checkParse ( s . toCharArray ( ) , expectedDietUnitToString , expectedDietPlusBodyUnitToString , expectedFullUnitToString , expectedCompletionDietUnitToString , testName ) ; } public void test0016 ( ) { String s = "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" ; String expectedDietUnitToString = "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" ; String expectedDietPlusBodyUnitToString = "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" ; String expectedFullUnitToString = expectedDietUnitToString ; String expectedCompletionDietUnitToString = "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" ; String testName = "<STR_LIT>" ; checkParse ( s . toCharArray ( ) , expectedDietUnitToString , expectedDietPlusBodyUnitToString , expectedFullUnitToString , expectedCompletionDietUnitToString , testName ) ; } public void test0017 ( ) { String s = "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" ; String expectedDietUnitToString = "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" ; String expectedDietPlusBodyUnitToString = "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" ; String expectedFullUnitToString = expectedDietUnitToString ; String expectedCompletionDietUnitToString = "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" ; String testName = "<STR_LIT>" ; checkParse ( s . toCharArray ( ) , expectedDietUnitToString , expectedDietPlusBodyUnitToString , expectedFullUnitToString , expectedCompletionDietUnitToString , testName ) ; } public void test0018 ( ) { String s = "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" ; String expectedDietUnitToString = "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" ; String expectedDietPlusBodyUnitToString = "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" ; String expectedFullUnitToString = expectedDietUnitToString ; String expectedCompletionDietUnitToString = "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" ; String testName = "<STR_LIT>" ; checkParse ( s . toCharArray ( ) , expectedDietUnitToString , expectedDietPlusBodyUnitToString , expectedFullUnitToString , expectedCompletionDietUnitToString , testName ) ; } public void test0019 ( ) { String s = "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" ; String expectedDietUnitToString = "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" ; String expectedDietPlusBodyUnitToString = "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" ; String expectedFullUnitToString = expectedDietUnitToString ; String expectedCompletionDietUnitToString = "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" ; String testName = "<STR_LIT>" ; checkParse ( s . toCharArray ( ) , expectedDietUnitToString , expectedDietPlusBodyUnitToString , expectedFullUnitToString , expectedCompletionDietUnitToString , testName ) ; } public void test0020 ( ) { String s = "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" ; String expectedDietUnitToString = "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" ; String expectedDietPlusBodyUnitToString = "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" ; String expectedFullUnitToString = expectedDietUnitToString ; String expectedCompletionDietUnitToString = "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" ; String testName = "<STR_LIT>" ; checkParse ( s . toCharArray ( ) , expectedDietUnitToString , expectedDietPlusBodyUnitToString , expectedFullUnitToString , expectedCompletionDietUnitToString , testName ) ; } public void test0021 ( ) { String s = "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" ; String expectedDietUnitToString = "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" ; String expectedDietPlusBodyUnitToString = "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" ; String expectedFullUnitToString = expectedDietUnitToString ; String expectedCompletionDietUnitToString = "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" ; String testName = "<STR_LIT>" ; checkParse ( s . toCharArray ( ) , expectedDietUnitToString , expectedDietPlusBodyUnitToString , expectedFullUnitToString , expectedCompletionDietUnitToString , testName ) ; } public void test0022 ( ) { String s = "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" ; String expectedDietUnitToString = "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" ; String expectedDietPlusBodyUnitToString = "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" ; String expectedFullUnitToString = expectedDietUnitToString ; String expectedCompletionDietUnitToString = "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" ; String testName = "<STR_LIT>" ; checkParse ( s . toCharArray ( ) , expectedDietUnitToString , expectedDietPlusBodyUnitToString , expectedFullUnitToString , expectedCompletionDietUnitToString , testName ) ; } public void test0023 ( ) { String s = "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" ; String expectedDietUnitToString = "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" ; String expectedDietPlusBodyUnitToString = "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" ; String expectedFullUnitToString = expectedDietUnitToString ; String expectedCompletionDietUnitToString = "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" ; String testName = "<STR_LIT>" ; checkParse ( s . toCharArray ( ) , expectedDietUnitToString , expectedDietPlusBodyUnitToString , expectedFullUnitToString , expectedCompletionDietUnitToString , testName ) ; } public void test0024 ( ) { String s = "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" ; String expectedDietUnitToString = "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" ; String expectedDietPlusBodyUnitToString = "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" ; String expectedFullUnitToString = expectedDietUnitToString ; String expectedCompletionDietUnitToString = expectedDietUnitToString ; String testName = "<STR_LIT>" ; checkParse ( s . toCharArray ( ) , expectedDietUnitToString , expectedDietPlusBodyUnitToString , expectedFullUnitToString , expectedCompletionDietUnitToString , testName ) ; } public void test0025 ( ) { String s = "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" ; String expectedDietUnitToString = "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" ; String expectedDietPlusBodyUnitToString = "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" ; String expectedFullUnitToString = expectedDietUnitToString ; String expectedCompletionDietUnitToString = expectedDietUnitToString ; String testName = "<STR_LIT>" ; checkParse ( s . toCharArray ( ) , expectedDietUnitToString , expectedDietPlusBodyUnitToString , expectedFullUnitToString , expectedCompletionDietUnitToString , testName ) ; } public void test0026 ( ) { String s = "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" ; String expectedDietUnitToString = "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" ; String expectedDietPlusBodyUnitToString = "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" ; String expectedFullUnitToString = expectedDietUnitToString ; String expectedCompletionDietUnitToString = expectedDietUnitToString ; String testName = "<STR_LIT>" ; checkParse ( s . toCharArray ( ) , expectedDietUnitToString , expectedDietPlusBodyUnitToString , expectedFullUnitToString , expectedCompletionDietUnitToString , testName ) ; } public void test0027 ( ) { String s = "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" ; String expectedDietUnitToString = "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" ; String expectedDietPlusBodyUnitToString = "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" ; String expectedFullUnitToString = expectedDietUnitToString ; String expectedCompletionDietUnitToString = "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" ; String testName = "<STR_LIT>" ; checkParse ( s . toCharArray ( ) , expectedDietUnitToString , expectedDietPlusBodyUnitToString , expectedFullUnitToString , expectedCompletionDietUnitToString , testName ) ; } public void test0028 ( ) { String s = "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" ; String expectedDietUnitToString = "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" ; String expectedDietPlusBodyUnitToString = "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" ; String expectedFullUnitToString = expectedDietUnitToString ; String expectedCompletionDietUnitToString = "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" ; String testName = "<STR_LIT>" ; checkParse ( s . toCharArray ( ) , expectedDietUnitToString , expectedDietPlusBodyUnitToString , expectedFullUnitToString , expectedCompletionDietUnitToString , testName ) ; } public void test0030 ( ) { String s = "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" ; String expectedDietUnitToString = "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" ; String expectedDietPlusBodyUnitToString = "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" ; String expectedFullUnitToString = expectedDietUnitToString ; String expectedCompletionDietUnitToString = "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" ; String testName = "<STR_LIT>" ; checkParse ( s . toCharArray ( ) , expectedDietUnitToString , expectedDietPlusBodyUnitToString , expectedFullUnitToString , expectedCompletionDietUnitToString , testName ) ; } public void test0031 ( ) { String s = "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" ; String expectedDietUnitToString = "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" ; String expectedDietPlusBodyUnitToString = "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" ; String expectedFullUnitToString = expectedDietUnitToString ; String expectedCompletionDietUnitToString = "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" ; String testName = "<STR_LIT>" ; checkParse ( s . toCharArray ( ) , expectedDietUnitToString , expectedDietPlusBodyUnitToString , expectedFullUnitToString , expectedCompletionDietUnitToString , testName ) ; } public void test0032 ( ) { String s = "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" ; String expectedDietUnitToString = "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" ; String expectedDietPlusBodyUnitToString = "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" ; String expectedFullUnitToString = expectedDietUnitToString ; String expectedCompletionDietUnitToString = "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" ; String testName = "<STR_LIT>" ; checkParse ( s . toCharArray ( ) , expectedDietUnitToString , expectedDietPlusBodyUnitToString , expectedFullUnitToString , expectedCompletionDietUnitToString , testName ) ; } public void test0033 ( ) { String s = "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" ; String expectedDietUnitToString = "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" ; String expectedDietPlusBodyUnitToString = "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" ; String expectedFullUnitToString = expectedDietUnitToString ; String expectedCompletionDietUnitToString = "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" ; String testName = "<STR_LIT>" ; checkParse ( s . toCharArray ( ) , expectedDietUnitToString , expectedDietPlusBodyUnitToString , expectedFullUnitToString , expectedCompletionDietUnitToString , testName ) ; } public void test0034 ( ) { String s = "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" ; String expectedDietUnitToString = "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" ; String expectedDietPlusBodyUnitToString = "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" ; String expectedFullUnitToString = expectedDietUnitToString ; String expectedCompletionDietUnitToString = "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" ; String testName = "<STR_LIT>" ; checkParse ( s . toCharArray ( ) , expectedDietUnitToString , expectedDietPlusBodyUnitToString , expectedFullUnitToString , expectedCompletionDietUnitToString , testName ) ; } public void test0035 ( ) { String s = "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" ; String expectedDietUnitToString = "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" ; String expectedDietPlusBodyUnitToString = "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" ; String expectedFullUnitToString = expectedDietUnitToString ; String expectedCompletionDietUnitToString = "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" ; String testName = "<STR_LIT>" ; checkParse ( s . toCharArray ( ) , expectedDietUnitToString , expectedDietPlusBodyUnitToString , expectedFullUnitToString , expectedCompletionDietUnitToString , testName ) ; } public void test0036 ( ) { String s = "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" ; String expectedDietUnitToString = "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" ; String expectedDietPlusBodyUnitToString = "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" ; String expectedFullUnitToString = expectedDietUnitToString ; String expectedCompletionDietUnitToString = "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" ; String testName = "<STR_LIT>" ; checkParse ( s . toCharArray ( ) , expectedDietUnitToString , expectedDietPlusBodyUnitToString , expectedFullUnitToString , expectedCompletionDietUnitToString , testName ) ; } public void test0037 ( ) { String s = "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" ; String expectedDietUnitToString = "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" ; String expectedDietPlusBodyUnitToString = "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" ; String expectedFullUnitToString = expectedDietUnitToString ; String expectedCompletionDietUnitToString = "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" ; String testName = "<STR_LIT>" ; checkParse ( s . toCharArray ( ) , expectedDietUnitToString , expectedDietPlusBodyUnitToString , expectedFullUnitToString , expectedCompletionDietUnitToString , testName ) ; } public void test0038 ( ) { String s = "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" ; String expectedDietUnitToString = "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" ; String expectedDietPlusBodyUnitToString = "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" ; String expectedFullUnitToString = expectedDietUnitToString ; String expectedCompletionDietUnitToString = "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" ; String testName = "<STR_LIT>" ; checkParse ( s . toCharArray ( ) , expectedDietUnitToString , expectedDietPlusBodyUnitToString , expectedFullUnitToString , expectedCompletionDietUnitToString , testName ) ; } public void test0039 ( ) { String s = "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" ; String expectedDietUnitToString = "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" ; String expectedDietPlusBodyUnitToString = "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" ; String expectedFullUnitToString = expectedDietUnitToString ; String expectedCompletionDietUnitToString = "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" ; String testName = "<STR_LIT>" ; checkParse ( s . toCharArray ( ) , expectedDietUnitToString , expectedDietPlusBodyUnitToString , expectedFullUnitToString , expectedCompletionDietUnitToString , testName ) ; } public void test0040 ( ) { String s = "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" ; String expectedDietUnitToString = "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" ; String expectedDietPlusBodyUnitToString = "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" ; String expectedFullUnitToString = expectedDietUnitToString ; String expectedCompletionDietUnitToString = "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" ; String testName = "<STR_LIT>" ; checkParse ( s . toCharArray ( ) , expectedDietUnitToString , expectedDietPlusBodyUnitToString , expectedFullUnitToString , expectedCompletionDietUnitToString , testName ) ; } } </s>
|
<s> package org . eclipse . jdt . core . tests . compiler . parser ; import junit . framework . Test ; import org . eclipse . jdt . core . tests . compiler . regression . AbstractRegressionTest ; import org . eclipse . jdt . internal . compiler . classfmt . ClassFileConstants ; public class ComplianceDiagnoseTest extends AbstractRegressionTest { public ComplianceDiagnoseTest ( String name ) { super ( name ) ; } public static Test suite ( ) { return buildAllCompliancesTestSuite ( testClass ( ) ) ; } public static Class testClass ( ) { return ComplianceDiagnoseTest . class ; } public void runComplianceParserTest ( String [ ] testFiles , String expected13ProblemLog , String expected14ProblemLog , String expected15ProblemLog ) { if ( this . complianceLevel == ClassFileConstants . JDK1_3 ) { this . runNegativeTest ( testFiles , expected13ProblemLog ) ; } else if ( this . complianceLevel == ClassFileConstants . JDK1_4 ) { this . runNegativeTest ( testFiles , expected14ProblemLog ) ; } else if ( this . complianceLevel >= ClassFileConstants . JDK1_5 ) { this . runNegativeTest ( testFiles , expected15ProblemLog ) ; } } public void test0001 ( ) { String [ ] testFiles = new String [ ] { "<STR_LIT>" , "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" } ; String expected13ProblemLog = "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" ; String expected14ProblemLog = expected13ProblemLog ; String expected15ProblemLog = "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" ; runComplianceParserTest ( testFiles , expected13ProblemLog , expected14ProblemLog , expected15ProblemLog ) ; } public void test0002 ( ) { String [ ] testFiles = new String [ ] { "<STR_LIT>" , "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" } ; String expected13ProblemLog = "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" ; String expected14ProblemLog = expected13ProblemLog ; String expected15ProblemLog = "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" ; runComplianceParserTest ( testFiles , expected13ProblemLog , expected14ProblemLog , expected15ProblemLog ) ; } public void test0003 ( ) { String [ ] testFiles = new String [ ] { "<STR_LIT>" , "<STR_LIT>" + "<STR_LIT>" } ; String expected13ProblemLog = "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" ; String expected14ProblemLog = expected13ProblemLog ; String expected15ProblemLog = "<STR_LIT>" ; runComplianceParserTest ( testFiles , expected13ProblemLog , expected14ProblemLog , expected15ProblemLog ) ; } public void test0004 ( ) { String [ ] testFiles = new String [ ] { "<STR_LIT>" , "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" } ; String expected13ProblemLog = "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" ; String expected14ProblemLog = expected13ProblemLog ; String expected15ProblemLog = "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" ; runComplianceParserTest ( testFiles , expected13ProblemLog , expected14ProblemLog , expected15ProblemLog ) ; } public void test0005 ( ) { String [ ] testFiles = new String [ ] { "<STR_LIT>" , "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" } ; String expected13ProblemLog = "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" ; String expected14ProblemLog = expected13ProblemLog ; String expected15ProblemLog = "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" ; runComplianceParserTest ( testFiles , expected13ProblemLog , expected14ProblemLog , expected15ProblemLog ) ; } public void test0006 ( ) { String [ ] testFiles = new String [ ] { "<STR_LIT>" , "<STR_LIT>" + "<STR_LIT>" } ; String expected13ProblemLog = "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" ; String expected14ProblemLog = expected13ProblemLog ; String expected15ProblemLog = "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" ; runComplianceParserTest ( testFiles , expected13ProblemLog , expected14ProblemLog , expected15ProblemLog ) ; } public void test0007 ( ) { String [ ] testFiles = new String [ ] { "<STR_LIT>" , "<STR_LIT>" + "<STR_LIT>" } ; String expected13ProblemLog = "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" ; String expected14ProblemLog = expected13ProblemLog ; String expected15ProblemLog = "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" ; runComplianceParserTest ( testFiles , expected13ProblemLog , expected14ProblemLog , expected15ProblemLog ) ; } public void test0008 ( ) { String [ ] testFiles = new String [ ] { "<STR_LIT>" , "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" } ; String expected13ProblemLog = "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" ; String expected14ProblemLog = expected13ProblemLog ; String expected15ProblemLog = "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" ; runComplianceParserTest ( testFiles , expected13ProblemLog , expected14ProblemLog , expected15ProblemLog ) ; } public void test0009 ( ) { String [ ] testFiles = new String [ ] { "<STR_LIT>" , "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" } ; String expected13ProblemLog = "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" ; String expected15ProblemLog = "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" ; if ( this . complianceLevel < ClassFileConstants . JDK1_5 ) { this . runNegativeTest ( testFiles , expected13ProblemLog ) ; } else { runConformTest ( true , testFiles , expected15ProblemLog , null , null , JavacTestOptions . Excuse . EclipseHasSomeMoreWarnings ) ; } } public void test0010 ( ) { String [ ] testFiles = new String [ ] { "<STR_LIT>" , "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" } ; String expected13ProblemLog = "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" ; String expected14ProblemLog = expected13ProblemLog ; String expected15ProblemLog = "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" ; runComplianceParserTest ( testFiles , expected13ProblemLog , expected14ProblemLog , expected15ProblemLog ) ; } public void test0011 ( ) { String [ ] testFiles = new String [ ] { "<STR_LIT>" , "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" } ; String expected13ProblemLog = "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" ; String expected14ProblemLog = expected13ProblemLog ; String expected15ProblemLog = "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" ; runComplianceParserTest ( testFiles , expected13ProblemLog , expected14ProblemLog , expected15ProblemLog ) ; } public void test0012 ( ) { String [ ] testFiles = new String [ ] { "<STR_LIT>" , "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT:n>" } ; String expected13ProblemLog = "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" ; String expected14ProblemLog = "<STR_LIT>" ; String expected15ProblemLog = expected14ProblemLog ; runComplianceParserTest ( testFiles , expected13ProblemLog , expected14ProblemLog , expected15ProblemLog ) ; } public void test0013 ( ) { String [ ] testFiles = new String [ ] { "<STR_LIT>" , "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT:n>" } ; String expected13ProblemLog = "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" ; String expected14ProblemLog = expected13ProblemLog ; String expected15ProblemLog = "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" ; runComplianceParserTest ( testFiles , expected13ProblemLog , expected14ProblemLog , expected15ProblemLog ) ; } public void test0014 ( ) { String [ ] testFiles = new String [ ] { "<STR_LIT>" , "<STR_LIT>" + "<STR_LIT>" } ; String expected13ProblemLog = "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" ; String expected14ProblemLog = expected13ProblemLog ; String expected15ProblemLog = "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" ; runComplianceParserTest ( testFiles , expected13ProblemLog , expected14ProblemLog , expected15ProblemLog ) ; } public void test0015 ( ) { String [ ] testFiles = new String [ ] { "<STR_LIT>" , "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" } ; String expected13ProblemLog = "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" ; String expected14ProblemLog = expected13ProblemLog ; String expected15ProblemLog = "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" ; runComplianceParserTest ( testFiles , expected13ProblemLog , expected14ProblemLog , expected15ProblemLog ) ; } public void test0016 ( ) { String [ ] testFiles = new String [ ] { "<STR_LIT>" , "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" } ; String expected13ProblemLog = "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" ; String expected14ProblemLog = expected13ProblemLog ; String expected15ProblemLog = "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" ; runComplianceParserTest ( testFiles , expected13ProblemLog , expected14ProblemLog , expected15ProblemLog ) ; } public void test0017 ( ) { String [ ] testFiles = new String [ ] { "<STR_LIT>" , "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" } ; String expected13ProblemLog = "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" ; String expected14ProblemLog = expected13ProblemLog ; String expected15ProblemLog = "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" ; runComplianceParserTest ( testFiles , expected13ProblemLog , expected14ProblemLog , expected15ProblemLog ) ; } public void test0018 ( ) { String [ ] testFiles = new String [ ] { "<STR_LIT>" , "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" } ; String expected13ProblemLog = "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" ; String expected14ProblemLog = expected13ProblemLog ; String expected15ProblemLog = "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" ; runComplianceParserTest ( testFiles , expected13ProblemLog , expected14ProblemLog , expected15ProblemLog ) ; } public void test0019 ( ) { String [ ] testFiles = new String [ ] { "<STR_LIT>" , "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" } ; String expected13ProblemLog = "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" ; String expected14ProblemLog = expected13ProblemLog ; String expected15ProblemLog = "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" ; runComplianceParserTest ( testFiles , expected13ProblemLog , expected14ProblemLog , expected15ProblemLog ) ; } public void test0020 ( ) { String [ ] testFiles = new String [ ] { "<STR_LIT>" , "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT:n>" } ; String expected13ProblemLog = "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" ; String expected14ProblemLog = "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" ; String expected15ProblemLog = expected14ProblemLog ; runComplianceParserTest ( testFiles , expected13ProblemLog , expected14ProblemLog , expected15ProblemLog ) ; } public void test0021 ( ) { String [ ] testFiles = new String [ ] { "<STR_LIT>" , "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT:n>" } ; String expected13ProblemLog = "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" ; String expected14ProblemLog = expected13ProblemLog ; String expected15ProblemLog = "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" ; runComplianceParserTest ( testFiles , expected13ProblemLog , expected14ProblemLog , expected15ProblemLog ) ; } public void test0022 ( ) { String [ ] testFiles = new String [ ] { "<STR_LIT>" , "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT:n>" } ; String expected13ProblemLog = "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" ; String expected14ProblemLog = expected13ProblemLog ; String expected15ProblemLog = "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" ; runComplianceParserTest ( testFiles , expected13ProblemLog , expected14ProblemLog , expected15ProblemLog ) ; } public void test0023 ( ) { String [ ] testFiles = new String [ ] { "<STR_LIT>" , "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT:n>" } ; String expected13ProblemLog = "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" ; String expected14ProblemLog = expected13ProblemLog ; String expected15ProblemLog = "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" ; runComplianceParserTest ( testFiles , expected13ProblemLog , expected14ProblemLog , expected15ProblemLog ) ; } public void _test0024 ( ) { String [ ] testFiles = new String [ ] { "<STR_LIT>" , "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT:n>" } ; String expected13ProblemLog = "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" ; String expected14ProblemLog = expected13ProblemLog ; String expected15ProblemLog = "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" ; runComplianceParserTest ( testFiles , expected13ProblemLog , expected14ProblemLog , expected15ProblemLog ) ; } public void test0025 ( ) { String [ ] testFiles = new String [ ] { "<STR_LIT>" , "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT:n>" } ; String expected13ProblemLog = "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" ; String expected14ProblemLog = expected13ProblemLog ; String expected15ProblemLog = "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" ; runComplianceParserTest ( testFiles , expected13ProblemLog , expected14ProblemLog , expected15ProblemLog ) ; } public void test0026 ( ) { String [ ] testFiles = new String [ ] { "<STR_LIT>" , "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT:n>" } ; String expected13ProblemLog = "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" ; String expected14ProblemLog = expected13ProblemLog ; String expected15ProblemLog = "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" ; runComplianceParserTest ( testFiles , expected13ProblemLog , expected14ProblemLog , expected15ProblemLog ) ; } public void test0027 ( ) { String [ ] testFiles = new String [ ] { "<STR_LIT>" , "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT:n>" } ; String expected13ProblemLog = "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" ; String expected14ProblemLog = expected13ProblemLog ; String expected15ProblemLog = "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" ; runComplianceParserTest ( testFiles , expected13ProblemLog , expected14ProblemLog , expected15ProblemLog ) ; } public void test0028 ( ) { String [ ] testFiles = new String [ ] { "<STR_LIT>" , "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT:n>" } ; String expected13ProblemLog = "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" ; String expected14ProblemLog = expected13ProblemLog ; String expected15ProblemLog = "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" ; runComplianceParserTest ( testFiles , expected13ProblemLog , expected14ProblemLog , expected15ProblemLog ) ; } public void test0029 ( ) { String [ ] testFiles = new String [ ] { "<STR_LIT>" , "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT:n>" } ; String expected13ProblemLog = "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" ; String expected14ProblemLog = expected13ProblemLog ; String expected15ProblemLog = "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" ; runComplianceParserTest ( testFiles , expected13ProblemLog , expected14ProblemLog , expected15ProblemLog ) ; } public void test0030 ( ) { String [ ] testFiles = new String [ ] { "<STR_LIT>" , "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT:n>" } ; String expected13ProblemLog = "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" ; String expected14ProblemLog = expected13ProblemLog ; String expected15ProblemLog = "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" ; runComplianceParserTest ( testFiles , expected13ProblemLog , expected14ProblemLog , expected15ProblemLog ) ; } public void test0031 ( ) { String [ ] testFiles = new String [ ] { "<STR_LIT>" , "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT:n>" } ; String expected13ProblemLog = "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" ; String expected14ProblemLog = expected13ProblemLog ; String expected15ProblemLog = "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" ; runComplianceParserTest ( testFiles , expected13ProblemLog , expected14ProblemLog , expected15ProblemLog ) ; } public void test0032 ( ) { String [ ] testFiles = new String [ ] { "<STR_LIT>" , "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" } ; String expected13ProblemLog = "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" ; String expected14ProblemLog = expected13ProblemLog ; String expected15ProblemLog = "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" ; runComplianceParserTest ( testFiles , expected13ProblemLog , expected14ProblemLog , expected15ProblemLog ) ; } public void test0033 ( ) { String [ ] testFiles = new String [ ] { "<STR_LIT>" , "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" } ; String expected13ProblemLog = "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" ; String expected14ProblemLog = expected13ProblemLog ; String expected15ProblemLog = "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" ; runComplianceParserTest ( testFiles , expected13ProblemLog , expected14ProblemLog , expected15ProblemLog ) ; } public void test0034 ( ) { String [ ] testFiles = new String [ ] { "<STR_LIT>" , "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" } ; String expected13ProblemLog = "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" ; String expected14ProblemLog = expected13ProblemLog ; String expected15ProblemLog = "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" ; runComplianceParserTest ( testFiles , expected13ProblemLog , expected14ProblemLog , expected15ProblemLog ) ; } public void test0035 ( ) { String [ ] testFiles = new String [ ] { "<STR_LIT>" , "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" } ; String expected13ProblemLog = "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" ; String expected14ProblemLog = expected13ProblemLog ; String expected15ProblemLog = "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" ; runComplianceParserTest ( testFiles , expected13ProblemLog , expected14ProblemLog , expected15ProblemLog ) ; } public void test0036 ( ) { String [ ] testFiles = new String [ ] { "<STR_LIT>" , "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" } ; String expected13ProblemLog = "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" ; String expected14ProblemLog = expected13ProblemLog ; String expected15ProblemLog = "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" ; runComplianceParserTest ( testFiles , expected13ProblemLog , expected14ProblemLog , expected15ProblemLog ) ; } public void test0037 ( ) { String [ ] testFiles = new String [ ] { "<STR_LIT>" , "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" } ; String expected13ProblemLog = "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" ; String expected14ProblemLog = expected13ProblemLog ; String expected15ProblemLog = "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" ; runComplianceParserTest ( testFiles , expected13ProblemLog , expected14ProblemLog , expected15ProblemLog ) ; } public void test0038 ( ) { String [ ] testFiles = new String [ ] { "<STR_LIT>" , "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" } ; String expected13ProblemLog = "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" ; String expected14ProblemLog = expected13ProblemLog ; String expected15ProblemLog = "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" ; runComplianceParserTest ( testFiles , expected13ProblemLog , expected14ProblemLog , expected15ProblemLog ) ; } public void test0039 ( ) { String [ ] testFiles = new String [ ] { "<STR_LIT>" , "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" } ; String expected13ProblemLog = "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" ; String expected14ProblemLog = expected13ProblemLog ; String expected15ProblemLog = "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" ; runComplianceParserTest ( testFiles , expected13ProblemLog , expected14ProblemLog , expected15ProblemLog ) ; } public void test0040 ( ) { String [ ] testFiles = new String [ ] { "<STR_LIT>" , "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" } ; String expected13ProblemLog = "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" ; String expected14ProblemLog = expected13ProblemLog ; String expected15ProblemLog = "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" ; runComplianceParserTest ( testFiles , expected13ProblemLog , expected14ProblemLog , expected15ProblemLog ) ; } public void test0041 ( ) { String [ ] testFiles = new String [ ] { "<STR_LIT>" , "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" } ; String expected13ProblemLog = "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" ; String expected14ProblemLog = expected13ProblemLog ; String expected15ProblemLog = "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" ; runComplianceParserTest ( testFiles , expected13ProblemLog , expected14ProblemLog , expected15ProblemLog ) ; } public void test0042 ( ) { String [ ] testFiles = new String [ ] { "<STR_LIT>" , "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" } ; String expected13ProblemLog = "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" ; String expected14ProblemLog = expected13ProblemLog ; String expected15ProblemLog = "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" ; runComplianceParserTest ( testFiles , expected13ProblemLog , expected14ProblemLog , expected15ProblemLog ) ; } public void test0043 ( ) { String [ ] testFiles = new String [ ] { "<STR_LIT>" , "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT:n>" } ; String expected13ProblemLog = "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" ; String expected14ProblemLog = expected13ProblemLog ; String expected15ProblemLog = expected13ProblemLog ; runComplianceParserTest ( testFiles , expected13ProblemLog , expected14ProblemLog , expected15ProblemLog ) ; } public void test0044 ( ) { String [ ] testFiles = new String [ ] { "<STR_LIT>" , "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" } ; String expected13ProblemLog = "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" ; String expected14ProblemLog = expected13ProblemLog ; String expected15ProblemLog = "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" ; runComplianceParserTest ( testFiles , expected13ProblemLog , expected14ProblemLog , expected15ProblemLog ) ; } public void test0045 ( ) { String [ ] testFiles = new String [ ] { "<STR_LIT>" , "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" } ; String expected13ProblemLog = "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" ; String expected14ProblemLog = expected13ProblemLog ; String expected15ProblemLog = expected13ProblemLog ; runComplianceParserTest ( testFiles , expected13ProblemLog , expected14ProblemLog , expected15ProblemLog ) ; } public void test0046 ( ) { String [ ] testFiles = new String [ ] { "<STR_LIT>" , "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT:}>" } ; String expected13ProblemLog = "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" ; String expected14ProblemLog = expected13ProblemLog ; String expected15ProblemLog = "<STR_LIT>" ; runComplianceParserTest ( testFiles , expected13ProblemLog , expected14ProblemLog , expected15ProblemLog ) ; } public void test0047 ( ) { String [ ] testFiles = new String [ ] { "<STR_LIT>" , "<STR_LIT>" , "<STR_LIT>" , "<STR_LIT>" + "<STR_LIT:}>" } ; String expected13ProblemLog = "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" ; String expected14ProblemLog = expected13ProblemLog ; String expected15ProblemLog = "<STR_LIT>" ; runComplianceParserTest ( testFiles , expected13ProblemLog , expected14ProblemLog , expected15ProblemLog ) ; } public void test0048 ( ) { String [ ] testFiles = new String [ ] { "<STR_LIT>" , "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" } ; String expected13ProblemLog = "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" ; String expected14ProblemLog = expected13ProblemLog ; String expected15ProblemLog = "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" ; runComplianceParserTest ( testFiles , expected13ProblemLog , expected14ProblemLog , expected15ProblemLog ) ; } public void test0049 ( ) { String [ ] testFiles = new String [ ] { "<STR_LIT>" , "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" } ; String expected13ProblemLog = "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" ; String expected14ProblemLog = expected13ProblemLog ; String expected15ProblemLog = "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" ; runComplianceParserTest ( testFiles , expected13ProblemLog , expected14ProblemLog , expected15ProblemLog ) ; } public void test0050 ( ) { String [ ] testFiles = new String [ ] { "<STR_LIT>" , "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" } ; String expected13ProblemLog = "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" ; String expected14ProblemLog = expected13ProblemLog ; String expected15ProblemLog = "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" ; runComplianceParserTest ( testFiles , expected13ProblemLog , expected14ProblemLog , expected15ProblemLog ) ; } public void test0051 ( ) { String [ ] testFiles = new String [ ] { "<STR_LIT>" , "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" } ; String expected13ProblemLog = "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" ; String expected14ProblemLog = expected13ProblemLog ; String expected15ProblemLog = "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" ; runComplianceParserTest ( testFiles , expected13ProblemLog , expected14ProblemLog , expected15ProblemLog ) ; } public void test0052 ( ) { String [ ] testFiles = new String [ ] { "<STR_LIT>" , "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" } ; String expected13ProblemLog = "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" ; String expected14ProblemLog = expected13ProblemLog ; String expected15ProblemLog = "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" ; runComplianceParserTest ( testFiles , expected13ProblemLog , expected14ProblemLog , expected15ProblemLog ) ; } public void test0053 ( ) { String [ ] testFiles = new String [ ] { "<STR_LIT>" , "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" } ; String expected13ProblemLog = "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" ; String expected14ProblemLog = "<STR_LIT>" ; String expected15ProblemLog = expected14ProblemLog ; runComplianceParserTest ( testFiles , expected13ProblemLog , expected14ProblemLog , expected15ProblemLog ) ; } } </s>
|
<s> package org . eclipse . jdt . core . tests . compiler . parser ; public class SourcePackage { int declarationSourceStart ; int declarationSourceEnd ; char [ ] name ; char [ ] source ; public SourcePackage ( int declarationSourceStart , int declarationSourceEnd , char [ ] name , char [ ] source ) { this . declarationSourceStart = declarationSourceStart ; this . declarationSourceEnd = declarationSourceEnd ; this . name = name ; this . source = source ; } public String toString ( ) { StringBuffer buffer = new StringBuffer ( ) ; buffer . append ( source , declarationSourceStart , declarationSourceEnd - declarationSourceStart + <NUM_LIT:1> ) . append ( "<STR_LIT:n>" ) ; return buffer . toString ( ) ; } } </s>
|
<s> package org . eclipse . jdt . core . tests . compiler . parser ; import junit . framework . Test ; import org . eclipse . jdt . internal . codeassist . complete . * ; public class CompletionParserTest extends AbstractCompletionTest { public CompletionParserTest ( String testName ) { super ( testName ) ; } static { } public static Test suite ( ) { return buildAllCompliancesTestSuite ( CompletionParserTest . class ) ; } public void testA ( ) { String str = "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" ; String testName = "<STR_LIT>" ; String completeBehind = "<STR_LIT>" ; String expectedCompletionNodeToString = "<STR_LIT>" ; String completionIdentifier = "<STR_LIT>" ; String expectedReplacedSource = "<STR_LIT>" ; int cursorLocation = str . indexOf ( completeBehind ) + completeBehind . length ( ) - <NUM_LIT:1> ; String expectedUnitDisplayString = "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" ; checkMethodParse ( str . toCharArray ( ) , cursorLocation , expectedCompletionNodeToString , expectedUnitDisplayString , completionIdentifier , expectedReplacedSource , testName ) ; } public void testAA_1 ( ) { String str = "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" ; String completeBehind = "<STR_LIT:n>" ; String expectedCompletionNodeToString = "<STR_LIT>" ; String completionIdentifier = "<STR_LIT:n>" ; String expectedUnitDisplayString = "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" ; String expectedReplacedSource = "<STR_LIT>" ; String testName = "<STR_LIT>" ; int cursorLocation = str . indexOf ( "<STR_LIT>" ) + completeBehind . length ( ) - <NUM_LIT:1> ; checkMethodParse ( str . toCharArray ( ) , cursorLocation , expectedCompletionNodeToString , expectedUnitDisplayString , completionIdentifier , expectedReplacedSource , testName ) ; } public void testAA_2 ( ) { String str = "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" ; String testName = "<STR_LIT>" ; String completeBehind = "<STR_LIT:n>" ; String expectedCompletionNodeToString = "<STR_LIT>" ; String completionIdentifier = "<STR_LIT:n>" ; String expectedReplacedSource = "<STR_LIT:null>" ; int cursorLocation = str . indexOf ( "<STR_LIT>" ) + completeBehind . length ( ) - <NUM_LIT:1> ; String expectedUnitDisplayString = "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" ; checkMethodParse ( str . toCharArray ( ) , cursorLocation , expectedCompletionNodeToString , expectedUnitDisplayString , completionIdentifier , expectedReplacedSource , testName ) ; } public void testAA_3 ( ) { String str = "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" ; String testName = "<STR_LIT>" ; String completeBehind = "<STR_LIT:i>" ; String expectedCompletionNodeToString = "<STR_LIT>" ; String completionIdentifier = "<STR_LIT:i>" ; String expectedReplacedSource = "<STR_LIT:i>" ; int cursorLocation = str . indexOf ( "<STR_LIT>" ) + completeBehind . length ( ) - <NUM_LIT:1> ; String expectedUnitDisplayString = "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" ; checkMethodParse ( str . toCharArray ( ) , cursorLocation , expectedCompletionNodeToString , expectedUnitDisplayString , completionIdentifier , expectedReplacedSource , testName ) ; } public void testAA_4 ( ) { String str = "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" ; String testName = "<STR_LIT>" ; String completeBehind = "<STR_LIT>" ; String expectedCompletionNodeToString = "<STR_LIT>" ; String completionIdentifier = "<STR_LIT>" ; String expectedReplacedSource = "<STR_LIT>" ; int cursorLocation = str . indexOf ( "<STR_LIT>" ) + completeBehind . length ( ) - <NUM_LIT:1> ; String expectedUnitDisplayString = "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" ; checkMethodParse ( str . toCharArray ( ) , cursorLocation , expectedCompletionNodeToString , expectedUnitDisplayString , completionIdentifier , expectedReplacedSource , testName ) ; } public void testAB_1FHU9LU ( ) { String str = "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" ; String testName = "<STR_LIT>" ; String completeBehind = "<STR_LIT>" ; String expectedCompletionNodeToString = "<STR_LIT>" ; String completionIdentifier = "<STR_LIT>" ; String expectedReplacedSource = "<STR_LIT>" ; int cursorLocation = str . indexOf ( completeBehind ) + completeBehind . length ( ) - <NUM_LIT:1> ; String expectedUnitDisplayString = "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" ; checkMethodParse ( str . toCharArray ( ) , cursorLocation , expectedCompletionNodeToString , expectedUnitDisplayString , completionIdentifier , expectedReplacedSource , testName ) ; } public void testAC_1FJ8D9Z_1 ( ) { String str = "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" ; String testName = "<STR_LIT>" ; String completeBehind = "<STR_LIT>" ; String expectedCompletionNodeToString = "<STR_LIT>" ; String completionIdentifier = "<STR_LIT>" ; String expectedReplacedSource = "<STR_LIT>" ; int cursorLocation = str . indexOf ( completeBehind ) + completeBehind . length ( ) - <NUM_LIT:1> ; String expectedUnitDisplayString = "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" ; checkMethodParse ( str . toCharArray ( ) , cursorLocation , expectedCompletionNodeToString , expectedUnitDisplayString , completionIdentifier , expectedReplacedSource , testName ) ; } public void testAC_1FJ8D9Z_2 ( ) { String str = "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" ; String testName = "<STR_LIT>" ; String completeBehind = "<STR_LIT>" ; String expectedCompletionNodeToString = "<STR_LIT>" ; String completionIdentifier = "<STR_LIT>" ; String expectedReplacedSource = "<STR_LIT>" ; int cursorLocation = str . indexOf ( completeBehind ) + completeBehind . length ( ) - <NUM_LIT:1> ; String expectedUnitDisplayString = "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" ; checkMethodParse ( str . toCharArray ( ) , cursorLocation , expectedCompletionNodeToString , expectedUnitDisplayString , completionIdentifier , expectedReplacedSource , testName ) ; } public void testAC_1FJ8D9Z_3 ( ) { String str = "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" ; String testName = "<STR_LIT>" ; String completeBehind = "<STR_LIT>" ; String expectedCompletionNodeToString = "<STR_LIT>" ; String completionIdentifier = "<STR_LIT>" ; String expectedReplacedSource = "<STR_LIT>" ; int cursorLocation = str . indexOf ( completeBehind ) + completeBehind . length ( ) - <NUM_LIT:1> ; String expectedUnitDisplayString = "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" ; checkMethodParse ( str . toCharArray ( ) , cursorLocation , expectedCompletionNodeToString , expectedUnitDisplayString , completionIdentifier , expectedReplacedSource , testName ) ; } public void testB ( ) { String str = "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" ; String testName = "<STR_LIT>" ; String completeBehind = "<STR_LIT>" ; String expectedCompletionNodeToString = "<STR_LIT>" ; String completionIdentifier = "<STR_LIT>" ; String expectedReplacedSource = "<STR_LIT>" ; int cursorLocation = str . indexOf ( completeBehind ) + completeBehind . length ( ) - <NUM_LIT:1> ; String expectedUnitDisplayString = "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" ; checkDietParse ( str . toCharArray ( ) , cursorLocation , expectedCompletionNodeToString , expectedUnitDisplayString , completionIdentifier , expectedReplacedSource , testName ) ; } public void testBA_1 ( ) { String str = "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" ; String testName = "<STR_LIT>" ; String completeBehind = "<STR_LIT>" ; String expectedCompletionNodeToString = "<STR_LIT>" ; String completionIdentifier = "<STR_LIT>" ; String expectedReplacedSource = "<STR_LIT>" ; int cursorLocation = str . indexOf ( completeBehind ) + completeBehind . length ( ) - <NUM_LIT:1> ; String expectedUnitDisplayString = "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" ; checkMethodParse ( str . toCharArray ( ) , cursorLocation , expectedCompletionNodeToString , expectedUnitDisplayString , completionIdentifier , expectedReplacedSource , testName ) ; } public void testBA_2 ( ) { String str = "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" ; String testName = "<STR_LIT>" ; String completeBehind = "<STR_LIT>" ; String expectedCompletionNodeToString = "<STR_LIT>" ; String completionIdentifier = "<STR_LIT>" ; String expectedReplacedSource = "<STR_LIT>" ; int cursorLocation = str . indexOf ( completeBehind ) + completeBehind . length ( ) - <NUM_LIT:1> ; String expectedUnitDisplayString = "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" ; checkMethodParse ( str . toCharArray ( ) , cursorLocation , expectedCompletionNodeToString , expectedUnitDisplayString , completionIdentifier , expectedReplacedSource , testName ) ; } public void testBB_1FHJ8H9 ( ) { String str = "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" ; String testName = "<STR_LIT>" ; String completeBehind = "<STR_LIT:f>" ; String expectedCompletionNodeToString = "<STR_LIT>" ; String completionIdentifier = "<STR_LIT:f>" ; String expectedReplacedSource = "<STR_LIT:f>" ; int cursorLocation = str . indexOf ( completeBehind ) + completeBehind . length ( ) - <NUM_LIT:1> ; String expectedUnitDisplayString = "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" ; checkMethodParse ( str . toCharArray ( ) , cursorLocation , expectedCompletionNodeToString , expectedUnitDisplayString , completionIdentifier , expectedReplacedSource , testName ) ; } public void testBC_1FJ4GSG_1 ( ) { String str = "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" ; String testName = "<STR_LIT>" ; String completeBehind = "<STR_LIT>" ; String expectedCompletionNodeToString = "<STR_LIT>" ; String completionIdentifier = "<STR_LIT>" ; String expectedReplacedSource = "<STR_LIT>" ; int cursorLocation = str . indexOf ( completeBehind ) + completeBehind . length ( ) - <NUM_LIT:1> ; String expectedUnitDisplayString = "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" ; checkMethodParse ( str . toCharArray ( ) , cursorLocation , expectedCompletionNodeToString , expectedUnitDisplayString , completionIdentifier , expectedReplacedSource , testName ) ; } public void testBC_1FJ4GSG_2 ( ) { String str = "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" ; String testName = "<STR_LIT>" ; String completeBehind = "<STR_LIT>" ; String expectedCompletionNodeToString = "<STR_LIT>" ; String completionIdentifier = "<STR_LIT>" ; String expectedReplacedSource = "<STR_LIT>" ; int cursorLocation = str . indexOf ( completeBehind ) + completeBehind . length ( ) - <NUM_LIT:1> ; String expectedUnitDisplayString = "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" ; checkMethodParse ( str . toCharArray ( ) , cursorLocation , expectedCompletionNodeToString , expectedUnitDisplayString , completionIdentifier , expectedReplacedSource , testName ) ; } public void testBC_1FJ4GSG_3 ( ) { String str = "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" ; String testName = "<STR_LIT>" ; String completeBehind = "<STR_LIT>" ; String expectedCompletionNodeToString = "<STR_LIT>" ; String completionIdentifier = "<STR_LIT>" ; String expectedReplacedSource = "<STR_LIT>" ; int cursorLocation = str . indexOf ( completeBehind ) + completeBehind . length ( ) - <NUM_LIT:1> ; String expectedUnitDisplayString = "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" ; checkMethodParse ( str . toCharArray ( ) , cursorLocation , expectedCompletionNodeToString , expectedUnitDisplayString , completionIdentifier , expectedReplacedSource , testName ) ; } public void testC ( ) { String str = "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" ; String completeBehind = "<STR_LIT>" ; String expectedCompletionNodeToString = "<STR_LIT>" ; String completionIdentifier = "<STR_LIT:n>" ; String expectedUnitDisplayString = "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" ; String expectedReplacedSource = "<STR_LIT:n>" ; String testName = "<STR_LIT>" ; int cursorLocation = str . indexOf ( completeBehind ) + completeBehind . length ( ) - <NUM_LIT:1> ; checkMethodParse ( str . toCharArray ( ) , cursorLocation , expectedCompletionNodeToString , expectedUnitDisplayString , completionIdentifier , expectedReplacedSource , testName ) ; } public void testCA_1FGPJQZ ( ) { String str = "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" ; String testName = "<STR_LIT>" ; String completeBehind = "<STR_LIT>" ; String expectedCompletionNodeToString = "<STR_LIT>" ; String completionIdentifier = "<STR_LIT>" ; String expectedReplacedSource = "<STR_LIT>" ; String expectedUnitDisplayString = "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" ; int cursorLocation = str . indexOf ( completeBehind ) + completeBehind . length ( ) - <NUM_LIT:1> ; checkMethodParse ( str . toCharArray ( ) , cursorLocation , expectedCompletionNodeToString , expectedUnitDisplayString , completionIdentifier , expectedReplacedSource , testName ) ; } public void testCB_1FHSKQ9_1 ( ) { String str = "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" ; String testName = "<STR_LIT>" ; String completeBehind = "<STR_LIT>" ; String expectedCompletionNodeToString = "<STR_LIT>" ; String completionIdentifier = "<STR_LIT:i>" ; String expectedReplacedSource = "<STR_LIT:i>" ; int cursorLocation = str . indexOf ( completeBehind ) + completeBehind . length ( ) - <NUM_LIT:1> ; String expectedUnitDisplayString = "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" ; checkMethodParse ( str . toCharArray ( ) , cursorLocation , expectedCompletionNodeToString , expectedUnitDisplayString , completionIdentifier , expectedReplacedSource , testName ) ; } public void testCB_1FHSKQ9_2 ( ) { String str = "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" ; String completeBehind = "<STR_LIT>" ; String expectedCompletionNodeToString = NONE ; String completionIdentifier = "<STR_LIT>" ; String expectedUnitDisplayString = null ; String expectedReplacedSource = NONE ; String testName = "<STR_LIT>" ; int cursorLocation = str . indexOf ( completeBehind ) + completeBehind . length ( ) - <NUM_LIT:1> ; try { checkMethodParse ( str . toCharArray ( ) , cursorLocation , expectedCompletionNodeToString , expectedUnitDisplayString , completionIdentifier , expectedReplacedSource , testName ) ; assertTrue ( "<STR_LIT>" , false ) ; } catch ( InvalidCursorLocation e ) { assertEquals ( "<STR_LIT>" , e . irritant , InvalidCursorLocation . NO_COMPLETION_INSIDE_NUMBER ) ; } } public void testCC_1FJ64I9 ( ) { String str = "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" ; String testName = "<STR_LIT>" ; String completeBehind = "<STR_LIT>" ; String expectedCompletionNodeToString = "<STR_LIT>" ; String completionIdentifier = "<STR_LIT:M>" ; String expectedReplacedSource = "<STR_LIT:M>" ; int cursorLocation = str . indexOf ( completeBehind ) + completeBehind . length ( ) - <NUM_LIT:1> ; String expectedUnitDisplayString = "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" ; checkMethodParse ( str . toCharArray ( ) , cursorLocation , expectedCompletionNodeToString , expectedUnitDisplayString , completionIdentifier , expectedReplacedSource , testName ) ; } public void testD_1 ( ) { String str = "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" ; String testName = "<STR_LIT>" ; String completeBehind = "<STR_LIT:i>" ; String expectedCompletionNodeToString = "<STR_LIT>" ; String completionIdentifier = "<STR_LIT:i>" ; String expectedReplacedSource = "<STR_LIT:i>" ; int cursorLocation = str . indexOf ( "<STR_LIT>" ) + completeBehind . length ( ) - <NUM_LIT:1> ; String expectedUnitDisplayString = "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" ; checkMethodParse ( str . toCharArray ( ) , cursorLocation , expectedCompletionNodeToString , expectedUnitDisplayString , completionIdentifier , expectedReplacedSource , testName ) ; } public void testD_2 ( ) { String str = "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" ; String testName = "<STR_LIT>" ; String completeBehind = "<STR_LIT>" ; String expectedCompletionNodeToString = "<STR_LIT>" ; String completionIdentifier = "<STR_LIT>" ; String expectedReplacedSource = "<STR_LIT>" ; String expectedUnitDisplayString = "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" ; int cursorLocation = str . indexOf ( completeBehind ) + completeBehind . length ( ) - <NUM_LIT:1> ; checkMethodParse ( str . toCharArray ( ) , cursorLocation , expectedCompletionNodeToString , expectedUnitDisplayString , completionIdentifier , expectedReplacedSource , testName ) ; } public void testDA_1 ( ) { String str = "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" ; String testName = "<STR_LIT>" ; String completeBehind = "<STR_LIT>" ; String expectedCompletionNodeToString = "<STR_LIT>" ; String completionIdentifier = "<STR_LIT>" ; String expectedReplacedSource = "<STR_LIT>" ; int cursorLocation = str . indexOf ( "<STR_LIT>" ) + completeBehind . length ( ) - <NUM_LIT:1> ; String expectedUnitDisplayString = "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" ; checkMethodParse ( str . toCharArray ( ) , cursorLocation , expectedCompletionNodeToString , expectedUnitDisplayString , completionIdentifier , expectedReplacedSource , testName ) ; } public void testDA_2 ( ) { String str = "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" ; String completeBehind = "<STR_LIT>" ; String expectedCompletionNodeToString = "<STR_LIT>" ; String completionIdentifier = "<STR_LIT>" ; String expectedUnitDisplayString = "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" ; String expectedReplacedSource = "<STR_LIT>" ; String testName = "<STR_LIT>" ; int cursorLocation = str . indexOf ( completeBehind ) + completeBehind . length ( ) - <NUM_LIT:1> ; checkMethodParse ( str . toCharArray ( ) , cursorLocation , expectedCompletionNodeToString , expectedUnitDisplayString , completionIdentifier , expectedReplacedSource , testName ) ; } public void testDA_3 ( ) { String str = "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" ; String testName = "<STR_LIT>" ; String completeBehind = "<STR_LIT:r>" ; String expectedCompletionNodeToString = "<STR_LIT>" ; String completionIdentifier = "<STR_LIT:r>" ; String expectedReplacedSource = "<STR_LIT>" ; int cursorLocation = str . indexOf ( "<STR_LIT>" ) + completeBehind . length ( ) - <NUM_LIT:1> ; String expectedUnitDisplayString = "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" ; checkMethodParse ( str . toCharArray ( ) , cursorLocation , expectedCompletionNodeToString , expectedUnitDisplayString , completionIdentifier , expectedReplacedSource , testName ) ; } public void testDA_4 ( ) { String str = "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" ; String testName = "<STR_LIT>" ; String completeBehind = "<STR_LIT>" ; String expectedCompletionNodeToString = "<STR_LIT>" ; String completionIdentifier = "<STR_LIT>" ; String expectedReplacedSource = "<STR_LIT>" ; int cursorLocation = str . indexOf ( "<STR_LIT>" ) + completeBehind . length ( ) - <NUM_LIT:1> ; String expectedUnitDisplayString = "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" ; checkMethodParse ( str . toCharArray ( ) , cursorLocation , expectedCompletionNodeToString , expectedUnitDisplayString , completionIdentifier , expectedReplacedSource , testName ) ; } public void testDA_5 ( ) { String str = "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" ; String testName = "<STR_LIT>" ; String completeBehind = "<STR_LIT>" ; String expectedCompletionNodeToString = "<STR_LIT>" ; String completionIdentifier = "<STR_LIT>" ; String expectedReplacedSource = "<STR_LIT>" ; int cursorLocation = str . indexOf ( "<STR_LIT>" ) + completeBehind . length ( ) - <NUM_LIT:1> ; String expectedUnitDisplayString = "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" ; checkMethodParse ( str . toCharArray ( ) , cursorLocation , expectedCompletionNodeToString , expectedUnitDisplayString , completionIdentifier , expectedReplacedSource , testName ) ; } public void testDB_1FHSLDR ( ) { String str = "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" ; String testName = "<STR_LIT>" ; String completeBehind = "<STR_LIT>" ; String expectedCompletionNodeToString = "<STR_LIT>" ; String completionIdentifier = "<STR_LIT>" ; String expectedReplacedSource = "<STR_LIT>" ; int cursorLocation = str . indexOf ( "<STR_LIT>" ) + completeBehind . length ( ) - <NUM_LIT:1> ; String expectedUnitDisplayString = "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" ; checkMethodParse ( str . toCharArray ( ) , cursorLocation , expectedCompletionNodeToString , expectedUnitDisplayString , completionIdentifier , expectedReplacedSource , testName ) ; } public void testDC_1FJJ0JR_1 ( ) { String str = "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" ; String testName = "<STR_LIT>" ; String completeBehind = "<STR_LIT>" ; String expectedCompletionNodeToString = "<STR_LIT>" ; String completionIdentifier = "<STR_LIT>" ; String expectedReplacedSource = "<STR_LIT>" ; int cursorLocation = str . indexOf ( completeBehind ) + completeBehind . length ( ) - <NUM_LIT:1> ; String expectedUnitDisplayString = "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" ; checkDietParse ( str . toCharArray ( ) , cursorLocation , expectedCompletionNodeToString , expectedUnitDisplayString , completionIdentifier , expectedReplacedSource , testName ) ; } public void testE_1FG1YDS_1 ( ) { String str = "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" ; String testName = "<STR_LIT>" ; String completeBehind = "<STR_LIT:Y>" ; String expectedCompletionNodeToString = "<STR_LIT>" ; String completionIdentifier = "<STR_LIT:Y>" ; String expectedReplacedSource = "<STR_LIT:Y>" ; String expectedUnitDisplayString = "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" ; int cursorLocation = str . indexOf ( "<STR_LIT>" ) + completeBehind . length ( ) - <NUM_LIT:1> ; checkMethodParse ( str . toCharArray ( ) , cursorLocation , expectedCompletionNodeToString , expectedUnitDisplayString , completionIdentifier , expectedReplacedSource , testName ) ; } public void testE_1FG1YDS_2 ( ) { String str = "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" ; String testName = "<STR_LIT>" ; String completeBehind = "<STR_LIT>" ; String expectedCompletionNodeToString = "<STR_LIT>" ; String completionIdentifier = "<STR_LIT>" ; String expectedReplacedSource = "<STR_LIT>" ; String expectedUnitDisplayString = "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" ; int cursorLocation = str . indexOf ( completeBehind ) + completeBehind . length ( ) - <NUM_LIT:1> ; checkMethodParse ( str . toCharArray ( ) , cursorLocation , expectedCompletionNodeToString , expectedUnitDisplayString , completionIdentifier , expectedReplacedSource , testName ) ; } public void testE_1FG1YDS_3 ( ) { String str = "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" ; String testName = "<STR_LIT>" ; String completeBehind = "<STR_LIT>" ; String expectedCompletionNodeToString = "<STR_LIT>" ; String completionIdentifier = "<STR_LIT>" ; String expectedReplacedSource = "<STR_LIT>" ; int cursorLocation = str . indexOf ( completeBehind ) + completeBehind . length ( ) - <NUM_LIT:1> ; String expectedUnitDisplayString = "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" ; checkDietParse ( str . toCharArray ( ) , cursorLocation , expectedCompletionNodeToString , expectedUnitDisplayString , completionIdentifier , expectedReplacedSource , testName ) ; } public void testEA_1 ( ) { String str = "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" ; String testName = "<STR_LIT>" ; String completeBehind = "<STR_LIT:E>" ; String expectedCompletionNodeToString = "<STR_LIT>" ; String completionIdentifier = "<STR_LIT:E>" ; String expectedReplacedSource = "<STR_LIT>" ; String expectedUnitDisplayString = "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" ; int cursorLocation = str . indexOf ( "<STR_LIT>" ) + completeBehind . length ( ) - <NUM_LIT:1> ; checkMethodParse ( str . toCharArray ( ) , cursorLocation , expectedCompletionNodeToString , expectedUnitDisplayString , completionIdentifier , expectedReplacedSource , testName ) ; } public void testEA_2 ( ) { String str = "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" ; String testName = "<STR_LIT>" ; String completeBehind = "<STR_LIT>" ; String expectedCompletionNodeToString = "<STR_LIT>" ; String completionIdentifier = "<STR_LIT>" ; String expectedReplacedSource = "<STR_LIT>" ; String expectedUnitDisplayString = "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" ; int cursorLocation = str . indexOf ( completeBehind ) + completeBehind . length ( ) - <NUM_LIT:1> ; checkMethodParse ( str . toCharArray ( ) , cursorLocation , expectedCompletionNodeToString , expectedUnitDisplayString , completionIdentifier , expectedReplacedSource , testName ) ; } public void testEB_1FI74S3 ( ) { String str = "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" ; String testName = "<STR_LIT>" ; String completeBehind = "<STR_LIT>" ; String expectedCompletionNodeToString = "<STR_LIT>" ; String completionIdentifier = "<STR_LIT>" ; String expectedReplacedSource = "<STR_LIT>" ; String expectedUnitDisplayString = "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" ; int cursorLocation = str . indexOf ( completeBehind ) + completeBehind . length ( ) - <NUM_LIT:1> ; checkMethodParse ( str . toCharArray ( ) , cursorLocation , expectedCompletionNodeToString , expectedUnitDisplayString , completionIdentifier , expectedReplacedSource , testName ) ; } public void testEC_1FSBZ2Y ( ) { String str = "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" ; String testName = "<STR_LIT>" ; String completeBehind = "<STR_LIT>" ; String expectedCompletionNodeToString = "<STR_LIT>" ; String completionIdentifier = "<STR_LIT>" ; String expectedReplacedSource = "<STR_LIT>" ; String expectedUnitDisplayString = "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" ; int cursorLocation = str . indexOf ( "<STR_LIT>" ) + completeBehind . length ( ) - <NUM_LIT:1> ; checkMethodParse ( str . toCharArray ( ) , cursorLocation , expectedCompletionNodeToString , expectedUnitDisplayString , completionIdentifier , expectedReplacedSource , testName ) ; } public void testF ( ) { String str = "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" ; String testName = "<STR_LIT>" ; String completeBehind = "<STR_LIT>" ; String expectedCompletionNodeToString = "<STR_LIT>" ; String completionIdentifier = "<STR_LIT>" ; String expectedReplacedSource = "<STR_LIT>" ; String expectedUnitDisplayString = "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" ; int cursorLocation = str . indexOf ( "<STR_LIT>" ) + completeBehind . length ( ) - <NUM_LIT:1> ; checkMethodParse ( str . toCharArray ( ) , cursorLocation , expectedCompletionNodeToString , expectedUnitDisplayString , completionIdentifier , expectedReplacedSource , testName ) ; } public void testFA_1 ( ) { String str = "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" ; String testName = "<STR_LIT>" ; String completeBehind = "<STR_LIT:f>" ; String expectedCompletionNodeToString = "<STR_LIT>" ; String completionIdentifier = "<STR_LIT:f>" ; String expectedReplacedSource = "<STR_LIT:float>" ; String expectedUnitDisplayString = "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" ; int cursorLocation = str . indexOf ( "<STR_LIT>" ) + completeBehind . length ( ) - <NUM_LIT:1> ; checkMethodParse ( str . toCharArray ( ) , cursorLocation , expectedCompletionNodeToString , expectedUnitDisplayString , completionIdentifier , expectedReplacedSource , testName ) ; } public void testFA_2 ( ) { String str = "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" ; String testName = "<STR_LIT>" ; String completeBehind = "<STR_LIT>" ; String expectedCompletionNodeToString = "<STR_LIT>" ; String completionIdentifier = "<STR_LIT>" ; String expectedReplacedSource = "<STR_LIT:value>" ; String expectedUnitDisplayString = "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" ; int cursorLocation = str . indexOf ( "<STR_LIT>" ) + completeBehind . length ( ) - <NUM_LIT:1> ; checkMethodParse ( str . toCharArray ( ) , cursorLocation , expectedCompletionNodeToString , expectedUnitDisplayString , completionIdentifier , expectedReplacedSource , testName ) ; } public void testFB_1FI74S3 ( ) { String str = "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" ; String testName = "<STR_LIT>" ; String completeBehind = "<STR_LIT>" ; String expectedCompletionNodeToString = "<STR_LIT>" ; String completionIdentifier = "<STR_LIT>" ; String expectedReplacedSource = "<STR_LIT>" ; String expectedUnitDisplayString = "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" ; int cursorLocation = str . indexOf ( completeBehind ) + completeBehind . length ( ) - <NUM_LIT:1> ; checkMethodParse ( str . toCharArray ( ) , cursorLocation , expectedCompletionNodeToString , expectedUnitDisplayString , completionIdentifier , expectedReplacedSource , testName ) ; } public void testFC_1FSBZ9B ( ) { String str = "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" ; String testName = "<STR_LIT>" ; String completeBehind = "<STR_LIT:f>" ; String expectedCompletionNodeToString = "<STR_LIT>" ; String completionIdentifier = "<STR_LIT:f>" ; String expectedReplacedSource = "<STR_LIT:f>" ; int cursorLocation = str . indexOf ( "<STR_LIT>" ) + completeBehind . length ( ) - <NUM_LIT:1> ; String expectedUnitDisplayString = "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" ; checkMethodParse ( str . toCharArray ( ) , cursorLocation , expectedCompletionNodeToString , expectedUnitDisplayString , completionIdentifier , expectedReplacedSource , testName ) ; } public void testG ( ) { String str = "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" ; String testName = "<STR_LIT>" ; String completeBehind = "<STR_LIT:b>" ; String expectedCompletionNodeToString = "<STR_LIT>" ; String completionIdentifier = "<STR_LIT:b>" ; String expectedReplacedSource = "<STR_LIT:b>" ; String expectedUnitDisplayString = "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" ; int cursorLocation = str . indexOf ( "<STR_LIT>" ) + completeBehind . length ( ) - <NUM_LIT:1> ; checkMethodParse ( str . toCharArray ( ) , cursorLocation , expectedCompletionNodeToString , expectedUnitDisplayString , completionIdentifier , expectedReplacedSource , testName ) ; } public void testGA ( ) { String str = "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" ; String testName = "<STR_LIT>" ; String completeBehind = "<STR_LIT:s>" ; String expectedCompletionNodeToString = "<STR_LIT>" ; String completionIdentifier = "<STR_LIT:s>" ; String expectedReplacedSource = "<STR_LIT:s>" ; int cursorLocation = str . indexOf ( "<STR_LIT>" ) + completeBehind . length ( ) - <NUM_LIT:1> ; String expectedUnitDisplayString = "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" ; checkMethodParse ( str . toCharArray ( ) , cursorLocation , expectedCompletionNodeToString , expectedUnitDisplayString , completionIdentifier , expectedReplacedSource , testName ) ; } public void testGB_1FI74S3 ( ) { String str = "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" ; String testName = "<STR_LIT>" ; String completeBehind = "<STR_LIT>" ; String expectedCompletionNodeToString = "<STR_LIT>" ; String completionIdentifier = "<STR_LIT>" ; String expectedReplacedSource = "<STR_LIT>" ; int cursorLocation = str . indexOf ( completeBehind ) + completeBehind . length ( ) - <NUM_LIT:1> ; String expectedUnitDisplayString = "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" ; checkMethodParse ( str . toCharArray ( ) , cursorLocation , expectedCompletionNodeToString , expectedUnitDisplayString , completionIdentifier , expectedReplacedSource , testName ) ; } public void testGC_1FSHLHV_1 ( ) { String str = "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" ; String testName = "<STR_LIT>" ; String completeBehind = "<STR_LIT>" ; String expectedCompletionNodeToString = "<STR_LIT>" ; String completionIdentifier = "<STR_LIT>" ; String expectedReplacedSource = "<STR_LIT>" ; int cursorLocation = str . indexOf ( "<STR_LIT>" ) + completeBehind . length ( ) - <NUM_LIT:1> ; String expectedUnitDisplayString = "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" ; checkMethodParse ( str . toCharArray ( ) , cursorLocation , expectedCompletionNodeToString , expectedUnitDisplayString , completionIdentifier , expectedReplacedSource , testName ) ; } public void testGC_1FSHLHV_2 ( ) { String str = "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" ; String testName = "<STR_LIT>" ; String completeBehind = "<STR_LIT>" ; String expectedCompletionNodeToString = "<STR_LIT>" ; String completionIdentifier = "<STR_LIT>" ; String expectedReplacedSource = "<STR_LIT>" ; int cursorLocation = str . indexOf ( completeBehind ) + completeBehind . length ( ) - <NUM_LIT:1> ; String expectedUnitDisplayString = "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" ; checkMethodParse ( str . toCharArray ( ) , cursorLocation , expectedCompletionNodeToString , expectedUnitDisplayString , completionIdentifier , expectedReplacedSource , testName ) ; } public void testGC_1FSHLHV_3 ( ) { String str = "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" ; String testName = "<STR_LIT>" ; String completeBehind = "<STR_LIT>" ; String expectedCompletionNodeToString = "<STR_LIT>" ; String completionIdentifier = "<STR_LIT>" ; String expectedReplacedSource = "<STR_LIT>" ; int cursorLocation = str . indexOf ( completeBehind ) + completeBehind . length ( ) - <NUM_LIT:1> ; String expectedUnitDisplayString = "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" ; checkMethodParse ( str . toCharArray ( ) , cursorLocation , expectedCompletionNodeToString , expectedUnitDisplayString , completionIdentifier , expectedReplacedSource , testName ) ; } public void testGC_1FSHLHV_4 ( ) { String str = "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" ; String testName = "<STR_LIT>" ; String completeBehind = "<STR_LIT>" ; String expectedCompletionNodeToString = "<STR_LIT>" ; String completionIdentifier = "<STR_LIT>" ; String expectedReplacedSource = "<STR_LIT>" ; int cursorLocation = str . indexOf ( completeBehind ) + completeBehind . length ( ) - <NUM_LIT:1> ; String expectedUnitDisplayString = "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" ; checkMethodParse ( str . toCharArray ( ) , cursorLocation , expectedCompletionNodeToString , expectedUnitDisplayString , completionIdentifier , expectedReplacedSource , testName ) ; } public void testH ( ) { String str = "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" ; String testName = "<STR_LIT>" ; String completeBehind = "<STR_LIT>" ; String expectedCompletionNodeToString = "<STR_LIT>" ; String completionIdentifier = "<STR_LIT>" ; String expectedReplacedSource = "<STR_LIT>" ; int cursorLocation = str . indexOf ( completeBehind ) + completeBehind . length ( ) - <NUM_LIT:1> ; String expectedUnitDisplayString = "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" ; checkMethodParse ( str . toCharArray ( ) , cursorLocation , expectedCompletionNodeToString , expectedUnitDisplayString , completionIdentifier , expectedReplacedSource , testName ) ; } public void testHA_1 ( ) { String str = "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" ; String testName = "<STR_LIT>" ; String completeBehind = "<STR_LIT>" ; String expectedCompletionNodeToString = "<STR_LIT>" ; String completionIdentifier = "<STR_LIT>" ; String expectedReplacedSource = "<STR_LIT>" ; int cursorLocation = str . indexOf ( completeBehind ) + completeBehind . length ( ) - <NUM_LIT:1> ; String expectedUnitDisplayString = "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" ; checkMethodParse ( str . toCharArray ( ) , cursorLocation , expectedCompletionNodeToString , expectedUnitDisplayString , completionIdentifier , expectedReplacedSource , testName ) ; } public void testHA_2 ( ) { String str = "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" ; String testName = "<STR_LIT>" ; String completeBehind = "<STR_LIT>" ; String expectedCompletionNodeToString = "<STR_LIT>" ; String completionIdentifier = "<STR_LIT>" ; String expectedReplacedSource = "<STR_LIT>" ; int cursorLocation = str . indexOf ( completeBehind ) + completeBehind . length ( ) - <NUM_LIT:1> ; String expectedUnitDisplayString = "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" ; checkMethodParse ( str . toCharArray ( ) , cursorLocation , expectedCompletionNodeToString , expectedUnitDisplayString , completionIdentifier , expectedReplacedSource , testName ) ; } public void testHB_1FHSLDR ( ) { String str = "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" ; String testName = "<STR_LIT>" ; String completeBehind = "<STR_LIT>" ; String expectedCompletionNodeToString = "<STR_LIT>" ; String completionIdentifier = "<STR_LIT>" ; String expectedReplacedSource = "<STR_LIT>" ; int cursorLocation = str . indexOf ( "<STR_LIT>" ) + completeBehind . length ( ) - <NUM_LIT:1> ; String expectedUnitDisplayString = "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" ; checkMethodParse ( str . toCharArray ( ) , cursorLocation , expectedCompletionNodeToString , expectedUnitDisplayString , completionIdentifier , expectedReplacedSource , testName ) ; } public void testHC_1FMPYO3_1 ( ) { String str = "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" ; String testName = "<STR_LIT>" ; String completeBehind = "<STR_LIT>" ; String expectedCompletionNodeToString = "<STR_LIT>" ; String completionIdentifier = "<STR_LIT>" ; String expectedReplacedSource = "<STR_LIT>" ; int cursorLocation = str . indexOf ( completeBehind ) + completeBehind . length ( ) - <NUM_LIT:1> ; String expectedUnitDisplayString = "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" ; checkMethodParse ( str . toCharArray ( ) , cursorLocation , expectedCompletionNodeToString , expectedUnitDisplayString , completionIdentifier , expectedReplacedSource , testName ) ; } public void testHC_1FMPYO3_2 ( ) { String str = "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" ; String testName = "<STR_LIT>" ; String completeBehind = "<STR_LIT>" ; String expectedCompletionNodeToString = "<STR_LIT>" ; String completionIdentifier = "<STR_LIT>" ; String expectedReplacedSource = "<STR_LIT>" ; int cursorLocation = str . indexOf ( "<STR_LIT>" ) + completeBehind . length ( ) - <NUM_LIT:1> ; String expectedUnitDisplayString = "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" ; checkMethodParse ( str . toCharArray ( ) , cursorLocation , expectedCompletionNodeToString , expectedUnitDisplayString , completionIdentifier , expectedReplacedSource , testName ) ; } public void testI ( ) { String str = "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" ; String testName = "<STR_LIT>" ; String completeBehind = "<STR_LIT:C>" ; String expectedCompletionNodeToString = "<STR_LIT>" ; String completionIdentifier = "<STR_LIT:C>" ; String expectedReplacedSource = "<STR_LIT>" ; int cursorLocation = str . indexOf ( completeBehind ) + completeBehind . length ( ) - <NUM_LIT:1> ; String expectedUnitDisplayString = "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" ; checkDietParse ( str . toCharArray ( ) , cursorLocation , expectedCompletionNodeToString , expectedUnitDisplayString , completionIdentifier , expectedReplacedSource , testName ) ; } public void testIA_1FGNBPR_1 ( ) { String str = "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" ; String testName = "<STR_LIT>" ; String completeBehind = "<STR_LIT>" ; String expectedCompletionNodeToString = "<STR_LIT>" ; String completionIdentifier = "<STR_LIT>" ; String expectedReplacedSource = "<STR_LIT>" ; int cursorLocation = str . indexOf ( "<STR_LIT>" ) + completeBehind . length ( ) - <NUM_LIT:1> ; String expectedUnitDisplayString = "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" ; checkMethodParse ( str . toCharArray ( ) , cursorLocation , expectedCompletionNodeToString , expectedUnitDisplayString , completionIdentifier , expectedReplacedSource , testName ) ; } public void testIA_1FGNBPR_2 ( ) { String str = "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" ; String testName = "<STR_LIT>" ; String completeBehind = "<STR_LIT>" ; String expectedCompletionNodeToString = "<STR_LIT>" ; String completionIdentifier = "<STR_LIT>" ; String expectedReplacedSource = "<STR_LIT>" ; int cursorLocation = str . indexOf ( "<STR_LIT>" , str . indexOf ( "<STR_LIT>" ) + <NUM_LIT:1> ) + completeBehind . length ( ) - <NUM_LIT:1> ; String expectedUnitDisplayString = "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" ; checkMethodParse ( str . toCharArray ( ) , cursorLocation , expectedCompletionNodeToString , expectedUnitDisplayString , completionIdentifier , expectedReplacedSource , testName ) ; } public void testIB ( ) { String str = "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" ; String testName = "<STR_LIT>" ; String completeBehind = "<STR_LIT>" ; String expectedCompletionNodeToString = "<STR_LIT>" ; String completionIdentifier = "<STR_LIT>" ; String expectedReplacedSource = "<STR_LIT>" ; int cursorLocation = str . indexOf ( completeBehind ) + completeBehind . length ( ) - <NUM_LIT:1> ; String expectedUnitDisplayString = "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" ; checkMethodParse ( str . toCharArray ( ) , cursorLocation , expectedCompletionNodeToString , expectedUnitDisplayString , completionIdentifier , expectedReplacedSource , testName ) ; } public void testIC_1FMGUPR ( ) { String str = "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" ; String testName = "<STR_LIT>" ; String completeBehind = "<STR_LIT>" ; String expectedCompletionNodeToString = "<STR_LIT>" ; String completionIdentifier = "<STR_LIT>" ; String expectedReplacedSource = "<STR_LIT>" ; int cursorLocation = str . indexOf ( completeBehind ) + completeBehind . length ( ) - <NUM_LIT:1> ; String expectedUnitDisplayString = "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" ; checkMethodParse ( str . toCharArray ( ) , cursorLocation , expectedCompletionNodeToString , expectedUnitDisplayString , completionIdentifier , expectedReplacedSource , testName ) ; } public void testJ ( ) { String str = "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" ; String testName = "<STR_LIT>" ; String completeBehind = "<STR_LIT:f>" ; String expectedCompletionNodeToString = "<STR_LIT>" ; String completionIdentifier = "<STR_LIT:f>" ; String expectedReplacedSource = "<STR_LIT:f>" ; int cursorLocation = str . indexOf ( "<STR_LIT>" ) + completeBehind . length ( ) - <NUM_LIT:1> ; String expectedUnitDisplayString = "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" ; checkMethodParse ( str . toCharArray ( ) , cursorLocation , expectedCompletionNodeToString , expectedUnitDisplayString , completionIdentifier , expectedReplacedSource , testName ) ; } public void testJA_1FGQVW2_1 ( ) { String str = "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" ; String testName = "<STR_LIT>" ; String completeBehind = "<STR_LIT>" ; String expectedCompletionNodeToString = "<STR_LIT>" ; String completionIdentifier = "<STR_LIT>" ; String expectedReplacedSource = "<STR_LIT>" ; int cursorLocation = str . indexOf ( completeBehind ) + completeBehind . length ( ) - <NUM_LIT:1> ; String expectedUnitDisplayString = "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" ; checkMethodParse ( str . toCharArray ( ) , cursorLocation , expectedCompletionNodeToString , expectedUnitDisplayString , completionIdentifier , expectedReplacedSource , testName ) ; } public void testJA_1FGQVW2_2 ( ) { String str = "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" ; String testName = "<STR_LIT>" ; String completeBehind = "<STR_LIT>" ; String expectedCompletionNodeToString = "<STR_LIT>" ; String completionIdentifier = "<STR_LIT>" ; String expectedReplacedSource = "<STR_LIT>" ; int cursorLocation = str . indexOf ( completeBehind ) + completeBehind . length ( ) - <NUM_LIT:1> ; String expectedUnitDisplayString = "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" ; checkMethodParse ( str . toCharArray ( ) , cursorLocation , expectedCompletionNodeToString , expectedUnitDisplayString , completionIdentifier , expectedReplacedSource , testName ) ; } public void testJB ( ) { String str = "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" ; String testName = "<STR_LIT>" ; String completeBehind = "<STR_LIT:f>" ; String expectedCompletionNodeToString = "<STR_LIT>" ; String completionIdentifier = "<STR_LIT:f>" ; String expectedReplacedSource = "<STR_LIT:f>" ; int cursorLocation = str . indexOf ( "<STR_LIT>" ) + completeBehind . length ( ) - <NUM_LIT:1> ; String expectedUnitDisplayString = "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" ; checkMethodParse ( str . toCharArray ( ) , cursorLocation , expectedCompletionNodeToString , expectedUnitDisplayString , completionIdentifier , expectedReplacedSource , testName ) ; } public void testJC_1FLG1ZC ( ) { String str = "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" ; String testName = "<STR_LIT>" ; String completeBehind = "<STR_LIT>" ; String expectedCompletionNodeToString = "<STR_LIT>" ; String completionIdentifier = "<STR_LIT>" ; String expectedReplacedSource = "<STR_LIT>" ; int cursorLocation = str . indexOf ( completeBehind ) + completeBehind . length ( ) - <NUM_LIT:1> ; String expectedUnitDisplayString = "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" ; checkMethodParse ( str . toCharArray ( ) , cursorLocation , expectedCompletionNodeToString , expectedUnitDisplayString , completionIdentifier , expectedReplacedSource , testName ) ; } public void testK_1 ( ) { String str = "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" ; String testName = "<STR_LIT>" ; String completeBehind = "<STR_LIT>" ; String expectedCompletionNodeToString = "<STR_LIT>" ; String completionIdentifier = "<STR_LIT>" ; String expectedReplacedSource = "<STR_LIT>" ; int cursorLocation = str . indexOf ( completeBehind ) + completeBehind . length ( ) - <NUM_LIT:1> ; String expectedUnitDisplayString = "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" ; checkMethodParse ( str . toCharArray ( ) , cursorLocation , expectedCompletionNodeToString , expectedUnitDisplayString , completionIdentifier , expectedReplacedSource , testName ) ; } public void testK_2 ( ) { String str = "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" ; String testName = "<STR_LIT>" ; String completeBehind = "<STR_LIT>" ; String expectedCompletionNodeToString = "<STR_LIT>" ; String completionIdentifier = "<STR_LIT>" ; String expectedReplacedSource = "<STR_LIT>" ; int cursorLocation = str . indexOf ( "<STR_LIT>" ) + completeBehind . length ( ) - <NUM_LIT:1> ; String expectedUnitDisplayString = "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" ; checkMethodParse ( str . toCharArray ( ) , cursorLocation , expectedCompletionNodeToString , expectedUnitDisplayString , completionIdentifier , expectedReplacedSource , testName ) ; } public void testK_3 ( ) { String str = "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" ; String testName = "<STR_LIT>" ; String completeBehind = "<STR_LIT>" ; String expectedCompletionNodeToString = "<STR_LIT>" ; String completionIdentifier = "<STR_LIT>" ; String expectedReplacedSource = "<STR_LIT>" ; int cursorLocation = str . indexOf ( "<STR_LIT>" ) + completeBehind . length ( ) - <NUM_LIT:1> ; String expectedUnitDisplayString = "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" ; checkMethodParse ( str . toCharArray ( ) , cursorLocation , expectedCompletionNodeToString , expectedUnitDisplayString , completionIdentifier , expectedReplacedSource , testName ) ; } public void testK_4 ( ) { String str = "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" ; String testName = "<STR_LIT>" ; String completeBehind = "<STR_LIT>" ; String expectedCompletionNodeToString = "<STR_LIT>" ; String completionIdentifier = "<STR_LIT>" ; String expectedReplacedSource = "<STR_LIT>" ; int cursorLocation = str . indexOf ( completeBehind ) + completeBehind . length ( ) - <NUM_LIT:1> ; String expectedUnitDisplayString = "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" ; checkMethodParse ( str . toCharArray ( ) , cursorLocation , expectedCompletionNodeToString , expectedUnitDisplayString , completionIdentifier , expectedReplacedSource , testName ) ; } public void testKA_1FH5SU5 ( ) { String str = "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" ; String testName = "<STR_LIT>" ; String completeBehind = "<STR_LIT>" ; String expectedCompletionNodeToString = "<STR_LIT>" ; String completionIdentifier = "<STR_LIT>" ; String expectedReplacedSource = "<STR_LIT>" ; int cursorLocation = str . indexOf ( completeBehind ) + completeBehind . length ( ) - <NUM_LIT:1> ; String expectedUnitDisplayString = "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" ; checkMethodParse ( str . toCharArray ( ) , cursorLocation , expectedCompletionNodeToString , expectedUnitDisplayString , completionIdentifier , expectedReplacedSource , testName ) ; } public void testKB ( ) { String str = "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" ; String testName = "<STR_LIT>" ; String completeBehind = "<STR_LIT>" ; String expectedCompletionNodeToString = NONE ; String completionIdentifier = "<STR_LIT:i>" ; String expectedReplacedSource = "<STR_LIT:i>" ; int cursorLocation = str . indexOf ( completeBehind ) + completeBehind . length ( ) - <NUM_LIT:1> ; String expectedUnitDisplayString = "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" ; checkDietParse ( str . toCharArray ( ) , cursorLocation , expectedCompletionNodeToString , expectedUnitDisplayString , completionIdentifier , expectedReplacedSource , testName ) ; } public void testKC_1FLG1ZC ( ) { String str = "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" ; String testName = "<STR_LIT>" ; String completeBehind = "<STR_LIT>" ; String expectedCompletionNodeToString = "<STR_LIT>" ; String completionIdentifier = "<STR_LIT:t>" ; String expectedReplacedSource = "<STR_LIT>" ; int cursorLocation = str . indexOf ( completeBehind ) + completeBehind . length ( ) - <NUM_LIT:1> ; String expectedUnitDisplayString = "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" ; checkMethodParse ( str . toCharArray ( ) , cursorLocation , expectedCompletionNodeToString , expectedUnitDisplayString , completionIdentifier , expectedReplacedSource , testName ) ; } public void testL_1 ( ) { String str = "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" ; String testName = "<STR_LIT>" ; String completeBehind = "<STR_LIT>" ; String expectedCompletionNodeToString = "<STR_LIT>" ; String completionIdentifier = "<STR_LIT>" ; String expectedReplacedSource = "<STR_LIT>" ; int cursorLocation = str . indexOf ( completeBehind ) + completeBehind . length ( ) - <NUM_LIT:1> ; String expectedUnitDisplayString = "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" ; checkMethodParse ( str . toCharArray ( ) , cursorLocation , expectedCompletionNodeToString , expectedUnitDisplayString , completionIdentifier , expectedReplacedSource , testName ) ; } public void testL_2 ( ) { String str = "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" ; String testName = "<STR_LIT>" ; String completeBehind = "<STR_LIT>" ; String expectedCompletionNodeToString = "<STR_LIT>" ; String completionIdentifier = "<STR_LIT>" ; String expectedReplacedSource = "<STR_LIT>" ; int cursorLocation = str . indexOf ( completeBehind ) + completeBehind . length ( ) - <NUM_LIT:1> ; String expectedUnitDisplayString = "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" ; checkMethodParse ( str . toCharArray ( ) , cursorLocation , expectedCompletionNodeToString , expectedUnitDisplayString , completionIdentifier , expectedReplacedSource , testName ) ; } public void testL_3 ( ) { String str = "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" ; String testName = "<STR_LIT>" ; String completeBehind = "<STR_LIT:int>" ; String expectedCompletionNodeToString = "<STR_LIT>" ; String completionIdentifier = "<STR_LIT:int>" ; String expectedReplacedSource = "<STR_LIT:int>" ; int cursorLocation = str . indexOf ( completeBehind ) + completeBehind . length ( ) - <NUM_LIT:1> ; String expectedUnitDisplayString = "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" ; checkMethodParse ( str . toCharArray ( ) , cursorLocation , expectedCompletionNodeToString , expectedUnitDisplayString , completionIdentifier , expectedReplacedSource , testName ) ; } public void testLA_1FGLMOF ( ) { String str = "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" ; String testName = "<STR_LIT>" ; String completeBehind = "<STR_LIT:f>" ; String expectedCompletionNodeToString = "<STR_LIT>" ; String completionIdentifier = "<STR_LIT:f>" ; String expectedReplacedSource = "<STR_LIT:f>" ; int cursorLocation = str . indexOf ( "<STR_LIT>" ) + completeBehind . length ( ) - <NUM_LIT:1> ; String expectedUnitDisplayString = "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" ; checkMethodParse ( str . toCharArray ( ) , cursorLocation , expectedCompletionNodeToString , expectedUnitDisplayString , completionIdentifier , expectedReplacedSource , testName ) ; } public void testLB ( ) { String str = "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" ; String testName = "<STR_LIT>" ; String completeBehind = "<STR_LIT:i>" ; String expectedCompletionNodeToString = "<STR_LIT>" ; String completionIdentifier = "<STR_LIT:i>" ; String expectedReplacedSource = "<STR_LIT:i>" ; int cursorLocation = str . indexOf ( "<STR_LIT>" ) + completeBehind . length ( ) - <NUM_LIT:1> ; String expectedUnitDisplayString = "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" ; checkMethodParse ( str . toCharArray ( ) , cursorLocation , expectedCompletionNodeToString , expectedUnitDisplayString , completionIdentifier , expectedReplacedSource , testName ) ; } public void testLC_1FLG1E2 ( ) { String str = "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" ; String testName = "<STR_LIT>" ; String completeBehind = "<STR_LIT>" ; String expectedCompletionNodeToString = "<STR_LIT>" ; String completionIdentifier = "<STR_LIT>" ; String expectedReplacedSource = "<STR_LIT>" ; int cursorLocation = str . indexOf ( completeBehind ) + completeBehind . length ( ) - <NUM_LIT:1> ; String expectedUnitDisplayString = "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" ; checkMethodParse ( str . toCharArray ( ) , cursorLocation , expectedCompletionNodeToString , expectedUnitDisplayString , completionIdentifier , expectedReplacedSource , testName ) ; } public void testM_1FGGLMT ( ) { String str = "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" ; String testName = "<STR_LIT>" ; String completeBehind = "<STR_LIT>" ; String expectedCompletionNodeToString = "<STR_LIT>" ; String completionIdentifier = "<STR_LIT>" ; String expectedReplacedSource = "<STR_LIT>" ; int cursorLocation = str . indexOf ( completeBehind ) + completeBehind . length ( ) - <NUM_LIT:1> ; String expectedUnitDisplayString = "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" ; checkMethodParse ( str . toCharArray ( ) , cursorLocation , expectedCompletionNodeToString , expectedUnitDisplayString , completionIdentifier , expectedReplacedSource , testName ) ; } public void testMA_1 ( ) { String str = "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" ; String testName = "<STR_LIT>" ; String completeBehind = "<STR_LIT>" ; String expectedCompletionNodeToString = "<STR_LIT>" ; String completionIdentifier = "<STR_LIT>" ; String expectedReplacedSource = "<STR_LIT>" ; int cursorLocation = str . indexOf ( "<STR_LIT>" ) + completeBehind . length ( ) - <NUM_LIT:1> ; String expectedUnitDisplayString = "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" ; checkMethodParse ( str . toCharArray ( ) , cursorLocation , expectedCompletionNodeToString , expectedUnitDisplayString , completionIdentifier , expectedReplacedSource , testName ) ; } public void testMA_2 ( ) { String str = "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" ; String testName = "<STR_LIT>" ; String completeBehind = "<STR_LIT>" ; String expectedCompletionNodeToString = "<STR_LIT>" ; String completionIdentifier = "<STR_LIT>" ; String expectedReplacedSource = "<STR_LIT>" ; int cursorLocation = str . indexOf ( "<STR_LIT>" ) + completeBehind . length ( ) - <NUM_LIT:1> ; String expectedUnitDisplayString = "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" ; checkMethodParse ( str . toCharArray ( ) , cursorLocation , expectedCompletionNodeToString , expectedUnitDisplayString , completionIdentifier , expectedReplacedSource , testName ) ; } public void testMA_3 ( ) { String str = "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" ; String testName = "<STR_LIT>" ; String completeBehind = "<STR_LIT>" ; String expectedCompletionNodeToString = "<STR_LIT>" ; String completionIdentifier = "<STR_LIT>" ; String expectedReplacedSource = "<STR_LIT>" ; int cursorLocation = str . indexOf ( completeBehind ) + completeBehind . length ( ) - <NUM_LIT:1> ; String expectedUnitDisplayString = "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" ; checkMethodParse ( str . toCharArray ( ) , cursorLocation , expectedCompletionNodeToString , expectedUnitDisplayString , completionIdentifier , expectedReplacedSource , testName ) ; } public void testMB_1FHSLMQ_1 ( ) { String str = "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" ; String testName = "<STR_LIT>" ; String completeBehind = "<STR_LIT:e>" ; String expectedCompletionNodeToString = "<STR_LIT>" ; String completionIdentifier = "<STR_LIT:e>" ; String expectedReplacedSource = "<STR_LIT:e>" ; int cursorLocation = str . indexOf ( "<STR_LIT>" ) + completeBehind . length ( ) - <NUM_LIT:1> ; String expectedUnitDisplayString = "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" ; checkMethodParse ( str . toCharArray ( ) , cursorLocation , expectedCompletionNodeToString , expectedUnitDisplayString , completionIdentifier , expectedReplacedSource , testName ) ; } public void testMB_1FHSLMQ_2 ( ) { String str = "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" ; String testName = "<STR_LIT>" ; String completeBehind = "<STR_LIT:e>" ; String expectedCompletionNodeToString = "<STR_LIT>" ; String completionIdentifier = "<STR_LIT:e>" ; String expectedReplacedSource = "<STR_LIT:e>" ; int cursorLocation = str . indexOf ( "<STR_LIT>" ) + completeBehind . length ( ) - <NUM_LIT:1> ; String expectedUnitDisplayString = "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" ; checkMethodParse ( str . toCharArray ( ) , cursorLocation , expectedCompletionNodeToString , expectedUnitDisplayString , completionIdentifier , expectedReplacedSource , testName ) ; } public void testMC_1FJ8D9Z ( ) { String str = "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" ; String testName = "<STR_LIT>" ; String completeBehind = "<STR_LIT>" ; String expectedCompletionNodeToString = "<STR_LIT>" ; String completionIdentifier = "<STR_LIT>" ; String expectedReplacedSource = "<STR_LIT>" ; int cursorLocation = str . indexOf ( completeBehind ) + completeBehind . length ( ) - <NUM_LIT:1> ; String expectedUnitDisplayString = "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" ; checkMethodParse ( str . toCharArray ( ) , cursorLocation , expectedCompletionNodeToString , expectedUnitDisplayString , completionIdentifier , expectedReplacedSource , testName ) ; } public void testN ( ) { String str = "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" ; String testName = "<STR_LIT>" ; String completeBehind = "<STR_LIT>" ; String expectedCompletionNodeToString = "<STR_LIT>" ; String completionIdentifier = "<STR_LIT:M>" ; String expectedReplacedSource = "<STR_LIT:M>" ; int cursorLocation = str . indexOf ( completeBehind ) + completeBehind . length ( ) - <NUM_LIT:1> ; String expectedUnitDisplayString = "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" ; checkMethodParse ( str . toCharArray ( ) , cursorLocation , expectedCompletionNodeToString , expectedUnitDisplayString , completionIdentifier , expectedReplacedSource , testName ) ; } public void testNA_1 ( ) { String str = "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" ; String testName = "<STR_LIT>" ; String completeBehind = "<STR_LIT>" ; String expectedCompletionNodeToString = "<STR_LIT>" ; String completionIdentifier = "<STR_LIT>" ; String expectedReplacedSource = "<STR_LIT>" ; int cursorLocation = str . indexOf ( "<STR_LIT>" ) + completeBehind . length ( ) - <NUM_LIT:1> ; String expectedUnitDisplayString = "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" ; checkMethodParse ( str . toCharArray ( ) , cursorLocation , expectedCompletionNodeToString , expectedUnitDisplayString , completionIdentifier , expectedReplacedSource , testName ) ; } public void testNA_2 ( ) { String str = "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" ; String testName = "<STR_LIT>" ; String completeBehind = "<STR_LIT>" ; String expectedCompletionNodeToString = "<STR_LIT>" ; String completionIdentifier = "<STR_LIT:f>" ; String expectedReplacedSource = "<STR_LIT>" ; int cursorLocation = str . indexOf ( completeBehind ) + completeBehind . length ( ) - <NUM_LIT:1> ; String expectedUnitDisplayString = "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" ; checkMethodParse ( str . toCharArray ( ) , cursorLocation , expectedCompletionNodeToString , expectedUnitDisplayString , completionIdentifier , expectedReplacedSource , testName ) ; } public void testNA_3 ( ) { String str = "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" ; String testName = "<STR_LIT>" ; String completeBehind = "<STR_LIT>" ; String expectedCompletionNodeToString = "<STR_LIT>" ; String completionIdentifier = "<STR_LIT>" ; String expectedReplacedSource = "<STR_LIT>" ; int cursorLocation = str . indexOf ( completeBehind ) + completeBehind . length ( ) - <NUM_LIT:1> ; String expectedUnitDisplayString = "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" ; checkMethodParse ( str . toCharArray ( ) , cursorLocation , expectedCompletionNodeToString , expectedUnitDisplayString , completionIdentifier , expectedReplacedSource , testName ) ; } public void testNB ( ) { String str = "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" ; String testName = "<STR_LIT>" ; String completeBehind = "<STR_LIT:i>" ; String expectedCompletionNodeToString = "<STR_LIT>" ; String completionIdentifier = "<STR_LIT:i>" ; String expectedReplacedSource = "<STR_LIT:i>" ; int cursorLocation = str . indexOf ( "<STR_LIT>" ) + completeBehind . length ( ) - <NUM_LIT:1> ; String expectedUnitDisplayString = "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" ; checkMethodParse ( str . toCharArray ( ) , cursorLocation , expectedCompletionNodeToString , expectedUnitDisplayString , completionIdentifier , expectedReplacedSource , testName ) ; } public void testNC_1FJ8D9Z ( ) { String str = "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" ; String testName = "<STR_LIT>" ; String completeBehind = "<STR_LIT>" ; String expectedCompletionNodeToString = "<STR_LIT>" ; String completionIdentifier = "<STR_LIT>" ; String expectedReplacedSource = "<STR_LIT>" ; int cursorLocation = str . indexOf ( completeBehind ) + completeBehind . length ( ) - <NUM_LIT:1> ; String expectedUnitDisplayString = "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" ; checkDietParse ( str . toCharArray ( ) , cursorLocation , expectedCompletionNodeToString , expectedUnitDisplayString , completionIdentifier , expectedReplacedSource , testName ) ; } public void testO_1FG1YU0 ( ) { String str = "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" ; String testName = "<STR_LIT>" ; String completeBehind = "<STR_LIT>" ; String expectedCompletionNodeToString = "<STR_LIT>" ; String completionIdentifier = "<STR_LIT>" ; String expectedReplacedSource = "<STR_LIT>" ; int cursorLocation = str . indexOf ( completeBehind ) + completeBehind . length ( ) - <NUM_LIT:1> ; String expectedUnitDisplayString = "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" ; checkMethodParse ( str . toCharArray ( ) , cursorLocation , expectedCompletionNodeToString , expectedUnitDisplayString , completionIdentifier , expectedReplacedSource , testName ) ; } public void testOA_1 ( ) { String str = "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" ; String testName = "<STR_LIT>" ; String completeBehind = "<STR_LIT>" ; String expectedCompletionNodeToString = "<STR_LIT>" ; String completionIdentifier = "<STR_LIT:n>" ; String expectedReplacedSource = "<STR_LIT>" ; int cursorLocation = str . indexOf ( completeBehind ) + completeBehind . length ( ) - <NUM_LIT:1> ; String expectedUnitDisplayString = "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" ; checkMethodParse ( str . toCharArray ( ) , cursorLocation , expectedCompletionNodeToString , expectedUnitDisplayString , completionIdentifier , expectedReplacedSource , testName ) ; } public void testOA_2 ( ) { String str = "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" ; String testName = "<STR_LIT>" ; String completeBehind = "<STR_LIT>" ; String expectedCompletionNodeToString = "<STR_LIT>" ; String completionIdentifier = "<STR_LIT>" ; String expectedReplacedSource = "<STR_LIT>" ; int cursorLocation = str . indexOf ( "<STR_LIT>" ) + completeBehind . length ( ) - <NUM_LIT:1> ; String expectedUnitDisplayString = "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" ; checkMethodParse ( str . toCharArray ( ) , cursorLocation , expectedCompletionNodeToString , expectedUnitDisplayString , completionIdentifier , expectedReplacedSource , testName ) ; } public void testOB_1 ( ) { String str = "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" ; String testName = "<STR_LIT>" ; String completeBehind = "<STR_LIT:b>" ; String expectedCompletionNodeToString = "<STR_LIT>" ; String completionIdentifier = "<STR_LIT:b>" ; String expectedReplacedSource = "<STR_LIT>" ; int cursorLocation = str . indexOf ( "<STR_LIT>" ) + completeBehind . length ( ) - <NUM_LIT:1> ; String expectedUnitDisplayString = "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" ; checkMethodParse ( str . toCharArray ( ) , cursorLocation , expectedCompletionNodeToString , expectedUnitDisplayString , completionIdentifier , expectedReplacedSource , testName ) ; } public void testOB_2 ( ) { String str = "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" ; String testName = "<STR_LIT>" ; String completeBehind = "<STR_LIT>" ; String expectedCompletionNodeToString = "<STR_LIT>" ; String completionIdentifier = "<STR_LIT>" ; String expectedReplacedSource = "<STR_LIT:label>" ; int cursorLocation = str . indexOf ( "<STR_LIT:label>" ) + completeBehind . length ( ) - <NUM_LIT:1> ; String expectedUnitDisplayString = "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" ; checkMethodParse ( str . toCharArray ( ) , cursorLocation , expectedCompletionNodeToString , expectedUnitDisplayString , completionIdentifier , expectedReplacedSource , testName ) ; } public void testOC_1FM7J7F ( ) { String str = "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" ; String testName = "<STR_LIT>" ; String completeBehind = "<STR_LIT>" ; String expectedCompletionNodeToString = "<STR_LIT>" ; String completionIdentifier = "<STR_LIT>" ; String expectedReplacedSource = "<STR_LIT>" ; int cursorLocation = str . indexOf ( completeBehind ) + completeBehind . length ( ) - <NUM_LIT:1> ; String expectedUnitDisplayString = "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" ; checkDietParse ( str . toCharArray ( ) , cursorLocation , expectedCompletionNodeToString , expectedUnitDisplayString , completionIdentifier , expectedReplacedSource , testName ) ; } public void testP_1FG1YU0 ( ) { String str = "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" ; String testName = "<STR_LIT>" ; String completeBehind = "<STR_LIT:f>" ; String expectedCompletionNodeToString = "<STR_LIT>" ; String completionIdentifier = "<STR_LIT:f>" ; String expectedReplacedSource = "<STR_LIT:f>" ; int cursorLocation = str . indexOf ( "<STR_LIT>" ) + completeBehind . length ( ) - <NUM_LIT:1> ; String expectedUnitDisplayString = "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" ; checkMethodParse ( str . toCharArray ( ) , cursorLocation , expectedCompletionNodeToString , expectedUnitDisplayString , completionIdentifier , expectedReplacedSource , testName ) ; } public void testPA_1 ( ) { String str = "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" ; String testName = "<STR_LIT>" ; String completeBehind = "<STR_LIT>" ; String expectedCompletionNodeToString = NONE ; String completionIdentifier = "<STR_LIT>" ; String expectedReplacedSource = NONE ; int cursorLocation = str . indexOf ( completeBehind ) + completeBehind . length ( ) - <NUM_LIT:1> ; String expectedUnitDisplayString = null ; try { checkMethodParse ( str . toCharArray ( ) , cursorLocation , expectedCompletionNodeToString , expectedUnitDisplayString , completionIdentifier , expectedReplacedSource , testName ) ; assertTrue ( "<STR_LIT>" , false ) ; } catch ( InvalidCursorLocation e ) { assertEquals ( "<STR_LIT>" , e . irritant , InvalidCursorLocation . NO_COMPLETION_INSIDE_COMMENT ) ; } } public void testPA_2 ( ) { String str = "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" ; String testName = "<STR_LIT>" ; String completeBehind = "<STR_LIT:n>" ; String expectedCompletionNodeToString = "<STR_LIT>" ; String completionIdentifier = "<STR_LIT:n>" ; String expectedReplacedSource = "<STR_LIT>" ; int cursorLocation = str . indexOf ( "<STR_LIT>" ) + completeBehind . length ( ) - <NUM_LIT:1> ; String expectedUnitDisplayString = "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" ; checkMethodParse ( str . toCharArray ( ) , cursorLocation , expectedCompletionNodeToString , expectedUnitDisplayString , completionIdentifier , expectedReplacedSource , testName ) ; } public void testPB ( ) { String str = "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" ; String testName = "<STR_LIT>" ; String completeBehind = "<STR_LIT:f>" ; String expectedCompletionNodeToString = "<STR_LIT>" ; String completionIdentifier = "<STR_LIT:f>" ; String expectedReplacedSource = "<STR_LIT:f>" ; int cursorLocation = str . indexOf ( "<STR_LIT>" ) + completeBehind . length ( ) - <NUM_LIT:1> ; String expectedUnitDisplayString = "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" ; checkMethodParse ( str . toCharArray ( ) , cursorLocation , expectedCompletionNodeToString , expectedUnitDisplayString , completionIdentifier , expectedReplacedSource , testName ) ; } public void testPC_1FSU4EF ( ) { String str = "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" ; String testName = "<STR_LIT>" ; String completeBehind = "<STR_LIT>" ; String expectedCompletionNodeToString = "<STR_LIT>" ; String completionIdentifier = "<STR_LIT:a>" ; String expectedReplacedSource = "<STR_LIT>" ; int cursorLocation = str . indexOf ( completeBehind ) + completeBehind . length ( ) - <NUM_LIT:1> ; String expectedUnitDisplayString = "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" ; checkMethodParse ( str . toCharArray ( ) , cursorLocation , expectedCompletionNodeToString , expectedUnitDisplayString , completionIdentifier , expectedReplacedSource , testName ) ; } public void testQ_1FG1YU0 ( ) { String str = "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" ; String testName = "<STR_LIT>" ; String completeBehind = "<STR_LIT>" ; String expectedCompletionNodeToString = "<STR_LIT>" ; String completionIdentifier = "<STR_LIT>" ; String expectedReplacedSource = "<STR_LIT>" ; int cursorLocation = str . indexOf ( completeBehind ) + completeBehind . length ( ) - <NUM_LIT:1> ; String expectedUnitDisplayString = "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" ; checkMethodParse ( str . toCharArray ( ) , cursorLocation , expectedCompletionNodeToString , expectedUnitDisplayString , completionIdentifier , expectedReplacedSource , testName ) ; } public void testQA_1 ( ) { String str = "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" ; String testName = "<STR_LIT>" ; String completeBehind = "<STR_LIT>" ; String expectedCompletionNodeToString = "<STR_LIT>" ; String completionIdentifier = "<STR_LIT:m>" ; String expectedReplacedSource = "<STR_LIT>" ; int cursorLocation = str . indexOf ( completeBehind ) + completeBehind . length ( ) - <NUM_LIT:1> ; String expectedUnitDisplayString = "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" ; checkMethodParse ( str . toCharArray ( ) , cursorLocation , expectedCompletionNodeToString , expectedUnitDisplayString , completionIdentifier , expectedReplacedSource , testName ) ; } public void testQA_2 ( ) { String str = "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" ; String testName = "<STR_LIT>" ; String completeBehind = "<STR_LIT>" ; String expectedCompletionNodeToString = "<STR_LIT>" ; String completionIdentifier = "<STR_LIT>" ; String expectedReplacedSource = "<STR_LIT>" ; int cursorLocation = str . indexOf ( completeBehind ) + completeBehind . length ( ) - <NUM_LIT:1> ; String expectedUnitDisplayString = "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" ; checkMethodParse ( str . toCharArray ( ) , cursorLocation , expectedCompletionNodeToString , expectedUnitDisplayString , completionIdentifier , expectedReplacedSource , testName ) ; } public void testQA_3 ( ) { String str = "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" ; String testName = "<STR_LIT>" ; String completeBehind = "<STR_LIT>" ; String expectedCompletionNodeToString = "<STR_LIT>" ; String completionIdentifier = "<STR_LIT>" ; String expectedReplacedSource = "<STR_LIT>" ; int cursorLocation = str . indexOf ( completeBehind ) + completeBehind . length ( ) - <NUM_LIT:1> ; String expectedUnitDisplayString = "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" ; checkMethodParse ( str . toCharArray ( ) , cursorLocation , expectedCompletionNodeToString , expectedUnitDisplayString , completionIdentifier , expectedReplacedSource , testName ) ; } public void testQA_4 ( ) { String str = "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" ; String testName = "<STR_LIT>" ; String completeBehind = "<STR_LIT>" ; String expectedCompletionNodeToString = "<STR_LIT>" ; String completionIdentifier = "<STR_LIT>" ; String expectedReplacedSource = "<STR_LIT>" ; int cursorLocation = str . indexOf ( completeBehind ) + completeBehind . length ( ) - <NUM_LIT:1> ; String expectedUnitDisplayString = "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" ; checkMethodParse ( str . toCharArray ( ) , cursorLocation , expectedCompletionNodeToString , expectedUnitDisplayString , completionIdentifier , expectedReplacedSource , testName ) ; } public void testQB_1FIK820 ( ) { String str = "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" ; String testName = "<STR_LIT>" ; String completeBehind = "<STR_LIT:.>" ; String expectedCompletionNodeToString = "<STR_LIT>" ; String completionIdentifier = "<STR_LIT>" ; String expectedReplacedSource = "<STR_LIT>" ; int cursorLocation = str . indexOf ( "<STR_LIT>" ) + completeBehind . length ( ) - <NUM_LIT:1> ; String expectedUnitDisplayString = "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" ; checkMethodParse ( str . toCharArray ( ) , cursorLocation , expectedCompletionNodeToString , expectedUnitDisplayString , completionIdentifier , expectedReplacedSource , testName ) ; } public void testR_1FGD31E ( ) { String str = "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" ; String testName = "<STR_LIT>" ; String completeBehind = "<STR_LIT:b>" ; String expectedCompletionNodeToString = "<STR_LIT>" ; String completionIdentifier = "<STR_LIT:b>" ; String expectedReplacedSource = "<STR_LIT:b>" ; int cursorLocation = str . indexOf ( "<STR_LIT>" ) + completeBehind . length ( ) - <NUM_LIT:1> ; String expectedUnitDisplayString = "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" ; checkMethodParse ( str . toCharArray ( ) , cursorLocation , expectedCompletionNodeToString , expectedUnitDisplayString , completionIdentifier , expectedReplacedSource , testName ) ; } public void testRA_1 ( ) { String str = "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" ; String testName = "<STR_LIT>" ; String completeBehind = "<STR_LIT:t>" ; String expectedCompletionNodeToString = "<STR_LIT>" ; String completionIdentifier = "<STR_LIT:t>" ; String expectedReplacedSource = "<STR_LIT>" ; int cursorLocation = str . indexOf ( "<STR_LIT>" ) + completeBehind . length ( ) - <NUM_LIT:1> ; String expectedUnitDisplayString = "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" ; checkMethodParse ( str . toCharArray ( ) , cursorLocation , expectedCompletionNodeToString , expectedUnitDisplayString , completionIdentifier , expectedReplacedSource , testName ) ; } public void testRA_2 ( ) { String str = "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" ; String testName = "<STR_LIT>" ; String completeBehind = "<STR_LIT:t>" ; String expectedCompletionNodeToString = "<STR_LIT>" ; String completionIdentifier = "<STR_LIT:t>" ; String expectedReplacedSource = "<STR_LIT>" ; int cursorLocation = str . indexOf ( "<STR_LIT>" ) + completeBehind . length ( ) - <NUM_LIT:1> ; String expectedUnitDisplayString = "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" ; checkMethodParse ( str . toCharArray ( ) , cursorLocation , expectedCompletionNodeToString , expectedUnitDisplayString , completionIdentifier , expectedReplacedSource , testName ) ; } public void testRA_3 ( ) { String str = "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" ; String testName = "<STR_LIT>" ; String completeBehind = "<STR_LIT>" ; String expectedCompletionNodeToString = "<STR_LIT>" ; String completionIdentifier = "<STR_LIT>" ; String expectedReplacedSource = "<STR_LIT>" ; int cursorLocation = str . indexOf ( "<STR_LIT>" ) + completeBehind . length ( ) - <NUM_LIT:1> ; String expectedUnitDisplayString = "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" ; checkDietParse ( str . toCharArray ( ) , cursorLocation , expectedCompletionNodeToString , expectedUnitDisplayString , completionIdentifier , expectedReplacedSource , testName ) ; } public void testRB_1FI74S3 ( ) { String str = "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" ; String testName = "<STR_LIT>" ; String completeBehind = "<STR_LIT>" ; String expectedCompletionNodeToString = "<STR_LIT>" ; String completionIdentifier = "<STR_LIT>" ; String expectedReplacedSource = "<STR_LIT>" ; int cursorLocation = str . indexOf ( completeBehind ) + completeBehind . length ( ) - <NUM_LIT:1> ; String expectedUnitDisplayString = "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" ; checkMethodParse ( str . toCharArray ( ) , cursorLocation , expectedCompletionNodeToString , expectedUnitDisplayString , completionIdentifier , expectedReplacedSource , testName ) ; } public void testS_1FGF64P_1 ( ) { String str = "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" ; String testName = "<STR_LIT>" ; String completeBehind = "<STR_LIT>" ; String expectedCompletionNodeToString = "<STR_LIT>" ; String completionIdentifier = "<STR_LIT>" ; String expectedReplacedSource = "<STR_LIT>" ; int cursorLocation = str . indexOf ( completeBehind ) + completeBehind . length ( ) - <NUM_LIT:1> ; String expectedUnitDisplayString = "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" ; checkMethodParse ( str . toCharArray ( ) , cursorLocation , expectedCompletionNodeToString , expectedUnitDisplayString , completionIdentifier , expectedReplacedSource , testName ) ; } public void testS_1FGF64P_2 ( ) { String str = "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" ; String testName = "<STR_LIT>" ; String completeBehind = "<STR_LIT>" ; String expectedCompletionNodeToString = "<STR_LIT>" ; String completionIdentifier = "<STR_LIT>" ; String expectedReplacedSource = "<STR_LIT>" ; int cursorLocation = str . indexOf ( completeBehind ) + completeBehind . length ( ) - <NUM_LIT:1> ; String expectedUnitDisplayString = "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" ; checkMethodParse ( str . toCharArray ( ) , cursorLocation , expectedCompletionNodeToString , expectedUnitDisplayString , completionIdentifier , expectedReplacedSource , testName ) ; } public void testS_1FGF64P_3 ( ) { String str = "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" ; String testName = "<STR_LIT>" ; String completeBehind = "<STR_LIT>" ; String expectedCompletionNodeToString = "<STR_LIT>" ; String completionIdentifier = "<STR_LIT>" ; String expectedReplacedSource = "<STR_LIT>" ; int cursorLocation = str . indexOf ( completeBehind ) + completeBehind . length ( ) - <NUM_LIT:1> ; String expectedUnitDisplayString = "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" ; checkMethodParse ( str . toCharArray ( ) , cursorLocation , expectedCompletionNodeToString , expectedUnitDisplayString , completionIdentifier , expectedReplacedSource , testName ) ; } public void testSA ( ) { String str = "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" ; String testName = "<STR_LIT>" ; String completeBehind = "<STR_LIT>" ; String expectedCompletionNodeToString = "<STR_LIT>" ; String completionIdentifier = "<STR_LIT>" ; String expectedReplacedSource = "<STR_LIT>" ; int cursorLocation = str . indexOf ( completeBehind ) + completeBehind . length ( ) - <NUM_LIT:1> ; String expectedUnitDisplayString = "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" ; checkDietParse ( str . toCharArray ( ) , cursorLocation , expectedCompletionNodeToString , expectedUnitDisplayString , completionIdentifier , expectedReplacedSource , testName ) ; } public void testSB_1FILFDG ( ) { String str = "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" ; String testName = "<STR_LIT>" ; String completeBehind = "<STR_LIT:int>" ; String expectedCompletionNodeToString = "<STR_LIT>" ; String completionIdentifier = "<STR_LIT:int>" ; String expectedReplacedSource = "<STR_LIT:int>" ; int cursorLocation = str . indexOf ( completeBehind ) + completeBehind . length ( ) - <NUM_LIT:1> ; String expectedUnitDisplayString = "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" ; checkMethodParse ( str . toCharArray ( ) , cursorLocation , expectedCompletionNodeToString , expectedUnitDisplayString , completionIdentifier , expectedReplacedSource , testName ) ; } public void testT_1FGF64P ( ) { String str = "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" ; String testName = "<STR_LIT>" ; String completeBehind = "<STR_LIT>" ; String expectedCompletionNodeToString = "<STR_LIT>" ; String completionIdentifier = "<STR_LIT>" ; String expectedReplacedSource = "<STR_LIT>" ; int cursorLocation = str . indexOf ( completeBehind ) + completeBehind . length ( ) - <NUM_LIT:1> ; String expectedUnitDisplayString = "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" ; checkMethodParse ( str . toCharArray ( ) , cursorLocation , expectedCompletionNodeToString , expectedUnitDisplayString , completionIdentifier , expectedReplacedSource , testName ) ; } public void testTA_1FHISJJ_1 ( ) { String str = "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" ; String testName = "<STR_LIT>" ; String completeBehind = "<STR_LIT:n>" ; String expectedCompletionNodeToString = "<STR_LIT>" ; String completionIdentifier = "<STR_LIT:n>" ; String expectedReplacedSource = "<STR_LIT:null>" ; int cursorLocation = str . indexOf ( "<STR_LIT>" ) + completeBehind . length ( ) - <NUM_LIT:1> ; String expectedUnitDisplayString = "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" ; checkMethodParse ( str . toCharArray ( ) , cursorLocation , expectedCompletionNodeToString , expectedUnitDisplayString , completionIdentifier , expectedReplacedSource , testName ) ; } public void testTA_1FHISJJ_2 ( ) { String str = "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" ; String testName = "<STR_LIT>" ; String completeBehind = "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" ; String expectedCompletionNodeToString = "<STR_LIT>" ; String completionIdentifier = "<STR_LIT>" ; String expectedReplacedSource = "<STR_LIT>" ; int cursorLocation = str . indexOf ( completeBehind ) + completeBehind . length ( ) - <NUM_LIT:1> ; String expectedUnitDisplayString = "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" ; checkMethodParse ( str . toCharArray ( ) , cursorLocation , expectedCompletionNodeToString , expectedUnitDisplayString , completionIdentifier , expectedReplacedSource , testName ) ; } public void testTA_1FHISJJ_3 ( ) { String str = "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" ; String testName = "<STR_LIT>" ; String completeBehind = "<STR_LIT>" ; String expectedCompletionNodeToString = "<STR_LIT>" ; String completionIdentifier = "<STR_LIT>" ; String expectedReplacedSource = "<STR_LIT>" ; int cursorLocation = str . indexOf ( completeBehind ) + completeBehind . length ( ) - <NUM_LIT:1> ; String expectedUnitDisplayString = "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" ; checkMethodParse ( str . toCharArray ( ) , cursorLocation , expectedCompletionNodeToString , expectedUnitDisplayString , completionIdentifier , expectedReplacedSource , testName ) ; } public void testTB_1FHSLMQ ( ) { String str = "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" ; String testName = "<STR_LIT>" ; String completeBehind = "<STR_LIT:e>" ; String expectedCompletionNodeToString = "<STR_LIT>" ; String completionIdentifier = "<STR_LIT:e>" ; String expectedReplacedSource = "<STR_LIT:e>" ; int cursorLocation = str . indexOf ( "<STR_LIT>" ) + completeBehind . length ( ) - <NUM_LIT:1> ; String expectedUnitDisplayString = "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" ; checkMethodParse ( str . toCharArray ( ) , cursorLocation , expectedCompletionNodeToString , expectedUnitDisplayString , completionIdentifier , expectedReplacedSource , testName ) ; } public void testU_1FGGUME ( ) { String str = "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" ; String testName = "<STR_LIT>" ; String completeBehind = "<STR_LIT:5>" ; String expectedCompletionNodeToString = NONE ; String completionIdentifier = "<STR_LIT>" ; String expectedReplacedSource = NONE ; int cursorLocation = str . indexOf ( completeBehind ) + completeBehind . length ( ) - <NUM_LIT:1> ; String expectedUnitDisplayString = null ; try { checkMethodParse ( str . toCharArray ( ) , cursorLocation , expectedCompletionNodeToString , expectedUnitDisplayString , completionIdentifier , expectedReplacedSource , testName ) ; assertTrue ( "<STR_LIT>" , false ) ; } catch ( InvalidCursorLocation e ) { assertEquals ( "<STR_LIT>" , e . irritant , InvalidCursorLocation . NO_COMPLETION_INSIDE_NUMBER ) ; } } public void testUA_1FHISJJ_1 ( ) { String str = "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" ; String testName = "<STR_LIT>" ; String completeBehind = "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" ; String expectedCompletionNodeToString = "<STR_LIT>" ; String completionIdentifier = "<STR_LIT>" ; String expectedReplacedSource = "<STR_LIT>" ; int cursorLocation = str . indexOf ( completeBehind ) + completeBehind . length ( ) - <NUM_LIT:1> ; String expectedUnitDisplayString = "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" ; checkMethodParse ( str . toCharArray ( ) , cursorLocation , expectedCompletionNodeToString , expectedUnitDisplayString , completionIdentifier , expectedReplacedSource , testName ) ; } public void testUA_1FHISJJ_2 ( ) { String str = "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" ; String testName = "<STR_LIT>" ; String completeBehind = "<STR_LIT>" ; String expectedCompletionNodeToString = "<STR_LIT>" ; String completionIdentifier = "<STR_LIT>" ; String expectedReplacedSource = "<STR_LIT>" ; int cursorLocation = str . indexOf ( completeBehind ) + completeBehind . length ( ) - <NUM_LIT:1> ; String expectedUnitDisplayString = "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" ; checkMethodParse ( str . toCharArray ( ) , cursorLocation , expectedCompletionNodeToString , expectedUnitDisplayString , completionIdentifier , expectedReplacedSource , testName ) ; } public void testUB_1FSBZ02 ( ) { String str = "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" ; String testName = "<STR_LIT>" ; String completeBehind = "<STR_LIT:b>" ; String expectedCompletionNodeToString = "<STR_LIT>" ; String completionIdentifier = "<STR_LIT:b>" ; String expectedReplacedSource = "<STR_LIT:b>" ; int cursorLocation = str . indexOf ( "<STR_LIT>" ) + completeBehind . length ( ) - <NUM_LIT:1> ; String expectedUnitDisplayString = "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" ; checkMethodParse ( str . toCharArray ( ) , cursorLocation , expectedCompletionNodeToString , expectedUnitDisplayString , completionIdentifier , expectedReplacedSource , testName ) ; } public void testV_1FGGUOO_1 ( ) { String str = "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" ; String testName = "<STR_LIT>" ; String completeBehind = "<STR_LIT:i>" ; String expectedCompletionNodeToString = "<STR_LIT>" ; String completionIdentifier = "<STR_LIT:i>" ; String expectedReplacedSource = "<STR_LIT:i>" ; int cursorLocation = str . indexOf ( "<STR_LIT>" ) + completeBehind . length ( ) - <NUM_LIT:1> ; String expectedUnitDisplayString = "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" ; checkDietParse ( str . toCharArray ( ) , cursorLocation , expectedCompletionNodeToString , expectedUnitDisplayString , completionIdentifier , expectedReplacedSource , testName ) ; } public void testV_1FGGUOO_2 ( ) { String str = "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" ; String testName = "<STR_LIT>" ; String completeBehind = "<STR_LIT:y>" ; String expectedCompletionNodeToString = "<STR_LIT>" ; String completionIdentifier = "<STR_LIT:y>" ; String expectedReplacedSource = "<STR_LIT>" ; int cursorLocation = str . indexOf ( "<STR_LIT:y>" ) + completeBehind . length ( ) - <NUM_LIT:1> ; String expectedUnitDisplayString = "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" ; checkDietParse ( str . toCharArray ( ) , cursorLocation , expectedCompletionNodeToString , expectedUnitDisplayString , completionIdentifier , expectedReplacedSource , testName ) ; } public void testVA_1FHISJJ_1 ( ) { String str = "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" ; String testName = "<STR_LIT>" ; String completeBehind = "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" ; String expectedCompletionNodeToString = "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" ; String completionIdentifier = "<STR_LIT>" ; String expectedReplacedSource = "<STR_LIT>" ; int cursorLocation = str . indexOf ( completeBehind ) + completeBehind . length ( ) - <NUM_LIT:1> ; String expectedUnitDisplayString = "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" ; checkMethodParse ( str . toCharArray ( ) , cursorLocation , expectedCompletionNodeToString , expectedUnitDisplayString , completionIdentifier , expectedReplacedSource , testName ) ; } public void testVA_1FHISJJ_2 ( ) { String str = "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" ; String testName = "<STR_LIT>" ; String completeBehind = "<STR_LIT>" ; String expectedCompletionNodeToString = "<STR_LIT>" ; String completionIdentifier = "<STR_LIT>" ; String expectedReplacedSource = "<STR_LIT>" ; int cursorLocation = str . indexOf ( completeBehind ) + completeBehind . length ( ) - <NUM_LIT:1> ; String expectedUnitDisplayString = "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" ; checkMethodParse ( str . toCharArray ( ) , cursorLocation , expectedCompletionNodeToString , expectedUnitDisplayString , completionIdentifier , expectedReplacedSource , testName ) ; } public void testVB_1 ( ) { String str = "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" ; String testName = "<STR_LIT>" ; String completeBehind = "<STR_LIT>" ; String expectedCompletionNodeToString = "<STR_LIT>" ; String completionIdentifier = "<STR_LIT>" ; String expectedReplacedSource = "<STR_LIT>" ; int cursorLocation = str . indexOf ( "<STR_LIT>" ) + completeBehind . length ( ) - <NUM_LIT:1> ; String expectedUnitDisplayString = "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" ; checkMethodParse ( str . toCharArray ( ) , cursorLocation , expectedCompletionNodeToString , expectedUnitDisplayString , completionIdentifier , expectedReplacedSource , testName ) ; } public void _testVB_2 ( ) { String str = "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" ; String testName = "<STR_LIT>" ; String completeBehind = "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" ; String expectedCompletionNodeToString = "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" ; String completionIdentifier = "<STR_LIT>" ; String expectedReplacedSource = "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" ; int cursorLocation = str . indexOf ( completeBehind ) + completeBehind . length ( ) - <NUM_LIT:1> ; String expectedUnitDisplayString = "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" ; checkMethodParse ( str . toCharArray ( ) , cursorLocation , expectedCompletionNodeToString , expectedUnitDisplayString , completionIdentifier , expectedReplacedSource , testName ) ; } public void testVB_3 ( ) { String str = "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" ; String testName = "<STR_LIT>" ; String completeBehind = "<STR_LIT>" ; String expectedCompletionNodeToString = "<STR_LIT>" ; String completionIdentifier = "<STR_LIT>" ; String expectedReplacedSource = "<STR_LIT>" ; int cursorLocation = str . indexOf ( completeBehind ) + completeBehind . length ( ) - <NUM_LIT:1> ; String expectedUnitDisplayString = "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" ; checkMethodParse ( str . toCharArray ( ) , cursorLocation , expectedCompletionNodeToString , expectedUnitDisplayString , completionIdentifier , expectedReplacedSource , testName ) ; } public void _testVB_4 ( ) { String str = "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" ; String testName = "<STR_LIT>" ; String completeBehind = "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" ; String expectedCompletionNodeToString = "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" ; String completionIdentifier = "<STR_LIT>" ; String expectedReplacedSource = "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" ; int cursorLocation = str . indexOf ( completeBehind ) + completeBehind . length ( ) - <NUM_LIT:1> ; String expectedUnitDisplayString = "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" ; checkMethodParse ( str . toCharArray ( ) , cursorLocation , expectedCompletionNodeToString , expectedUnitDisplayString , completionIdentifier , expectedReplacedSource , testName ) ; } public void _testVB_5 ( ) { String str = "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" ; String testName = "<STR_LIT>" ; String completeBehind = "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" ; String expectedCompletionNodeToString = "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" ; String completionIdentifier = "<STR_LIT>" ; String expectedReplacedSource = "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" ; int cursorLocation = str . indexOf ( completeBehind ) + completeBehind . length ( ) - <NUM_LIT:1> ; String expectedUnitDisplayString = "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" ; checkMethodParse ( str . toCharArray ( ) , cursorLocation , expectedCompletionNodeToString , expectedUnitDisplayString , completionIdentifier , expectedReplacedSource , testName ) ; } public void testW_1FGGUS4 ( ) { String str = "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" ; String testName = "<STR_LIT>" ; String completeBehind = "<STR_LIT>" ; String expectedCompletionNodeToString = "<STR_LIT>" ; String completionIdentifier = "<STR_LIT>" ; String expectedReplacedSource = "<STR_LIT>" ; int cursorLocation = str . indexOf ( "<STR_LIT>" ) + completeBehind . length ( ) - <NUM_LIT:1> ; String expectedUnitDisplayString = "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" ; checkDietParse ( str . toCharArray ( ) , cursorLocation , expectedCompletionNodeToString , expectedUnitDisplayString , completionIdentifier , expectedReplacedSource , testName ) ; } public void testWA_1 ( ) { String str = "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" ; String testName = "<STR_LIT>" ; String completeBehind = "<STR_LIT>" ; String expectedCompletionNodeToString = "<STR_LIT>" ; String completionIdentifier = "<STR_LIT>" ; String expectedReplacedSource = "<STR_LIT:value>" ; int cursorLocation = str . indexOf ( "<STR_LIT>" ) + completeBehind . length ( ) - <NUM_LIT:1> ; String expectedUnitDisplayString = "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" ; checkMethodParse ( str . toCharArray ( ) , cursorLocation , expectedCompletionNodeToString , expectedUnitDisplayString , completionIdentifier , expectedReplacedSource , testName ) ; } public void testWA_2 ( ) { String str = "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" ; String testName = "<STR_LIT>" ; String completeBehind = "<STR_LIT>" ; String expectedCompletionNodeToString = "<STR_LIT>" ; String completionIdentifier = "<STR_LIT>" ; String expectedReplacedSource = "<STR_LIT>" ; int cursorLocation = str . indexOf ( "<STR_LIT>" ) + completeBehind . length ( ) - <NUM_LIT:1> ; String expectedUnitDisplayString = "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" ; checkMethodParse ( str . toCharArray ( ) , cursorLocation , expectedCompletionNodeToString , expectedUnitDisplayString , completionIdentifier , expectedReplacedSource , testName ) ; } public void testWB_1FI313C ( ) { String str = "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" ; String testName = "<STR_LIT>" ; String completeBehind = "<STR_LIT>" ; String expectedCompletionNodeToString = "<STR_LIT>" ; String completionIdentifier = "<STR_LIT>" ; String expectedReplacedSource = "<STR_LIT>" ; int cursorLocation = str . indexOf ( completeBehind ) + completeBehind . length ( ) - <NUM_LIT:1> ; String expectedUnitDisplayString = "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" ; checkMethodParse ( str . toCharArray ( ) , cursorLocation , expectedCompletionNodeToString , expectedUnitDisplayString , completionIdentifier , expectedReplacedSource , testName ) ; } public void testX_1FGGV8C_1 ( ) { String str = "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" ; String testName = "<STR_LIT>" ; String completeBehind = "<STR_LIT:t>" ; String expectedCompletionNodeToString = "<STR_LIT>" ; String completionIdentifier = "<STR_LIT:t>" ; String expectedReplacedSource = "<STR_LIT>" ; int cursorLocation = str . indexOf ( "<STR_LIT>" ) + completeBehind . length ( ) - <NUM_LIT:1> ; String expectedUnitDisplayString = "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" ; checkMethodParse ( str . toCharArray ( ) , cursorLocation , expectedCompletionNodeToString , expectedUnitDisplayString , completionIdentifier , expectedReplacedSource , testName ) ; } public void testX_1FGGV8C_2 ( ) { String str = "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" ; String testName = "<STR_LIT>" ; String completeBehind = "<STR_LIT:Y>" ; String expectedCompletionNodeToString = "<STR_LIT>" ; String completionIdentifier = "<STR_LIT:Y>" ; String expectedReplacedSource = "<STR_LIT>" ; int cursorLocation = str . indexOf ( "<STR_LIT>" ) + completeBehind . length ( ) - <NUM_LIT:1> ; String expectedUnitDisplayString = "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" ; checkMethodParse ( str . toCharArray ( ) , cursorLocation , expectedCompletionNodeToString , expectedUnitDisplayString , completionIdentifier , expectedReplacedSource , testName ) ; } public void testX_1FGGV8C_3 ( ) { String str = "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" ; String testName = "<STR_LIT>" ; String completeBehind = "<STR_LIT:Y>" ; String expectedCompletionNodeToString = "<STR_LIT>" ; String completionIdentifier = "<STR_LIT:Y>" ; String expectedReplacedSource = "<STR_LIT>" ; int cursorLocation = str . indexOf ( "<STR_LIT>" ) + completeBehind . length ( ) - <NUM_LIT:1> ; String expectedUnitDisplayString = "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" ; checkMethodParse ( str . toCharArray ( ) , cursorLocation , expectedCompletionNodeToString , expectedUnitDisplayString , completionIdentifier , expectedReplacedSource , testName ) ; } public void testX_1FGGV8C_4 ( ) { String str = "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" ; String testName = "<STR_LIT>" ; String completeBehind = "<STR_LIT:n>" ; String expectedCompletionNodeToString = "<STR_LIT>" ; String completionIdentifier = "<STR_LIT:n>" ; String expectedReplacedSource = "<STR_LIT>" ; int cursorLocation = str . indexOf ( "<STR_LIT>" ) + completeBehind . length ( ) - <NUM_LIT:1> ; String expectedUnitDisplayString = "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" ; checkMethodParse ( str . toCharArray ( ) , cursorLocation , expectedCompletionNodeToString , expectedUnitDisplayString , completionIdentifier , expectedReplacedSource , testName ) ; } public void testX_1FGPE8E ( ) { String str = "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" ; String testName = "<STR_LIT>" ; String completeBehind = "<STR_LIT:n>" ; String expectedCompletionNodeToString = "<STR_LIT>" ; String completionIdentifier = "<STR_LIT:n>" ; String expectedReplacedSource = "<STR_LIT>" ; int cursorLocation = str . indexOf ( "<STR_LIT>" ) + completeBehind . length ( ) - <NUM_LIT:1> ; String expectedUnitDisplayString = "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" ; checkMethodParse ( str . toCharArray ( ) , cursorLocation , expectedCompletionNodeToString , expectedUnitDisplayString , completionIdentifier , expectedReplacedSource , testName ) ; } public void _testXA_1FGGUQF_1FHSL8H_1 ( ) { String str = "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" ; String testName = "<STR_LIT>" ; String completeBehind = "<STR_LIT>" ; String expectedCompletionNodeToString = NONE ; String completionIdentifier = "<STR_LIT>" ; String expectedReplacedSource = NONE ; int cursorLocation = str . indexOf ( "<STR_LIT>" ) + completeBehind . length ( ) - <NUM_LIT:1> ; String expectedUnitDisplayString = null ; try { checkMethodParse ( str . toCharArray ( ) , cursorLocation , expectedCompletionNodeToString , expectedUnitDisplayString , completionIdentifier , expectedReplacedSource , testName ) ; assertTrue ( "<STR_LIT>" , false ) ; } catch ( InvalidCursorLocation e ) { assertEquals ( "<STR_LIT>" , e . irritant , InvalidCursorLocation . NO_COMPLETION_INSIDE_COMMENT ) ; } } public void testXA_1FGGUQF_1FHSL8H_2 ( ) { String str = "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" ; String testName = "<STR_LIT>" ; String completeBehind = "<STR_LIT:i>" ; String expectedCompletionNodeToString = NONE ; String completionIdentifier = "<STR_LIT>" ; String expectedReplacedSource = NONE ; int cursorLocation = str . indexOf ( "<STR_LIT>" ) + completeBehind . length ( ) - <NUM_LIT:1> ; String expectedUnitDisplayString = null ; try { checkMethodParse ( str . toCharArray ( ) , cursorLocation , expectedCompletionNodeToString , expectedUnitDisplayString , completionIdentifier , expectedReplacedSource , testName ) ; assertTrue ( "<STR_LIT>" , false ) ; } catch ( InvalidCursorLocation e ) { assertEquals ( "<STR_LIT>" , e . irritant , InvalidCursorLocation . NO_COMPLETION_INSIDE_COMMENT ) ; } } public void testXA_1FGGUQF_1FHSL8H_3 ( ) { String str = "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" ; String testName = "<STR_LIT>" ; String completeBehind = "<STR_LIT:i>" ; String expectedCompletionNodeToString = NONE ; String completionIdentifier = "<STR_LIT>" ; String expectedReplacedSource = NONE ; int cursorLocation = str . indexOf ( "<STR_LIT>" ) + completeBehind . length ( ) - <NUM_LIT:1> ; String expectedUnitDisplayString = null ; try { checkMethodParse ( str . toCharArray ( ) , cursorLocation , expectedCompletionNodeToString , expectedUnitDisplayString , completionIdentifier , expectedReplacedSource , testName ) ; assertTrue ( "<STR_LIT>" , false ) ; } catch ( InvalidCursorLocation e ) { assertEquals ( "<STR_LIT>" , e . irritant , InvalidCursorLocation . NO_COMPLETION_INSIDE_COMMENT ) ; } } public void testXA_1FGGUQF_1FHSL8H_4 ( ) { String str = "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" ; String testName = "<STR_LIT>" ; String completeBehind = "<STR_LIT:i>" ; String expectedCompletionNodeToString = NONE ; String completionIdentifier = "<STR_LIT>" ; String expectedReplacedSource = NONE ; int cursorLocation = str . indexOf ( "<STR_LIT>" ) + completeBehind . length ( ) - <NUM_LIT:1> ; String expectedUnitDisplayString = null ; try { checkMethodParse ( str . toCharArray ( ) , cursorLocation , expectedCompletionNodeToString , expectedUnitDisplayString , completionIdentifier , expectedReplacedSource , testName ) ; assertTrue ( "<STR_LIT>" , false ) ; } catch ( InvalidCursorLocation e ) { assertEquals ( "<STR_LIT>" , e . irritant , InvalidCursorLocation . NO_COMPLETION_INSIDE_COMMENT ) ; } } public void testXB_1FIYM5I_1 ( ) { String str = "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" ; String testName = "<STR_LIT>" ; String completeBehind = "<STR_LIT>" ; String expectedCompletionNodeToString = "<STR_LIT>" ; String completionIdentifier = "<STR_LIT:s>" ; String expectedReplacedSource = "<STR_LIT>" ; int cursorLocation = str . indexOf ( completeBehind ) + completeBehind . length ( ) - <NUM_LIT:1> ; String expectedUnitDisplayString = "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" ; checkMethodParse ( str . toCharArray ( ) , cursorLocation , expectedCompletionNodeToString , expectedUnitDisplayString , completionIdentifier , expectedReplacedSource , testName ) ; } public void testXB_1FIYM5I_2 ( ) { String str = "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" ; String testName = "<STR_LIT>" ; String completeBehind = "<STR_LIT>" ; String expectedCompletionNodeToString = "<STR_LIT>" ; String completionIdentifier = "<STR_LIT>" ; String expectedReplacedSource = "<STR_LIT>" ; int cursorLocation = str . indexOf ( completeBehind ) + completeBehind . length ( ) - <NUM_LIT:1> ; String expectedUnitDisplayString = "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" ; checkMethodParse ( str . toCharArray ( ) , cursorLocation , expectedCompletionNodeToString , expectedUnitDisplayString , completionIdentifier , expectedReplacedSource , testName ) ; } public void testXB_1FIYM5I_3 ( ) { String str = "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" ; String testName = "<STR_LIT>" ; String completeBehind = "<STR_LIT>" ; String expectedCompletionNodeToString = "<STR_LIT>" ; String completionIdentifier = "<STR_LIT:b>" ; String expectedReplacedSource = "<STR_LIT>" ; int cursorLocation = str . indexOf ( completeBehind ) + completeBehind . length ( ) - <NUM_LIT:1> ; String expectedUnitDisplayString = "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" ; checkMethodParse ( str . toCharArray ( ) , cursorLocation , expectedCompletionNodeToString , expectedUnitDisplayString , completionIdentifier , expectedReplacedSource , testName ) ; } public void testXB_1FIYM5I_4 ( ) { String str = "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" ; String testName = "<STR_LIT>" ; String completeBehind = "<STR_LIT>" ; String expectedCompletionNodeToString = "<STR_LIT>" ; String completionIdentifier = "<STR_LIT>" ; String expectedReplacedSource = "<STR_LIT>" ; int cursorLocation = str . indexOf ( completeBehind ) + completeBehind . length ( ) - <NUM_LIT:1> ; String expectedUnitDisplayString = "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" ; checkMethodParse ( str . toCharArray ( ) , cursorLocation , expectedCompletionNodeToString , expectedUnitDisplayString , completionIdentifier , expectedReplacedSource , testName ) ; } public void testY_1FGPESI ( ) { String str = "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" ; String testName = "<STR_LIT>" ; String completeBehind = "<STR_LIT>" ; String expectedCompletionNodeToString = "<STR_LIT>" ; String completionIdentifier = "<STR_LIT>" ; String expectedReplacedSource = "<STR_LIT>" ; int cursorLocation = str . indexOf ( completeBehind ) + completeBehind . length ( ) - <NUM_LIT:1> ; String expectedUnitDisplayString = "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" ; checkDietParse ( str . toCharArray ( ) , cursorLocation , expectedCompletionNodeToString , expectedUnitDisplayString , completionIdentifier , expectedReplacedSource , testName ) ; } public void testYA_1FGRIUH ( ) { String str = "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" ; String testName = "<STR_LIT>" ; String completeBehind = "<STR_LIT:e>" ; String expectedCompletionNodeToString = "<STR_LIT>" ; String completionIdentifier = "<STR_LIT:e>" ; String expectedReplacedSource = "<STR_LIT:e>" ; int cursorLocation = str . indexOf ( "<STR_LIT>" ) + completeBehind . length ( ) - <NUM_LIT:1> ; String expectedUnitDisplayString = "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" ; checkMethodParse ( str . toCharArray ( ) , cursorLocation , expectedCompletionNodeToString , expectedUnitDisplayString , completionIdentifier , expectedReplacedSource , testName ) ; } public void testYB_1FJ4D46_1 ( ) { String str = "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" ; String testName = "<STR_LIT>" ; String completeBehind = "<STR_LIT>" ; String expectedCompletionNodeToString = "<STR_LIT>" ; String completionIdentifier = "<STR_LIT>" ; String expectedReplacedSource = "<STR_LIT>" ; int cursorLocation = str . indexOf ( completeBehind ) + completeBehind . length ( ) - <NUM_LIT:1> ; String expectedUnitDisplayString = "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" ; checkMethodParse ( str . toCharArray ( ) , cursorLocation , expectedCompletionNodeToString , expectedUnitDisplayString , completionIdentifier , expectedReplacedSource , testName ) ; } public void testZ_1FGPF3D_1 ( ) { String str = "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" ; String testName = "<STR_LIT>" ; String completeBehind = "<STR_LIT>" ; String expectedCompletionNodeToString = "<STR_LIT>" ; String completionIdentifier = "<STR_LIT>" ; String expectedReplacedSource = "<STR_LIT>" ; int cursorLocation = str . indexOf ( completeBehind ) + completeBehind . length ( ) - <NUM_LIT:1> ; String expectedUnitDisplayString = "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" ; checkDietParse ( str . toCharArray ( ) , cursorLocation , expectedCompletionNodeToString , expectedUnitDisplayString , completionIdentifier , expectedReplacedSource , testName ) ; } public void testZ_1FGPF3D_2 ( ) { String str = "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" ; String testName = "<STR_LIT>" ; String completeBehind = "<STR_LIT>" ; String expectedCompletionNodeToString = "<STR_LIT>" ; String completionIdentifier = "<STR_LIT>" ; String expectedReplacedSource = "<STR_LIT>" ; int cursorLocation = str . indexOf ( "<STR_LIT>" ) + completeBehind . length ( ) - <NUM_LIT:1> ; String expectedUnitDisplayString = "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" ; checkDietParse ( str . toCharArray ( ) , cursorLocation , expectedCompletionNodeToString , expectedUnitDisplayString , completionIdentifier , expectedReplacedSource , testName ) ; } public void testZA_1 ( ) { String str = "<STR_LIT>" + "<STR_LIT>" ; String testName = "<STR_LIT>" ; String completeBehind = "<STR_LIT:i>" ; String expectedCompletionNodeToString = "<STR_LIT>" ; String completionIdentifier = "<STR_LIT:i>" ; String expectedReplacedSource = "<STR_LIT>" ; int cursorLocation = str . indexOf ( "<STR_LIT>" ) + completeBehind . length ( ) - <NUM_LIT:1> ; String expectedUnitDisplayString = "<STR_LIT>" + "<STR_LIT>" ; checkDietParse ( str . toCharArray ( ) , cursorLocation , expectedCompletionNodeToString , expectedUnitDisplayString , completionIdentifier , expectedReplacedSource , testName ) ; } public void testZA_2 ( ) { String str = "<STR_LIT>" + "<STR_LIT>" ; String testName = "<STR_LIT>" ; String completeBehind = "<STR_LIT>" ; String expectedCompletionNodeToString = "<STR_LIT>" ; String completionIdentifier = "<STR_LIT>" ; String expectedReplacedSource = "<STR_LIT>" ; int cursorLocation = str . indexOf ( "<STR_LIT>" ) + completeBehind . length ( ) - <NUM_LIT:1> ; String expectedUnitDisplayString = "<STR_LIT>" + "<STR_LIT>" ; checkDietParse ( str . toCharArray ( ) , cursorLocation , expectedCompletionNodeToString , expectedUnitDisplayString , completionIdentifier , expectedReplacedSource , testName ) ; } public void testZA_3 ( ) { String str = "<STR_LIT>" + "<STR_LIT>" ; String testName = "<STR_LIT>" ; String completeBehind = "<STR_LIT>" ; String expectedCompletionNodeToString = "<STR_LIT>" ; String completionIdentifier = "<STR_LIT>" ; String expectedReplacedSource = "<STR_LIT>" ; int cursorLocation = str . indexOf ( completeBehind ) + completeBehind . length ( ) - <NUM_LIT:1> ; String expectedUnitDisplayString = "<STR_LIT>" + "<STR_LIT>" ; checkDietParse ( str . toCharArray ( ) , cursorLocation , expectedCompletionNodeToString , expectedUnitDisplayString , completionIdentifier , expectedReplacedSource , testName ) ; } public void testZB_1FJ4D46_1 ( ) { String str = "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" ; String testName = "<STR_LIT>" ; String completeBehind = "<STR_LIT>" ; String expectedCompletionNodeToString = "<STR_LIT>" ; String completionIdentifier = "<STR_LIT>" ; String expectedReplacedSource = "<STR_LIT>" ; int cursorLocation = str . indexOf ( completeBehind ) + completeBehind . length ( ) - <NUM_LIT:1> ; String expectedUnitDisplayString = "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" ; checkMethodParse ( str . toCharArray ( ) , cursorLocation , expectedCompletionNodeToString , expectedUnitDisplayString , completionIdentifier , expectedReplacedSource , testName ) ; } public void testZB_1FJ4D46_2 ( ) { String str = "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" ; String testName = "<STR_LIT>" ; String completeBehind = "<STR_LIT>" ; String expectedCompletionNodeToString = "<STR_LIT>" ; String completionIdentifier = "<STR_LIT>" ; String expectedReplacedSource = "<STR_LIT>" ; int cursorLocation = str . indexOf ( "<STR_LIT>" ) + completeBehind . length ( ) - <NUM_LIT:1> ; String expectedUnitDisplayString = "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" ; checkMethodParse ( str . toCharArray ( ) , cursorLocation , expectedCompletionNodeToString , expectedUnitDisplayString , completionIdentifier , expectedReplacedSource , testName ) ; } public void test001 ( ) { String str = "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" ; String testName = "<STR_LIT>" ; String completeBehind = "<STR_LIT>" ; String expectedCompletionNodeToString = "<STR_LIT>" ; String completionIdentifier = "<STR_LIT>" ; String expectedReplacedSource = "<STR_LIT>" ; int cursorLocation = str . indexOf ( "<STR_LIT>" ) + completeBehind . length ( ) - <NUM_LIT:1> ; String expectedUnitDisplayString = "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" ; checkMethodParse ( str . toCharArray ( ) , cursorLocation , expectedCompletionNodeToString , expectedUnitDisplayString , completionIdentifier , expectedReplacedSource , testName ) ; } public void test002 ( ) { String str = "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" ; String testName = "<STR_LIT>" ; String completeBehind = "<STR_LIT>" ; String expectedCompletionNodeToString = "<STR_LIT>" ; String completionIdentifier = "<STR_LIT>" ; String expectedReplacedSource = "<STR_LIT>" ; int cursorLocation = str . indexOf ( "<STR_LIT>" ) + completeBehind . length ( ) - <NUM_LIT:1> ; String expectedUnitDisplayString = "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" ; checkMethodParse ( str . toCharArray ( ) , cursorLocation , expectedCompletionNodeToString , expectedUnitDisplayString , completionIdentifier , expectedReplacedSource , testName ) ; } public void test003 ( ) { String str = "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" ; String testName = "<STR_LIT>" ; String completeBehind = "<STR_LIT>" ; String expectedCompletionNodeToString = "<STR_LIT>" ; String completionIdentifier = "<STR_LIT>" ; String expectedReplacedSource = "<STR_LIT>" ; int cursorLocation = str . indexOf ( "<STR_LIT>" ) + completeBehind . length ( ) - <NUM_LIT:1> ; String expectedUnitDisplayString = "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" ; checkMethodParse ( str . toCharArray ( ) , cursorLocation , expectedCompletionNodeToString , expectedUnitDisplayString , completionIdentifier , expectedReplacedSource , testName ) ; } public void test004 ( ) { String str = "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" ; String testName = "<STR_LIT>" ; String completeBehind = "<STR_LIT>" ; String expectedCompletionNodeToString = "<STR_LIT>" ; String completionIdentifier = "<STR_LIT>" ; String expectedReplacedSource = "<STR_LIT>" ; int cursorLocation = str . lastIndexOf ( "<STR_LIT>" ) + completeBehind . length ( ) - <NUM_LIT:1> ; String expectedUnitDisplayString = "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" ; checkMethodParse ( str . toCharArray ( ) , cursorLocation , expectedCompletionNodeToString , expectedUnitDisplayString , completionIdentifier , expectedReplacedSource , testName ) ; } public void test005 ( ) { String str = "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" ; String testName = "<STR_LIT>" ; String completeBehind = "<STR_LIT>" ; String expectedCompletionNodeToString = "<STR_LIT>" ; String completionIdentifier = "<STR_LIT>" ; String expectedReplacedSource = "<STR_LIT>" ; int cursorLocation = str . lastIndexOf ( "<STR_LIT>" ) + completeBehind . length ( ) - <NUM_LIT:1> ; String expectedUnitDisplayString = "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" ; checkDietParse ( str . toCharArray ( ) , cursorLocation , expectedCompletionNodeToString , expectedUnitDisplayString , completionIdentifier , expectedReplacedSource , testName ) ; } public void test006 ( ) { String str = "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" ; String testName = "<STR_LIT>" ; String completeBehind = "<STR_LIT>" ; String expectedCompletionNodeToString = "<STR_LIT>" ; String completionIdentifier = "<STR_LIT>" ; String expectedReplacedSource = "<STR_LIT>" ; int cursorLocation = str . lastIndexOf ( "<STR_LIT>" ) + completeBehind . length ( ) - <NUM_LIT:1> ; String expectedUnitDisplayString = "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" ; checkDietParse ( str . toCharArray ( ) , cursorLocation , expectedCompletionNodeToString , expectedUnitDisplayString , completionIdentifier , expectedReplacedSource , testName ) ; } public void test007 ( ) { String str = "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" ; String testName = "<STR_LIT>" ; String completeBehind = "<STR_LIT>" ; String expectedCompletionNodeToString = "<STR_LIT>" ; String completionIdentifier = "<STR_LIT>" ; String expectedReplacedSource = "<STR_LIT>" ; int cursorLocation = str . lastIndexOf ( "<STR_LIT>" ) + completeBehind . length ( ) - <NUM_LIT:1> ; String expectedUnitDisplayString = "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" ; checkDietParse ( str . toCharArray ( ) , cursorLocation , expectedCompletionNodeToString , expectedUnitDisplayString , completionIdentifier , expectedReplacedSource , testName ) ; } public void test008 ( ) { String str = "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" ; String testName = "<STR_LIT>" ; String completeBehind = "<STR_LIT>" ; String expectedCompletionNodeToString = "<STR_LIT>" ; String completionIdentifier = "<STR_LIT>" ; String expectedReplacedSource = "<STR_LIT>" ; int cursorLocation = str . lastIndexOf ( "<STR_LIT>" ) + completeBehind . length ( ) - <NUM_LIT:1> ; String expectedUnitDisplayString = "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" ; checkDietParse ( str . toCharArray ( ) , cursorLocation , expectedCompletionNodeToString , expectedUnitDisplayString , completionIdentifier , expectedReplacedSource , testName ) ; } public void test009 ( ) { String str = "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" ; String testName = "<STR_LIT>" ; String completeBehind = "<STR_LIT>" ; String expectedCompletionNodeToString = "<STR_LIT>" ; String completionIdentifier = "<STR_LIT>" ; String expectedReplacedSource = "<STR_LIT>" ; int cursorLocation = str . lastIndexOf ( "<STR_LIT>" ) + completeBehind . length ( ) - <NUM_LIT:1> ; String expectedUnitDisplayString = "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" ; checkDietParse ( str . toCharArray ( ) , cursorLocation , expectedCompletionNodeToString , expectedUnitDisplayString , completionIdentifier , expectedReplacedSource , testName ) ; } public void test010 ( ) { String str = "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" ; String testName = "<STR_LIT>" ; String completeBehind = "<STR_LIT>" ; String expectedCompletionNodeToString = "<STR_LIT>" ; String completionIdentifier = "<STR_LIT>" ; String expectedReplacedSource = "<STR_LIT>" ; int cursorLocation = str . lastIndexOf ( "<STR_LIT>" ) + completeBehind . length ( ) - <NUM_LIT:1> ; String expectedUnitDisplayString = "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" ; checkDietParse ( str . toCharArray ( ) , cursorLocation , expectedCompletionNodeToString , expectedUnitDisplayString , completionIdentifier , expectedReplacedSource , testName ) ; } public void test011 ( ) { String str = "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" ; String testName = "<STR_LIT>" ; String completeBehind = "<STR_LIT>" ; String expectedCompletionNodeToString = "<STR_LIT>" ; String completionIdentifier = "<STR_LIT>" ; String expectedReplacedSource = "<STR_LIT>" ; int cursorLocation = str . lastIndexOf ( "<STR_LIT>" ) + completeBehind . length ( ) - <NUM_LIT:1> ; String expectedUnitDisplayString = "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" ; checkMethodParse ( str . toCharArray ( ) , cursorLocation , expectedCompletionNodeToString , expectedUnitDisplayString , completionIdentifier , expectedReplacedSource , testName ) ; } public void test012 ( ) { String str = "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" ; String testName = "<STR_LIT>" ; String completeBehind = "<STR_LIT>" ; String expectedCompletionNodeToString = "<STR_LIT>" ; String completionIdentifier = "<STR_LIT>" ; String expectedReplacedSource = "<STR_LIT>" ; int cursorLocation = str . lastIndexOf ( "<STR_LIT>" ) + completeBehind . length ( ) - <NUM_LIT:1> ; String expectedUnitDisplayString = "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" ; checkDietParse ( str . toCharArray ( ) , cursorLocation , expectedCompletionNodeToString , expectedUnitDisplayString , completionIdentifier , expectedReplacedSource , testName ) ; } public void test013 ( ) { String str = "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" ; String testName = "<STR_LIT>" ; String completeBehind = "<STR_LIT>" ; String expectedCompletionNodeToString = "<STR_LIT>" ; String completionIdentifier = "<STR_LIT>" ; String expectedReplacedSource = "<STR_LIT>" ; int cursorLocation = str . lastIndexOf ( "<STR_LIT>" ) + completeBehind . length ( ) - <NUM_LIT:1> ; String expectedUnitDisplayString = "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" ; checkDietParse ( str . toCharArray ( ) , cursorLocation , expectedCompletionNodeToString , expectedUnitDisplayString , completionIdentifier , expectedReplacedSource , testName ) ; } public void test014 ( ) { String str = "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" ; String testName = "<STR_LIT>" ; String completeBehind = "<STR_LIT>" ; String expectedCompletionNodeToString = "<STR_LIT>" ; String completionIdentifier = "<STR_LIT>" ; String expectedReplacedSource = "<STR_LIT>" ; int cursorLocation = str . lastIndexOf ( "<STR_LIT>" ) + completeBehind . length ( ) - <NUM_LIT:1> ; String expectedUnitDisplayString = "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" ; checkMethodParse ( str . toCharArray ( ) , cursorLocation , expectedCompletionNodeToString , expectedUnitDisplayString , completionIdentifier , expectedReplacedSource , testName ) ; } public void test015 ( ) { String str = "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" ; String testName = "<STR_LIT>" ; String completeBehind = "<STR_LIT>" ; String expectedCompletionNodeToString = "<STR_LIT>" ; String completionIdentifier = "<STR_LIT>" ; String expectedReplacedSource = "<STR_LIT>" ; int cursorLocation = str . lastIndexOf ( "<STR_LIT>" ) + completeBehind . length ( ) - <NUM_LIT:1> ; String expectedUnitDisplayString = "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" ; checkMethodParse ( str . toCharArray ( ) , cursorLocation , expectedCompletionNodeToString , expectedUnitDisplayString , completionIdentifier , expectedReplacedSource , testName ) ; } public void test016 ( ) { String str = "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" ; String testName = "<STR_LIT>" ; String completeBehind = "<STR_LIT>" ; String expectedCompletionNodeToString = "<STR_LIT>" ; String completionIdentifier = "<STR_LIT>" ; String expectedReplacedSource = "<STR_LIT>" ; int cursorLocation = str . lastIndexOf ( "<STR_LIT>" ) + completeBehind . length ( ) - <NUM_LIT:1> ; String expectedUnitDisplayString = "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" ; checkMethodParse ( str . toCharArray ( ) , cursorLocation , expectedCompletionNodeToString , expectedUnitDisplayString , completionIdentifier , expectedReplacedSource , testName ) ; } public void test017 ( ) { String str = "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" ; String testName = "<STR_LIT>" ; String completeBehind = "<STR_LIT>" ; String expectedCompletionNodeToString = "<STR_LIT>" ; String completionIdentifier = "<STR_LIT>" ; String expectedReplacedSource = "<STR_LIT>" ; int cursorLocation = str . lastIndexOf ( "<STR_LIT>" ) + completeBehind . length ( ) - <NUM_LIT:1> ; String expectedUnitDisplayString = "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" ; checkDietParse ( str . toCharArray ( ) , cursorLocation , expectedCompletionNodeToString , expectedUnitDisplayString , completionIdentifier , expectedReplacedSource , testName ) ; } } </s>
|
<s> package org . eclipse . jdt . core . tests . util ; import java . io . File ; import java . lang . reflect . Constructor ; import java . lang . reflect . InvocationTargetException ; import java . util . ArrayList ; import java . util . HashMap ; import java . util . List ; import java . util . Map ; import junit . framework . Test ; import junit . framework . TestSuite ; import org . eclipse . core . runtime . IPath ; import org . eclipse . core . runtime . Path ; import org . eclipse . jdt . core . tests . compiler . regression . RegressionTestSetup ; import org . eclipse . jdt . core . tests . junit . extension . TestCase ; import org . eclipse . jdt . internal . compiler . classfmt . ClassFileConstants ; import org . eclipse . jdt . internal . compiler . impl . CompilerOptions ; public class AbstractCompilerTest extends TestCase { public static final int F_1_3 = <NUM_LIT> ; public static final int F_1_4 = <NUM_LIT> ; public static final int F_1_5 = <NUM_LIT> ; public static final int F_1_6 = <NUM_LIT> ; public static final int F_1_7 = <NUM_LIT> ; public static final boolean RUN_JAVAC = CompilerOptions . ENABLED . equals ( System . getProperty ( "<STR_LIT>" ) ) ; private static final int UNINITIALIZED = - <NUM_LIT:1> ; private static final int NONE = <NUM_LIT:0> ; private static int possibleComplianceLevels = UNINITIALIZED ; protected long complianceLevel ; public static Test buildAllCompliancesTestSuite ( Class evaluationTestClass ) { TestSuite suite = new TestSuite ( evaluationTestClass . getName ( ) ) ; buildAllCompliancesTestSuite ( suite , evaluationTestClass ) ; return suite ; } public static void buildAllCompliancesTestSuite ( TestSuite suite , Class evaluationTestClass ) { int complianceLevels = AbstractCompilerTest . getPossibleComplianceLevels ( ) ; if ( ( complianceLevels & AbstractCompilerTest . F_1_3 ) != <NUM_LIT:0> ) { suite . addTest ( buildUniqueComplianceTestSuite ( evaluationTestClass , ClassFileConstants . JDK1_3 ) ) ; } if ( ( complianceLevels & AbstractCompilerTest . F_1_4 ) != <NUM_LIT:0> ) { suite . addTest ( buildUniqueComplianceTestSuite ( evaluationTestClass , ClassFileConstants . JDK1_4 ) ) ; } if ( ( complianceLevels & AbstractCompilerTest . F_1_5 ) != <NUM_LIT:0> ) { suite . addTest ( buildUniqueComplianceTestSuite ( evaluationTestClass , ClassFileConstants . JDK1_5 ) ) ; } if ( ( complianceLevels & AbstractCompilerTest . F_1_6 ) != <NUM_LIT:0> ) { suite . addTest ( buildUniqueComplianceTestSuite ( evaluationTestClass , ClassFileConstants . JDK1_6 ) ) ; } if ( ( complianceLevels & AbstractCompilerTest . F_1_7 ) != <NUM_LIT:0> ) { suite . addTest ( buildUniqueComplianceTestSuite ( evaluationTestClass , ClassFileConstants . JDK1_7 ) ) ; } } public static Test buildAllCompliancesTestSuite ( Class testSuiteClass , Class setupClass , List testClasses ) { TestSuite suite = new TestSuite ( testSuiteClass . getName ( ) ) ; int complianceLevels = AbstractCompilerTest . getPossibleComplianceLevels ( ) ; if ( ( complianceLevels & AbstractCompilerTest . F_1_3 ) != <NUM_LIT:0> ) { suite . addTest ( buildComplianceTestSuite ( testClasses , setupClass , ClassFileConstants . JDK1_3 ) ) ; } if ( ( complianceLevels & AbstractCompilerTest . F_1_4 ) != <NUM_LIT:0> ) { suite . addTest ( buildComplianceTestSuite ( testClasses , setupClass , ClassFileConstants . JDK1_4 ) ) ; } if ( ( complianceLevels & AbstractCompilerTest . F_1_5 ) != <NUM_LIT:0> ) { suite . addTest ( buildComplianceTestSuite ( testClasses , setupClass , ClassFileConstants . JDK1_5 ) ) ; } if ( ( complianceLevels & AbstractCompilerTest . F_1_6 ) != <NUM_LIT:0> ) { suite . addTest ( buildComplianceTestSuite ( testClasses , setupClass , ClassFileConstants . JDK1_6 ) ) ; } if ( ( complianceLevels & AbstractCompilerTest . F_1_7 ) != <NUM_LIT:0> ) { suite . addTest ( buildComplianceTestSuite ( testClasses , setupClass , ClassFileConstants . JDK1_7 ) ) ; } return suite ; } public static Test buildComplianceTestSuite ( long complianceLevel , List testClasses ) { return buildComplianceTestSuite ( testClasses , RegressionTestSetup . class , complianceLevel ) ; } private static Test buildComplianceTestSuite ( List testClasses , Class setupClass , long complianceLevel ) { TestSuite complianceSuite = null ; try { Constructor constructor = setupClass . getConstructor ( new Class [ ] { long . class } ) ; complianceSuite = ( TestSuite ) constructor . newInstance ( new Object [ ] { new Long ( complianceLevel ) } ) ; } catch ( IllegalAccessException e ) { e . printStackTrace ( ) ; } catch ( InstantiationException e ) { e . printStackTrace ( ) ; } catch ( InvocationTargetException e ) { e . getTargetException ( ) . printStackTrace ( ) ; } catch ( NoSuchMethodException e ) { e . printStackTrace ( ) ; } if ( complianceSuite == null ) return null ; for ( int i = <NUM_LIT:0> , m = testClasses . size ( ) ; i < m ; i ++ ) { Class testClass = ( Class ) testClasses . get ( i ) ; TestSuite suite = new TestSuite ( testClass . getName ( ) ) ; List tests = buildTestsList ( testClass ) ; for ( int index = <NUM_LIT:0> , size = tests . size ( ) ; index < size ; index ++ ) { suite . addTest ( ( Test ) tests . get ( index ) ) ; } complianceSuite . addTest ( suite ) ; } return complianceSuite ; } public static Test buildMinimalComplianceTestSuite ( Class evaluationTestClass , int minimalCompliance ) { TestSuite suite = new TestSuite ( evaluationTestClass . getName ( ) ) ; int complianceLevels = AbstractCompilerTest . getPossibleComplianceLevels ( ) ; int level13 = complianceLevels & AbstractCompilerTest . F_1_3 ; if ( level13 != <NUM_LIT:0> ) { if ( level13 < minimalCompliance ) { System . err . println ( "<STR_LIT>" + evaluationTestClass . getName ( ) + "<STR_LIT>" + CompilerOptions . versionFromJdkLevel ( ClassFileConstants . JDK1_3 ) + "<STR_LIT:!>" ) ; } else { suite . addTest ( buildUniqueComplianceTestSuite ( evaluationTestClass , ClassFileConstants . JDK1_3 ) ) ; } } int level14 = complianceLevels & AbstractCompilerTest . F_1_4 ; if ( level14 != <NUM_LIT:0> ) { if ( level14 < minimalCompliance ) { System . err . println ( "<STR_LIT>" + evaluationTestClass . getName ( ) + "<STR_LIT>" + CompilerOptions . versionFromJdkLevel ( ClassFileConstants . JDK1_4 ) + "<STR_LIT:!>" ) ; } else { suite . addTest ( buildUniqueComplianceTestSuite ( evaluationTestClass , ClassFileConstants . JDK1_4 ) ) ; } } int level15 = complianceLevels & AbstractCompilerTest . F_1_5 ; if ( level15 != <NUM_LIT:0> ) { if ( level15 < minimalCompliance ) { System . err . println ( "<STR_LIT>" + evaluationTestClass . getName ( ) + "<STR_LIT>" + CompilerOptions . versionFromJdkLevel ( ClassFileConstants . JDK1_5 ) + "<STR_LIT:!>" ) ; } else { suite . addTest ( buildUniqueComplianceTestSuite ( evaluationTestClass , ClassFileConstants . JDK1_5 ) ) ; } } int level16 = complianceLevels & AbstractCompilerTest . F_1_6 ; if ( level16 != <NUM_LIT:0> ) { if ( level16 < minimalCompliance ) { System . err . println ( "<STR_LIT>" + evaluationTestClass . getName ( ) + "<STR_LIT>" + CompilerOptions . versionFromJdkLevel ( ClassFileConstants . JDK1_6 ) + "<STR_LIT:!>" ) ; } else { suite . addTest ( buildUniqueComplianceTestSuite ( evaluationTestClass , ClassFileConstants . JDK1_6 ) ) ; } } int level17 = complianceLevels & AbstractCompilerTest . F_1_7 ; if ( level17 != <NUM_LIT:0> ) { if ( level17 < minimalCompliance ) { System . err . println ( "<STR_LIT>" + evaluationTestClass . getName ( ) + "<STR_LIT>" + CompilerOptions . versionFromJdkLevel ( ClassFileConstants . JDK1_7 ) + "<STR_LIT:!>" ) ; } else { suite . addTest ( buildUniqueComplianceTestSuite ( evaluationTestClass , ClassFileConstants . JDK1_7 ) ) ; } } return suite ; } public static Test buildUniqueComplianceTestSuite ( Class evaluationTestClass , long uniqueCompliance ) { long highestLevel = highestComplianceLevels ( ) ; if ( highestLevel < uniqueCompliance ) { System . err . println ( "<STR_LIT>" + evaluationTestClass . getName ( ) + "<STR_LIT>" + highestLevel + "<STR_LIT:!>" ) ; return new TestSuite ( ) ; } TestSuite complianceSuite = new RegressionTestSetup ( uniqueCompliance ) ; List tests = buildTestsList ( evaluationTestClass ) ; for ( int index = <NUM_LIT:0> , size = tests . size ( ) ; index < size ; index ++ ) { complianceSuite . addTest ( ( Test ) tests . get ( index ) ) ; } return complianceSuite ; } public static long highestComplianceLevels ( ) { int complianceLevels = AbstractCompilerTest . getPossibleComplianceLevels ( ) ; if ( ( complianceLevels & AbstractCompilerTest . F_1_7 ) != <NUM_LIT:0> ) { return ClassFileConstants . JDK1_7 ; } if ( ( complianceLevels & AbstractCompilerTest . F_1_6 ) != <NUM_LIT:0> ) { return ClassFileConstants . JDK1_6 ; } if ( ( complianceLevels & AbstractCompilerTest . F_1_5 ) != <NUM_LIT:0> ) { return ClassFileConstants . JDK1_5 ; } if ( ( complianceLevels & AbstractCompilerTest . F_1_4 ) != <NUM_LIT:0> ) { return ClassFileConstants . JDK1_4 ; } return ClassFileConstants . JDK1_3 ; } public static int getPossibleComplianceLevels ( ) { if ( possibleComplianceLevels == UNINITIALIZED ) { String compliance = System . getProperty ( "<STR_LIT>" ) ; if ( compliance != null ) { if ( CompilerOptions . VERSION_1_3 . equals ( compliance ) ) { possibleComplianceLevels = RUN_JAVAC ? NONE : F_1_3 ; } else if ( CompilerOptions . VERSION_1_4 . equals ( compliance ) ) { possibleComplianceLevels = RUN_JAVAC ? NONE : F_1_4 ; } else if ( CompilerOptions . VERSION_1_5 . equals ( compliance ) ) { possibleComplianceLevels = F_1_5 ; } else if ( CompilerOptions . VERSION_1_6 . equals ( compliance ) ) { possibleComplianceLevels = F_1_6 ; } else if ( CompilerOptions . VERSION_1_7 . equals ( compliance ) ) { possibleComplianceLevels = F_1_7 ; } else { System . out . println ( "<STR_LIT>" + compliance + "<STR_LIT:)>" ) ; System . out . print ( "<STR_LIT>" ) ; System . out . print ( CompilerOptions . VERSION_1_3 + "<STR_LIT:U+002CU+0020>" ) ; System . out . print ( CompilerOptions . VERSION_1_4 + "<STR_LIT:U+002CU+0020>" ) ; System . out . print ( CompilerOptions . VERSION_1_5 + "<STR_LIT:U+002CU+0020>" ) ; System . out . print ( CompilerOptions . VERSION_1_6 + "<STR_LIT:U+002CU+0020>" ) ; System . out . println ( CompilerOptions . VERSION_1_7 ) ; System . out . println ( "<STR_LIT>" ) ; } } if ( possibleComplianceLevels == UNINITIALIZED ) { String specVersion = System . getProperty ( "<STR_LIT>" ) ; if ( ! RUN_JAVAC ) { possibleComplianceLevels = F_1_3 ; boolean canRun1_4 = ! "<STR_LIT:1.0>" . equals ( specVersion ) && ! CompilerOptions . VERSION_1_1 . equals ( specVersion ) && ! CompilerOptions . VERSION_1_2 . equals ( specVersion ) && ! CompilerOptions . VERSION_1_3 . equals ( specVersion ) ; if ( canRun1_4 ) { possibleComplianceLevels |= F_1_4 ; } boolean canRun1_5 = canRun1_4 && ! CompilerOptions . VERSION_1_4 . equals ( specVersion ) ; if ( canRun1_5 ) { possibleComplianceLevels |= F_1_5 ; } boolean canRun1_6 = canRun1_5 && ! CompilerOptions . VERSION_1_5 . equals ( specVersion ) ; if ( canRun1_6 ) { possibleComplianceLevels |= F_1_6 ; } boolean canRun1_7 = canRun1_6 && ! CompilerOptions . VERSION_1_6 . equals ( specVersion ) ; if ( canRun1_7 ) { possibleComplianceLevels |= F_1_7 ; } } else if ( "<STR_LIT:1.0>" . equals ( specVersion ) || CompilerOptions . VERSION_1_1 . equals ( specVersion ) || CompilerOptions . VERSION_1_2 . equals ( specVersion ) || CompilerOptions . VERSION_1_3 . equals ( specVersion ) || CompilerOptions . VERSION_1_4 . equals ( specVersion ) ) { possibleComplianceLevels = NONE ; } else { possibleComplianceLevels = F_1_5 ; if ( ! CompilerOptions . VERSION_1_5 . equals ( specVersion ) ) { possibleComplianceLevels |= F_1_6 ; if ( ! CompilerOptions . VERSION_1_6 . equals ( specVersion ) ) { possibleComplianceLevels |= F_1_7 ; } } } } } if ( possibleComplianceLevels == NONE ) { System . out . println ( "<STR_LIT>" ) ; } return possibleComplianceLevels ; } public static Test suite ( String suiteName , Class setupClass , ArrayList testClasses ) { TestSuite all = new TestSuite ( suiteName ) ; int complianceLevels = AbstractCompilerTest . getPossibleComplianceLevels ( ) ; if ( ( complianceLevels & AbstractCompilerTest . F_1_3 ) != <NUM_LIT:0> ) { all . addTest ( suiteForComplianceLevel ( ClassFileConstants . JDK1_3 , setupClass , testClasses ) ) ; } if ( ( complianceLevels & AbstractCompilerTest . F_1_4 ) != <NUM_LIT:0> ) { all . addTest ( suiteForComplianceLevel ( ClassFileConstants . JDK1_4 , setupClass , testClasses ) ) ; } if ( ( complianceLevels & AbstractCompilerTest . F_1_5 ) != <NUM_LIT:0> ) { all . addTest ( suiteForComplianceLevel ( ClassFileConstants . JDK1_5 , setupClass , testClasses ) ) ; } return all ; } public static Test suiteForComplianceLevel ( long complianceLevel , Class setupClass , ArrayList testClasses ) { TestSuite suite = null ; try { Constructor constructor = setupClass . getConstructor ( new Class [ ] { String . class } ) ; suite = ( TestSuite ) constructor . newInstance ( new Object [ ] { CompilerOptions . versionFromJdkLevel ( complianceLevel ) } ) ; } catch ( IllegalAccessException e ) { e . printStackTrace ( ) ; } catch ( InstantiationException e ) { e . printStackTrace ( ) ; } catch ( InvocationTargetException e ) { e . getTargetException ( ) . printStackTrace ( ) ; } catch ( NoSuchMethodException e ) { e . printStackTrace ( ) ; } if ( suite == null ) return null ; Class testClass ; if ( testClasses . size ( ) == <NUM_LIT:1> ) { suite = new TestSuite ( testClass = ( Class ) testClasses . get ( <NUM_LIT:0> ) , CompilerOptions . versionFromJdkLevel ( complianceLevel ) ) ; TESTS_COUNTERS . put ( testClass . getName ( ) , new Integer ( suite . countTestCases ( ) ) ) ; } else { suite = new TestSuite ( CompilerOptions . versionFromJdkLevel ( complianceLevel ) ) ; for ( int i = <NUM_LIT:0> , length = testClasses . size ( ) ; i < length ; i ++ ) { TestSuite innerSuite = new TestSuite ( testClass = ( Class ) testClasses . get ( i ) ) ; TESTS_COUNTERS . put ( testClass . getName ( ) , new Integer ( innerSuite . countTestCases ( ) ) ) ; suite . addTest ( innerSuite ) ; } } return suite ; } public static Test setupSuite ( Class clazz ) { ArrayList testClasses = new ArrayList ( ) ; testClasses . add ( clazz ) ; return suite ( clazz . getName ( ) , RegressionTestSetup . class , testClasses ) ; } public static Test buildTestSuite ( Class evaluationTestClass ) { if ( TESTS_PREFIX != null || TESTS_NAMES != null || TESTS_NUMBERS != null || TESTS_RANGE != null ) { return buildTestSuite ( evaluationTestClass , highestComplianceLevels ( ) ) ; } return setupSuite ( evaluationTestClass ) ; } public static Test buildTestSuite ( Class evaluationTestClass , long complianceLevel ) { TestSuite suite = new RegressionTestSetup ( complianceLevel ) ; List tests = buildTestsList ( evaluationTestClass ) ; for ( int index = <NUM_LIT:0> , size = tests . size ( ) ; index < size ; index ++ ) { suite . addTest ( ( Test ) tests . get ( index ) ) ; } String className = evaluationTestClass . getName ( ) ; Integer testsNb ; int newTestsNb = suite . countTestCases ( ) ; if ( ( testsNb = ( Integer ) TESTS_COUNTERS . get ( className ) ) != null ) newTestsNb += testsNb . intValue ( ) ; TESTS_COUNTERS . put ( className , new Integer ( newTestsNb ) ) ; return suite ; } public static boolean isJRELevel ( int compliance ) { return ( AbstractCompilerTest . getPossibleComplianceLevels ( ) & compliance ) != <NUM_LIT:0> ; } public AbstractCompilerTest ( String name ) { super ( name ) ; } protected Map getCompilerOptions ( ) { Map options = new CompilerOptions ( ) . getMap ( ) ; options . put ( CompilerOptions . OPTION_ReportUnusedLocal , CompilerOptions . IGNORE ) ; if ( this . complianceLevel == ClassFileConstants . JDK1_3 ) { options . put ( CompilerOptions . OPTION_Compliance , CompilerOptions . VERSION_1_3 ) ; options . put ( CompilerOptions . OPTION_Source , CompilerOptions . VERSION_1_3 ) ; options . put ( CompilerOptions . OPTION_TargetPlatform , CompilerOptions . VERSION_1_1 ) ; } else if ( this . complianceLevel == ClassFileConstants . JDK1_4 ) { options . put ( CompilerOptions . OPTION_Compliance , CompilerOptions . VERSION_1_4 ) ; options . put ( CompilerOptions . OPTION_Source , CompilerOptions . VERSION_1_4 ) ; options . put ( CompilerOptions . OPTION_TargetPlatform , CompilerOptions . VERSION_1_4 ) ; } else if ( this . complianceLevel == ClassFileConstants . JDK1_5 ) { options . put ( CompilerOptions . OPTION_Compliance , CompilerOptions . VERSION_1_5 ) ; options . put ( CompilerOptions . OPTION_Source , CompilerOptions . VERSION_1_5 ) ; options . put ( CompilerOptions . OPTION_TargetPlatform , CompilerOptions . VERSION_1_5 ) ; } else if ( this . complianceLevel == ClassFileConstants . JDK1_6 ) { options . put ( CompilerOptions . OPTION_Compliance , CompilerOptions . VERSION_1_6 ) ; options . put ( CompilerOptions . OPTION_Source , CompilerOptions . VERSION_1_6 ) ; options . put ( CompilerOptions . OPTION_TargetPlatform , CompilerOptions . VERSION_1_6 ) ; } else if ( this . complianceLevel == ClassFileConstants . JDK1_7 ) { options . put ( CompilerOptions . OPTION_Compliance , CompilerOptions . VERSION_1_7 ) ; options . put ( CompilerOptions . OPTION_Source , CompilerOptions . VERSION_1_7 ) ; options . put ( CompilerOptions . OPTION_TargetPlatform , CompilerOptions . VERSION_1_7 ) ; } return options ; } public String getName ( ) { String name = super . getName ( ) ; if ( this . complianceLevel != <NUM_LIT:0> ) { name = name + "<STR_LIT:U+0020-U+0020>" + CompilerOptions . versionFromJdkLevel ( this . complianceLevel ) ; } return name ; } public void initialize ( CompilerTestSetup setUp ) { this . complianceLevel = setUp . complianceLevel ; } protected String testName ( ) { return super . getName ( ) ; } protected IPath outputRootDirectoryPath = new Path ( Util . getOutputDirectory ( ) ) ; protected File outputTestDirectory ; protected void createOutputTestDirectory ( String suffixPath ) { this . outputTestDirectory = new File ( this . outputRootDirectoryPath . toFile ( ) , suffixPath ) ; if ( ! this . outputTestDirectory . exists ( ) ) { this . outputTestDirectory . mkdirs ( ) ; } } protected void writeFiles ( String [ ] testFiles ) { createOutputTestDirectory ( testName ( ) ) ; for ( int i = <NUM_LIT:0> , length = testFiles . length ; i < length ; ) { String fileName = testFiles [ i ++ ] ; String contents = testFiles [ i ++ ] ; File file = new File ( this . outputTestDirectory , fileName ) ; if ( fileName . lastIndexOf ( '<CHAR_LIT:/>' ) >= <NUM_LIT:0> ) { File dir = file . getParentFile ( ) ; if ( ! dir . exists ( ) ) { dir . mkdirs ( ) ; } } Util . writeToFile ( contents , file . getPath ( ) ) ; } } protected static Map TESTS_COUNTERS = new HashMap ( ) ; } </s>
|
<s> package org . eclipse . jdt . core . tests . util ; import java . lang . reflect . * ; import java . io . * ; import java . net . * ; import java . util . * ; public class VerifyTests { int portNumber ; Socket socket ; public class VerifyClassLoader extends ClassLoader { private String [ ] fPathItems ; private String [ ] fExcluded = { "<STR_LIT>" , "<STR_LIT>" } ; public VerifyClassLoader ( ) { super ( ) ; String classPath = System . getProperty ( "<STR_LIT>" ) ; String separator = System . getProperty ( "<STR_LIT>" ) ; StringTokenizer st = new StringTokenizer ( classPath , separator ) ; int i = <NUM_LIT:0> ; while ( st . hasMoreTokens ( ) ) { st . nextToken ( ) ; i ++ ; } fPathItems = new String [ i ] ; st = new StringTokenizer ( classPath , separator ) ; i = <NUM_LIT:0> ; while ( st . hasMoreTokens ( ) ) { fPathItems [ i ++ ] = st . nextToken ( ) ; } } public java . net . URL getResource ( String name ) { return ClassLoader . getSystemResource ( name ) ; } public InputStream getResourceAsStream ( String name ) { return ClassLoader . getSystemResourceAsStream ( name ) ; } protected boolean isExcluded ( String name ) { if ( name . startsWith ( "<STR_LIT>" ) ) return true ; if ( name . startsWith ( "<STR_LIT>" ) ) return true ; for ( int i = <NUM_LIT:0> ; i < fExcluded . length ; i ++ ) { if ( name . startsWith ( fExcluded [ i ] ) ) { return true ; } } return false ; } public synchronized Class loadClass ( String name , boolean resolve ) throws ClassNotFoundException { Class c = findLoadedClass ( name ) ; if ( c != null ) return c ; if ( isExcluded ( name ) ) { try { c = findSystemClass ( name ) ; return c ; } catch ( ClassNotFoundException e ) { } } File file = locate ( name ) ; if ( file == null ) throw new ClassNotFoundException ( ) ; byte data [ ] = loadClassData ( file ) ; c = defineClass ( name , data , <NUM_LIT:0> , data . length ) ; if ( resolve ) resolveClass ( c ) ; return c ; } private byte [ ] loadClassData ( File f ) throws ClassNotFoundException { FileInputStream stream = null ; try { stream = new FileInputStream ( f ) ; try { byte [ ] b = new byte [ stream . available ( ) ] ; stream . read ( b ) ; return b ; } catch ( IOException e ) { throw new ClassNotFoundException ( ) ; } } catch ( FileNotFoundException e ) { throw new ClassNotFoundException ( ) ; } finally { if ( stream != null ) { try { stream . close ( ) ; } catch ( IOException e ) { } } } } private File locate ( String fileName ) { if ( fileName != null ) { fileName = fileName . replace ( '<CHAR_LIT:.>' , '<CHAR_LIT:/>' ) + "<STR_LIT:.class>" ; File path = null ; for ( int i = <NUM_LIT:0> ; i < fPathItems . length ; i ++ ) { path = new File ( fPathItems [ i ] , fileName ) ; if ( path . exists ( ) ) return path ; } } return null ; } } public void loadAndRun ( String className ) throws Throwable { Class testClass = new VerifyClassLoader ( ) . loadClass ( className ) ; try { System . out . println ( "<STR_LIT>" ) ; Method main = testClass . getMethod ( "<STR_LIT>" , new Class [ ] { String [ ] . class } ) ; main . invoke ( null , new Object [ ] { new String [ ] { } } ) ; } catch ( NoSuchMethodException e ) { return ; } catch ( InvocationTargetException e ) { throw e . getTargetException ( ) ; } } public static void main ( String [ ] args ) throws IOException { VerifyTests verify = new VerifyTests ( ) ; verify . portNumber = Integer . parseInt ( args [ <NUM_LIT:0> ] ) ; verify . run ( ) ; } public void run ( ) throws IOException { ServerSocket server = new ServerSocket ( this . portNumber ) ; this . socket = server . accept ( ) ; this . socket . setTcpNoDelay ( true ) ; server . close ( ) ; DataInputStream in = new DataInputStream ( this . socket . getInputStream ( ) ) ; final DataOutputStream out = new DataOutputStream ( this . socket . getOutputStream ( ) ) ; while ( true ) { final String className = in . readUTF ( ) ; Thread thread = new Thread ( ) { public void run ( ) { try { loadAndRun ( className ) ; out . writeBoolean ( true ) ; System . err . println ( VerifyTests . class . getName ( ) ) ; System . out . println ( VerifyTests . class . getName ( ) ) ; } catch ( Throwable e ) { e . printStackTrace ( ) ; try { System . err . println ( VerifyTests . class . getName ( ) ) ; System . out . println ( VerifyTests . class . getName ( ) ) ; out . writeBoolean ( false ) ; } catch ( IOException e1 ) { } } } } ; thread . start ( ) ; } } } </s>
|
<s> package org . eclipse . jdt . core . tests . util ; import org . eclipse . jdt . core . compiler . batch . BatchCompiler ; import org . eclipse . jdt . core . tests . runtime . * ; import java . io . * ; import java . net . * ; public class TestVerifier { public String failureReason ; boolean reuseVM = true ; String [ ] classpathCache ; LocalVirtualMachine vm ; StringBuffer outputBuffer ; StringBuffer errorBuffer ; Socket socket ; public TestVerifier ( boolean reuseVM ) { this . reuseVM = reuseVM ; } private boolean checkBuffers ( String outputString , String errorString , String sourceFileName , String expectedOutputString , String expectedErrorStringStart ) { boolean didMatchExpectation = true ; String platformIndependantString ; this . failureReason = null ; if ( expectedOutputString != null ) { platformIndependantString = Util . convertToIndependantLineDelimiter ( outputString . trim ( ) ) ; if ( ! Util . convertToIndependantLineDelimiter ( expectedOutputString ) . equals ( platformIndependantString ) ) { System . out . println ( Util . displayString ( platformIndependantString , <NUM_LIT:2> ) ) ; this . failureReason = "<STR_LIT>" + sourceFileName + "<STR_LIT>" + "<STR_LIT>" + outputString + "<STR_LIT>" ; didMatchExpectation = false ; } } if ( expectedErrorStringStart != null ) { platformIndependantString = Util . convertToIndependantLineDelimiter ( errorString . trim ( ) ) ; if ( expectedErrorStringStart . length ( ) == <NUM_LIT:0> && platformIndependantString . length ( ) > <NUM_LIT:0> || ! platformIndependantString . startsWith ( Util . convertToIndependantLineDelimiter ( expectedErrorStringStart ) ) ) { System . out . println ( Util . displayString ( platformIndependantString , <NUM_LIT:2> ) ) ; this . failureReason = "<STR_LIT>" + sourceFileName + "<STR_LIT>" + "<STR_LIT>" + errorString + "<STR_LIT>" ; didMatchExpectation = false ; } } return didMatchExpectation ; } private boolean checkBuffersThrowingError ( String errorString , String sourceFileName , String expectedSuccessOutputString ) { if ( errorString . length ( ) > <NUM_LIT:0> && errorString . indexOf ( expectedSuccessOutputString ) != - <NUM_LIT:1> ) { return true ; } this . failureReason = "<STR_LIT>" + sourceFileName + "<STR_LIT>" + expectedSuccessOutputString ; return false ; } private void compileVerifyTests ( String verifierDir ) { String fullyQualifiedName = VerifyTests . class . getName ( ) ; int lastDot = fullyQualifiedName . lastIndexOf ( '<CHAR_LIT:.>' ) ; String packageName = fullyQualifiedName . substring ( <NUM_LIT:0> , lastDot ) ; String simpleName = fullyQualifiedName . substring ( lastDot + <NUM_LIT:1> ) ; String dirName = verifierDir . replace ( '<STR_LIT:\\>' , '<CHAR_LIT:/>' ) + "<STR_LIT:/>" + packageName . replace ( '<CHAR_LIT:.>' , '<CHAR_LIT:/>' ) ; File dir = new File ( dirName . replace ( '<CHAR_LIT:/>' , File . separatorChar ) ) ; if ( ! dir . exists ( ) && ! dir . mkdirs ( ) ) { System . out . println ( "<STR_LIT>" + dir ) ; return ; } String fileName = dir + File . separator + simpleName + "<STR_LIT>" ; Util . writeToFile ( this . getVerifyTestsCode ( ) , fileName ) ; BatchCompiler . compile ( "<STR_LIT:\">" + fileName + "<STR_LIT>" + verifierDir + "<STR_LIT>" + Util . getJavaClassLibsAsString ( ) + "<STR_LIT:\">" , new PrintWriter ( System . out ) , new PrintWriter ( System . err ) , null ) ; } public void execute ( String className , String [ ] classpaths ) { this . outputBuffer = new StringBuffer ( ) ; this . errorBuffer = new StringBuffer ( ) ; launchAndRun ( className , classpaths , null , null ) ; } protected void finalize ( ) throws Throwable { this . shutDown ( ) ; } public String getExecutionOutput ( ) { return outputBuffer . toString ( ) ; } public String getExecutionError ( ) { return errorBuffer . toString ( ) ; } private String getVerifyTestsCode ( ) { return "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT:n>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT:n>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT:n>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT:n>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT:n>" + "<STR_LIT:n>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT:n>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT:n>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT:n>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" ; } private void launchAndRun ( String className , String [ ] classpaths , String [ ] programArguments , String [ ] vmArguments ) { if ( this . vm != null ) { try { vm . shutDown ( ) ; } catch ( TargetException e ) { } } this . classpathCache = null ; LocalVMLauncher launcher = LocalVMLauncher . getLauncher ( ) ; launcher . setClassPath ( classpaths ) ; launcher . setVMPath ( Util . getJREDirectory ( ) ) ; if ( vmArguments != null ) { String [ ] completeVmArguments = new String [ vmArguments . length + <NUM_LIT:1> ] ; System . arraycopy ( vmArguments , <NUM_LIT:0> , completeVmArguments , <NUM_LIT:1> , vmArguments . length ) ; completeVmArguments [ <NUM_LIT:0> ] = "<STR_LIT>" ; launcher . setVMArguments ( completeVmArguments ) ; } else { launcher . setVMArguments ( new String [ ] { "<STR_LIT>" } ) ; } launcher . setProgramClass ( className ) ; launcher . setProgramArguments ( programArguments ) ; Thread outputThread ; Thread errorThread ; try { this . vm = launcher . launch ( ) ; final InputStream input = this . vm . getInputStream ( ) ; outputThread = new Thread ( new Runnable ( ) { public void run ( ) { try { int c = input . read ( ) ; while ( c != - <NUM_LIT:1> ) { outputBuffer . append ( ( char ) c ) ; c = input . read ( ) ; } } catch ( IOException ioEx ) { } } } ) ; final InputStream errorStream = this . vm . getErrorStream ( ) ; errorThread = new Thread ( new Runnable ( ) { public void run ( ) { try { int c = errorStream . read ( ) ; while ( c != - <NUM_LIT:1> ) { errorBuffer . append ( ( char ) c ) ; c = errorStream . read ( ) ; } } catch ( IOException ioEx ) { } } } ) ; outputThread . start ( ) ; errorThread . start ( ) ; } catch ( TargetException e ) { throw new Error ( e . getMessage ( ) ) ; } try { outputThread . join ( <NUM_LIT> ) ; errorThread . join ( <NUM_LIT> ) ; } catch ( InterruptedException e ) { } } private void launchVerifyTestsIfNeeded ( String [ ] classpaths , String [ ] vmArguments ) { if ( this . vm != null && this . vm . isRunning ( ) && this . classpathCache != null ) { if ( classpaths . length == classpathCache . length ) { boolean sameClasspaths = true ; for ( int i = <NUM_LIT:0> ; i < classpaths . length ; i ++ ) { if ( ! this . classpathCache [ i ] . equals ( classpaths [ i ] ) ) { sameClasspaths = false ; break ; } } if ( sameClasspaths ) { return ; } } } if ( this . vm != null ) { try { vm . shutDown ( ) ; } catch ( TargetException e ) { } } this . classpathCache = classpaths ; LocalVMLauncher launcher = LocalVMLauncher . getLauncher ( ) ; int length = classpaths . length ; String [ ] cp = new String [ length + <NUM_LIT:1> ] ; System . arraycopy ( classpaths , <NUM_LIT:0> , cp , <NUM_LIT:0> , length ) ; String verifierDir = Util . getOutputDirectory ( ) + File . separator + "<STR_LIT>" ; this . compileVerifyTests ( verifierDir ) ; cp [ length ] = verifierDir ; launcher . setClassPath ( cp ) ; launcher . setVMPath ( Util . getJREDirectory ( ) ) ; if ( vmArguments != null ) { String [ ] completeVmArguments = new String [ vmArguments . length + <NUM_LIT:1> ] ; System . arraycopy ( vmArguments , <NUM_LIT:0> , completeVmArguments , <NUM_LIT:1> , vmArguments . length ) ; completeVmArguments [ <NUM_LIT:0> ] = "<STR_LIT>" ; launcher . setVMArguments ( completeVmArguments ) ; } else { launcher . setVMArguments ( new String [ ] { "<STR_LIT>" } ) ; } launcher . setProgramClass ( VerifyTests . class . getName ( ) ) ; int portNumber = Util . getFreePort ( ) ; launcher . setProgramArguments ( new String [ ] { Integer . toString ( portNumber ) } ) ; try { this . vm = launcher . launch ( ) ; final InputStream input = this . vm . getInputStream ( ) ; Thread outputThread = new Thread ( new Runnable ( ) { public void run ( ) { try { int c = input . read ( ) ; while ( c != - <NUM_LIT:1> ) { outputBuffer . append ( ( char ) c ) ; c = input . read ( ) ; } } catch ( IOException ioEx ) { } } } ) ; final InputStream errorStream = this . vm . getErrorStream ( ) ; Thread errorThread = new Thread ( new Runnable ( ) { public void run ( ) { try { int c = errorStream . read ( ) ; while ( c != - <NUM_LIT:1> ) { errorBuffer . append ( ( char ) c ) ; c = errorStream . read ( ) ; } } catch ( IOException ioEx ) { } } } ) ; outputThread . start ( ) ; errorThread . start ( ) ; } catch ( TargetException e ) { throw new Error ( e . getMessage ( ) ) ; } this . socket = null ; boolean isVMRunning = false ; do { try { this . socket = new Socket ( "<STR_LIT:localhost>" , portNumber ) ; this . socket . setTcpNoDelay ( true ) ; break ; } catch ( UnknownHostException e ) { } catch ( IOException e ) { } if ( this . socket == null ) { try { Thread . sleep ( <NUM_LIT:100> ) ; } catch ( InterruptedException e ) { } isVMRunning = vm . isRunning ( ) ; } } while ( this . socket == null && isVMRunning ) ; } private boolean loadAndRun ( String className ) { if ( this . socket != null ) { try { DataOutputStream out = new DataOutputStream ( this . socket . getOutputStream ( ) ) ; out . writeUTF ( className ) ; DataInputStream in = new DataInputStream ( this . socket . getInputStream ( ) ) ; try { boolean result = in . readBoolean ( ) ; this . waitForFullBuffers ( ) ; return result ; } catch ( SocketException e ) { return true ; } } catch ( IOException e ) { e . printStackTrace ( ) ; } } return true ; } public void shutDown ( ) { if ( this . socket != null ) { try { this . socket . close ( ) ; } catch ( IOException e ) { e . printStackTrace ( ) ; } } if ( this . vm != null ) { try { int retry = <NUM_LIT:0> ; while ( this . vm . isRunning ( ) && ( ++ retry < <NUM_LIT:20> ) ) { try { Thread . sleep ( <NUM_LIT:100> ) ; } catch ( InterruptedException e ) { } } if ( this . vm . isRunning ( ) ) { this . vm . shutDown ( ) ; } } catch ( TargetException e ) { e . printStackTrace ( ) ; } } } public boolean verifyClassFiles ( String sourceFilePath , String className , String expectedSuccessOutputString , String [ ] classpaths ) { return verifyClassFiles ( sourceFilePath , className , expectedSuccessOutputString , "<STR_LIT>" , classpaths , null , null ) ; } public boolean verifyClassFiles ( String sourceFilePath , String className , String expectedSuccessOutputString , String [ ] classpaths , String [ ] programArguments , String [ ] vmArguments ) { return verifyClassFiles ( sourceFilePath , className , expectedSuccessOutputString , "<STR_LIT>" , classpaths , programArguments , vmArguments ) ; } public boolean verifyClassFiles ( String sourceFilePath , String className , String expectedOutputString , String expectedErrorStringStart , String [ ] classpaths , String [ ] programArguments , String [ ] vmArguments ) { this . outputBuffer = new StringBuffer ( ) ; this . errorBuffer = new StringBuffer ( ) ; if ( this . reuseVM && programArguments == null ) { this . launchVerifyTestsIfNeeded ( classpaths , vmArguments ) ; this . loadAndRun ( className ) ; } else { this . launchAndRun ( className , classpaths , programArguments , vmArguments ) ; } this . failureReason = null ; return this . checkBuffers ( this . outputBuffer . toString ( ) , this . errorBuffer . toString ( ) , sourceFilePath , expectedOutputString , expectedErrorStringStart ) ; } public boolean verifyClassFilesThrowingError ( String sourceFilePath , String className , String expectedSuccessOutputString , String [ ] classpaths , String [ ] programArguments , String [ ] vmArguments ) { this . outputBuffer = new StringBuffer ( ) ; this . errorBuffer = new StringBuffer ( ) ; if ( this . reuseVM && programArguments == null ) { this . launchVerifyTestsIfNeeded ( classpaths , vmArguments ) ; this . loadAndRun ( className ) ; } else { this . launchAndRun ( className , classpaths , programArguments , vmArguments ) ; } this . failureReason = null ; return this . checkBuffersThrowingError ( this . errorBuffer . toString ( ) , sourceFilePath , expectedSuccessOutputString ) ; } private void waitForFullBuffers ( ) { String endString = VerifyTests . class . getName ( ) ; int count = <NUM_LIT> ; int errorEndStringStart = this . errorBuffer . toString ( ) . indexOf ( endString ) ; int outputEndStringStart = this . outputBuffer . toString ( ) . indexOf ( endString ) ; while ( errorEndStringStart == - <NUM_LIT:1> || outputEndStringStart == - <NUM_LIT:1> ) { try { Thread . sleep ( <NUM_LIT:100> ) ; } catch ( InterruptedException e ) { } if ( -- count == <NUM_LIT:0> ) return ; errorEndStringStart = this . errorBuffer . toString ( ) . indexOf ( endString ) ; outputEndStringStart = this . outputBuffer . toString ( ) . indexOf ( endString ) ; } this . errorBuffer . setLength ( errorEndStringStart ) ; this . outputBuffer . setLength ( outputEndStringStart ) ; } } </s>
|
<s> package org . eclipse . jdt . core . tests . util ; import java . io . * ; import java . net . ServerSocket ; import java . util . * ; import java . util . zip . * ; import org . eclipse . core . resources . IContainer ; import org . eclipse . core . resources . IResource ; import org . eclipse . core . runtime . CoreException ; import org . eclipse . core . runtime . IPath ; import org . eclipse . jdt . core . compiler . CategorizedProblem ; import org . eclipse . jdt . core . compiler . IProblem ; import org . eclipse . jdt . core . tests . compiler . regression . Requestor ; import org . eclipse . jdt . internal . compiler . CompilationResult ; import org . eclipse . jdt . internal . compiler . Compiler ; import org . eclipse . jdt . internal . compiler . IErrorHandlingPolicy ; import org . eclipse . jdt . internal . compiler . IProblemFactory ; import org . eclipse . jdt . internal . compiler . batch . CompilationUnit ; import org . eclipse . jdt . internal . compiler . batch . FileSystem ; import org . eclipse . jdt . internal . compiler . env . INameEnvironment ; import org . eclipse . jdt . internal . compiler . impl . CompilerOptions ; import org . eclipse . jdt . internal . compiler . impl . IrritantSet ; import org . eclipse . jdt . internal . compiler . problem . DefaultProblem ; import org . eclipse . jdt . internal . compiler . problem . DefaultProblemFactory ; import org . eclipse . jdt . internal . compiler . problem . ProblemReporter ; public class Util { private static int DELETE_MAX_TIME = <NUM_LIT:0> ; public static boolean DELETE_DEBUG = false ; public static int DELETE_MAX_WAIT = <NUM_LIT> ; private static final boolean DEBUG = false ; private final static String OUTPUT_DIRECTORY ; private final static String DELAY_BEFORE_CLEAN_PREVIOUS = System . getProperty ( "<STR_LIT>" ) ; static { long millisecondsPerHour = <NUM_LIT> * <NUM_LIT> ; long delay = millisecondsPerHour * <NUM_LIT:2> ; try { if ( DELAY_BEFORE_CLEAN_PREVIOUS != null ) { float hours = Float . parseFloat ( DELAY_BEFORE_CLEAN_PREVIOUS ) ; delay = ( int ) ( millisecondsPerHour * hours ) ; } } catch ( NumberFormatException nfe ) { } String container = System . getProperty ( "<STR_LIT>" ) ; if ( container == null ) { container = System . getProperty ( "<STR_LIT>" ) ; } if ( container == null ) { container = "<STR_LIT:.>" ; } if ( Character . isLowerCase ( container . charAt ( <NUM_LIT:0> ) ) && container . charAt ( <NUM_LIT:1> ) == '<CHAR_LIT::>' ) { container = Character . toUpperCase ( container . charAt ( <NUM_LIT:0> ) ) + container . substring ( <NUM_LIT:1> ) ; } File dir = new File ( new File ( container ) , "<STR_LIT>" ) ; if ( dir . exists ( ) ) { long now = System . currentTimeMillis ( ) ; if ( ( now - dir . lastModified ( ) ) > delay ) { flushDirectoryContent ( dir ) ; } else { File [ ] testDirs = dir . listFiles ( ) ; for ( int i = <NUM_LIT:0> , l = testDirs . length ; i < l ; i ++ ) { if ( testDirs [ i ] . isDirectory ( ) ) { if ( ( now - testDirs [ i ] . lastModified ( ) ) > delay ) { delete ( testDirs [ i ] ) ; } } } } } File dateDir = new File ( dir , "<STR_LIT>" + System . currentTimeMillis ( ) ) ; OUTPUT_DIRECTORY = dateDir . getPath ( ) ; } public static void appendProblem ( StringBuffer problems , IProblem problem , char [ ] source , int problemCount ) { problems . append ( problemCount + ( problem . isError ( ) ? "<STR_LIT>" : "<STR_LIT>" ) ) ; problems . append ( "<STR_LIT>" + new String ( problem . getOriginatingFileName ( ) ) ) ; if ( source != null ) { problems . append ( ( ( DefaultProblem ) problem ) . errorReportSource ( source ) ) ; } problems . append ( "<STR_LIT:n>" ) ; problems . append ( problem . getMessage ( ) ) ; problems . append ( "<STR_LIT:n>" ) ; } public static CompilationUnit [ ] compilationUnits ( String [ ] testFiles ) { int length = testFiles . length / <NUM_LIT:2> ; CompilationUnit [ ] result = new CompilationUnit [ length ] ; int index = <NUM_LIT:0> ; for ( int i = <NUM_LIT:0> ; i < length ; i ++ ) { result [ i ] = new CompilationUnit ( testFiles [ index + <NUM_LIT:1> ] . toCharArray ( ) , testFiles [ index ] , null ) ; index += <NUM_LIT:2> ; } return result ; } public static void compile ( String [ ] pathsAndContents , Map options , String outputPath ) { compile ( pathsAndContents , options , null , outputPath ) ; } public static void compile ( String [ ] pathsAndContents , Map options , String [ ] classpath , String outputPath ) { IProblemFactory problemFactory = new DefaultProblemFactory ( Locale . getDefault ( ) ) ; Requestor requestor = new Requestor ( false , null , false , false ) ; requestor . outputPath = outputPath . endsWith ( File . separator ) ? outputPath : outputPath + File . separator ; String [ ] classLibs = getJavaClassLibs ( ) ; if ( classpath != null ) { int length = classpath . length ; int classLibsLength = classLibs . length ; System . arraycopy ( classpath , <NUM_LIT:0> , classpath = new String [ classLibsLength + length ] , classLibsLength , length ) ; System . arraycopy ( classLibs , <NUM_LIT:0> , classpath , <NUM_LIT:0> , classLibsLength ) ; } else { classpath = classLibs ; } INameEnvironment nameEnvironment = new FileSystem ( classpath , new String [ ] { } , null ) ; IErrorHandlingPolicy errorHandlingPolicy = new IErrorHandlingPolicy ( ) { public boolean proceedOnErrors ( ) { return true ; } public boolean stopOnFirstError ( ) { return false ; } } ; CompilerOptions compilerOptions = new CompilerOptions ( options ) ; compilerOptions . performMethodsFullRecovery = false ; compilerOptions . performStatementsRecovery = false ; Compiler batchCompiler = new Compiler ( nameEnvironment , errorHandlingPolicy , compilerOptions , requestor , problemFactory ) ; batchCompiler . options . produceReferenceInfo = true ; batchCompiler . compile ( compilationUnits ( pathsAndContents ) ) ; nameEnvironment . cleanup ( ) ; if ( requestor . hasErrors ) { System . err . print ( requestor . problemLog ) ; } } public static String [ ] concatWithClassLibs ( String [ ] classpaths , boolean inFront ) { String [ ] classLibs = getJavaClassLibs ( ) ; if ( classpaths == null ) return classLibs ; final int classLibsLength = classLibs . length ; final int classpathsLength = classpaths . length ; String [ ] defaultClassPaths = new String [ classLibsLength + classpathsLength ] ; if ( inFront ) { System . arraycopy ( classLibs , <NUM_LIT:0> , defaultClassPaths , classpathsLength , classLibsLength ) ; System . arraycopy ( classpaths , <NUM_LIT:0> , defaultClassPaths , <NUM_LIT:0> , classpathsLength ) ; } else { System . arraycopy ( classLibs , <NUM_LIT:0> , defaultClassPaths , <NUM_LIT:0> , classLibsLength ) ; System . arraycopy ( classpaths , <NUM_LIT:0> , defaultClassPaths , classLibsLength , classpathsLength ) ; } for ( int i = <NUM_LIT:0> ; i < classpathsLength ; i ++ ) { File file = new File ( classpaths [ i ] ) ; if ( ! file . exists ( ) ) { file . mkdirs ( ) ; } } return defaultClassPaths ; } public static String [ ] concatWithClassLibs ( String classpath , boolean inFront ) { String [ ] classLibs = getJavaClassLibs ( ) ; final int length = classLibs . length ; File dir = new File ( classpath ) ; if ( ! dir . exists ( ) ) dir . mkdirs ( ) ; String [ ] defaultClassPaths = new String [ length + <NUM_LIT:1> ] ; if ( inFront ) { System . arraycopy ( classLibs , <NUM_LIT:0> , defaultClassPaths , <NUM_LIT:1> , length ) ; defaultClassPaths [ <NUM_LIT:0> ] = classpath ; } else { System . arraycopy ( classLibs , <NUM_LIT:0> , defaultClassPaths , <NUM_LIT:0> , length ) ; defaultClassPaths [ length ] = classpath ; } return defaultClassPaths ; } public static String convertToIndependantLineDelimiter ( String source ) { if ( source . indexOf ( '<STR_LIT:\n>' ) == - <NUM_LIT:1> && source . indexOf ( '<STR_LIT>' ) == - <NUM_LIT:1> ) return source ; StringBuffer buffer = new StringBuffer ( ) ; for ( int i = <NUM_LIT:0> , length = source . length ( ) ; i < length ; i ++ ) { char car = source . charAt ( i ) ; if ( car == '<STR_LIT>' ) { buffer . append ( '<STR_LIT:\n>' ) ; if ( i < length - <NUM_LIT:1> && source . charAt ( i + <NUM_LIT:1> ) == '<STR_LIT:\n>' ) { i ++ ; } } else { buffer . append ( car ) ; } } return buffer . toString ( ) ; } public static void copy ( String sourcePath , String destPath ) { sourcePath = toNativePath ( sourcePath ) ; destPath = toNativePath ( destPath ) ; File source = new File ( sourcePath ) ; if ( ! source . exists ( ) ) return ; File dest = new File ( destPath ) ; if ( ! dest . exists ( ) ) return ; if ( source . isDirectory ( ) ) { String [ ] files = source . list ( ) ; if ( files != null ) { for ( int i = <NUM_LIT:0> ; i < files . length ; i ++ ) { String file = files [ i ] ; File sourceFile = new File ( source , file ) ; if ( sourceFile . isDirectory ( ) ) { File destSubDir = new File ( dest , file ) ; destSubDir . mkdir ( ) ; copy ( sourceFile . getPath ( ) , destSubDir . getPath ( ) ) ; } else { copy ( sourceFile . getPath ( ) , dest . getPath ( ) ) ; } } } } else { FileInputStream in = null ; FileOutputStream out = null ; try { in = new FileInputStream ( source ) ; File destFile = new File ( dest , source . getName ( ) ) ; if ( destFile . exists ( ) ) { if ( ! Util . delete ( destFile ) ) { throw new IOException ( destFile + "<STR_LIT>" ) ; } } out = new FileOutputStream ( destFile ) ; int bufferLength = <NUM_LIT> ; byte [ ] buffer = new byte [ bufferLength ] ; int read = <NUM_LIT:0> ; while ( read != - <NUM_LIT:1> ) { read = in . read ( buffer , <NUM_LIT:0> , bufferLength ) ; if ( read != - <NUM_LIT:1> ) { out . write ( buffer , <NUM_LIT:0> , read ) ; } } } catch ( IOException e ) { throw new Error ( e . toString ( ) ) ; } finally { if ( in != null ) { try { in . close ( ) ; } catch ( IOException e ) { } } if ( out != null ) { try { out . close ( ) ; } catch ( IOException e ) { } } } } } public static void createFile ( String path , String contents ) throws IOException { FileOutputStream output = new FileOutputStream ( path ) ; try { output . write ( contents . getBytes ( ) ) ; } finally { output . close ( ) ; } } public static void createClassFolder ( String [ ] pathsAndContents , String folderPath , String compliance ) throws IOException { File classesDir = new File ( folderPath ) ; flushDirectoryContent ( classesDir ) ; compile ( pathsAndContents , getCompileOptions ( compliance ) , folderPath ) ; } public static void createJar ( String [ ] pathsAndContents , Map options , String jarPath ) throws IOException { createJar ( pathsAndContents , null , options , null , jarPath ) ; } public static void createJar ( String [ ] pathsAndContents , String [ ] extraPathsAndContents , Map options , String jarPath ) throws IOException { createJar ( pathsAndContents , extraPathsAndContents , options , null , jarPath ) ; } public static void createJar ( String [ ] pathsAndContents , String [ ] extraPathsAndContents , Map options , String jarPath , String [ ] classpath ) throws IOException { createJar ( pathsAndContents , extraPathsAndContents , options , classpath , jarPath ) ; } public static void createJar ( String [ ] pathsAndContents , String [ ] extraPathsAndContents , Map options , String [ ] classpath , String jarPath ) throws IOException { String classesPath = getOutputDirectory ( ) + File . separator + "<STR_LIT>" ; File classesDir = new File ( classesPath ) ; flushDirectoryContent ( classesDir ) ; if ( pathsAndContents != null ) { compile ( pathsAndContents , options , classpath , classesPath ) ; } for ( int i = <NUM_LIT:0> , l = extraPathsAndContents == null ? <NUM_LIT:0> : extraPathsAndContents . length ; i < l ; ) { File outputFile = new File ( classesPath , extraPathsAndContents [ i ++ ] ) ; outputFile . getParentFile ( ) . mkdirs ( ) ; Util . writeToFile ( extraPathsAndContents [ i ++ ] , outputFile . getAbsolutePath ( ) ) ; } zip ( classesDir , jarPath ) ; } public static void createJar ( String [ ] javaPathsAndContents , String jarPath , String compliance ) throws IOException { createJar ( javaPathsAndContents , null , jarPath , compliance ) ; } public static void createJar ( String [ ] javaPathsAndContents , String [ ] extraPathsAndContents , String jarPath , String compliance ) throws IOException { createJar ( javaPathsAndContents , extraPathsAndContents , getCompileOptions ( compliance ) , null , jarPath ) ; } public static void createSourceZip ( String [ ] pathsAndContents , String zipPath ) throws IOException { String sourcesPath = getOutputDirectory ( ) + File . separator + "<STR_LIT>" ; createSourceDir ( pathsAndContents , sourcesPath ) ; zip ( new File ( sourcesPath ) , zipPath ) ; } public static void createSourceDir ( String [ ] pathsAndContents , String sourcesPath ) throws IOException { flushDirectoryContent ( new File ( sourcesPath ) ) ; for ( int i = <NUM_LIT:0> , length = pathsAndContents . length ; i < length ; i += <NUM_LIT:2> ) { String sourcePath = sourcesPath + File . separator + pathsAndContents [ i ] ; File sourceFile = new File ( sourcePath ) ; sourceFile . getParentFile ( ) . mkdirs ( ) ; createFile ( sourcePath , pathsAndContents [ i + <NUM_LIT:1> ] ) ; } } public static boolean delete ( File file ) { if ( file . isDirectory ( ) ) { flushDirectoryContent ( file ) ; } file . delete ( ) ; if ( isFileDeleted ( file ) ) { return true ; } return waitUntilFileDeleted ( file ) ; } public static boolean delete ( IResource resource ) { try { resource . delete ( true , null ) ; if ( isResourceDeleted ( resource ) ) { return true ; } } catch ( CoreException e ) { } return waitUntilResourceDeleted ( resource ) ; } public static boolean delete ( String path ) { return delete ( new File ( path ) ) ; } public static String displayString ( String inputString ) { return displayString ( inputString , <NUM_LIT:0> ) ; } public static String displayString ( String inputString , int indent ) { return displayString ( inputString , indent , false ) ; } public static String displayString ( String inputString , int indent , boolean shift ) { if ( inputString == null ) return "<STR_LIT:null>" ; int length = inputString . length ( ) ; StringBuffer buffer = new StringBuffer ( length ) ; java . util . StringTokenizer tokenizer = new java . util . StringTokenizer ( inputString , "<STR_LIT>" , true ) ; for ( int i = <NUM_LIT:0> ; i < indent ; i ++ ) buffer . append ( "<STR_LIT:t>" ) ; if ( shift ) indent ++ ; buffer . append ( "<STR_LIT:\">" ) ; while ( tokenizer . hasMoreTokens ( ) ) { String token = tokenizer . nextToken ( ) ; if ( token . equals ( "<STR_LIT:r>" ) ) { buffer . append ( "<STR_LIT>" ) ; if ( tokenizer . hasMoreTokens ( ) ) { token = tokenizer . nextToken ( ) ; if ( token . equals ( "<STR_LIT:n>" ) ) { buffer . append ( "<STR_LIT>" ) ; if ( tokenizer . hasMoreTokens ( ) ) { buffer . append ( "<STR_LIT>" ) ; for ( int i = <NUM_LIT:0> ; i < indent ; i ++ ) buffer . append ( "<STR_LIT:t>" ) ; buffer . append ( "<STR_LIT:\">" ) ; } continue ; } buffer . append ( "<STR_LIT>" ) ; for ( int i = <NUM_LIT:0> ; i < indent ; i ++ ) buffer . append ( "<STR_LIT:t>" ) ; buffer . append ( "<STR_LIT:\">" ) ; } else { continue ; } } else if ( token . equals ( "<STR_LIT:n>" ) ) { buffer . append ( "<STR_LIT>" ) ; if ( tokenizer . hasMoreTokens ( ) ) { buffer . append ( "<STR_LIT>" ) ; for ( int i = <NUM_LIT:0> ; i < indent ; i ++ ) buffer . append ( "<STR_LIT:t>" ) ; buffer . append ( "<STR_LIT:\">" ) ; } continue ; } StringBuffer tokenBuffer = new StringBuffer ( ) ; for ( int i = <NUM_LIT:0> ; i < token . length ( ) ; i ++ ) { char c = token . charAt ( i ) ; switch ( c ) { case '<STR_LIT>' : tokenBuffer . append ( "<STR_LIT>" ) ; break ; case '<STR_LIT:\n>' : tokenBuffer . append ( "<STR_LIT>" ) ; break ; case '<STR_LIT>' : tokenBuffer . append ( "<STR_LIT>" ) ; break ; case '<STR_LIT:\t>' : tokenBuffer . append ( "<STR_LIT:t>" ) ; break ; case '<STR_LIT>' : tokenBuffer . append ( "<STR_LIT>" ) ; break ; case '<STR_LIT:\">' : tokenBuffer . append ( "<STR_LIT>" ) ; break ; case '<STR_LIT>' : tokenBuffer . append ( "<STR_LIT>" ) ; break ; case '<STR_LIT:\\>' : tokenBuffer . append ( "<STR_LIT>" ) ; break ; default : tokenBuffer . append ( c ) ; } } buffer . append ( tokenBuffer . toString ( ) ) ; } buffer . append ( "<STR_LIT:\">" ) ; return buffer . toString ( ) ; } public static String fileContent ( String sourceFilePath ) { File sourceFile = new File ( sourceFilePath ) ; if ( ! sourceFile . exists ( ) ) { if ( DEBUG ) System . out . println ( "<STR_LIT>" + sourceFilePath + "<STR_LIT>" ) ; return null ; } if ( ! sourceFile . isFile ( ) ) { if ( DEBUG ) System . out . println ( sourceFilePath + "<STR_LIT>" ) ; return null ; } StringBuffer sourceContentBuffer = new StringBuffer ( ) ; FileInputStream input = null ; try { input = new FileInputStream ( sourceFile ) ; } catch ( FileNotFoundException e ) { return null ; } try { int read ; do { read = input . read ( ) ; if ( read != - <NUM_LIT:1> ) { sourceContentBuffer . append ( ( char ) read ) ; } } while ( read != - <NUM_LIT:1> ) ; input . close ( ) ; } catch ( IOException e ) { e . printStackTrace ( ) ; return null ; } finally { try { input . close ( ) ; } catch ( IOException e2 ) { } } return sourceContentBuffer . toString ( ) ; } public static String fileContentToDisplayString ( String sourceFilePath , int indent , boolean independantLineDelimiter ) { String sourceString = fileContent ( sourceFilePath ) ; if ( independantLineDelimiter ) { sourceString = convertToIndependantLineDelimiter ( sourceString ) ; } return displayString ( sourceString , indent ) ; } public static void fileContentToDisplayString ( String sourceFilePath , int indent , String destinationFilePath , boolean independantLineDelimiter ) { String displayString = fileContentToDisplayString ( sourceFilePath , indent , independantLineDelimiter ) ; if ( destinationFilePath == null ) { System . out . println ( displayString ) ; return ; } writeToFile ( displayString , destinationFilePath ) ; } public static void flushDirectoryContent ( File dir ) { File [ ] files = dir . listFiles ( ) ; if ( files == null ) return ; for ( int i = <NUM_LIT:0> , max = files . length ; i < max ; i ++ ) { delete ( files [ i ] ) ; } } private static Map getCompileOptions ( String compliance ) { Map options = new HashMap ( ) ; options . put ( CompilerOptions . OPTION_Compliance , compliance ) ; options . put ( CompilerOptions . OPTION_Source , compliance ) ; options . put ( CompilerOptions . OPTION_TargetPlatform , compliance ) ; options . put ( CompilerOptions . OPTION_ReportUnusedLocal , CompilerOptions . IGNORE ) ; options . put ( CompilerOptions . OPTION_ReportUnusedPrivateMember , CompilerOptions . IGNORE ) ; options . put ( CompilerOptions . OPTION_ReportFieldHiding , CompilerOptions . IGNORE ) ; options . put ( CompilerOptions . OPTION_ReportLocalVariableHiding , CompilerOptions . IGNORE ) ; options . put ( CompilerOptions . OPTION_ReportTypeParameterHiding , CompilerOptions . IGNORE ) ; options . put ( CompilerOptions . OPTION_LocalVariableAttribute , CompilerOptions . GENERATE ) ; options . put ( CompilerOptions . OPTION_ReportRawTypeReference , CompilerOptions . IGNORE ) ; return options ; } public static int getFreePort ( ) { ServerSocket socket = null ; try { socket = new ServerSocket ( <NUM_LIT:0> ) ; return socket . getLocalPort ( ) ; } catch ( IOException e ) { } finally { if ( socket != null ) { try { socket . close ( ) ; } catch ( IOException e ) { } } } return - <NUM_LIT:1> ; } public static String [ ] getJavaClassLibs ( ) { String bootclasspathProperty = System . getProperty ( "<STR_LIT>" ) ; if ( ( bootclasspathProperty == null ) || ( bootclasspathProperty . length ( ) == <NUM_LIT:0> ) ) { bootclasspathProperty = System . getProperty ( "<STR_LIT>" ) ; if ( ( bootclasspathProperty == null ) || ( bootclasspathProperty . length ( ) == <NUM_LIT:0> ) ) { bootclasspathProperty = System . getProperty ( "<STR_LIT>" ) ; } } String [ ] jars = null ; if ( ( bootclasspathProperty != null ) && ( bootclasspathProperty . length ( ) != <NUM_LIT:0> ) ) { StringTokenizer tokenizer = new StringTokenizer ( bootclasspathProperty , File . pathSeparator ) ; final int size = tokenizer . countTokens ( ) ; jars = new String [ size ] ; int i = <NUM_LIT:0> ; while ( tokenizer . hasMoreTokens ( ) ) { final String fileName = toNativePath ( tokenizer . nextToken ( ) ) ; if ( new File ( fileName ) . exists ( ) ) { jars [ i ] = fileName ; i ++ ; } } if ( size != i ) { System . arraycopy ( jars , <NUM_LIT:0> , ( jars = new String [ i ] ) , <NUM_LIT:0> , i ) ; } } else { String jreDir = getJREDirectory ( ) ; final String osName = System . getProperty ( "<STR_LIT>" ) ; if ( jreDir == null ) { return new String [ ] { } ; } if ( osName . startsWith ( "<STR_LIT>" ) ) { return new String [ ] { toNativePath ( jreDir + "<STR_LIT>" ) } ; } final String vmName = System . getProperty ( "<STR_LIT>" ) ; if ( "<STR_LIT>" . equals ( vmName ) ) { return new String [ ] { toNativePath ( jreDir + "<STR_LIT>" ) } ; } String [ ] jarsNames = null ; ArrayList paths = new ArrayList ( ) ; if ( "<STR_LIT>" . equals ( vmName ) ) { FilenameFilter jarFilter = new FilenameFilter ( ) { public boolean accept ( File dir , String name ) { return name . endsWith ( "<STR_LIT>" ) & ! name . endsWith ( "<STR_LIT>" ) ; } } ; jarsNames = new File ( jreDir + "<STR_LIT>" ) . list ( jarFilter ) ; addJarEntries ( jreDir + "<STR_LIT>" , jarsNames , paths ) ; } else { jarsNames = new String [ ] { "<STR_LIT>" , "<STR_LIT>" , "<STR_LIT>" , "<STR_LIT>" , "<STR_LIT>" , "<STR_LIT>" } ; addJarEntries ( jreDir , jarsNames , paths ) ; } jars = new String [ paths . size ( ) ] ; paths . toArray ( jars ) ; } return jars ; } private static void addJarEntries ( String jreDir , String [ ] jarNames , ArrayList paths ) { for ( int i = <NUM_LIT:0> , max = jarNames . length ; i < max ; i ++ ) { final String currentName = jreDir + jarNames [ i ] ; File f = new File ( currentName ) ; if ( f . exists ( ) ) { paths . add ( toNativePath ( currentName ) ) ; } } } public static String getJavaClassLibsAsString ( ) { String [ ] classLibs = getJavaClassLibs ( ) ; StringBuffer buffer = new StringBuffer ( ) ; for ( int i = <NUM_LIT:0> , max = classLibs . length ; i < max ; i ++ ) { buffer . append ( classLibs [ i ] ) . append ( File . pathSeparatorChar ) ; } return buffer . toString ( ) ; } public static String getJREDirectory ( ) { return System . getProperty ( "<STR_LIT>" ) ; } public static String getOutputDirectory ( ) { return OUTPUT_DIRECTORY ; } private static File getParentChildFile ( File file ) { File parent = file . getParentFile ( ) ; if ( parent == null || ! parent . exists ( ) ) return null ; File [ ] files = parent . listFiles ( ) ; int length = files == null ? <NUM_LIT:0> : files . length ; if ( length > <NUM_LIT:0> ) { for ( int i = <NUM_LIT:0> ; i < length ; i ++ ) { if ( files [ i ] == file ) { return files [ i ] ; } else if ( files [ i ] . equals ( file ) ) { return files [ i ] ; } else if ( files [ i ] . getPath ( ) . equals ( file . getPath ( ) ) ) { return files [ i ] ; } } } return null ; } private static IResource getParentChildResource ( IResource resource ) { IContainer parent = resource . getParent ( ) ; if ( parent == null || ! parent . exists ( ) ) return null ; try { IResource [ ] members = parent . members ( ) ; int length = members == null ? <NUM_LIT:0> : members . length ; if ( length > <NUM_LIT:0> ) { for ( int i = <NUM_LIT:0> ; i < length ; i ++ ) { if ( members [ i ] == resource ) { return members [ i ] ; } else if ( members [ i ] . equals ( resource ) ) { return members [ i ] ; } else if ( members [ i ] . getFullPath ( ) . equals ( resource . getFullPath ( ) ) ) { return members [ i ] ; } } } } catch ( CoreException ce ) { } return null ; } private static String getTestName ( ) { StackTraceElement [ ] elements = new Exception ( ) . getStackTrace ( ) ; int idx = <NUM_LIT:0> , length = elements . length ; while ( idx < length && ! elements [ idx ++ ] . getClassName ( ) . startsWith ( "<STR_LIT>" ) ) { } if ( idx < length ) { StackTraceElement testElement = null ; while ( idx < length && elements [ idx ] . getClassName ( ) . startsWith ( "<STR_LIT>" ) ) { testElement = elements [ idx ++ ] ; } if ( testElement != null ) { return testElement . getClassName ( ) + "<STR_LIT:U+0020-U+0020>" + testElement . getMethodName ( ) ; } } return "<STR_LIT:?>" ; } public static String indentString ( String inputString , int indent ) { if ( inputString == null ) return "<STR_LIT>" ; int length = inputString . length ( ) ; StringBuffer buffer = new StringBuffer ( length ) ; java . util . StringTokenizer tokenizer = new java . util . StringTokenizer ( inputString , "<STR_LIT>" , true ) ; StringBuffer indentStr = new StringBuffer ( indent ) ; for ( int i = <NUM_LIT:0> ; i < indent ; i ++ ) indentStr . append ( "<STR_LIT:t>" ) ; buffer . append ( indentStr ) ; while ( tokenizer . hasMoreTokens ( ) ) { String token = tokenizer . nextToken ( ) ; buffer . append ( token ) ; if ( token . equals ( "<STR_LIT:r>" ) || token . equals ( "<STR_LIT:n>" ) ) { buffer . append ( indentStr ) ; } } return buffer . toString ( ) ; } public static boolean isFileDeleted ( File file ) { return ! file . exists ( ) && getParentChildFile ( file ) == null ; } public static boolean isMacOS ( ) { return System . getProperty ( "<STR_LIT>" ) . indexOf ( "<STR_LIT>" ) != - <NUM_LIT:1> ; } public static boolean isResourceDeleted ( IResource resource ) { return ! resource . isAccessible ( ) && getParentChildResource ( resource ) == null ; } private static void printFileInfo ( File file , int indent , int recurse ) { String tab = "<STR_LIT>" ; for ( int i = <NUM_LIT:0> ; i < indent ; i ++ ) tab += "<STR_LIT:t>" ; System . out . print ( tab + "<STR_LIT>" + file . getName ( ) + "<STR_LIT>" ) ; String sep = "<STR_LIT>" ; if ( file . canRead ( ) ) { System . out . print ( "<STR_LIT>" ) ; sep = "<STR_LIT:U+002CU+0020>" ; } if ( file . canWrite ( ) ) { System . out . print ( sep + "<STR_LIT>" ) ; sep = "<STR_LIT:U+002CU+0020>" ; } if ( file . exists ( ) ) { System . out . print ( sep + "<STR_LIT>" ) ; sep = "<STR_LIT:U+002CU+0020>" ; } if ( file . isDirectory ( ) ) { System . out . print ( sep + "<STR_LIT>" ) ; sep = "<STR_LIT:U+002CU+0020>" ; } if ( file . isFile ( ) ) { System . out . print ( sep + "<STR_LIT:file>" ) ; sep = "<STR_LIT:U+002CU+0020>" ; } if ( file . isHidden ( ) ) { System . out . print ( sep + "<STR_LIT>" ) ; sep = "<STR_LIT:U+002CU+0020>" ; } System . out . println ( ) ; File [ ] files = file . listFiles ( ) ; int length = files == null ? <NUM_LIT:0> : files . length ; if ( length > <NUM_LIT:0> ) { boolean children = recurse < <NUM_LIT:0> ; System . out . print ( tab + "<STR_LIT>" ) ; if ( children ) System . out . println ( ) ; for ( int i = <NUM_LIT:0> ; i < length ; i ++ ) { if ( children ) { printFileInfo ( files [ i ] , indent + <NUM_LIT:2> , - <NUM_LIT:1> ) ; } else { if ( i > <NUM_LIT:0> ) System . out . print ( "<STR_LIT:U+002CU+0020>" ) ; System . out . print ( files [ i ] . getName ( ) ) ; if ( files [ i ] . isDirectory ( ) ) System . out . print ( "<STR_LIT>" ) ; else if ( files [ i ] . isFile ( ) ) System . out . print ( "<STR_LIT>" ) ; else System . out . print ( "<STR_LIT>" ) ; } } if ( ! children ) System . out . println ( ) ; } if ( recurse > <NUM_LIT:0> ) { File parent = file . getParentFile ( ) ; if ( parent != null ) printFileInfo ( parent , indent + <NUM_LIT:1> , recurse - <NUM_LIT:1> ) ; } } private static void printJdtCoreStackTrace ( Exception exception , int indent ) { String tab = "<STR_LIT>" ; for ( int i = <NUM_LIT:0> ; i < indent ; i ++ ) tab += "<STR_LIT:t>" ; StackTraceElement [ ] elements = ( exception == null ? new Exception ( ) : exception ) . getStackTrace ( ) ; int idx = <NUM_LIT:0> , length = elements . length ; while ( idx < length && ! elements [ idx ++ ] . getClassName ( ) . startsWith ( "<STR_LIT>" ) ) { } if ( idx < length ) { System . out . print ( tab + "<STR_LIT>" ) ; if ( exception == null ) System . out . println ( "<STR_LIT::>" ) ; else System . out . println ( "<STR_LIT>" + exception + "<STR_LIT::>" ) ; while ( idx < length && elements [ idx ] . getClassName ( ) . startsWith ( "<STR_LIT>" ) ) { StackTraceElement testElement = elements [ idx ++ ] ; System . out . println ( tab + "<STR_LIT>" + testElement ) ; } } else { exception . printStackTrace ( System . out ) ; } } public static String toNativePath ( String path ) { String nativePath = path . replace ( '<STR_LIT:\\>' , File . separatorChar ) . replace ( '<CHAR_LIT:/>' , File . separatorChar ) ; return nativePath . endsWith ( "<STR_LIT:/>" ) || nativePath . endsWith ( "<STR_LIT:\\>" ) ? nativePath . substring ( <NUM_LIT:0> , nativePath . length ( ) - <NUM_LIT:1> ) : nativePath ; } public static void unzip ( String zipPath , String destDirPath ) throws IOException { InputStream zipIn = new FileInputStream ( zipPath ) ; byte [ ] buf = new byte [ <NUM_LIT> ] ; File destDir = new File ( destDirPath ) ; ZipInputStream zis = new ZipInputStream ( zipIn ) ; FileOutputStream fos = null ; try { ZipEntry zEntry ; while ( ( zEntry = zis . getNextEntry ( ) ) != null ) { if ( zEntry . isDirectory ( ) ) { new File ( destDir , zEntry . getName ( ) ) . mkdirs ( ) ; continue ; } String filePath = zEntry . getName ( ) ; int lastSeparator = filePath . lastIndexOf ( "<STR_LIT:/>" ) ; String fileDir = "<STR_LIT>" ; if ( lastSeparator >= <NUM_LIT:0> ) { fileDir = filePath . substring ( <NUM_LIT:0> , lastSeparator ) ; } new File ( destDir , fileDir ) . mkdirs ( ) ; File outFile = new File ( destDir , filePath ) ; fos = new FileOutputStream ( outFile ) ; int n = <NUM_LIT:0> ; while ( ( n = zis . read ( buf ) ) >= <NUM_LIT:0> ) { fos . write ( buf , <NUM_LIT:0> , n ) ; } fos . close ( ) ; } } catch ( IOException ioe ) { if ( fos != null ) { try { fos . close ( ) ; } catch ( IOException ioe2 ) { } } } finally { try { zipIn . close ( ) ; if ( zis != null ) zis . close ( ) ; } catch ( IOException ioe ) { } } } private static boolean waitUntilFileDeleted ( File file ) { if ( DELETE_DEBUG ) { System . out . println ( ) ; System . out . println ( "<STR_LIT>" + getTestName ( ) ) ; System . out . println ( "<STR_LIT>" + file ) ; printJdtCoreStackTrace ( null , <NUM_LIT:1> ) ; printFileInfo ( file . getParentFile ( ) , <NUM_LIT:1> , - <NUM_LIT:1> ) ; System . out . print ( "<STR_LIT>" + DELETE_MAX_WAIT + "<STR_LIT>" ) ; } int count = <NUM_LIT:0> ; int delay = <NUM_LIT:10> ; int maxRetry = DELETE_MAX_WAIT / delay ; int time = <NUM_LIT:0> ; while ( count < maxRetry ) { try { count ++ ; Thread . sleep ( delay ) ; time += delay ; if ( time > DELETE_MAX_TIME ) DELETE_MAX_TIME = time ; if ( DELETE_DEBUG ) System . out . print ( '<CHAR_LIT:.>' ) ; if ( file . exists ( ) ) { if ( file . delete ( ) ) { if ( DELETE_DEBUG ) { System . out . println ( ) ; System . out . println ( "<STR_LIT>" + time + "<STR_LIT>" + DELETE_MAX_TIME + "<STR_LIT>" ) ; System . out . println ( ) ; } return true ; } } if ( isFileDeleted ( file ) ) { if ( DELETE_DEBUG ) { System . out . println ( ) ; System . out . println ( "<STR_LIT>" + time + "<STR_LIT>" + DELETE_MAX_TIME + "<STR_LIT>" ) ; System . out . println ( ) ; } return true ; } if ( count >= <NUM_LIT:10> && delay <= <NUM_LIT:100> ) { count = <NUM_LIT:1> ; delay *= <NUM_LIT:10> ; maxRetry = DELETE_MAX_WAIT / delay ; if ( ( DELETE_MAX_WAIT % delay ) != <NUM_LIT:0> ) { maxRetry ++ ; } } } catch ( InterruptedException ie ) { break ; } } if ( ! DELETE_DEBUG ) { System . out . println ( ) ; System . out . println ( "<STR_LIT>" + getTestName ( ) ) ; System . out . println ( "<STR_LIT>" + file ) ; printJdtCoreStackTrace ( null , <NUM_LIT:1> ) ; printFileInfo ( file . getParentFile ( ) , <NUM_LIT:1> , - <NUM_LIT:1> ) ; } System . out . println ( ) ; System . out . println ( "<STR_LIT>" + file + "<STR_LIT>" + DELETE_MAX_TIME + "<STR_LIT>" ) ; System . out . println ( ) ; return false ; } private static boolean waitUntilResourceDeleted ( IResource resource ) { IPath location = resource . getLocation ( ) ; if ( location == null ) { System . out . println ( ) ; System . out . println ( "<STR_LIT>" + resource + "<STR_LIT>" ) ; System . out . println ( ) ; return false ; } File file = location . toFile ( ) ; if ( DELETE_DEBUG ) { System . out . println ( ) ; System . out . println ( "<STR_LIT>" + getTestName ( ) ) ; System . out . println ( "<STR_LIT>" + resource ) ; printJdtCoreStackTrace ( null , <NUM_LIT:1> ) ; printFileInfo ( file . getParentFile ( ) , <NUM_LIT:1> , - <NUM_LIT:1> ) ; System . out . print ( "<STR_LIT>" + DELETE_MAX_WAIT + "<STR_LIT>" ) ; } int count = <NUM_LIT:0> ; int delay = <NUM_LIT:10> ; int maxRetry = DELETE_MAX_WAIT / delay ; int time = <NUM_LIT:0> ; while ( count < maxRetry ) { try { count ++ ; Thread . sleep ( delay ) ; time += delay ; if ( time > DELETE_MAX_TIME ) DELETE_MAX_TIME = time ; if ( DELETE_DEBUG ) System . out . print ( '<CHAR_LIT:.>' ) ; if ( resource . isAccessible ( ) ) { try { resource . delete ( true , null ) ; if ( isResourceDeleted ( resource ) && isFileDeleted ( file ) ) { if ( DELETE_DEBUG ) { System . out . println ( ) ; System . out . println ( "<STR_LIT>" + time + "<STR_LIT>" + DELETE_MAX_TIME + "<STR_LIT>" ) ; System . out . println ( ) ; } return true ; } } catch ( CoreException e ) { } } if ( isResourceDeleted ( resource ) && isFileDeleted ( file ) ) { if ( DELETE_DEBUG ) { System . out . println ( ) ; System . out . println ( "<STR_LIT>" + time + "<STR_LIT>" + DELETE_MAX_TIME + "<STR_LIT>" ) ; System . out . println ( ) ; } return true ; } if ( count >= <NUM_LIT:10> && delay <= <NUM_LIT:100> ) { count = <NUM_LIT:1> ; delay *= <NUM_LIT:10> ; maxRetry = DELETE_MAX_WAIT / delay ; if ( ( DELETE_MAX_WAIT % delay ) != <NUM_LIT:0> ) { maxRetry ++ ; } } } catch ( InterruptedException ie ) { break ; } } if ( ! DELETE_DEBUG ) { System . out . println ( ) ; System . out . println ( "<STR_LIT>" + getTestName ( ) ) ; System . out . println ( "<STR_LIT>" + resource ) ; printJdtCoreStackTrace ( null , <NUM_LIT:1> ) ; printFileInfo ( file . getParentFile ( ) , <NUM_LIT:1> , - <NUM_LIT:1> ) ; } System . out . println ( ) ; System . out . println ( "<STR_LIT>" + resource + "<STR_LIT>" + DELETE_MAX_TIME + "<STR_LIT>" ) ; System . out . println ( ) ; return false ; } public static void writeToFile ( String contents , String destinationFilePath ) { File destFile = new File ( destinationFilePath ) ; FileOutputStream output = null ; try { output = new FileOutputStream ( destFile ) ; PrintWriter writer = new PrintWriter ( output ) ; writer . print ( contents ) ; writer . flush ( ) ; } catch ( IOException e ) { e . printStackTrace ( ) ; return ; } finally { if ( output != null ) { try { output . close ( ) ; } catch ( IOException e2 ) { } } } } public static void zip ( File rootDir , String zipPath ) throws IOException { ZipOutputStream zip = null ; try { File zipFile = new File ( zipPath ) ; if ( zipFile . exists ( ) ) delete ( zipFile ) ; zip = new ZipOutputStream ( new FileOutputStream ( zipFile ) ) ; zip ( rootDir , zip , rootDir . getPath ( ) . length ( ) + <NUM_LIT:1> ) ; } finally { if ( zip != null ) { zip . close ( ) ; } } } private static void zip ( File dir , ZipOutputStream zip , int rootPathLength ) throws IOException { File [ ] files = dir . listFiles ( ) ; if ( files != null ) { for ( int i = <NUM_LIT:0> , length = files . length ; i < length ; i ++ ) { File file = files [ i ] ; if ( file . isFile ( ) ) { String path = file . getPath ( ) ; path = path . substring ( rootPathLength ) ; ZipEntry entry = new ZipEntry ( path . replace ( '<STR_LIT:\\>' , '<CHAR_LIT:/>' ) ) ; zip . putNextEntry ( entry ) ; zip . write ( org . eclipse . jdt . internal . compiler . util . Util . getFileByteContent ( file ) ) ; zip . closeEntry ( ) ; } else { zip ( file , zip , rootPathLength ) ; } } } } public static String getProblemLog ( CompilationResult compilationResult , boolean showCategory , boolean showWarningToken ) { StringBuffer buffer = new StringBuffer ( <NUM_LIT:100> ) ; if ( compilationResult . hasProblems ( ) || compilationResult . hasTasks ( ) ) { CategorizedProblem [ ] problems = compilationResult . getAllProblems ( ) ; int count = problems . length ; int problemCount = <NUM_LIT:0> ; char [ ] unitSource = compilationResult . compilationUnit . getContents ( ) ; for ( int i = <NUM_LIT:0> ; i < count ; i ++ ) { DefaultProblem problem = ( DefaultProblem ) problems [ i ] ; if ( problem != null ) { if ( problemCount == <NUM_LIT:0> ) buffer . append ( "<STR_LIT>" ) ; problemCount ++ ; buffer . append ( problemCount + ( problem . isError ( ) ? "<STR_LIT>" : "<STR_LIT>" ) ) ; buffer . append ( "<STR_LIT>" + new String ( problem . getOriginatingFileName ( ) ) . replace ( '<CHAR_LIT:/>' , '<STR_LIT:\\>' ) ) ; try { buffer . append ( problem . errorReportSource ( unitSource ) ) ; buffer . append ( "<STR_LIT:n>" ) ; if ( showCategory ) { String category = problem . getInternalCategoryMessage ( ) ; if ( category != null ) { buffer . append ( "<STR_LIT>" ) . append ( category ) . append ( "<STR_LIT>" ) ; } } if ( showWarningToken ) { long irritant = ProblemReporter . getIrritant ( problem . getID ( ) ) ; if ( irritant != <NUM_LIT:0> ) { String warningToken = "<STR_LIT>" ; if ( warningToken != null ) { buffer . append ( "<STR_LIT>" ) . append ( warningToken ) . append ( "<STR_LIT>" ) ; } } } buffer . append ( problem . getMessage ( ) ) ; buffer . append ( "<STR_LIT:n>" ) ; } catch ( Exception e ) { } buffer . append ( "<STR_LIT>" ) ; } } } return buffer . toString ( ) ; } } </s>
|
<s> package org . eclipse . jdt . core . tests . util ; import java . net . URL ; import org . eclipse . core . runtime . Platform ; public class GroovyUtils { static public final int GROOVY_LEVEL ; static { int groovyLevel = <NUM_LIT:20> ; URL groovyJar = Platform . getBundle ( "<STR_LIT>" ) . getEntry ( "<STR_LIT>" ) ; if ( groovyJar == null ) { groovyLevel = <NUM_LIT> ; groovyJar = Platform . getBundle ( "<STR_LIT>" ) . getEntry ( "<STR_LIT>" ) ; if ( groovyJar == null ) { groovyJar = Platform . getBundle ( "<STR_LIT>" ) . getEntry ( "<STR_LIT>" ) ; groovyLevel = <NUM_LIT> ; if ( groovyJar == null ) { groovyJar = Platform . getBundle ( "<STR_LIT>" ) . getEntry ( "<STR_LIT>" ) ; groovyLevel = <NUM_LIT:16> ; } } } GROOVY_LEVEL = groovyLevel ; } public static boolean isGroovy16 ( ) { return GROOVY_LEVEL == <NUM_LIT:16> ; } public static boolean isGroovy17 ( ) { return GROOVY_LEVEL == <NUM_LIT> ; } public static boolean isGroovy18 ( ) { return GROOVY_LEVEL == <NUM_LIT> ; } public static boolean isGroovy20 ( ) { return GROOVY_LEVEL == <NUM_LIT:20> ; } } </s>
|
<s> package org . eclipse . jdt . core . tests . util ; import java . util . Enumeration ; import org . eclipse . jdt . internal . compiler . impl . CompilerOptions ; import junit . framework . TestResult ; import junit . framework . TestSuite ; public class CompilerTestSetup extends TestSuite { long complianceLevel ; public CompilerTestSetup ( long complianceLevel ) { super ( CompilerOptions . versionFromJdkLevel ( complianceLevel ) ) ; this . complianceLevel = complianceLevel ; } protected void initTest ( Object test ) { if ( test instanceof AbstractCompilerTest ) { AbstractCompilerTest compilerTest = ( AbstractCompilerTest ) test ; compilerTest . initialize ( this ) ; return ; } if ( test instanceof TestSuite ) { TestSuite testSuite = ( TestSuite ) test ; Enumeration evaluationTestClassTests = testSuite . tests ( ) ; while ( evaluationTestClassTests . hasMoreElements ( ) ) { initTest ( evaluationTestClassTests . nextElement ( ) ) ; } return ; } if ( test instanceof Enumeration ) { Enumeration evaluationTestClassTests = ( Enumeration ) test ; while ( evaluationTestClassTests . hasMoreElements ( ) ) { initTest ( evaluationTestClassTests . nextElement ( ) ) ; } return ; } } public void run ( TestResult result ) { try { setUp ( ) ; super . run ( result ) ; } finally { tearDown ( ) ; } } protected void setUp ( ) { initTest ( tests ( ) ) ; } protected void tearDown ( ) { } } </s>
|
<s> package org . eclipse . jdt . core . tests . junit . extension ; import junit . framework . Test ; import junit . framework . TestFailure ; public interface TestListener extends junit . framework . TestListener { public void addError ( Test test , TestFailure testFailure ) ; public void addFailure ( Test test , TestFailure testFailure ) ; } </s>
|
<s> package org . eclipse . jdt . core . tests . junit . extension ; import java . util . * ; import junit . framework . * ; public class TestResult extends junit . framework . TestResult { TestCase currentTest ; public TestResult ( ) { super ( ) ; } public synchronized void addError ( Test test , Throwable t ) { TestFailure testFailure = new TestFailure ( test , t ) ; this . fErrors . add ( testFailure ) ; for ( Iterator e = cloneListeners ( ) . iterator ( ) ; e . hasNext ( ) ; ) { ( ( TestListener ) e . next ( ) ) . addError ( test , testFailure ) ; } } public synchronized void addFailure ( Test test , AssertionFailedError t ) { TestFailure testFailure = new TestFailure ( test , t ) ; this . fFailures . add ( testFailure ) ; for ( Iterator e = cloneListeners ( ) . iterator ( ) ; e . hasNext ( ) ; ) { ( ( TestListener ) e . next ( ) ) . addFailure ( test , testFailure ) ; } } private synchronized List cloneListeners ( ) { List result = new ArrayList ( ) ; result . addAll ( this . fListeners ) ; return result ; } protected void run ( final TestCase test ) { this . currentTest = test ; super . run ( test ) ; this . currentTest = null ; } public synchronized void stop ( ) { super . stop ( ) ; if ( this . currentTest != null && this . currentTest instanceof StopableTestCase ) { ( ( StopableTestCase ) this . currentTest ) . stop ( ) ; } } } </s>
|
<s> package org . eclipse . jdt . core . tests . junit . extension ; public interface StopableTestCase { public void stop ( ) ; } </s>
|
<s> package org . eclipse . jdt . core . tests . junit . extension ; import java . io . File ; import java . io . FileNotFoundException ; import java . io . FileOutputStream ; import java . io . PrintStream ; import java . lang . reflect . Constructor ; import java . lang . reflect . Method ; import java . text . DateFormat ; import java . text . NumberFormat ; import java . util . ArrayList ; import java . util . Collections ; import java . util . Date ; import java . util . Iterator ; import java . util . List ; import java . util . Random ; import java . util . StringTokenizer ; import junit . framework . AssertionFailedError ; import junit . framework . ComparisonFailure ; import junit . framework . Test ; import junit . framework . TestSuite ; import org . eclipse . jdt . core . Flags ; import org . eclipse . jdt . core . tests . util . Util ; import org . eclipse . jdt . internal . compiler . batch . Main ; public class TestCase extends junit . framework . TestCase { public static final String METHOD_PREFIX = "<STR_LIT:test>" ; public static String RUN_ONLY_ID = "<STR_LIT>" ; public static final int NO_ORDER = <NUM_LIT:0> ; public static final int ALPHABETICAL_SORT = <NUM_LIT:1> ; public static final int ALPHA_REVERSE_SORT = <NUM_LIT:2> ; public static final int RANDOM_ORDER_JDT = <NUM_LIT:3> ; public static final int RANDOM_ORDER_TIME = <NUM_LIT:4> ; public static final long ORDERING ; static { long ordering = NO_ORDER ; try { long seed = Long . parseLong ( System . getProperty ( "<STR_LIT>" , "<STR_LIT:0>" ) ) ; try { int kind = Integer . parseInt ( System . getProperty ( "<STR_LIT>" , "<STR_LIT:0>" ) ) ; switch ( kind ) { case NO_ORDER : break ; case ALPHABETICAL_SORT : ordering = kind ; System . err . println ( "<STR_LIT>" ) ; break ; case ALPHA_REVERSE_SORT : ordering = kind ; System . err . println ( "<STR_LIT>" ) ; break ; case RANDOM_ORDER_JDT : String version = new Main ( null , null , false , null , null ) . bind ( "<STR_LIT>" ) ; try { String v_number = version . substring ( <NUM_LIT:2> , <NUM_LIT:5> ) ; ordering = Long . parseLong ( v_number ) ; System . err . println ( "<STR_LIT>" + v_number + "<STR_LIT>" ) ; } catch ( NumberFormatException nfe ) { System . err . println ( "<STR_LIT>" + version + "<STR_LIT>" ) ; ordering = NO_ORDER ; } break ; case RANDOM_ORDER_TIME : ordering = System . currentTimeMillis ( ) ; System . err . println ( "<STR_LIT>" + ordering + "<STR_LIT>" ) ; break ; default : ordering = seed ; System . err . println ( "<STR_LIT>" + seed + "<STR_LIT>" ) ; break ; } } catch ( NumberFormatException nfe ) { ordering = seed ; System . err . println ( "<STR_LIT>" + seed + "<STR_LIT>" ) ; } } catch ( NumberFormatException nfe ) { System . err . println ( "<STR_LIT>" + System . getProperty ( "<STR_LIT>" , "<STR_LIT:0>" ) + "<STR_LIT>" ) ; ordering = NO_ORDER ; } ORDERING = ordering ; } final static int MAX_GC = <NUM_LIT:5> ; final static int TIME_GC = <NUM_LIT> ; final static int DELTA_GC = <NUM_LIT:1000> ; public final static File MEM_LOG_FILE ; public final static File MEM_LOG_DIR ; public static Class CURRENT_CLASS ; public static String CURRENT_CLASS_NAME ; public final static String STORE_MEMORY ; public final static boolean ALL_TESTS_LOG ; public final static boolean RUN_GC ; private static final NumberFormat DIGIT_FORMAT = NumberFormat . getNumberInstance ( ) ; static { String storeMemory = System . getProperty ( "<STR_LIT>" ) ; boolean allTestsLog = false ; boolean runGc = false ; File memLogDir = new File ( System . getProperty ( "<STR_LIT>" ) ) ; if ( storeMemory != null ) { int index = storeMemory . indexOf ( '<CHAR_LIT:U+002C>' ) ; if ( index > <NUM_LIT:0> ) { StringTokenizer parameters = new StringTokenizer ( storeMemory . substring ( storeMemory . indexOf ( '<CHAR_LIT:U+002C>' ) + <NUM_LIT:1> ) , "<STR_LIT:U+002C>" ) ; while ( parameters . hasMoreTokens ( ) ) { String param = parameters . nextToken ( ) ; if ( "<STR_LIT:all>" . equals ( param ) ) { allTestsLog = true ; } else if ( "<STR_LIT>" . equals ( param ) ) { runGc = true ; } else if ( param . startsWith ( "<STR_LIT>" ) ) { memLogDir = new File ( param . substring ( <NUM_LIT:4> ) ) ; } } storeMemory = storeMemory . substring ( <NUM_LIT:0> , index ) ; } } STORE_MEMORY = storeMemory ; ALL_TESTS_LOG = allTestsLog ; RUN_GC = runGc ; if ( ! verifyLogDir ( memLogDir ) ) { memLogDir = null ; } MEM_LOG_DIR = memLogDir ; MEM_LOG_FILE = createMemLogFile ( ) ; if ( STORE_MEMORY != null && MEM_LOG_FILE != null ) { System . out . println ( "<STR_LIT>" ) ; System . out . println ( "<STR_LIT>" + MEM_LOG_FILE ) ; System . out . println ( "<STR_LIT>" + ALL_TESTS_LOG ) ; System . out . println ( "<STR_LIT>" + RUN_GC ) ; } DIGIT_FORMAT . setMinimumIntegerDigits ( <NUM_LIT:3> ) ; } private boolean first ; protected boolean abortOnFailure = true ; public static String TESTS_PREFIX = null ; public static String [ ] TESTS_NAMES = null ; public static int [ ] TESTS_NUMBERS = null ; public static int [ ] TESTS_RANGE = null ; public TestCase ( String name ) { setName ( name ) ; } public static void assertEquals ( String expected , String actual ) { assertEquals ( null , expected , actual ) ; } public static void assertEquals ( String message , String expected , String actual ) { assertStringEquals ( message , expected , actual , true ) ; } public static void assertStringEquals ( String expected , String actual , boolean showLineSeparators ) { assertStringEquals ( null , expected , actual , showLineSeparators ) ; } public static void assertStringEquals ( String message , String expected , String actual , boolean showLineSeparators ) { if ( expected == null && actual == null ) return ; if ( expected != null && expected . equals ( actual ) ) return ; final StringBuffer formatted ; if ( message != null ) { formatted = new StringBuffer ( message ) . append ( '<CHAR_LIT:.>' ) ; } else { formatted = new StringBuffer ( ) ; } if ( showLineSeparators ) { final String expectedWithLineSeparators = showLineSeparators ( expected ) ; final String actualWithLineSeparators = showLineSeparators ( actual ) ; formatted . append ( "<STR_LIT>" ) ; formatted . append ( expectedWithLineSeparators ) ; formatted . append ( "<STR_LIT>" ) ; formatted . append ( actualWithLineSeparators ) ; formatted . append ( "<STR_LIT>" ) ; throw new ComparisonFailure ( formatted . toString ( ) , expectedWithLineSeparators , actualWithLineSeparators ) ; } else { formatted . append ( "<STR_LIT>" ) ; formatted . append ( expected ) ; formatted . append ( "<STR_LIT>" ) ; formatted . append ( actual ) ; formatted . append ( "<STR_LIT>" ) ; throw new ComparisonFailure ( formatted . toString ( ) , expected , actual ) ; } } protected void assumeEquals ( String expected , String actual ) { assumeEquals ( null , expected , actual ) ; } protected void assumeEquals ( String msg , String expected , String actual ) { try { assertStringEquals ( msg , expected , actual , false ) ; } catch ( ComparisonFailure cf ) { System . out . println ( "<STR_LIT>" + this . getName ( ) + "<STR_LIT>" ) ; System . out . println ( "<STR_LIT>" ) ; System . out . println ( Util . displayString ( cf . getActual ( ) , <NUM_LIT:2> ) ) ; System . out . println ( ) ; System . out . println ( "<STR_LIT>" ) ; System . out . println ( Util . displayString ( cf . getExpected ( ) , <NUM_LIT:2> ) ) ; System . out . println ( ) ; if ( abortOnFailure ) { throw cf ; } } catch ( AssertionFailedError afe ) { if ( abortOnFailure ) { throw afe ; } printAssertionFailure ( afe ) ; } } protected void assumeEquals ( String msg , int expected , int actual ) { try { assertEquals ( msg , expected , actual ) ; } catch ( AssertionFailedError afe ) { if ( abortOnFailure ) { throw afe ; } printAssertionFailure ( afe ) ; } } protected void assumeEquals ( String msg , long expected , long actual ) { try { assertEquals ( msg , expected , actual ) ; } catch ( AssertionFailedError afe ) { if ( abortOnFailure ) { throw afe ; } printAssertionFailure ( afe ) ; } } protected void assumeTrue ( String msg , boolean cond ) { try { assertTrue ( msg , cond ) ; } catch ( AssertionFailedError afe ) { if ( abortOnFailure ) { throw afe ; } printAssertionFailure ( afe ) ; } } private void printAssertionFailure ( AssertionFailedError afe ) { System . out . println ( "<STR_LIT>" ) ; System . out . println ( "<STR_LIT>" + getName ( ) + "<STR_LIT::>" ) ; System . out . println ( "<STR_LIT:t>" + afe . getMessage ( ) ) ; System . out . println ( "<STR_LIT>" ) ; } public static List buildTestsList ( Class evaluationTestClass ) { return buildTestsList ( evaluationTestClass , <NUM_LIT:0> , ORDERING ) ; } public static List buildTestsList ( Class evaluationTestClass , int inheritedDepth ) { return buildTestsList ( evaluationTestClass , inheritedDepth , ORDERING ) ; } public static List buildTestsList ( Class evaluationTestClass , int inheritedDepth , long ordering ) { List tests = new ArrayList ( ) ; List testNames = new ArrayList ( ) ; List onlyNames = new ArrayList ( ) ; Constructor constructor = null ; try { Class [ ] paramTypes = new Class [ ] { String . class } ; constructor = evaluationTestClass . getConstructor ( paramTypes ) ; } catch ( Exception e ) { return tests ; } Method [ ] methods = evaluationTestClass . getDeclaredMethods ( ) ; Class evaluationTestSuperclass = evaluationTestClass . getSuperclass ( ) ; for ( int i = <NUM_LIT:0> ; i < inheritedDepth && ! Flags . isAbstract ( evaluationTestSuperclass . getModifiers ( ) ) ; i ++ ) { Method [ ] superMethods = evaluationTestSuperclass . getDeclaredMethods ( ) ; Method [ ] mergedMethods = new Method [ methods . length + superMethods . length ] ; System . arraycopy ( superMethods , <NUM_LIT:0> , mergedMethods , <NUM_LIT:0> , superMethods . length ) ; System . arraycopy ( methods , <NUM_LIT:0> , mergedMethods , superMethods . length , methods . length ) ; methods = mergedMethods ; evaluationTestSuperclass = evaluationTestSuperclass . getSuperclass ( ) ; } final int methodPrefixLength = METHOD_PREFIX . length ( ) ; nextMethod : for ( int m = <NUM_LIT:0> , max = methods . length ; m < max ; m ++ ) { int modifiers = methods [ m ] . getModifiers ( ) ; if ( Flags . isPublic ( modifiers ) && ! Flags . isStatic ( modifiers ) ) { String methName = methods [ m ] . getName ( ) ; if ( methName . startsWith ( METHOD_PREFIX ) ) { boolean isOnly = RUN_ONLY_ID != null && methName . substring ( methodPrefixLength ) . startsWith ( RUN_ONLY_ID ) ; if ( isOnly ) { if ( ! onlyNames . contains ( methName ) ) { onlyNames . add ( methName ) ; } continue ; } if ( TESTS_PREFIX == null && TESTS_NAMES == null && TESTS_NUMBERS == null && TESTS_RANGE == null ) { if ( ! testNames . contains ( methName ) ) { testNames . add ( methName ) ; } continue nextMethod ; } if ( TESTS_PREFIX == null || methName . startsWith ( TESTS_PREFIX ) ) { int numStart = TESTS_PREFIX == null ? methodPrefixLength : TESTS_PREFIX . length ( ) ; if ( TESTS_NAMES != null ) { for ( int i = <NUM_LIT:0> , imax = TESTS_NAMES . length ; i < imax ; i ++ ) { if ( methName . indexOf ( TESTS_NAMES [ i ] ) >= <NUM_LIT:0> ) { if ( ! testNames . contains ( methName ) ) { testNames . add ( methName ) ; } continue nextMethod ; } } } int length = methName . length ( ) ; if ( numStart < length ) { while ( numStart < length && ! Character . isDigit ( methName . charAt ( numStart ) ) ) numStart ++ ; while ( numStart < length && methName . charAt ( numStart ) == '<CHAR_LIT:0>' ) numStart ++ ; int n = numStart ; while ( n < length && Character . isDigit ( methName . charAt ( n ) ) ) n ++ ; if ( n > numStart && n <= length ) { try { int num = Integer . parseInt ( methName . substring ( numStart , n ) ) ; if ( TESTS_NUMBERS != null && ! testNames . contains ( methName ) ) { for ( int i = <NUM_LIT:0> ; i < TESTS_NUMBERS . length ; i ++ ) { if ( TESTS_NUMBERS [ i ] == num ) { testNames . add ( methName ) ; continue nextMethod ; } } } if ( TESTS_RANGE != null && TESTS_RANGE . length == <NUM_LIT:2> && ! testNames . contains ( methName ) ) { if ( ( TESTS_RANGE [ <NUM_LIT:0> ] == - <NUM_LIT:1> || num >= TESTS_RANGE [ <NUM_LIT:0> ] ) && ( TESTS_RANGE [ <NUM_LIT:1> ] == - <NUM_LIT:1> || num <= TESTS_RANGE [ <NUM_LIT:1> ] ) ) { testNames . add ( methName ) ; continue nextMethod ; } } } catch ( NumberFormatException e ) { System . out . println ( "<STR_LIT>" + methods [ m ] + "<STR_LIT>" + e . getMessage ( ) ) ; } } } if ( TESTS_NAMES == null && TESTS_NUMBERS == null && TESTS_RANGE == null ) { if ( ! testNames . contains ( methName ) ) { testNames . add ( methName ) ; } } } } } } List names = onlyNames . size ( ) > <NUM_LIT:0> ? onlyNames : testNames ; if ( ordering == ALPHA_REVERSE_SORT ) { Collections . sort ( names , Collections . reverseOrder ( ) ) ; } else if ( ordering == ALPHABETICAL_SORT ) { Collections . sort ( names ) ; } else if ( ordering != NO_ORDER ) { Collections . shuffle ( names , new Random ( ordering ) ) ; } Iterator iterator = names . iterator ( ) ; while ( iterator . hasNext ( ) ) { String testName = ( String ) iterator . next ( ) ; try { tests . add ( constructor . newInstance ( new Object [ ] { testName } ) ) ; } catch ( Exception e ) { System . err . println ( "<STR_LIT>" + testName + "<STR_LIT>" + e . getMessage ( ) ) ; } } return tests ; } public static Test buildTestSuite ( Class evaluationTestClass ) { return buildTestSuite ( evaluationTestClass , null ) ; } public static Test buildTestSuite ( Class evaluationTestClass , String suiteName ) { TestSuite suite = new TestSuite ( suiteName == null ? evaluationTestClass . getName ( ) : suiteName ) ; List tests = buildTestsList ( evaluationTestClass ) ; for ( int index = <NUM_LIT:0> , size = tests . size ( ) ; index < size ; index ++ ) { suite . addTest ( ( Test ) tests . get ( index ) ) ; } return suite ; } private static File createMemLogFile ( ) { if ( STORE_MEMORY == null || MEM_LOG_DIR == null ) { return null ; } File logFile = new File ( MEM_LOG_DIR , STORE_MEMORY + "<STR_LIT>" ) ; try { boolean fileExist = logFile . exists ( ) ; PrintStream stream = new PrintStream ( new FileOutputStream ( logFile , true ) ) ; if ( stream != null ) { if ( fileExist ) { stream . println ( ) ; } Date date = new Date ( System . currentTimeMillis ( ) ) ; stream . println ( "<STR_LIT>" + STORE_MEMORY ) ; stream . println ( "<STR_LIT>" + DateFormat . getDateInstance ( <NUM_LIT:3> ) . format ( date ) ) ; stream . println ( "<STR_LIT>" + DateFormat . getTimeInstance ( <NUM_LIT:3> ) . format ( date ) ) ; stream . print ( "<STR_LIT>" ) ; if ( ALL_TESTS_LOG ) stream . print ( "<STR_LIT>" ) ; stream . print ( "<STR_LIT>" ) ; stream . println ( ) ; stream . close ( ) ; System . out . println ( "<STR_LIT>" + logFile . getPath ( ) + "<STR_LIT>" ) ; return logFile ; } else { System . err . println ( "<STR_LIT>" + logFile . getPath ( ) ) ; } } catch ( FileNotFoundException e ) { } return null ; } protected static String showLineSeparators ( String string ) { if ( string == null ) return null ; StringBuffer buffer = new StringBuffer ( ) ; int length = string . length ( ) ; for ( int i = <NUM_LIT:0> ; i < length ; i ++ ) { char car = string . charAt ( i ) ; switch ( car ) { case '<STR_LIT:\n>' : buffer . append ( "<STR_LIT>" ) ; break ; case '<STR_LIT>' : if ( i < length - <NUM_LIT:1> && string . charAt ( i + <NUM_LIT:1> ) == '<STR_LIT:\n>' ) { buffer . append ( "<STR_LIT>" ) ; i ++ ; } else { buffer . append ( "<STR_LIT>" ) ; } break ; default : buffer . append ( car ) ; break ; } } return buffer . toString ( ) ; } private static boolean verifyLogDir ( File logDir ) { if ( logDir . exists ( ) ) { if ( logDir . isDirectory ( ) ) { return true ; } else { System . err . println ( logDir + "<STR_LIT>" ) ; } } else { if ( logDir . mkdir ( ) ) { return true ; } else { System . err . println ( "<STR_LIT>" + logDir + "<STR_LIT>" ) ; } } return false ; } protected void clean ( ) { int iterations = <NUM_LIT:0> ; long delta = <NUM_LIT:0> , free = <NUM_LIT:0> ; for ( int i = <NUM_LIT:0> ; i < MAX_GC ; i ++ ) { free = Runtime . getRuntime ( ) . freeMemory ( ) ; System . gc ( ) ; delta = Runtime . getRuntime ( ) . freeMemory ( ) - free ; try { Thread . sleep ( TIME_GC ) ; } catch ( InterruptedException e ) { } } if ( iterations == MAX_GC && delta > DELTA_GC ) { try { Thread . sleep ( <NUM_LIT:1000> ) ; } catch ( InterruptedException e ) { } } } protected boolean isFirst ( ) { return first ; } protected void setUp ( ) throws Exception { super . setUp ( ) ; first = false ; boolean isFirstTestRun = CURRENT_CLASS == null ; if ( isFirstTestRun || CURRENT_CLASS != getClass ( ) ) { if ( CURRENT_CLASS != null && RUN_GC ) clean ( ) ; CURRENT_CLASS = getClass ( ) ; first = true ; CURRENT_CLASS_NAME = getClass ( ) . getName ( ) ; CURRENT_CLASS_NAME = CURRENT_CLASS_NAME . substring ( CURRENT_CLASS_NAME . indexOf ( "<STR_LIT>" ) + <NUM_LIT:7> , CURRENT_CLASS_NAME . length ( ) ) ; } if ( STORE_MEMORY != null && MEM_LOG_FILE != null ) { if ( isFirstTestRun ) clean ( ) ; if ( ALL_TESTS_LOG && MEM_LOG_FILE . exists ( ) ) { PrintStream stream = new PrintStream ( new FileOutputStream ( MEM_LOG_FILE , true ) ) ; stream . print ( CURRENT_CLASS_NAME ) ; stream . print ( '<STR_LIT:\t>' ) ; String testName = getName ( ) ; stream . print ( testName ) ; stream . print ( '<STR_LIT:\t>' ) ; long total = Runtime . getRuntime ( ) . totalMemory ( ) ; long used = total - Runtime . getRuntime ( ) . freeMemory ( ) ; stream . print ( format ( used ) ) ; stream . print ( '<STR_LIT:\t>' ) ; stream . print ( format ( total ) ) ; stream . print ( '<STR_LIT:\t>' ) ; stream . print ( format ( Runtime . getRuntime ( ) . maxMemory ( ) ) ) ; stream . println ( ) ; stream . close ( ) ; if ( isFirstTestRun ) { System . out . println ( "<STR_LIT:t>" + format ( used ) ) ; } } else { if ( isFirstTestRun ) { long total = Runtime . getRuntime ( ) . totalMemory ( ) ; long used = total - Runtime . getRuntime ( ) . freeMemory ( ) ; System . out . println ( "<STR_LIT>" + format ( used ) ) ; } } } } private String format ( long number ) { long n = number ; long q = n ; int [ ] values = new int [ <NUM_LIT:10> ] ; int m = - <NUM_LIT:1> ; while ( ( n = q ) > <NUM_LIT:0> ) { q = n / <NUM_LIT> ; values [ ++ m ] = ( int ) ( n - q * <NUM_LIT:1000> ) ; } StringBuffer buffer = new StringBuffer ( ) ; buffer . append ( values [ m ] ) ; for ( int i = m - <NUM_LIT:1> ; i >= <NUM_LIT:0> ; i -- ) { buffer . append ( '<CHAR_LIT:U+002C>' ) . append ( DIGIT_FORMAT . format ( values [ i ] ) ) ; } return buffer . toString ( ) ; } protected void tearDown ( ) throws Exception { super . tearDown ( ) ; if ( STORE_MEMORY != null && MEM_LOG_FILE != null ) { if ( ( first || ALL_TESTS_LOG ) && MEM_LOG_FILE . exists ( ) ) { PrintStream stream = new PrintStream ( new FileOutputStream ( MEM_LOG_FILE , true ) ) ; stream . print ( CURRENT_CLASS_NAME ) ; stream . print ( '<STR_LIT:\t>' ) ; if ( ALL_TESTS_LOG ) { String testName = getName ( ) ; String str = "<STR_LIT>" ; int length = testName . length ( ) - <NUM_LIT:4> ; for ( int i = <NUM_LIT:0> ; i < length ; i ++ ) { str += '<CHAR_LIT:.>' ; } stream . print ( str ) ; stream . print ( "<STR_LIT>" ) ; stream . print ( '<STR_LIT:\t>' ) ; } long total = Runtime . getRuntime ( ) . totalMemory ( ) ; long used = total - Runtime . getRuntime ( ) . freeMemory ( ) ; stream . print ( format ( used ) ) ; stream . print ( '<STR_LIT:\t>' ) ; stream . print ( format ( total ) ) ; stream . print ( '<STR_LIT:\t>' ) ; stream . print ( format ( Runtime . getRuntime ( ) . maxMemory ( ) ) ) ; stream . println ( ) ; stream . close ( ) ; } } } } </s>
|
<s> package org . eclipse . jdt . core . tests . junit . extension ; import java . lang . reflect . Method ; import java . lang . reflect . Modifier ; import java . util . Vector ; import junit . framework . Test ; import junit . framework . TestCase ; import junit . framework . TestSuite ; public class PerformanceTestSuite extends TestSuite { public PerformanceTestSuite ( final Class theClass ) { setName ( theClass . getName ( ) ) ; try { getTestConstructor ( theClass ) ; } catch ( NoSuchMethodException e ) { addTest ( addWarningTest ( "<STR_LIT>" + theClass . getName ( ) + "<STR_LIT>" ) ) ; return ; } if ( ! Modifier . isPublic ( theClass . getModifiers ( ) ) ) { addTest ( addWarningTest ( "<STR_LIT>" + theClass . getName ( ) + "<STR_LIT>" ) ) ; return ; } Class superClass = theClass ; Vector names = new Vector ( ) ; while ( Test . class . isAssignableFrom ( superClass ) ) { Method [ ] methods = superClass . getDeclaredMethods ( ) ; for ( int i = <NUM_LIT:0> ; i < methods . length ; i ++ ) { addTestMethod ( methods [ i ] , names , theClass ) ; } superClass = superClass . getSuperclass ( ) ; } if ( countTestCases ( ) == <NUM_LIT:0> ) addTest ( addWarningTest ( "<STR_LIT>" + theClass . getName ( ) ) ) ; } public PerformanceTestSuite ( String name ) { setName ( name ) ; } private void addTestMethod ( Method m , Vector names , Class theClass ) { String name = m . getName ( ) ; if ( names . contains ( name ) ) return ; if ( ! isPublicTestMethod ( m ) ) { if ( isTestMethod ( m ) ) addTest ( addWarningTest ( "<STR_LIT>" + m . getName ( ) ) ) ; return ; } names . addElement ( name ) ; addTest ( createTest ( theClass , name ) ) ; } public void addTestSuite ( Class theClass ) { addTest ( new PerformanceTestSuite ( theClass ) ) ; } private boolean isPublicTestMethod ( Method m ) { return isTestMethod ( m ) && Modifier . isPublic ( m . getModifiers ( ) ) ; } private boolean isTestMethod ( Method m ) { String name = m . getName ( ) ; Class [ ] parameters = m . getParameterTypes ( ) ; Class returnType = m . getReturnType ( ) ; return parameters . length == <NUM_LIT:0> && name . startsWith ( "<STR_LIT>" ) && returnType . equals ( Void . TYPE ) ; } private static Test addWarningTest ( final String message ) { return new TestCase ( "<STR_LIT>" ) { protected void runTest ( ) { fail ( message ) ; } } ; } } </s>
|
<s> package org . eclipse . jdt . core . tests . runtime ; import java . io . File ; import java . util . Vector ; public class SideCarJ9VMLauncher extends StandardVMLauncher { public String [ ] getCommandLine ( ) { Vector commandLine = new Vector ( ) ; commandLine . addElement ( this . vmPath + ( this . vmPath . endsWith ( File . separator ) ? "<STR_LIT>" : File . separator ) + "<STR_LIT>" + File . separator + "<STR_LIT>" ) ; if ( this . vmArguments != null ) { for ( int i = <NUM_LIT:0> ; i < this . vmArguments . length ; i ++ ) { commandLine . addElement ( this . vmArguments [ i ] ) ; } } commandLine . addElement ( "<STR_LIT>" + buildBootClassPath ( ) ) ; commandLine . addElement ( "<STR_LIT>" ) ; if ( this . debugPort != - <NUM_LIT:1> ) { commandLine . addElement ( "<STR_LIT>" ) ; commandLine . addElement ( "<STR_LIT>" + this . debugPort + "<STR_LIT>" ) ; } commandLine . addElement ( "<STR_LIT>" ) ; commandLine . addElement ( "<STR_LIT>" ) ; commandLine . addElement ( "<STR_LIT>" ) ; commandLine . addElement ( buildClassPath ( ) ) ; if ( this . evalPort != - <NUM_LIT:1> ) { commandLine . addElement ( CODE_SNIPPET_RUNNER_CLASS_NAME ) ; } if ( this . evalPort != - <NUM_LIT:1> ) { commandLine . addElement ( EVALPORT_ARG ) ; commandLine . addElement ( Integer . toString ( this . evalPort ) ) ; if ( TARGET_HAS_FILE_SYSTEM ) { commandLine . addElement ( CODESNIPPET_CLASSPATH_ARG ) ; commandLine . addElement ( this . evalTargetPath + File . separator + REGULAR_CLASSPATH_DIRECTORY ) ; commandLine . addElement ( CODESNIPPET_BOOTPATH_ARG ) ; commandLine . addElement ( this . evalTargetPath + File . separator + BOOT_CLASSPATH_DIRECTORY ) ; } } if ( this . programClass != null ) { commandLine . addElement ( this . programClass ) ; } if ( this . programArguments != null ) { for ( int i = <NUM_LIT:0> ; i < this . programArguments . length ; i ++ ) { commandLine . addElement ( this . programArguments [ i ] ) ; } } String [ ] result ; if ( this . batchFileName != null ) { writeBatchFile ( this . batchFileName , commandLine ) ; result = new String [ ] { this . batchFileName } ; } else { result = new String [ commandLine . size ( ) ] ; commandLine . copyInto ( result ) ; } for ( int i = <NUM_LIT:0> ; i < result . length ; i ++ ) { String argument = result [ i ] ; if ( argument . indexOf ( '<CHAR_LIT:U+0020>' ) != - <NUM_LIT:1> ) { result [ i ] = "<STR_LIT:\">" + argument + "<STR_LIT:\">" ; } } return result ; } protected String buildBootClassPath ( ) { StringBuffer bootPathString = new StringBuffer ( ) ; char pathSeparator = File . pathSeparatorChar ; if ( this . bootPath != null ) { int length = this . bootPath . length ; for ( int i = <NUM_LIT:0> ; i < length ; i ++ ) { bootPathString . append ( this . bootPath [ i ] ) ; bootPathString . append ( pathSeparator ) ; } } if ( this . evalTargetPath != null && TARGET_HAS_FILE_SYSTEM ) { bootPathString . append ( this . evalTargetPath ) ; bootPathString . append ( File . separatorChar ) ; bootPathString . append ( BOOT_CLASSPATH_DIRECTORY ) ; } return bootPathString . toString ( ) ; } } </s>
|
<s> package org . eclipse . jdt . core . tests . runtime ; import java . io . * ; import java . util . * ; import org . eclipse . jdt . core . tests . util . Util ; public abstract class LocalVMLauncher implements RuntimeConstants { public static final boolean TARGET_HAS_FILE_SYSTEM = true ; public static final String REGULAR_CLASSPATH_DIRECTORY = "<STR_LIT>" ; public static final String BOOT_CLASSPATH_DIRECTORY = "<STR_LIT>" ; protected String [ ] bootPath ; protected String [ ] classPath ; protected int debugPort = - <NUM_LIT:1> ; protected int evalPort = - <NUM_LIT:1> ; protected String evalTargetPath ; protected String [ ] programArguments ; protected String programClass ; protected Vector runningVMs = new Vector ( ) ; protected String [ ] vmArguments ; protected String vmPath ; public static LocalVMLauncher getLauncher ( ) { final String vmName = System . getProperty ( "<STR_LIT>" ) ; if ( "<STR_LIT>" . equals ( vmName ) ) { return new J9VMLauncher ( ) ; } if ( vmName != null && vmName . indexOf ( "<STR_LIT>" ) != - <NUM_LIT:1> ) { return new JRockitVMLauncher ( ) ; } final String osName = System . getProperty ( "<STR_LIT>" ) ; if ( osName . startsWith ( "<STR_LIT>" ) ) { return new MacVMLauncher ( ) ; } File file = new File ( Util . getJREDirectory ( ) + "<STR_LIT>" ) ; if ( file . exists ( ) ) { return new StandardVMLauncher ( ) ; } if ( "<STR_LIT>" . equals ( vmName ) ) { return new SideCarJ9VMLauncher ( ) ; } if ( "<STR_LIT>" . equals ( vmName ) ) { return new DRLVMLauncher ( ) ; } return new SideCarVMLauncher ( ) ; } protected String buildClassPath ( ) { StringBuffer classPathString = new StringBuffer ( ) ; char pathSeparator = File . pathSeparatorChar ; if ( this . evalPort != - <NUM_LIT:1> ) { classPathString . append ( new File ( this . evalTargetPath , SUPPORT_ZIP_FILE_NAME ) . getPath ( ) ) ; classPathString . append ( pathSeparator ) ; } if ( this . classPath != null ) { int length = this . classPath . length ; for ( int i = <NUM_LIT:0> ; i < length ; i ++ ) { classPathString . append ( this . classPath [ i ] ) ; classPathString . append ( pathSeparator ) ; } } if ( this . evalPort != - <NUM_LIT:1> && TARGET_HAS_FILE_SYSTEM ) { classPathString . append ( this . evalTargetPath ) ; classPathString . append ( File . separatorChar ) ; classPathString . append ( REGULAR_CLASSPATH_DIRECTORY ) ; } return classPathString . toString ( ) ; } protected Process execCommandLine ( ) throws TargetException { if ( this . vmPath == null ) { throw new TargetException ( "<STR_LIT>" ) ; } if ( ( this . programClass == null ) && ( this . evalPort == - <NUM_LIT:1> ) ) { throw new TargetException ( "<STR_LIT>" ) ; } Process vmProcess = null ; try { String [ ] commandLine = getCommandLine ( ) ; vmProcess = Runtime . getRuntime ( ) . exec ( commandLine ) ; } catch ( IOException e ) { throw new TargetException ( "<STR_LIT>" + this . vmPath ) ; } return vmProcess ; } public String [ ] getBootClassPath ( ) { return this . bootPath ; } public String [ ] getClassPath ( ) { return this . classPath ; } public abstract String [ ] getCommandLine ( ) ; public int getDebugPort ( ) { return this . debugPort ; } public int getEvalPort ( ) { return this . evalPort ; } public String getEvalTargetPath ( ) { return this . evalTargetPath ; } public String [ ] getProgramArguments ( ) { if ( this . evalPort != - <NUM_LIT:1> ) { return null ; } return this . programArguments ; } public String getProgramClass ( ) { if ( this . evalPort != - <NUM_LIT:1> ) { return null ; } return this . programClass ; } public LocalVirtualMachine [ ] getRunningVirtualMachines ( ) { Vector actuallyRunning = new Vector ( ) ; Enumeration en = this . runningVMs . elements ( ) ; while ( en . hasMoreElements ( ) ) { LocalVirtualMachine vm = ( LocalVirtualMachine ) en . nextElement ( ) ; if ( vm . isRunning ( ) ) actuallyRunning . addElement ( vm ) ; } this . runningVMs = actuallyRunning ; int size = actuallyRunning . size ( ) ; LocalVirtualMachine [ ] result = new LocalVirtualMachine [ size ] ; for ( int i = <NUM_LIT:0> ; i < size ; i ++ ) result [ i ] = ( LocalVirtualMachine ) actuallyRunning . elementAt ( i ) ; return result ; } public String getTargetAddress ( ) { return "<STR_LIT:localhost>" ; } public String [ ] getVMArguments ( ) { return this . vmArguments ; } public String getVMPath ( ) { return this . vmPath ; } protected void initTargetPath ( ) throws TargetException { File directory = new File ( this . evalTargetPath ) ; directory . mkdirs ( ) ; if ( ! directory . exists ( ) ) { throw new TargetException ( "<STR_LIT>" + this . evalTargetPath ) ; } if ( TARGET_HAS_FILE_SYSTEM ) { File classesDirectory = new File ( directory , REGULAR_CLASSPATH_DIRECTORY ) ; classesDirectory . mkdir ( ) ; if ( ! classesDirectory . exists ( ) ) { throw new TargetException ( "<STR_LIT>" + classesDirectory . getPath ( ) ) ; } File bootDirectory = new File ( directory , BOOT_CLASSPATH_DIRECTORY ) ; bootDirectory . mkdir ( ) ; if ( ! bootDirectory . exists ( ) ) { throw new TargetException ( "<STR_LIT>" + bootDirectory . getPath ( ) ) ; } } InputStream in = null ; FileOutputStream out = null ; try { in = this . getClass ( ) . getResourceAsStream ( "<STR_LIT:/>" + SUPPORT_ZIP_FILE_NAME ) ; if ( in == null ) { throw new TargetException ( "<STR_LIT>" + SUPPORT_ZIP_FILE_NAME ) ; } int bufferLength = <NUM_LIT> ; byte [ ] buffer = new byte [ bufferLength ] ; File file = new File ( directory , SUPPORT_ZIP_FILE_NAME ) ; out = new FileOutputStream ( file ) ; int read = <NUM_LIT:0> ; while ( read != - <NUM_LIT:1> ) { read = in . read ( buffer , <NUM_LIT:0> , bufferLength ) ; if ( read != - <NUM_LIT:1> ) { out . write ( buffer , <NUM_LIT:0> , read ) ; } } } catch ( IOException e ) { throw new TargetException ( "<STR_LIT>" + SUPPORT_ZIP_FILE_NAME + "<STR_LIT::U+0020>" + e . getMessage ( ) ) ; } finally { if ( in != null ) { try { in . close ( ) ; } catch ( IOException e ) { } } if ( out != null ) { try { out . close ( ) ; } catch ( IOException e ) { } } } } public LocalVirtualMachine launch ( ) throws TargetException { if ( this . evalTargetPath != null ) { this . initTargetPath ( ) ; } LocalVirtualMachine vm ; Process p = execCommandLine ( ) ; vm = new LocalVirtualMachine ( p , this . debugPort , this . evalTargetPath ) ; this . runningVMs . addElement ( vm ) ; return vm ; } public void setBootClassPath ( java . lang . String [ ] bootClassPath ) { this . bootPath = bootClassPath ; } public void setClassPath ( String [ ] classPath ) { this . classPath = classPath ; } public void setDebugPort ( int debugPort ) { this . debugPort = debugPort ; } public void setEvalPort ( int evalPort ) { this . evalPort = evalPort ; } public void setEvalTargetPath ( String evalTargetPath ) { this . evalTargetPath = evalTargetPath ; } public void setProgramArguments ( String [ ] args ) { this . programArguments = args ; } public void setProgramClass ( String programClass ) { this . programClass = programClass ; } public void setVMArguments ( String [ ] args ) { this . vmArguments = args ; } public void setVMPath ( String vmPath ) { this . vmPath = vmPath ; } } </s>
|
<s> package org . eclipse . jdt . core . tests . runtime ; import java . io . * ; import java . util . Vector ; import java . util . Enumeration ; public class StandardVMLauncher extends LocalVMLauncher implements RuntimeConstants { String batchFileName ; public StandardVMLauncher ( ) { super ( ) ; } protected String buildBootClassPath ( ) { StringBuffer bootPathString = new StringBuffer ( ) ; char pathSeparator = File . pathSeparatorChar ; if ( this . bootPath != null ) { int length = this . bootPath . length ; for ( int i = <NUM_LIT:0> ; i < length ; i ++ ) { bootPathString . append ( this . bootPath [ i ] ) ; bootPathString . append ( pathSeparator ) ; } } else { bootPathString . append ( this . vmPath ) ; bootPathString . append ( File . separator ) ; if ( ! ( this . vmPath . toLowerCase ( ) . endsWith ( "<STR_LIT>" ) || this . vmPath . toLowerCase ( ) . endsWith ( "<STR_LIT>" + File . separator ) ) ) { bootPathString . append ( "<STR_LIT>" ) ; bootPathString . append ( File . separator ) ; } bootPathString . append ( "<STR_LIT>" ) ; bootPathString . append ( File . separator ) ; bootPathString . append ( "<STR_LIT>" ) ; bootPathString . append ( pathSeparator ) ; } if ( this . evalTargetPath != null && TARGET_HAS_FILE_SYSTEM ) { bootPathString . append ( this . evalTargetPath ) ; bootPathString . append ( File . separatorChar ) ; bootPathString . append ( BOOT_CLASSPATH_DIRECTORY ) ; } return bootPathString . toString ( ) ; } public String getBatchFileName ( ) { return this . batchFileName ; } public String [ ] getCommandLine ( ) { Vector commandLine = new Vector ( ) ; StringBuffer vmLocation = new StringBuffer ( this . vmPath ) ; vmLocation . append ( this . vmPath . endsWith ( File . separator ) ? "<STR_LIT>" : File . separator ) . append ( "<STR_LIT>" ) . append ( File . separator ) . append ( "<STR_LIT>" ) ; commandLine . addElement ( String . valueOf ( vmLocation ) ) ; if ( this . vmArguments != null ) { for ( int i = <NUM_LIT:0> ; i < this . vmArguments . length ; i ++ ) { commandLine . addElement ( this . vmArguments [ i ] ) ; } } String vmVersion = System . getProperty ( "<STR_LIT>" ) ; if ( vmVersion != null && vmVersion . startsWith ( "<STR_LIT>" ) ) { commandLine . addElement ( "<STR_LIT>" ) ; commandLine . addElement ( "<STR_LIT>" ) ; } if ( this . debugPort != - <NUM_LIT:1> ) { commandLine . addElement ( "<STR_LIT>" ) ; commandLine . addElement ( "<STR_LIT>" ) ; commandLine . addElement ( "<STR_LIT>" + this . debugPort + "<STR_LIT>" ) ; } commandLine . addElement ( "<STR_LIT>" + buildBootClassPath ( ) ) ; commandLine . addElement ( "<STR_LIT>" ) ; commandLine . addElement ( buildClassPath ( ) ) ; if ( this . evalPort != - <NUM_LIT:1> ) { commandLine . addElement ( CODE_SNIPPET_RUNNER_CLASS_NAME ) ; } if ( this . evalPort != - <NUM_LIT:1> ) { commandLine . addElement ( EVALPORT_ARG ) ; commandLine . addElement ( Integer . toString ( this . evalPort ) ) ; if ( TARGET_HAS_FILE_SYSTEM ) { commandLine . addElement ( CODESNIPPET_CLASSPATH_ARG ) ; commandLine . addElement ( this . evalTargetPath + File . separator + REGULAR_CLASSPATH_DIRECTORY ) ; commandLine . addElement ( CODESNIPPET_BOOTPATH_ARG ) ; commandLine . addElement ( this . evalTargetPath + File . separator + BOOT_CLASSPATH_DIRECTORY ) ; } } if ( this . programClass != null ) { commandLine . addElement ( this . programClass ) ; } if ( this . programArguments != null ) { for ( int i = <NUM_LIT:0> ; i < this . programArguments . length ; i ++ ) { commandLine . addElement ( this . programArguments [ i ] ) ; } } String [ ] result ; if ( this . batchFileName != null ) { writeBatchFile ( this . batchFileName , commandLine ) ; result = new String [ ] { this . batchFileName } ; } else { result = new String [ commandLine . size ( ) ] ; commandLine . copyInto ( result ) ; } for ( int i = <NUM_LIT:0> ; i < result . length ; i ++ ) { String argument = result [ i ] ; if ( argument . indexOf ( '<CHAR_LIT:U+0020>' ) != - <NUM_LIT:1> ) { result [ i ] = "<STR_LIT:\">" + argument + "<STR_LIT:\">" ; } } return result ; } public void setBatchFileName ( String batchFileName ) { this . batchFileName = batchFileName ; } protected void writeBatchFile ( String fileName , Vector commandLine ) { FileOutputStream output = null ; try { output = new FileOutputStream ( fileName ) ; PrintWriter out = new PrintWriter ( output ) ; for ( Enumeration e = commandLine . elements ( ) ; e . hasMoreElements ( ) ; ) { out . print ( ( String ) e . nextElement ( ) ) ; out . print ( "<STR_LIT:U+0020>" ) ; } out . println ( "<STR_LIT>" ) ; out . close ( ) ; } catch ( IOException e ) { e . printStackTrace ( ) ; if ( output != null ) { try { output . close ( ) ; } catch ( IOException e2 ) { } } } } } </s>
|
<s> package org . eclipse . jdt . core . tests . runtime ; import java . io . * ; public class VMInputStream extends InputStream { InputStream input ; Process process ; public VMInputStream ( Process process , InputStream input ) { this . process = process ; this . input = input ; } public int available ( ) throws IOException { return this . input . available ( ) ; } public void close ( ) throws IOException { this . input . close ( ) ; } private boolean isRunning ( ) { if ( this . process == null ) { return false ; } boolean hasExited ; try { this . process . exitValue ( ) ; hasExited = true ; } catch ( IllegalThreadStateException e ) { hasExited = false ; } return ! hasExited ; } public synchronized void mark ( int readlimit ) { this . input . mark ( readlimit ) ; } public boolean markSupported ( ) { return this . input . markSupported ( ) ; } public int read ( ) throws IOException { try { return this . input . read ( ) ; } catch ( IOException e ) { if ( isRunning ( ) ) { return read ( ) ; } throw e ; } } public int read ( byte b [ ] ) throws IOException { for ( int i = <NUM_LIT:0> ; i < b . length ; i ++ ) b [ i ] = <NUM_LIT:0> ; int read ; try { read = this . input . read ( b ) ; } catch ( IOException e ) { if ( isRunning ( ) ) { read = <NUM_LIT:0> ; while ( read < b . length && b [ read ] != <NUM_LIT:0> ) { read ++ ; } } else throw e ; } return read ; } public int read ( byte b [ ] , int off , int len ) throws IOException { for ( int i = off ; i < len ; i ++ ) b [ i ] = <NUM_LIT:0> ; int read ; try { read = this . input . read ( b , off , len ) ; } catch ( IOException e ) { if ( isRunning ( ) ) { read = <NUM_LIT:0> ; while ( off + read < len && b [ off + read ] != <NUM_LIT:0> ) { read ++ ; } } else throw e ; } return read ; } public synchronized void reset ( ) throws IOException { this . input . reset ( ) ; } public long skip ( long n ) throws IOException { return this . input . skip ( n ) ; } } </s>
|
<s> package org . eclipse . jdt . core . tests . runtime ; abstract public class AbstractReader { protected String name ; protected Thread readerThread ; protected boolean isStopping = false ; public AbstractReader ( String name ) { this . name = name ; } abstract protected void readerLoop ( ) ; public void start ( ) { this . readerThread = new Thread ( new Runnable ( ) { public void run ( ) { readerLoop ( ) ; } } , AbstractReader . this . name ) ; this . readerThread . start ( ) ; } public void stop ( ) { this . isStopping = true ; if ( this . readerThread != null ) this . readerThread . interrupt ( ) ; } } </s>
|
<s> package org . eclipse . jdt . core . tests . runtime ; class J9VirtualMachine extends LocalVirtualMachine { private Process proxyProcess ; private AbstractReader proxyConsoleReader ; private String proxyOutputFile ; public J9VirtualMachine ( Process vmProcess , int debugPort , String evalTargetPath , Process proxyProcess , String proxyOutputFile ) { super ( vmProcess , debugPort , evalTargetPath ) ; this . proxyProcess = proxyProcess ; this . proxyOutputFile = proxyOutputFile ; if ( this . proxyProcess != null ) { if ( this . proxyOutputFile == null ) { this . proxyConsoleReader = new NullConsoleReader ( "<STR_LIT>" , this . proxyProcess . getInputStream ( ) ) ; } else { this . proxyConsoleReader = new ProxyConsoleReader ( "<STR_LIT>" , this . proxyProcess . getInputStream ( ) , this . proxyOutputFile ) ; } this . proxyConsoleReader . start ( ) ; } } public synchronized void shutDown ( ) throws TargetException { super . shutDown ( ) ; if ( this . proxyConsoleReader != null ) this . proxyConsoleReader . stop ( ) ; if ( this . proxyProcess != null ) { this . proxyProcess . destroy ( ) ; this . proxyProcess = null ; } } } </s>
|
<s> package org . eclipse . jdt . core . tests . runtime ; public class TargetException extends Exception { private static final long serialVersionUID = <NUM_LIT:1L> ; public TargetException ( ) { super ( ) ; } public TargetException ( String s ) { super ( s ) ; } } </s>
|
<s> package org . eclipse . jdt . core . tests . runtime ; import java . io . InputStream ; public class NullConsoleReader extends AbstractReader { private InputStream input ; public NullConsoleReader ( String name , InputStream input ) { super ( name ) ; this . input = input ; } protected void readerLoop ( ) { java . io . BufferedReader bufferedInput = new java . io . BufferedReader ( new java . io . InputStreamReader ( this . input ) ) ; try { int read = <NUM_LIT:0> ; while ( ! this . isStopping && read != - <NUM_LIT:1> ) { read = bufferedInput . read ( ) ; } } catch ( java . io . IOException e ) { } } } </s>
|
<s> package org . eclipse . jdt . core . tests . runtime ; import java . io . File ; import java . util . Vector ; public class DRLVMLauncher extends StandardVMLauncher { public String [ ] getCommandLine ( ) { Vector commandLine = new Vector ( ) ; String vmLocation = this . vmPath + ( this . vmPath . endsWith ( File . separator ) ? "<STR_LIT>" : File . separator ) + "<STR_LIT>" + File . separator + "<STR_LIT>" ; final String osName = System . getProperty ( "<STR_LIT>" ) ; if ( osName . indexOf ( "<STR_LIT>" ) == - <NUM_LIT:1> && ! new File ( vmLocation ) . exists ( ) ) { vmLocation = vmLocation . substring ( <NUM_LIT:0> , vmLocation . length ( ) - <NUM_LIT:1> ) ; } commandLine . addElement ( vmLocation ) ; if ( this . vmArguments != null ) { for ( int i = <NUM_LIT:0> ; i < this . vmArguments . length ; i ++ ) { commandLine . addElement ( this . vmArguments [ i ] ) ; } } commandLine . addElement ( "<STR_LIT>" + buildBootClassPath ( ) ) ; if ( this . debugPort != - <NUM_LIT:1> ) { commandLine . addElement ( "<STR_LIT>" ) ; commandLine . addElement ( "<STR_LIT>" ) ; commandLine . addElement ( "<STR_LIT>" + this . debugPort + "<STR_LIT>" ) ; } commandLine . addElement ( "<STR_LIT>" ) ; commandLine . addElement ( buildClassPath ( ) ) ; if ( this . evalPort != - <NUM_LIT:1> ) { commandLine . addElement ( CODE_SNIPPET_RUNNER_CLASS_NAME ) ; } if ( this . evalPort != - <NUM_LIT:1> ) { commandLine . addElement ( EVALPORT_ARG ) ; commandLine . addElement ( Integer . toString ( this . evalPort ) ) ; if ( TARGET_HAS_FILE_SYSTEM ) { commandLine . addElement ( CODESNIPPET_CLASSPATH_ARG ) ; commandLine . addElement ( this . evalTargetPath + File . separator + REGULAR_CLASSPATH_DIRECTORY ) ; commandLine . addElement ( CODESNIPPET_BOOTPATH_ARG ) ; commandLine . addElement ( this . evalTargetPath + File . separator + BOOT_CLASSPATH_DIRECTORY ) ; } } if ( this . programClass != null ) { commandLine . addElement ( this . programClass ) ; } if ( this . programArguments != null ) { for ( int i = <NUM_LIT:0> ; i < this . programArguments . length ; i ++ ) { commandLine . addElement ( this . programArguments [ i ] ) ; } } String [ ] result ; if ( this . batchFileName != null ) { writeBatchFile ( this . batchFileName , commandLine ) ; result = new String [ ] { this . batchFileName } ; } else { result = new String [ commandLine . size ( ) ] ; commandLine . copyInto ( result ) ; } for ( int i = <NUM_LIT:0> ; i < result . length ; i ++ ) { String argument = result [ i ] ; if ( argument . indexOf ( '<CHAR_LIT:U+0020>' ) != - <NUM_LIT:1> ) { result [ i ] = "<STR_LIT:\">" + argument + "<STR_LIT:\">" ; } } return result ; } protected String buildBootClassPath ( ) { StringBuffer bootPathString = new StringBuffer ( ) ; char pathSeparator = File . pathSeparatorChar ; if ( this . bootPath != null ) { int length = this . bootPath . length ; for ( int i = <NUM_LIT:0> ; i < length ; i ++ ) { bootPathString . append ( this . bootPath [ i ] ) ; bootPathString . append ( pathSeparator ) ; } } if ( this . evalTargetPath != null && TARGET_HAS_FILE_SYSTEM ) { bootPathString . append ( this . evalTargetPath ) ; bootPathString . append ( File . separatorChar ) ; bootPathString . append ( BOOT_CLASSPATH_DIRECTORY ) ; } return bootPathString . toString ( ) ; } } </s>
|
<s> package org . eclipse . jdt . core . tests . runtime ; import java . io . * ; class ProxyConsoleReader extends AbstractReader { private InputStream input ; private OutputStream output ; public ProxyConsoleReader ( String name , InputStream input , String fileName ) { super ( name ) ; this . input = input ; if ( fileName . equals ( "<STR_LIT>" ) ) { this . output = System . out ; } else { try { this . output = new FileOutputStream ( fileName ) ; } catch ( IOException e ) { System . out . println ( "<STR_LIT>" + fileName + "<STR_LIT>" ) ; this . output = System . out ; } } } protected void readerLoop ( ) { try { byte [ ] buffer = new byte [ <NUM_LIT> ] ; int read = <NUM_LIT:0> ; while ( ! this . isStopping && read != - <NUM_LIT:1> ) { read = this . input . read ( buffer ) ; if ( read != - <NUM_LIT:1> ) this . output . write ( buffer , <NUM_LIT:0> , read ) ; } } catch ( java . io . IOException e ) { } } public void stop ( ) { super . stop ( ) ; try { if ( this . output != System . out ) this . output . close ( ) ; } catch ( IOException e ) { } } } </s>
|
<s> package org . eclipse . jdt . core . tests . runtime ; public interface RuntimeConstants { public static final String SUPPORT_ZIP_FILE_NAME = "<STR_LIT>" ; public static final String CODE_SNIPPET_RUNNER_CLASS_NAME = "<STR_LIT>" ; public static final String RUN_CODE_SNIPPET_METHOD = "<STR_LIT>" ; public static final String THE_RUNNER_FIELD = "<STR_LIT>" ; public static final String EVALPORT_ARG = "<STR_LIT>" ; public static final String CODESNIPPET_CLASSPATH_ARG = "<STR_LIT>" ; public static final String CODESNIPPET_BOOTPATH_ARG = "<STR_LIT>" ; } </s>
|
<s> package org . eclipse . jdt . core . tests . runtime ; import java . io . File ; import java . util . Vector ; public class SideCarVMLauncher extends StandardVMLauncher { public String [ ] getCommandLine ( ) { Vector commandLine = new Vector ( ) ; commandLine . addElement ( this . vmPath + ( this . vmPath . endsWith ( File . separator ) ? "<STR_LIT>" : File . separator ) + "<STR_LIT>" + File . separator + "<STR_LIT>" ) ; if ( this . vmArguments != null ) { for ( int i = <NUM_LIT:0> ; i < this . vmArguments . length ; i ++ ) { commandLine . addElement ( this . vmArguments [ i ] ) ; } } commandLine . addElement ( "<STR_LIT>" + buildBootClassPath ( ) ) ; if ( this . debugPort != - <NUM_LIT:1> ) { commandLine . addElement ( "<STR_LIT>" ) ; commandLine . addElement ( "<STR_LIT>" ) ; commandLine . addElement ( "<STR_LIT>" + this . debugPort + "<STR_LIT>" ) ; } commandLine . addElement ( "<STR_LIT>" ) ; commandLine . addElement ( buildClassPath ( ) ) ; if ( this . evalPort != - <NUM_LIT:1> ) { commandLine . addElement ( CODE_SNIPPET_RUNNER_CLASS_NAME ) ; } if ( this . evalPort != - <NUM_LIT:1> ) { commandLine . addElement ( EVALPORT_ARG ) ; commandLine . addElement ( Integer . toString ( this . evalPort ) ) ; if ( TARGET_HAS_FILE_SYSTEM ) { commandLine . addElement ( CODESNIPPET_CLASSPATH_ARG ) ; commandLine . addElement ( this . evalTargetPath + File . separator + REGULAR_CLASSPATH_DIRECTORY ) ; commandLine . addElement ( CODESNIPPET_BOOTPATH_ARG ) ; commandLine . addElement ( this . evalTargetPath + File . separator + BOOT_CLASSPATH_DIRECTORY ) ; } } if ( this . programClass != null ) { commandLine . addElement ( this . programClass ) ; } if ( this . programArguments != null ) { for ( int i = <NUM_LIT:0> ; i < this . programArguments . length ; i ++ ) { commandLine . addElement ( this . programArguments [ i ] ) ; } } String [ ] result ; if ( this . batchFileName != null ) { writeBatchFile ( this . batchFileName , commandLine ) ; result = new String [ ] { this . batchFileName } ; } else { result = new String [ commandLine . size ( ) ] ; commandLine . copyInto ( result ) ; } for ( int i = <NUM_LIT:0> ; i < result . length ; i ++ ) { String argument = result [ i ] ; if ( argument . indexOf ( '<CHAR_LIT:U+0020>' ) != - <NUM_LIT:1> ) { result [ i ] = "<STR_LIT:\">" + argument + "<STR_LIT:\">" ; } } return result ; } protected String buildBootClassPath ( ) { StringBuffer bootPathString = new StringBuffer ( ) ; char pathSeparator = File . pathSeparatorChar ; if ( this . bootPath != null ) { int length = this . bootPath . length ; for ( int i = <NUM_LIT:0> ; i < length ; i ++ ) { bootPathString . append ( this . bootPath [ i ] ) ; bootPathString . append ( pathSeparator ) ; } } if ( this . evalTargetPath != null && TARGET_HAS_FILE_SYSTEM ) { bootPathString . append ( this . evalTargetPath ) ; bootPathString . append ( File . separatorChar ) ; bootPathString . append ( BOOT_CLASSPATH_DIRECTORY ) ; } return bootPathString . toString ( ) ; } } </s>
|
<s> package org . eclipse . jdt . core . tests . runtime ; import java . io . File ; import java . util . Vector ; public class MacVMLauncher extends StandardVMLauncher { public String [ ] getCommandLine ( ) { Vector commandLine = new Vector ( ) ; commandLine . addElement ( this . vmPath + ( this . vmPath . endsWith ( File . separator ) ? "<STR_LIT>" : File . separator ) + "<STR_LIT>" + File . separator + "<STR_LIT>" ) ; if ( this . vmArguments != null ) { for ( int i = <NUM_LIT:0> ; i < this . vmArguments . length ; i ++ ) { commandLine . addElement ( this . vmArguments [ i ] ) ; } } commandLine . addElement ( "<STR_LIT>" + buildBootClassPath ( ) ) ; if ( this . debugPort != - <NUM_LIT:1> ) { commandLine . addElement ( "<STR_LIT>" ) ; commandLine . addElement ( "<STR_LIT>" ) ; commandLine . addElement ( "<STR_LIT>" + this . debugPort + "<STR_LIT>" ) ; } else { commandLine . addElement ( "<STR_LIT>" ) ; } commandLine . addElement ( "<STR_LIT>" ) ; commandLine . addElement ( buildClassPath ( ) ) ; if ( this . evalPort != - <NUM_LIT:1> ) { commandLine . addElement ( CODE_SNIPPET_RUNNER_CLASS_NAME ) ; } if ( this . evalPort != - <NUM_LIT:1> ) { commandLine . addElement ( EVALPORT_ARG ) ; commandLine . addElement ( Integer . toString ( this . evalPort ) ) ; if ( TARGET_HAS_FILE_SYSTEM ) { commandLine . addElement ( CODESNIPPET_CLASSPATH_ARG ) ; commandLine . addElement ( this . evalTargetPath + File . separator + REGULAR_CLASSPATH_DIRECTORY ) ; commandLine . addElement ( CODESNIPPET_BOOTPATH_ARG ) ; commandLine . addElement ( this . evalTargetPath + File . separator + BOOT_CLASSPATH_DIRECTORY ) ; } } if ( this . programClass != null ) { commandLine . addElement ( this . programClass ) ; } if ( this . programArguments != null ) { for ( int i = <NUM_LIT:0> ; i < this . programArguments . length ; i ++ ) { commandLine . addElement ( this . programArguments [ i ] ) ; } } String [ ] result ; if ( this . batchFileName != null ) { writeBatchFile ( this . batchFileName , commandLine ) ; result = new String [ ] { this . batchFileName } ; } else { result = new String [ commandLine . size ( ) ] ; commandLine . copyInto ( result ) ; } for ( int i = <NUM_LIT:0> ; i < result . length ; i ++ ) { String argument = result [ i ] ; if ( argument . indexOf ( '<CHAR_LIT:U+0020>' ) != - <NUM_LIT:1> ) { result [ i ] = "<STR_LIT:\">" + argument + "<STR_LIT:\">" ; } } return result ; } protected String buildBootClassPath ( ) { StringBuffer bootPathString = new StringBuffer ( ) ; char pathSeparator = File . pathSeparatorChar ; if ( this . bootPath != null ) { int length = this . bootPath . length ; for ( int i = <NUM_LIT:0> ; i < length ; i ++ ) { bootPathString . append ( this . bootPath [ i ] ) ; bootPathString . append ( pathSeparator ) ; } } if ( this . evalTargetPath != null && TARGET_HAS_FILE_SYSTEM ) { bootPathString . append ( this . evalTargetPath ) ; bootPathString . append ( File . separatorChar ) ; bootPathString . append ( BOOT_CLASSPATH_DIRECTORY ) ; } return bootPathString . toString ( ) ; } } </s>
|
<s> package org . eclipse . jdt . core . tests . runtime ; import org . eclipse . jdt . internal . compiler . ClassFile ; import org . eclipse . jdt . internal . compiler . util . Util ; import java . io . * ; import java . net . * ; public class TargetInterface { static final boolean DEBUG = false ; String codeSnippetClassName ; static final boolean TIMING = false ; long sentTime ; Socket socket ; public class Result { public char [ ] displayString ; public char [ ] typeName ; } public void connect ( String targetAddress , int portNumber , int timeout ) { if ( isConnected ( ) ) { return ; } if ( portNumber > <NUM_LIT:0> ) { long startTime = System . currentTimeMillis ( ) ; do { try { this . socket = new Socket ( targetAddress , portNumber ) ; this . socket . setTcpNoDelay ( true ) ; break ; } catch ( UnknownHostException e ) { } catch ( IOException e ) { } if ( this . socket == null ) { try { Thread . sleep ( <NUM_LIT:100> ) ; } catch ( InterruptedException e ) { } } } while ( ! isConnected ( ) && ( System . currentTimeMillis ( ) - startTime ) < timeout ) ; } } public void disconnect ( ) { if ( this . socket != null ) { try { this . socket . close ( ) ; } catch ( IOException e ) { } this . socket = null ; } } public Result getResult ( ) { boolean hasValue = false ; String typeName = null ; String toString = null ; if ( DEBUG ) { hasValue = true ; typeName = "<STR_LIT>" + codeSnippetClassName ; toString = "<STR_LIT>" ; } else { if ( this . isConnected ( ) ) { try { DataInputStream in = new DataInputStream ( this . socket . getInputStream ( ) ) ; hasValue = in . readBoolean ( ) ; if ( hasValue ) { typeName = in . readUTF ( ) ; toString = in . readUTF ( ) ; } else { typeName = null ; toString = null ; } } catch ( IOException e ) { hasValue = true ; typeName = e . getMessage ( ) ; toString = "<STR_LIT>" ; this . disconnect ( ) ; } } else { hasValue = true ; typeName = "<STR_LIT>" ; toString = "<STR_LIT>" ; } } if ( TIMING ) { System . out . println ( "<STR_LIT>" + ( System . currentTimeMillis ( ) - this . sentTime ) + "<STR_LIT>" ) ; } Result result = new Result ( ) ; result . displayString = toString == null ? null : toString . toCharArray ( ) ; result . typeName = typeName == null ? null : typeName . toCharArray ( ) ; return result ; } boolean isConnected ( ) { return this . socket != null ; } public void sendClasses ( boolean mustRun , ClassFile [ ] classes ) throws TargetException { if ( DEBUG ) { for ( int i = <NUM_LIT:0> ; i < classes . length ; i ++ ) { String className = new String ( classes [ i ] . fileName ( ) ) . replace ( '<CHAR_LIT:/>' , '<STR_LIT:\\>' ) + "<STR_LIT:.class>" ; if ( ( i == <NUM_LIT:0> ) && ( className . indexOf ( "<STR_LIT>" ) != - <NUM_LIT:1> ) ) { codeSnippetClassName = className ; try { Util . writeToDisk ( true , "<STR_LIT>" , className , classes [ <NUM_LIT:0> ] ) ; } catch ( IOException e ) { } } else { String dirName ; if ( className . startsWith ( "<STR_LIT>" ) ) { dirName = "<STR_LIT>" + LocalVMLauncher . BOOT_CLASSPATH_DIRECTORY ; } else { dirName = "<STR_LIT>" + LocalVMLauncher . REGULAR_CLASSPATH_DIRECTORY ; } try { Util . writeToDisk ( true , dirName , className , classes [ i ] ) ; } catch ( IOException e ) { } } } } else { if ( TIMING ) { this . sentTime = System . currentTimeMillis ( ) ; } if ( ! isConnected ( ) ) { throw new TargetException ( "<STR_LIT>" ) ; } try { DataOutputStream out = new DataOutputStream ( this . socket . getOutputStream ( ) ) ; out . writeBoolean ( mustRun ) ; out . writeInt ( classes . length ) ; for ( int i = <NUM_LIT:0> ; i < classes . length ; i ++ ) { byte [ ] classDefinition = classes [ i ] . getBytes ( ) ; out . writeInt ( classDefinition . length ) ; out . write ( classDefinition ) ; } } catch ( IOException e ) { this . disconnect ( ) ; } } } } </s>
|
<s> package org . eclipse . jdt . core . tests . runtime ; import java . io . * ; import java . util . Vector ; import java . util . Enumeration ; public class JRockitVMLauncher extends LocalVMLauncher implements RuntimeConstants { String batchFileName ; public JRockitVMLauncher ( ) { super ( ) ; } protected String buildBootClassPath ( ) { StringBuffer bootPathString = new StringBuffer ( ) ; if ( this . evalTargetPath != null && TARGET_HAS_FILE_SYSTEM ) { bootPathString . append ( this . evalTargetPath ) ; bootPathString . append ( File . separatorChar ) ; bootPathString . append ( BOOT_CLASSPATH_DIRECTORY ) ; } return bootPathString . toString ( ) ; } public String getBatchFileName ( ) { return this . batchFileName ; } public String [ ] getCommandLine ( ) { Vector commandLine = new Vector ( ) ; if ( System . getProperty ( "<STR_LIT>" ) . startsWith ( "<STR_LIT>" ) ) { commandLine . addElement ( this . vmPath + ( this . vmPath . endsWith ( File . separator ) ? "<STR_LIT>" : File . separator ) + "<STR_LIT>" + File . separator + "<STR_LIT>" ) ; } else { String vmLocation = this . vmPath + ( this . vmPath . endsWith ( File . separator ) ? "<STR_LIT>" : File . separator ) + "<STR_LIT>" + File . separator + "<STR_LIT>" ; final String osName = System . getProperty ( "<STR_LIT>" ) ; if ( osName . indexOf ( "<STR_LIT>" ) != - <NUM_LIT:1> ) { vmLocation += "<STR_LIT>" ; } if ( ! new File ( vmLocation ) . exists ( ) ) { vmLocation = this . vmPath + ( this . vmPath . endsWith ( File . separator ) ? "<STR_LIT>" : File . separator ) + "<STR_LIT>" + File . separator + "<STR_LIT>" ; } commandLine . addElement ( vmLocation ) ; } if ( this . vmArguments != null ) { for ( int i = <NUM_LIT:0> ; i < this . vmArguments . length ; i ++ ) { commandLine . addElement ( this . vmArguments [ i ] ) ; } } if ( this . debugPort != - <NUM_LIT:1> ) { commandLine . addElement ( "<STR_LIT>" ) ; commandLine . addElement ( "<STR_LIT>" ) ; commandLine . addElement ( "<STR_LIT>" + this . debugPort + "<STR_LIT>" ) ; } commandLine . addElement ( "<STR_LIT>" ) ; String classpath = buildBootClassPath ( ) + File . pathSeparator + buildClassPath ( ) ; System . out . println ( classpath ) ; commandLine . addElement ( classpath ) ; if ( this . evalPort != - <NUM_LIT:1> ) { commandLine . addElement ( CODE_SNIPPET_RUNNER_CLASS_NAME ) ; } if ( this . evalPort != - <NUM_LIT:1> ) { commandLine . addElement ( EVALPORT_ARG ) ; commandLine . addElement ( Integer . toString ( this . evalPort ) ) ; if ( TARGET_HAS_FILE_SYSTEM ) { commandLine . addElement ( CODESNIPPET_CLASSPATH_ARG ) ; commandLine . addElement ( this . evalTargetPath + File . separator + REGULAR_CLASSPATH_DIRECTORY ) ; commandLine . addElement ( CODESNIPPET_BOOTPATH_ARG ) ; commandLine . addElement ( this . evalTargetPath + File . separator + BOOT_CLASSPATH_DIRECTORY ) ; } } if ( this . programClass != null ) { commandLine . addElement ( this . programClass ) ; } if ( this . programArguments != null ) { for ( int i = <NUM_LIT:0> ; i < this . programArguments . length ; i ++ ) { commandLine . addElement ( this . programArguments [ i ] ) ; } } String [ ] result ; if ( this . batchFileName != null ) { writeBatchFile ( this . batchFileName , commandLine ) ; result = new String [ ] { this . batchFileName } ; } else { result = new String [ commandLine . size ( ) ] ; commandLine . copyInto ( result ) ; } for ( int i = <NUM_LIT:0> ; i < result . length ; i ++ ) { String argument = result [ i ] ; if ( argument . indexOf ( '<CHAR_LIT:U+0020>' ) != - <NUM_LIT:1> ) { result [ i ] = "<STR_LIT:\">" + argument + "<STR_LIT:\">" ; } } return result ; } public void setBatchFileName ( String batchFileName ) { this . batchFileName = batchFileName ; } protected void writeBatchFile ( String fileName , Vector commandLine ) { FileOutputStream output = null ; try { output = new FileOutputStream ( fileName ) ; PrintWriter out = new PrintWriter ( output ) ; for ( Enumeration e = commandLine . elements ( ) ; e . hasMoreElements ( ) ; ) { out . print ( ( String ) e . nextElement ( ) ) ; out . print ( "<STR_LIT:U+0020>" ) ; } out . println ( "<STR_LIT>" ) ; out . close ( ) ; } catch ( IOException e ) { e . printStackTrace ( ) ; if ( output != null ) { try { output . close ( ) ; } catch ( IOException e2 ) { } } } } } </s>
|
<s> package org . eclipse . jdt . core . tests . runtime ; import java . io . * ; import java . util . Vector ; import org . eclipse . jdt . core . tests . util . Util ; public class J9VMLauncher extends LocalVMLauncher implements RuntimeConstants { int internalDebugPort = - <NUM_LIT:1> ; String proxyOutFile ; String symbolPath ; public J9VMLauncher ( ) { super ( ) ; } protected String buildBootClassPath ( ) { StringBuffer bootPathString = new StringBuffer ( ) ; char pathSeparator = File . pathSeparatorChar ; if ( this . bootPath != null ) { int length = this . bootPath . length ; for ( int i = <NUM_LIT:0> ; i < length ; i ++ ) { bootPathString . append ( this . bootPath [ i ] ) ; bootPathString . append ( pathSeparator ) ; } } else { bootPathString . append ( this . vmPath ) ; bootPathString . append ( File . separator ) ; bootPathString . append ( "<STR_LIT>" ) ; bootPathString . append ( File . separator ) ; bootPathString . append ( "<STR_LIT>" ) ; bootPathString . append ( File . separator ) ; bootPathString . append ( "<STR_LIT>" ) ; bootPathString . append ( pathSeparator ) ; } if ( this . evalTargetPath != null && TARGET_HAS_FILE_SYSTEM ) { bootPathString . append ( this . evalTargetPath ) ; bootPathString . append ( File . separatorChar ) ; bootPathString . append ( BOOT_CLASSPATH_DIRECTORY ) ; } return bootPathString . toString ( ) ; } protected Process execCommandLine ( ) throws TargetException { if ( this . debugPort != - <NUM_LIT:1> && this . internalDebugPort == - <NUM_LIT:1> ) { throw new TargetException ( "<STR_LIT>" ) ; } return super . execCommandLine ( ) ; } public String [ ] getCommandLine ( ) { Vector commandLine = new Vector ( ) ; commandLine . addElement ( this . vmPath + ( this . vmPath . endsWith ( File . separator ) ? "<STR_LIT>" : File . separator ) + "<STR_LIT>" + File . separator + "<STR_LIT>" ) ; if ( this . vmArguments != null ) { for ( int i = <NUM_LIT:0> ; i < this . vmArguments . length ; i ++ ) { commandLine . addElement ( this . vmArguments [ i ] ) ; } } if ( this . debugPort != - <NUM_LIT:1> && this . internalDebugPort != - <NUM_LIT:1> ) { commandLine . addElement ( "<STR_LIT>" + this . internalDebugPort ) ; } commandLine . addElement ( "<STR_LIT>" + buildBootClassPath ( ) ) ; commandLine . addElement ( "<STR_LIT>" ) ; commandLine . addElement ( buildClassPath ( ) ) ; if ( this . evalPort != - <NUM_LIT:1> ) { commandLine . addElement ( CODE_SNIPPET_RUNNER_CLASS_NAME ) ; } if ( this . evalPort != - <NUM_LIT:1> ) { commandLine . addElement ( EVALPORT_ARG ) ; commandLine . addElement ( Integer . toString ( this . evalPort ) ) ; if ( TARGET_HAS_FILE_SYSTEM ) { commandLine . addElement ( CODESNIPPET_CLASSPATH_ARG ) ; commandLine . addElement ( this . evalTargetPath + File . separator + REGULAR_CLASSPATH_DIRECTORY ) ; commandLine . addElement ( CODESNIPPET_BOOTPATH_ARG ) ; commandLine . addElement ( this . evalTargetPath + File . separator + BOOT_CLASSPATH_DIRECTORY ) ; } } if ( this . programClass != null ) { commandLine . addElement ( this . programClass ) ; } if ( this . programArguments != null ) { for ( int i = <NUM_LIT:0> ; i < this . programArguments . length ; i ++ ) { commandLine . addElement ( this . programArguments [ i ] ) ; } } String [ ] result = new String [ commandLine . size ( ) ] ; commandLine . copyInto ( result ) ; for ( int i = <NUM_LIT:0> ; i < result . length ; i ++ ) { String argument = result [ i ] ; if ( argument . indexOf ( '<CHAR_LIT:U+0020>' ) != - <NUM_LIT:1> ) { result [ i ] = "<STR_LIT:\">" + argument + "<STR_LIT:\">" ; } } return result ; } public int getInternalDebugPort ( ) { return this . internalDebugPort ; } public String [ ] getProxyCommandLine ( ) { Vector commandLine = new Vector ( ) ; commandLine . addElement ( this . vmPath + ( this . vmPath . endsWith ( File . separator ) ? "<STR_LIT>" : File . separator ) + "<STR_LIT>" + File . separator + "<STR_LIT>" ) ; commandLine . addElement ( getTargetAddress ( ) + "<STR_LIT::>" + this . internalDebugPort ) ; commandLine . addElement ( Integer . toString ( this . debugPort ) ) ; if ( this . symbolPath != null && this . symbolPath != "<STR_LIT>" ) { commandLine . addElement ( this . symbolPath ) ; } String [ ] result = new String [ commandLine . size ( ) ] ; commandLine . copyInto ( result ) ; return result ; } public String getProxyOutFile ( ) { return this . proxyOutFile ; } public String getSymbolPath ( ) { return this . symbolPath ; } public LocalVirtualMachine launch ( ) throws TargetException { LocalVirtualMachine localVM = super . launch ( ) ; Process proxyProcess = null ; if ( this . debugPort != - <NUM_LIT:1> ) { try { String [ ] commandLine = getProxyCommandLine ( ) ; proxyProcess = Runtime . getRuntime ( ) . exec ( commandLine ) ; } catch ( IOException e ) { localVM . shutDown ( ) ; throw new TargetException ( "<STR_LIT>" + this . vmPath ) ; } } Process vmProcess = localVM . process ; this . runningVMs . removeElement ( localVM ) ; J9VirtualMachine vm = new J9VirtualMachine ( vmProcess , this . debugPort , this . evalTargetPath , proxyProcess , this . proxyOutFile ) ; this . runningVMs . addElement ( vm ) ; return vm ; } public void setDebugPort ( int debugPort ) { super . setDebugPort ( debugPort ) ; this . setInternalDebugPort ( Util . getFreePort ( ) ) ; } public void setInternalDebugPort ( int internalDebugPort ) { this . internalDebugPort = internalDebugPort ; } public void setProxyOutFile ( String proxyOutFile ) { this . proxyOutFile = proxyOutFile ; } public void setSymbolPath ( String symbolPath ) { this . symbolPath = symbolPath ; } } </s>
|
<s> package org . eclipse . jdt . core . tests . runtime ; import java . io . * ; import org . eclipse . jdt . core . tests . util . Util ; public class LocalVirtualMachine { protected Process process ; protected int debugPort ; protected String evalTargetPath ; public LocalVirtualMachine ( ) { this . process = null ; this . debugPort = - <NUM_LIT:1> ; this . evalTargetPath = null ; } public LocalVirtualMachine ( Process p , int debugPort , String evalTargetPath ) { this . process = p ; this . debugPort = debugPort ; this . evalTargetPath = evalTargetPath ; } protected void cleanupTargetPath ( ) throws TargetException { if ( this . evalTargetPath == null ) return ; String targetPath = this . evalTargetPath ; if ( LocalVMLauncher . TARGET_HAS_FILE_SYSTEM ) { Util . delete ( new File ( targetPath , LocalVMLauncher . REGULAR_CLASSPATH_DIRECTORY ) ) ; Util . delete ( new File ( targetPath , LocalVMLauncher . BOOT_CLASSPATH_DIRECTORY ) ) ; File file = new File ( targetPath , RuntimeConstants . SUPPORT_ZIP_FILE_NAME ) ; if ( ! Util . delete ( file ) ) { throw new TargetException ( "<STR_LIT>" + file . getPath ( ) ) ; } } else { Util . delete ( targetPath ) ; } } public int getDebugPortNumber ( ) { return this . debugPort ; } public InputStream getErrorStream ( ) throws TargetException { if ( this . process == null ) throw new TargetException ( "<STR_LIT>" ) ; return this . process . getErrorStream ( ) ; } public InputStream getInputStream ( ) throws TargetException { if ( this . process == null ) throw new TargetException ( "<STR_LIT>" ) ; return new VMInputStream ( this . process , this . process . getInputStream ( ) ) ; } public OutputStream getOutputStream ( ) throws TargetException { if ( this . process == null ) throw new TargetException ( "<STR_LIT>" ) ; return this . process . getOutputStream ( ) ; } public boolean isRunning ( ) { if ( this . process == null ) { return false ; } boolean hasExited ; try { this . process . exitValue ( ) ; hasExited = true ; } catch ( IllegalThreadStateException e ) { hasExited = false ; } return ! hasExited ; } public synchronized void shutDown ( ) throws TargetException { if ( this . process != null ) { this . process . destroy ( ) ; this . process = null ; this . cleanupTargetPath ( ) ; } } } </s>
|
<s> package org . eclipse . jdt . groovy . core . tests . basic ; import java . io . File ; import java . io . IOException ; import java . net . URL ; import java . util . HashMap ; import java . util . Iterator ; import java . util . List ; import java . util . Map ; import junit . framework . Test ; import org . codehaus . groovy . ast . ClassNode ; import org . codehaus . groovy . ast . ImportNode ; import org . codehaus . groovy . ast . MethodNode ; import org . codehaus . groovy . ast . ModuleNode ; import org . codehaus . groovy . ast . Parameter ; import org . codehaus . jdt . groovy . internal . compiler . ast . AliasImportReference ; import org . codehaus . jdt . groovy . internal . compiler . ast . EventListener ; import org . codehaus . jdt . groovy . internal . compiler . ast . GroovyClassScope ; import org . codehaus . jdt . groovy . internal . compiler . ast . GroovyCompilationUnitDeclaration ; import org . codehaus . jdt . groovy . internal . compiler . ast . GroovyParser ; import org . codehaus . jdt . groovy . internal . compiler . ast . IGroovyDebugRequestor ; import org . codehaus . jdt . groovy . internal . compiler . ast . JDTClassNode ; import org . codehaus . jdt . groovy . internal . compiler . ast . JDTResolver ; import org . eclipse . core . runtime . FileLocator ; import org . eclipse . core . runtime . Platform ; import org . eclipse . jdt . core . ToolFactory ; import org . eclipse . jdt . core . tests . compiler . regression . AbstractRegressionTest ; import org . eclipse . jdt . core . tests . util . GroovyUtils ; import org . eclipse . jdt . core . tests . util . Util ; import org . eclipse . jdt . core . util . ClassFileBytesDisassembler ; import org . eclipse . jdt . internal . compiler . CompilationResult ; import org . eclipse . jdt . internal . compiler . ICompilerRequestor ; import org . eclipse . jdt . internal . compiler . ast . ASTNode ; import org . eclipse . jdt . internal . compiler . ast . ArrayQualifiedTypeReference ; import org . eclipse . jdt . internal . compiler . ast . ArrayTypeReference ; import org . eclipse . jdt . internal . compiler . ast . FieldDeclaration ; import org . eclipse . jdt . internal . compiler . ast . ImportReference ; import org . eclipse . jdt . internal . compiler . ast . ParameterizedQualifiedTypeReference ; import org . eclipse . jdt . internal . compiler . ast . ParameterizedSingleTypeReference ; import org . eclipse . jdt . internal . compiler . ast . QualifiedTypeReference ; import org . eclipse . jdt . internal . compiler . ast . SingleTypeReference ; import org . eclipse . jdt . internal . compiler . ast . TypeDeclaration ; import org . eclipse . jdt . internal . compiler . ast . TypeReference ; import org . eclipse . jdt . internal . compiler . ast . Wildcard ; import org . eclipse . jdt . internal . compiler . classfmt . ClassFileConstants ; import org . eclipse . jdt . internal . compiler . impl . CompilerOptions ; public class GroovySimpleTest extends AbstractRegressionTest { public GroovySimpleTest ( String name ) { super ( name ) ; } public static Test suite ( ) { return buildUniqueComplianceTestSuite ( testClass ( ) , ClassFileConstants . JDK1_5 ) ; } protected void setUp ( ) throws Exception { super . setUp ( ) ; GroovyCompilationUnitDeclaration . defaultCheckGenerics = true ; GroovyParser . debugRequestor = new DebugRequestor ( ) ; complianceLevel = ClassFileConstants . JDK1_5 ; } public static Class testClass ( ) { return GroovySimpleTest . class ; } protected void tearDown ( ) throws Exception { super . tearDown ( ) ; GroovyCompilationUnitDeclaration . defaultCheckGenerics = false ; GroovyParser . debugRequestor = null ; } protected String [ ] getDefaultClassPaths ( ) { String [ ] cps = super . getDefaultClassPaths ( ) ; String [ ] newcps = new String [ cps . length + <NUM_LIT:3> ] ; System . arraycopy ( cps , <NUM_LIT:0> , newcps , <NUM_LIT:0> , cps . length ) ; try { URL groovyJar = Platform . getBundle ( "<STR_LIT>" ) . getEntry ( "<STR_LIT>" ) ; if ( groovyJar == null ) { groovyJar = Platform . getBundle ( "<STR_LIT>" ) . getEntry ( "<STR_LIT>" ) ; if ( groovyJar == null ) { groovyJar = Platform . getBundle ( "<STR_LIT>" ) . getEntry ( "<STR_LIT>" ) ; if ( groovyJar == null ) { groovyJar = Platform . getBundle ( "<STR_LIT>" ) . getEntry ( "<STR_LIT>" ) ; } } } newcps [ newcps . length - <NUM_LIT:1> ] = FileLocator . resolve ( groovyJar ) . getFile ( ) ; URL asmJar = Platform . getBundle ( "<STR_LIT>" ) . getEntry ( "<STR_LIT>" ) ; if ( asmJar == null ) { asmJar = Platform . getBundle ( "<STR_LIT>" ) . getEntry ( "<STR_LIT>" ) ; if ( asmJar == null ) { asmJar = Platform . getBundle ( "<STR_LIT>" ) . getEntry ( "<STR_LIT>" ) ; } } newcps [ newcps . length - <NUM_LIT:2> ] = FileLocator . resolve ( asmJar ) . getFile ( ) ; newcps [ newcps . length - <NUM_LIT:3> ] = FileLocator . resolve ( Platform . getBundle ( "<STR_LIT>" ) . getEntry ( "<STR_LIT>" ) ) . getFile ( ) ; } catch ( IOException e ) { fail ( "<STR_LIT>" + e . getMessage ( ) ) ; } return newcps ; } public void testClosureSyntax ( ) { if ( GroovyUtils . isGroovy16 ( ) ) { this . runConformTest ( new String [ ] { "<STR_LIT>" , "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" } , "<STR_LIT>" + "<STR_LIT:abc>" ) ; } else { this . runNegativeTest ( new String [ ] { "<STR_LIT>" , "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" } , "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" ) ; } } public void testParsingRecovery_GRE1085_1 ( ) { if ( GroovyUtils . GROOVY_LEVEL < <NUM_LIT> ) { return ; } this . runNegativeTest ( new String [ ] { "<STR_LIT>" , "<STR_LIT>" + "<STR_LIT:n>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" } , "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" ) ; checkGCUDeclaration ( "<STR_LIT>" , "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" ) ; } public void testParsingRecovery_GRE1085_2 ( ) { if ( GroovyUtils . GROOVY_LEVEL < <NUM_LIT> ) { return ; } this . runNegativeTest ( new String [ ] { "<STR_LIT>" , "<STR_LIT>" + "<STR_LIT:n>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" } , "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" ) ; checkGCUDeclaration ( "<STR_LIT>" , "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" ) ; } public void testParsingRecovery_GRE1085_3 ( ) { if ( GroovyUtils . GROOVY_LEVEL < <NUM_LIT> ) { return ; } this . runNegativeTest ( new String [ ] { "<STR_LIT>" , "<STR_LIT>" + "<STR_LIT:n>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" } , "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" ) ; checkGCUDeclaration ( "<STR_LIT>" , "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" ) ; } public void testParsingRecovery_GRE1192_1 ( ) { if ( GroovyUtils . GROOVY_LEVEL < <NUM_LIT> ) { return ; } this . runNegativeTest ( new String [ ] { "<STR_LIT>" , "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" } , "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" ) ; checkGCUDeclaration ( "<STR_LIT>" , "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" ) ; } public void testGreclipse719 ( ) { if ( GroovyUtils . GROOVY_LEVEL < <NUM_LIT> ) { return ; } this . runNegativeTest ( new String [ ] { "<STR_LIT>" , "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" } , "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" ) ; } public void testGreclipse719_2 ( ) { if ( GroovyUtils . GROOVY_LEVEL < <NUM_LIT> ) { return ; } this . runNegativeTest ( new String [ ] { "<STR_LIT>" , "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" } , "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" ) ; } public void testParsingRecovery_GRE1046_1 ( ) { if ( GroovyUtils . GROOVY_LEVEL < <NUM_LIT> ) { return ; } this . runNegativeTest ( new String [ ] { "<STR_LIT>" , "<STR_LIT>" + "<STR_LIT>" } , "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT:n>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" ) ; } public void testParsingRecovery_GRE1046_2 ( ) { if ( GroovyUtils . GROOVY_LEVEL < <NUM_LIT> ) { return ; } this . runNegativeTest ( new String [ ] { "<STR_LIT>" , "<STR_LIT>" + "<STR_LIT>" } , "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT:n>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" ) ; } public void testParsingRecovery_GRE1213_1 ( ) { if ( GroovyUtils . GROOVY_LEVEL < <NUM_LIT> ) { return ; } this . runNegativeTest ( new String [ ] { "<STR_LIT>" , "<STR_LIT>" + "<STR_LIT>" } , "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT:n>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT:n>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" ) ; } public void testParsingRecovery_GRE1213_2 ( ) { if ( GroovyUtils . GROOVY_LEVEL < <NUM_LIT> ) { return ; } this . runNegativeTest ( new String [ ] { "<STR_LIT>" , "<STR_LIT>" + "<STR_LIT>" } , "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT:n>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT:n>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" ) ; } public void testParsingRecovery_GRE1107_1 ( ) { if ( GroovyUtils . GROOVY_LEVEL < <NUM_LIT> ) { return ; } this . runNegativeTest ( new String [ ] { "<STR_LIT>" , "<STR_LIT>" + "<STR_LIT:n>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT:n>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" } , "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" ) ; checkGCUDeclaration ( "<STR_LIT>" , "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" ) ; } public void testParsingRecovery_GRE1107_2 ( ) { if ( GroovyUtils . GROOVY_LEVEL < <NUM_LIT> ) { return ; } this . runNegativeTest ( new String [ ] { "<STR_LIT>" , "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT:n>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT:n>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" } , "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" ) ; checkGCUDeclaration ( "<STR_LIT>" , "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" ) ; } public void testParsingRecovery_GRE468_1 ( ) { if ( GroovyUtils . GROOVY_LEVEL < <NUM_LIT> ) { return ; } this . runNegativeTest ( new String [ ] { "<STR_LIT>" , "<STR_LIT>" + "<STR_LIT:n>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" } , "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" ) ; checkGCUDeclaration ( "<STR_LIT>" , "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" ) ; } public void testDuplicateClassesUnnecessaryExceptions ( ) { this . runNegativeTest ( new String [ ] { "<STR_LIT>" , "<STR_LIT>" + "<STR_LIT>" } , "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + ( isGE20 ( ) ? "<STR_LIT>" : "<STR_LIT>" ) + "<STR_LIT:n>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" ) ; } public void testGenericParamUsage ( ) { this . runConformTest ( new String [ ] { "<STR_LIT>" , "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT:}>" } , "<STR_LIT>" ) ; } public void testGenericParamUsage2 ( ) { this . runConformTest ( new String [ ] { "<STR_LIT>" , "<STR_LIT>" + "<STR_LIT:n>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" } , "<STR_LIT>" ) ; } public void testStaticProperty ( ) { this . runConformTest ( new String [ ] { "<STR_LIT>" , "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT:U+0020U+0020}>" + "<STR_LIT>" } , "<STR_LIT>" ) ; } public void testUnreachable_1047 ( ) { this . runConformTest ( new String [ ] { "<STR_LIT>" , "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT:}>" , "<STR_LIT>" , "<STR_LIT:n>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" , "<STR_LIT>" , "<STR_LIT:n>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" } ) ; } public void testUnreachable_1047_2 ( ) { this . runConformTest ( new String [ ] { "<STR_LIT>" , "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT:}>" , "<STR_LIT>" , "<STR_LIT:n>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" , "<STR_LIT>" , "<STR_LIT:n>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" } ) ; } public void testDuplicateClassesUnnecessaryExceptions_GRE796 ( ) { this . runNegativeTest ( new String [ ] { "<STR_LIT>" , "<STR_LIT>" , "<STR_LIT>" , "<STR_LIT>" , "<STR_LIT>" , "<STR_LIT>" , } , "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + ( isGE20 ( ) ? "<STR_LIT>" : "<STR_LIT>" ) + "<STR_LIT:n>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" ) ; } public void testAnnos_GRE697 ( ) { this . runConformTest ( new String [ ] { "<STR_LIT>" , "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT:}>" , } , "<STR_LIT:abc>" ) ; } public void testGroovyColon_GRE801 ( ) { this . runNegativeTest ( new String [ ] { "<STR_LIT>" , "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" } , "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" ) ; } public void testJava7 ( ) { if ( isEclipse36 ( ) ) { return ; } complianceLevel = ClassFileConstants . JDK1_7 ; this . runConformTest ( new String [ ] { "<STR_LIT>" , "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT:}>" , "<STR_LIT>" , "<STR_LIT>" } , "<STR_LIT>" ) ; } public void testJava7_2 ( ) { if ( isEclipse36 ( ) ) { return ; } this . runNegativeTest ( new String [ ] { "<STR_LIT>" , "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT:}>" , "<STR_LIT>" , "<STR_LIT>" } , "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" ) ; } private boolean isEclipse36 ( ) { return Platform . getBundle ( "<STR_LIT>" ) . getVersion ( ) . toString ( ) . startsWith ( "<STR_LIT>" ) ; } public void testJava7_3 ( ) { if ( isEclipse36 ( ) ) { return ; } this . runNegativeTest ( new String [ ] { "<STR_LIT>" , "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT:}>" , "<STR_LIT>" , "<STR_LIT>" } , "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" ) ; } public void testStaticOuter_GRE944 ( ) { if ( GroovyUtils . GROOVY_LEVEL < <NUM_LIT> ) { this . runConformTest ( new String [ ] { "<STR_LIT>" , "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" , } , "<STR_LIT:abc>" ) ; } else { this . runNegativeTest ( new String [ ] { "<STR_LIT>" , "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" , } , "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" ) ; } } public void testCrashRatherThanError_GRE986 ( ) { this . runNegativeTest ( new String [ ] { "<STR_LIT>" , "<STR_LIT>" + "<STR_LIT>" } , "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" ) ; } public void testAmbiguous_GRE945_gu ( ) { this . runConformTest ( new String [ ] { "<STR_LIT>" , "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" , "<STR_LIT>" , "<STR_LIT>" + "<STR_LIT>" , } , "<STR_LIT:abc>" ) ; } public void testAmbiguous_GRE945_jl ( ) { this . runConformTest ( new String [ ] { "<STR_LIT>" , "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" , "<STR_LIT>" , "<STR_LIT>" + "<STR_LIT>" , } , "<STR_LIT:abc>" ) ; } public void testAmbiguous_GRE945_bothFromSource ( ) { this . runConformTest ( new String [ ] { "<STR_LIT>" , "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" , "<STR_LIT>" , "<STR_LIT>" + "<STR_LIT>" , "<STR_LIT>" , "<STR_LIT>" + "<STR_LIT>" , } , "<STR_LIT:abc>" ) ; } public void testAmbiguous_GRE945_bothFromSource_2 ( ) { this . runConformTest ( new String [ ] { "<STR_LIT>" , "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" , "<STR_LIT>" , "<STR_LIT>" + "<STR_LIT>" , "<STR_LIT>" , "<STR_LIT>" + "<STR_LIT>" , } , "<STR_LIT>" ) ; } public void testAmbiguous_GRE945_bothFromSource_3 ( ) { this . runConformTest ( new String [ ] { "<STR_LIT>" , "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" , "<STR_LIT>" , "<STR_LIT>" + "<STR_LIT>" , "<STR_LIT>" , "<STR_LIT>" + "<STR_LIT>" , } , "<STR_LIT>" ) ; } public void testAmbiguous_GRE945_ju ( ) { this . runConformTest ( new String [ ] { "<STR_LIT>" , "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" , "<STR_LIT>" , "<STR_LIT>" + "<STR_LIT>" , } , "<STR_LIT:abc>" ) ; } public void testAmbiguous_GRE945_jn ( ) { this . runConformTest ( new String [ ] { "<STR_LIT>" , "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" , "<STR_LIT>" , "<STR_LIT>" + "<STR_LIT>" , } , "<STR_LIT:abc>" ) ; } public void testAmbiguous_GRE945_gl ( ) { this . runConformTest ( new String [ ] { "<STR_LIT>" , "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" , "<STR_LIT>" , "<STR_LIT>" + "<STR_LIT>" , } , "<STR_LIT:abc>" ) ; } public void testAmbiguous_GRE945_ji ( ) { this . runConformTest ( new String [ ] { "<STR_LIT>" , "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" , "<STR_LIT>" , "<STR_LIT>" + "<STR_LIT>" , } , "<STR_LIT:abc>" ) ; } public void testStaticOuter_GRE944_2 ( ) { if ( GroovyUtils . GROOVY_LEVEL < <NUM_LIT> ) { this . runConformTest ( new String [ ] { "<STR_LIT>" , "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" , "<STR_LIT>" , "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" , } , "<STR_LIT>" ) ; } else { this . runNegativeTest ( new String [ ] { "<STR_LIT>" , "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" , "<STR_LIT>" , "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" , } , "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" ) ; } } public void testEnumStatic_GRE974 ( ) { this . runConformTest ( new String [ ] { "<STR_LIT>" , "<STR_LIT>" + "<STR_LIT:n>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT:n>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT:}>" , "<STR_LIT>" , "<STR_LIT>" + "<STR_LIT:n>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT:n>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT:}>" , "<STR_LIT>" , "<STR_LIT>" + "<STR_LIT:n>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT:n>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT:}>" } , "<STR_LIT>" ) ; } public void testGRE830 ( ) { this . runNegativeTest ( new String [ ] { "<STR_LIT>" , "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT:n>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" , "<STR_LIT>" , "<STR_LIT>" + "<STR_LIT:n>" + "<STR_LIT>" + "<STR_LIT:n>" + "<STR_LIT>" + "<STR_LIT>" } , "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + ( isGE20 ( ) ? "<STR_LIT>" : "<STR_LIT>" ) + "<STR_LIT:n>" + "<STR_LIT>" + "<STR_LIT>" ) ; } private boolean isGE20 ( ) { return GroovyUtils . GROOVY_LEVEL >= <NUM_LIT:20> ; } public void testGRE830_2 ( ) { this . runNegativeTest ( new String [ ] { "<STR_LIT>" , "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT:n>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" , "<STR_LIT>" , "<STR_LIT>" + "<STR_LIT:n>" + "<STR_LIT>" + "<STR_LIT:n>" + "<STR_LIT>" + "<STR_LIT>" } , "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + ( isGE20 ( ) ? "<STR_LIT>" : "<STR_LIT>" ) + "<STR_LIT:n>" + "<STR_LIT>" + "<STR_LIT>" ) ; } public void testRecovery_GRE766 ( ) { this . runNegativeTest ( new String [ ] { "<STR_LIT>" , "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" } , "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT:n>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" ) ; ModuleNode mn = getModuleNode ( "<STR_LIT>" ) ; assertNotNull ( mn ) ; ClassNode cn = ( ClassNode ) mn . getClasses ( ) . get ( <NUM_LIT:0> ) ; assertNotNull ( cn ) ; assertTrue ( cn . getName ( ) . equals ( "<STR_LIT>" ) ) ; MethodNode methodNode = cn . getDeclaredMethod ( "<STR_LIT>" , Parameter . EMPTY_ARRAY ) ; assertNotNull ( methodNode ) ; } public void testConstAnnotationValue_GRE629 ( ) { this . runConformTest ( new String [ ] { "<STR_LIT>" , "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT:}>" , "<STR_LIT>" , "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" } , "<STR_LIT>" ) ; } public void testVarargs_GRE925 ( ) { this . runConformTest ( new String [ ] { "<STR_LIT>" , "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT:}>" , "<STR_LIT>" , "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT:}>" } ) ; } public void testPrimitiveLikeTypeNames_GRE891 ( ) { this . runConformTest ( new String [ ] { "<STR_LIT>" , "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT:}>" , "<STR_LIT>" , "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" } , "<STR_LIT>" ) ; assertEquals ( "<STR_LIT>" , getReturnTypeOfMethod ( "<STR_LIT>" , "<STR_LIT>" ) ) ; } public void testPrimitiveLikeTypeNames_GRE891_2 ( ) { this . runConformTest ( new String [ ] { "<STR_LIT>" , "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT:}>" , "<STR_LIT>" , "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" } , "<STR_LIT>" ) ; assertEquals ( "<STR_LIT>" , getReturnTypeOfMethod ( "<STR_LIT>" , "<STR_LIT>" ) ) ; } public void testPrimitiveLikeTypeNames_GRE891_3 ( ) { runConformTest ( new String [ ] { "<STR_LIT>" , "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT:}>" , "<STR_LIT>" , "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" } , "<STR_LIT>" ) ; assertEquals ( "<STR_LIT>" , getReturnTypeOfMethod ( "<STR_LIT>" , "<STR_LIT>" ) ) ; } public void testPrimitiveLikeTypeNames_GRE891_4 ( ) { runConformTest ( new String [ ] { "<STR_LIT>" , "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT:}>" , "<STR_LIT>" , "<STR_LIT>" + "<STR_LIT>" , "<STR_LIT>" , "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" } , "<STR_LIT>" ) ; assertEquals ( "<STR_LIT>" , getReturnTypeOfMethod ( "<STR_LIT>" , "<STR_LIT>" ) ) ; } public void testPrimitiveLikeTypeNames_GRE891_5 ( ) { runConformTest ( new String [ ] { "<STR_LIT>" , "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT:}>" , "<STR_LIT>" , "<STR_LIT>" + "<STR_LIT>" , "<STR_LIT>" , "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" } , "<STR_LIT>" ) ; assertEquals ( "<STR_LIT>" , getReturnTypeOfMethod ( "<STR_LIT>" , "<STR_LIT>" ) ) ; } public String getReturnTypeOfMethod ( String filename , String methodname ) { ModuleNode mn = getModuleNode ( filename ) ; ClassNode cn = ( ClassNode ) mn . getClasses ( ) . get ( <NUM_LIT:0> ) ; assertNotNull ( cn ) ; MethodNode methodNode = cn . getMethod ( methodname , new Parameter [ ] { } ) ; assertNotNull ( methodNode ) ; ClassNode returnType = methodNode . getReturnType ( ) ; return returnType . getName ( ) ; } public void testMixedModeInnerProperties_GRE597 ( ) { this . runConformTest ( new String [ ] { "<STR_LIT>" , "<STR_LIT>" + "<STR_LIT:n>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT:n>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT:n>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT:}>" , "<STR_LIT>" , "<STR_LIT>" + "<STR_LIT:n>" + "<STR_LIT>" + "<STR_LIT:n>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" } , "<STR_LIT>" ) ; } public void testGrabScriptAndImports_GRE680 ( ) { this . runConformTest ( new String [ ] { "<STR_LIT>" , "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT:n>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" } , "<STR_LIT>" ) ; } public void testMixedModeInnerProperties2_GRE597 ( ) { this . runConformTest ( new String [ ] { "<STR_LIT>" , "<STR_LIT>" + "<STR_LIT:n>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT:n>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT:n>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT:}>" , "<STR_LIT>" , "<STR_LIT>" + "<STR_LIT:n>" + "<STR_LIT>" + "<STR_LIT:n>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" } , "<STR_LIT>" ) ; } public void testNewRuleInLatestGroovy ( ) { if ( GroovyUtils . GROOVY_LEVEL < <NUM_LIT> ) { this . runNegativeTest ( new String [ ] { "<STR_LIT>" , "<STR_LIT>" + "<STR_LIT:n>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" } , "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" ) ; } else { this . runNegativeTest ( new String [ ] { "<STR_LIT>" , "<STR_LIT>" + "<STR_LIT:n>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" } , "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" ) ; } } public void testStandaloneGroovyFile ( ) { this . runConformTest ( new String [ ] { "<STR_LIT>" , "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" , } , "<STR_LIT:success>" ) ; } public void testTurningOffGenericsWarnings ( ) { Map options = getCompilerOptions ( ) ; options . put ( CompilerOptions . OPTIONG_GroovyFlags , "<STR_LIT:0>" ) ; } public void testRecursion_GR531 ( ) { this . runNegativeTest ( new String [ ] { "<STR_LIT>" , "<STR_LIT>" + "<STR_LIT>" , } , "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" ) ; } public void testRecursion_GR531_2 ( ) { this . runNegativeTest ( new String [ ] { "<STR_LIT>" , "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" , } , "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" ) ; } public void testRecursion_GR531_3 ( ) { this . runNegativeTest ( new String [ ] { "<STR_LIT>" , "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" , "<STR_LIT>" , "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" } , "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" ) ; } public void testRecursion_GR531_4 ( ) { this . runNegativeTest ( new String [ ] { "<STR_LIT>" , "<STR_LIT>" + "<STR_LIT>" , } , "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" ) ; } public void testClassHierarchiesAndGroovyObjectMethods ( ) { try { GroovyClassScope . debugListener = new EventListener ( "<STR_LIT>" ) ; this . runConformTest ( new String [ ] { "<STR_LIT>" , "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" , } , "<STR_LIT:abc>" ) ; assertEventCount ( <NUM_LIT:1> , GroovyClassScope . debugListener ) ; assertEvent ( "<STR_LIT>" , GroovyClassScope . debugListener ) ; System . err . println ( GroovyClassScope . debugListener . toString ( ) ) ; } finally { GroovyClassScope . debugListener = null ; } } public void testClassHierarchiesAndGroovyObjectMethods2 ( ) { try { GroovyClassScope . debugListener = new EventListener ( "<STR_LIT>" ) ; this . runConformTest ( new String [ ] { "<STR_LIT>" , "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" , } , "<STR_LIT:abc>" ) ; assertEventCount ( <NUM_LIT:1> , GroovyClassScope . debugListener ) ; assertEvent ( "<STR_LIT>" , GroovyClassScope . debugListener ) ; System . err . println ( GroovyClassScope . debugListener . toString ( ) ) ; } finally { GroovyClassScope . debugListener = null ; } } public void testClassHierarchiesAndGroovyObjectMethods3 ( ) { try { GroovyClassScope . debugListener = new EventListener ( ) ; this . runConformTest ( new String [ ] { "<STR_LIT>" , "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" , "<STR_LIT>" , "<STR_LIT>" , } , "<STR_LIT:abc>" ) ; assertEventCount ( <NUM_LIT:2> , GroovyClassScope . debugListener ) ; assertEvent ( "<STR_LIT>" , GroovyClassScope . debugListener ) ; assertEvent ( "<STR_LIT>" , GroovyClassScope . debugListener ) ; } finally { GroovyClassScope . debugListener = null ; } } public void testStandaloneGroovyFile2 ( ) { this . runConformTest ( new String [ ] { "<STR_LIT>" , "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" , } , "<STR_LIT:success>" ) ; checkGCUDeclaration ( "<STR_LIT>" , "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" ) ; } public void testParentIsObject_GRE528 ( ) { this . runConformTest ( new String [ ] { "<STR_LIT>" , "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" , } , "<STR_LIT:success>" ) ; checkGCUDeclaration ( "<STR_LIT>" , "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" ) ; } public void testInnerTypes_1 ( ) { this . runConformTest ( new String [ ] { "<STR_LIT>" , "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" , } , "<STR_LIT:success>" ) ; checkGCUDeclaration ( "<STR_LIT>" , "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" ) ; } public void testBrokenPackage ( ) { this . runNegativeTest ( new String [ ] { "<STR_LIT>" , "<STR_LIT>" + "<STR_LIT>" } , "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" ) ; } public void testParsingRecovery_GRE494 ( ) { this . runNegativeTest ( new String [ ] { "<STR_LIT>" , "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT:n>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" } , "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" ) ; checkGCUDeclaration ( "<STR_LIT>" , "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" ) ; } public void testParsingRecovery_GRE494_2 ( ) { this . runNegativeTest ( new String [ ] { "<STR_LIT>" , "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT:n>" + "<STR_LIT>" + "<STR_LIT:n>" + "<STR_LIT>" } , "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" ) ; checkGCUDeclaration ( "<STR_LIT>" , "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" ) ; } public void testParsingNewRecovery1_GRE468 ( ) { this . runNegativeTest ( new String [ ] { "<STR_LIT>" , "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT:}>" } , "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" ) ; checkGCUDeclaration ( "<STR_LIT>" , "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" ) ; } public void testParsingNewRecovery2_GRE468 ( ) { this . runNegativeTest ( new String [ ] { "<STR_LIT>" , "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT:}>" } , "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" ) ; checkGCUDeclaration ( "<STR_LIT>" , "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" ) ; } public void testRecoveryParameterCompletion ( ) { this . runNegativeTest ( new String [ ] { "<STR_LIT>" , "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" } , "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT:n>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" ) ; checkGCUDeclaration ( "<STR_LIT>" , "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" ) ; } public void testParsingNewRecovery3_GRE468 ( ) { this . runNegativeTest ( new String [ ] { "<STR_LIT>" , "<STR_LIT>" + "<STR_LIT>" } , "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" ) ; checkGCUDeclaration ( "<STR_LIT>" , "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" ) ; } public void testParsingNewRecovery4_GRE468 ( ) { this . runNegativeTest ( new String [ ] { "<STR_LIT>" , "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT:}>" } , "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" ) ; checkGCUDeclaration ( "<STR_LIT>" , "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" ) ; } public void testParsingNewRecovery5_GRE468 ( ) { this . runNegativeTest ( new String [ ] { "<STR_LIT>" , "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT:}>" } , "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" ) ; checkGCUDeclaration ( "<STR_LIT>" , "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" ) ; } public void testParsingNewRecovery6_GRE468 ( ) { this . runNegativeTest ( new String [ ] { "<STR_LIT>" , "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT:}>" } , "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" ) ; checkGCUDeclaration ( "<STR_LIT>" , "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" ) ; } public void testParsingNewRecovery7_GRE468 ( ) { this . runNegativeTest ( new String [ ] { "<STR_LIT>" , "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" } , "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" ) ; checkGCUDeclaration ( "<STR_LIT>" , null ) ; } public void testParsingNewRecovery8_GRE468 ( ) { this . runNegativeTest ( new String [ ] { "<STR_LIT>" , "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" } , "<STR_LIT>" ) ; checkGCUDeclaration ( "<STR_LIT>" , "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" ) ; } public void testUnrecoverableErrors_GRE755_2 ( ) { this . runNegativeTest ( new String [ ] { "<STR_LIT>" , "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" } , "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" ) ; ModuleNode mn = getModuleNode ( "<STR_LIT>" ) ; assertTrue ( mn . encounteredUnrecoverableError ( ) ) ; } public void testUnrecoverableErrors_GRE755_3 ( ) { this . runNegativeTest ( new String [ ] { "<STR_LIT>" , "<STR_LIT>" + "<STR_LIT:n>" + "<STR_LIT>" } , "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" ) ; ModuleNode mn = getModuleNode ( "<STR_LIT>" ) ; if ( GroovyUtils . GROOVY_LEVEL < <NUM_LIT> ) { assertTrue ( mn . encounteredUnrecoverableError ( ) ) ; } else { assertFalse ( mn . encounteredUnrecoverableError ( ) ) ; } } public void testAliasing_GRE473 ( ) { this . runConformTest ( new String [ ] { "<STR_LIT>" , "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" } , "<STR_LIT>" ) ; } public void testAliasing_GRE473_2 ( ) { this . runNegativeTest ( new String [ ] { "<STR_LIT>" , "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" } , "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" ) ; } public void testBrokenPackage2 ( ) { this . runNegativeTest ( new String [ ] { "<STR_LIT>" , "<STR_LIT>" + "<STR_LIT>" } , "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" ) ; } public void testBrokenPackage3 ( ) { this . runNegativeTest ( new String [ ] { "<STR_LIT>" , "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" } , "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" ) ; } public void testGenericsPositions_GRE267_1 ( ) { this . runConformTest ( new String [ ] { "<STR_LIT>" , "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" , "<STR_LIT>" , "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" , } , "<STR_LIT:y>" ) ; GroovyCompilationUnitDeclaration decl = getCUDeclFor ( "<STR_LIT>" ) ; FieldDeclaration fDecl = null ; fDecl = grabField ( decl , "<STR_LIT>" ) ; assertEquals ( "<STR_LIT>" , stringify ( fDecl . type ) ) ; fDecl = grabField ( decl , "<STR_LIT>" ) ; assertEquals ( "<STR_LIT>" , stringify ( fDecl . type ) ) ; fDecl = grabField ( decl , "<STR_LIT>" ) ; assertEquals ( "<STR_LIT>" , stringify ( fDecl . type ) ) ; } public void testGenericsPositions_GRE267_2 ( ) { this . runConformTest ( new String [ ] { "<STR_LIT>" , "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" , } , "<STR_LIT:y>" ) ; GroovyCompilationUnitDeclaration decl = getCUDeclFor ( "<STR_LIT>" ) ; FieldDeclaration fDecl = null ; fDecl = grabField ( decl , "<STR_LIT>" ) ; assertEquals ( "<STR_LIT>" , stringify ( fDecl . type ) ) ; fDecl = grabField ( decl , "<STR_LIT>" ) ; assertEquals ( "<STR_LIT>" , stringify ( fDecl . type ) ) ; fDecl = grabField ( decl , "<STR_LIT>" ) ; assertEquals ( "<STR_LIT>" , stringify ( fDecl . type ) ) ; } public void testEnumPositions_GRE1072 ( ) { this . runConformTest ( new String [ ] { "<STR_LIT>" , "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" , } , "<STR_LIT>" ) ; GroovyCompilationUnitDeclaration decl = getCUDeclFor ( "<STR_LIT>" ) ; FieldDeclaration fDecl = null ; fDecl = grabField ( decl , "<STR_LIT>" ) ; if ( GroovyUtils . GROOVY_LEVEL < <NUM_LIT> ) { assertEquals ( "<STR_LIT>" , stringifyFieldDecl ( fDecl ) ) ; } else { assertEquals ( "<STR_LIT>" , stringifyFieldDecl ( fDecl ) ) ; } fDecl = grabField ( decl , "<STR_LIT>" ) ; if ( GroovyUtils . GROOVY_LEVEL < <NUM_LIT> ) { assertEquals ( "<STR_LIT>" , stringifyFieldDecl ( fDecl ) ) ; } else { assertEquals ( "<STR_LIT>" , stringifyFieldDecl ( fDecl ) ) ; } fDecl = grabField ( decl , "<STR_LIT>" ) ; if ( GroovyUtils . GROOVY_LEVEL < <NUM_LIT> ) { assertEquals ( "<STR_LIT>" , stringifyFieldDecl ( fDecl ) ) ; } else { assertEquals ( "<STR_LIT>" , stringifyFieldDecl ( fDecl ) ) ; } } static class Requestor implements ICompilerRequestor { public void acceptResult ( CompilationResult result ) { int stop = <NUM_LIT:1> ; } } public void testEnumValues_GRE1071 ( ) { runConformTest ( new String [ ] { "<STR_LIT>" , "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT:}>" } , "<STR_LIT>" ) ; assertEquals ( "<STR_LIT>" , getReturnTypeOfMethod ( "<STR_LIT>" , "<STR_LIT>" ) ) ; } private String stringifyFieldDecl ( FieldDeclaration fDecl ) { StringBuffer sb = new StringBuffer ( ) ; sb . append ( fDecl . name ) ; sb . append ( "<STR_LIT>" + fDecl . sourceStart + "<STR_LIT:>>" + fDecl . sourceEnd ) ; sb . append ( "<STR_LIT>" + fDecl . declarationSourceStart + "<STR_LIT:>>" + fDecl . declarationSourceEnd ) ; sb . append ( "<STR_LIT>" + fDecl . modifiersSourceStart ) ; sb . append ( "<STR_LIT>" + fDecl . endPart1Position ) ; return sb . toString ( ) ; } public void testGenericsPositions_GRE267_3 ( ) { this . runConformTest ( new String [ ] { "<STR_LIT>" , "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" , "<STR_LIT>" , "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" , } , "<STR_LIT:y>" ) ; GroovyCompilationUnitDeclaration decl = getCUDeclFor ( "<STR_LIT>" ) ; FieldDeclaration fDecl = null ; fDecl = grabField ( decl , "<STR_LIT>" ) ; assertEquals ( "<STR_LIT>" , stringify ( fDecl . type ) ) ; fDecl = grabField ( decl , "<STR_LIT>" ) ; assertEquals ( "<STR_LIT>" , stringify ( fDecl . type ) ) ; fDecl = grabField ( decl , "<STR_LIT>" ) ; assertEquals ( "<STR_LIT>" , stringify ( fDecl . type ) ) ; fDecl = grabField ( decl , "<STR_LIT>" ) ; assertEquals ( "<STR_LIT>" , stringify ( fDecl . type ) ) ; } public void testAbstractCovariance_GRE272 ( ) { this . runNegativeTest ( new String [ ] { "<STR_LIT>" , "<STR_LIT>" , "<STR_LIT>" , "<STR_LIT>" , "<STR_LIT>" , "<STR_LIT>" , "<STR_LIT>" , "<STR_LIT>" , "<STR_LIT>" , "<STR_LIT>" } , "<STR_LIT>" ) ; } public void testAbstractCovariance_GRE272_2 ( ) { this . runNegativeTest ( new String [ ] { "<STR_LIT>" , "<STR_LIT>" + "<STR_LIT>" , "<STR_LIT>" , "<STR_LIT>" + "<STR_LIT>" , "<STR_LIT>" , "<STR_LIT>" + "<STR_LIT>" , "<STR_LIT>" , "<STR_LIT>" + "<STR_LIT>" , "<STR_LIT>" , "<STR_LIT>" + "<STR_LIT>" , } , "<STR_LIT>" ) ; } public void testAbstractCovariance_GRE272_3 ( ) { this . runNegativeTest ( new String [ ] { "<STR_LIT>" , "<STR_LIT>" + "<STR_LIT>" , "<STR_LIT>" , "<STR_LIT>" + "<STR_LIT>" , "<STR_LIT>" , "<STR_LIT>" + "<STR_LIT>" , "<STR_LIT>" , "<STR_LIT>" + "<STR_LIT>" , "<STR_LIT>" , "<STR_LIT>" + "<STR_LIT>" , } , "<STR_LIT>" ) ; } public void testAbstractCovariance_GRE272_4 ( ) { this . runNegativeTest ( new String [ ] { "<STR_LIT>" , "<STR_LIT>" + "<STR_LIT>" , "<STR_LIT>" , "<STR_LIT>" + "<STR_LIT>" , "<STR_LIT>" , "<STR_LIT>" + "<STR_LIT>" , "<STR_LIT>" , "<STR_LIT>" + "<STR_LIT>" , "<STR_LIT>" , "<STR_LIT>" + "<STR_LIT>" , } , "<STR_LIT>" ) ; } public void testIncorrectReturnType_GRE292 ( ) { this . runNegativeTest ( new String [ ] { "<STR_LIT>" , "<STR_LIT>" + "<STR_LIT:n>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT:n>" + "<STR_LIT>" } , "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" ) ; } public void testIncorrectReturnType_GRE292_3 ( ) { this . runNegativeTest ( new String [ ] { "<STR_LIT>" , "<STR_LIT>" + "<STR_LIT:n>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT:n>" + "<STR_LIT>" } , "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" ) ; } public void testIncorrectReturnType_GRE292_2 ( ) { this . runNegativeTest ( new String [ ] { "<STR_LIT>" , "<STR_LIT>" + "<STR_LIT:n>" + "<STR_LIT>" + "<STR_LIT:n>" + "<STR_LIT>" } , "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" ) ; } public void testIncorrectReturnType_GRE292_4 ( ) { this . runNegativeTest ( new String [ ] { "<STR_LIT>" , "<STR_LIT>" + "<STR_LIT:n>" + "<STR_LIT>" + "<STR_LIT:n>" + "<STR_LIT>" } , "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" ) ; } public void testMissingTypesForGeneratedBindingsGivesNPE_GRE273 ( ) { this . runNegativeTest ( new String [ ] { "<STR_LIT>" , "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT:n>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT:n>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT:n>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT:n>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" } , "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" ) ; } public void testMissingTypesForGeneratedBindingsGivesNPE_GRE273_2 ( ) { this . runNegativeTest ( new String [ ] { "<STR_LIT>" , "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT:}>" } , "<STR_LIT>" ) ; } public void testAbstractClass_GRE274 ( ) { this . runNegativeTest ( new String [ ] { "<STR_LIT>" , "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" , "<STR_LIT>" , "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" , } , "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" ) ; } public void testAbstractClass_GRE274_2 ( ) { this . runNegativeTest ( new String [ ] { "<STR_LIT>" , "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" , "<STR_LIT>" , "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" , } , "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" ) ; } public void testGenericsAndGroovyJava_GRE278_1 ( ) { this . runNegativeTest ( new String [ ] { "<STR_LIT>" , "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" , "<STR_LIT>" , "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" , "<STR_LIT>" , "<STR_LIT>" + "<STR_LIT:n>" + "<STR_LIT>" + "<STR_LIT:n>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT:n>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT:n>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT:n>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT:n>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT:n>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT:n>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT:n>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT:n>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT:n>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT:n>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT:n>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT:n>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT:n>" , "<STR_LIT>" , "<STR_LIT>" + "<STR_LIT:n>" + "<STR_LIT>" + "<STR_LIT:n>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" , "<STR_LIT>" , "<STR_LIT>" + "<STR_LIT:n>" + "<STR_LIT>" + "<STR_LIT:n>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT:n>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT:n>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT:n>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT:n>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT:n>" + "<STR_LIT>" , "<STR_LIT>" , "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT:n>" + "<STR_LIT:n>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT:n>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT:n>" + "<STR_LIT>" + "<STR_LIT:n>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT:n>" + "<STR_LIT>" + "<STR_LIT:n>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT:n>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT:n>" + "<STR_LIT>" , } , "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" ) ; } public void testGenericsAndGroovyJava_GRE278_2 ( ) { this . runConformTest ( new String [ ] { "<STR_LIT>" , "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" , "<STR_LIT>" , "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" , "<STR_LIT>" , "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" , "<STR_LIT>" , "<STR_LIT>" + "<STR_LIT:n>" + "<STR_LIT>" + "<STR_LIT:n>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT:n>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT:n>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT:n>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT:n>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT:n>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT:n>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT:n>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT:n>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT:n>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT:n>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT:n>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT:n>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT:n>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT:n>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT:n>" + "<STR_LIT>" + "<STR_LIT:n>" , "<STR_LIT>" , "<STR_LIT>" + "<STR_LIT:n>" + "<STR_LIT>" + "<STR_LIT:n>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" , "<STR_LIT>" , "<STR_LIT>" + "<STR_LIT:n>" + "<STR_LIT>" + "<STR_LIT:n>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT:n>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT:n>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT:n>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT:n>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT:n>" + "<STR_LIT>" , "<STR_LIT>" , "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT:n>" + "<STR_LIT:n>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT:n>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT:n>" + "<STR_LIT>" + "<STR_LIT:n>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT:n>" + "<STR_LIT>" + "<STR_LIT:n>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT:n>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT:n>" + "<STR_LIT>" , } , "<STR_LIT>" ) ; } public void testGenericsAndGroovyJava_GRE278_3 ( ) { this . runConformTest ( new String [ ] { "<STR_LIT>" , "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" , "<STR_LIT>" , "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" , "<STR_LIT>" , "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" , "<STR_LIT>" , "<STR_LIT>" + "<STR_LIT:n>" + "<STR_LIT>" + "<STR_LIT:n>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT:n>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT:n>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT:n>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT:n>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT:n>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT:n>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT:n>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT:n>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT:n>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT:n>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT:n>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT:n>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT:n>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT:n>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT:n>" + "<STR_LIT>" + "<STR_LIT:n>" , "<STR_LIT>" , "<STR_LIT>" + "<STR_LIT:n>" + "<STR_LIT>" + "<STR_LIT:n>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" , "<STR_LIT>" , "<STR_LIT>" + "<STR_LIT:n>" + "<STR_LIT>" + "<STR_LIT:n>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT:n>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT:n>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT:n>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT:n>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT:n>" + "<STR_LIT>" , "<STR_LIT>" , "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT:n>" + "<STR_LIT:n>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT:n>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT:n>" + "<STR_LIT>" + "<STR_LIT:n>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT:n>" + "<STR_LIT>" + "<STR_LIT:n>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT:n>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT:n>" + "<STR_LIT>" , } , "<STR_LIT>" ) ; } public void testGenericsAndGroovyJava_GRE278_4 ( ) { this . runConformTest ( new String [ ] { "<STR_LIT>" , "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" , "<STR_LIT>" , "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" , "<STR_LIT>" , "<STR_LIT>" + "<STR_LIT>" , "<STR_LIT>" , "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" , } , "<STR_LIT:test>" ) ; } public void testConstructorsForEnumWrong_GRE285 ( ) { this . runNegativeTest ( new String [ ] { "<STR_LIT>" , "<STR_LIT>" + "<STR_LIT:n>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT:n>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT:n>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT:n>" + "<STR_LIT>" + "<STR_LIT:n>" + "<STR_LIT>" + "<STR_LIT:}>" } , "<STR_LIT>" ) ; } public void testCrashingOnBadCode_GRE290_2 ( ) { this . runNegativeTest ( new String [ ] { "<STR_LIT>" , "<STR_LIT>" + "<STR_LIT:n>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" } , "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" ) ; } public void testCrashingOnBadCode_GRE290_3 ( ) { this . runNegativeTest ( new String [ ] { "<STR_LIT>" , "<STR_LIT>" + "<STR_LIT:n>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" } , "<STR_LIT>" ) ; } public void testCrashingOnBadCode_GRE290_4 ( ) { this . runNegativeTest ( new String [ ] { "<STR_LIT>" , "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" } , "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" ) ; } public void testNPE_GRE291 ( ) { this . runNegativeTest ( new String [ ] { "<STR_LIT>" , "<STR_LIT>" + "<STR_LIT:n>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" } , "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" ) ; } public void testMissingContext_GRE308 ( ) { this . runNegativeTest ( new String [ ] { "<STR_LIT>" , "<STR_LIT>" + "<STR_LIT:n>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" } , "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" ) ; } public void testMissingContext_GRE308_2 ( ) { this . runNegativeTest ( new String [ ] { "<STR_LIT>" , "<STR_LIT>" + "<STR_LIT:n>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" } , "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT:n>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" ) ; } public void testInvalidScripts_GRE323_1 ( ) { this . runNegativeTest ( new String [ ] { "<STR_LIT>" , "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT:n>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" } , "<STR_LIT>" ) ; } public void testInvalidScripts_GRE323_1b ( ) { this . runConformTest ( new String [ ] { "<STR_LIT>" , "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT:n>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" } , "<STR_LIT>" ) ; } public void testInvalidScripts_GRE323_2 ( ) { if ( GroovyUtils . GROOVY_LEVEL < <NUM_LIT> ) { this . runNegativeTest ( new String [ ] { "<STR_LIT>" , "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT:n>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" } , "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" ) ; } else { this . runConformTest ( new String [ ] { "<STR_LIT>" , "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT:n>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" } , "<STR_LIT>" ) ; } } public void testInvalidScripts_GRE323_3 ( ) { this . runNegativeTest ( new String [ ] { "<STR_LIT>" , "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT:n>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" } , "<STR_LIT>" ) ; } public void testInvalidScripts_GRE323_3b ( ) { this . runConformTest ( new String [ ] { "<STR_LIT>" , "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT:n>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" } , "<STR_LIT>" ) ; } public void testInvalidScripts_GRE323_4 ( ) { this . runNegativeTest ( new String [ ] { "<STR_LIT>" , "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT:n>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" } , "<STR_LIT>" ) ; } public void testInvalidScripts_GRE323_4b ( ) { this . runConformTest ( new String [ ] { "<STR_LIT>" , "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT:}>" , "<STR_LIT>" , "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT:n>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" } , "<STR_LIT>" ) ; } public void testInvalidScripts_GRE323_5 ( ) { this . runNegativeTest ( new String [ ] { "<STR_LIT>" , "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT:n>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" } , "<STR_LIT>" ) ; } public void testInvalidScripts_GRE323_5b ( ) { this . runConformTest ( new String [ ] { "<STR_LIT>" , "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT:n>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" } , "<STR_LIT>" ) ; } public void testInvalidScripts_GRE323_6 ( ) { if ( GroovyUtils . GROOVY_LEVEL < <NUM_LIT> ) { this . runNegativeTest ( new String [ ] { "<STR_LIT>" , "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT:n>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" } , "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" ) ; } else { this . runConformTest ( new String [ ] { "<STR_LIT>" , "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT:n>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" } , "<STR_LIT>" ) ; } } public void testBridgeMethods_GRE336 ( ) { this . runNegativeTest ( new String [ ] { "<STR_LIT>" , "<STR_LIT>" + "<STR_LIT:n>" + "<STR_LIT>" + "<STR_LIT:n>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT:n>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT:n>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" } , "<STR_LIT>" ) ; } public void testInnerTypeReferencing_GRE339 ( ) { this . runConformTest ( new String [ ] { "<STR_LIT>" , "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT:}>" , "<STR_LIT>" , "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" } , "<STR_LIT:value>" ) ; } public void testInnerTypeReferencing_GRE339_2 ( ) { this . runConformTest ( new String [ ] { "<STR_LIT>" , "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT:}>" , "<STR_LIT>" , "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" } , "<STR_LIT:value>" ) ; } public void testInnerTypeReferencing_GRE339_3 ( ) { this . runConformTest ( new String [ ] { "<STR_LIT>" , "<STR_LIT>" , "<STR_LIT>" , "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" } , "<STR_LIT:value>" ) ; } public void testStaticProperties_GRE364 ( ) { this . runConformTest ( new String [ ] { "<STR_LIT>" , "<STR_LIT>" , "<STR_LIT>" , "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" } , "<STR_LIT>" ) ; } public void testStaticProperties_GRE364_2 ( ) { this . runConformTest ( new String [ ] { "<STR_LIT>" , "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" , "<STR_LIT>" , "<STR_LIT>" } , "<STR_LIT>" ) ; } public void testTransientMethod_GRE370 ( ) { this . runConformTest ( new String [ ] { "<STR_LIT>" , "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" } , "<STR_LIT>" ) ; } public void testNotSeriousEnough_GRE396 ( ) { this . runNegativeTest ( new String [ ] { "<STR_LIT>" , "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" , "<STR_LIT>" , "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" , } , "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" ) ; } public void testNotSeriousEnough_GRE396_2 ( ) { this . runNegativeTest ( new String [ ] { "<STR_LIT>" , "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" , "<STR_LIT>" , "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" , } , "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" ) ; } public void testStarImports_GRE421 ( ) { this . runConformTest ( new String [ ] { "<STR_LIT>" , "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" , "<STR_LIT>" , "<STR_LIT>" + "<STR_LIT>" } , "<STR_LIT>" ) ; } public void testImplementingAnInterfaceViaProperty ( ) { this . runConformTest ( new String [ ] { "<STR_LIT>" , "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" , "<STR_LIT>" , "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" , } , "<STR_LIT:success>" ) ; } public void testReferencingOtherTypesInSamePackage ( ) { this . runConformTest ( new String [ ] { "<STR_LIT>" , "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" , "<STR_LIT>" , "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" , } , "<STR_LIT:success>" ) ; } public void testMemberTypeResolution ( ) { this . runConformTest ( new String [ ] { "<STR_LIT>" , "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" , "<STR_LIT>" , "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" , } , "<STR_LIT:success>" ) ; } public void testFailureWhilstAttemptingToReportError ( ) { this . runNegativeTest ( new String [ ] { "<STR_LIT>" , "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" } , "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" ) ; } public void testExtendingInterface1 ( ) { this . runNegativeTest ( new String [ ] { "<STR_LIT>" , "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" , "<STR_LIT>" , "<STR_LIT>" + "<STR_LIT>" , } , "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" ) ; } public void testProtectedType ( ) { this . runConformTest ( new String [ ] { "<STR_LIT>" , "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" , "<STR_LIT>" , "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" , } , "<STR_LIT:success>" ) ; } public void testEnums ( ) { this . runConformTest ( new String [ ] { "<STR_LIT>" , "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" , } , "<STR_LIT>" ) ; } public void testNonTerminalMissingImport ( ) { this . runNegativeTest ( new String [ ] { "<STR_LIT>" , "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" , } , "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" ) ; } public void testTypeLevelAnnotations01 ( ) { this . runConformTest ( new String [ ] { "<STR_LIT>" , "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" , "<STR_LIT>" , "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" , } , "<STR_LIT:success>" ) ; String expectedOutput = "<STR_LIT>" ; checkGCUDeclaration ( "<STR_LIT>" , expectedOutput ) ; expectedOutput = "<STR_LIT>" + "<STR_LIT>" ; checkDisassemblyFor ( "<STR_LIT>" , expectedOutput ) ; } public void testMethodLevelAnnotations ( ) { this . runConformTest ( new String [ ] { "<STR_LIT>" , "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" , "<STR_LIT>" , "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" , } , "<STR_LIT:success>" ) ; String expectedOutput = "<STR_LIT>" ; checkGCUDeclaration ( "<STR_LIT>" , expectedOutput ) ; expectedOutput = "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" ; checkDisassemblyFor ( "<STR_LIT>" , expectedOutput ) ; } public void testFieldLevelAnnotations01 ( ) throws Exception { runConformTest ( new String [ ] { "<STR_LIT>" , "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" , "<STR_LIT>" , "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" , } , "<STR_LIT:success>" ) ; String expectedOutput = "<STR_LIT>" ; checkGCUDeclaration ( "<STR_LIT>" , expectedOutput ) ; expectedOutput = "<STR_LIT>" + "<STR_LIT>" ; checkDisassemblyFor ( "<STR_LIT>" , expectedOutput ) ; } public void testFieldLevelAnnotations_classretention ( ) throws Exception { runConformTest ( new String [ ] { "<STR_LIT>" , "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" , "<STR_LIT>" , "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" , } , "<STR_LIT:success>" ) ; String expectedOutput = "<STR_LIT>" + "<STR_LIT>" ; checkDisassemblyFor ( "<STR_LIT>" , expectedOutput ) ; } public void testFieldLevelAnnotations_sourceretention ( ) throws Exception { runConformTest ( new String [ ] { "<STR_LIT>" , "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" , "<STR_LIT>" , "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" , } , "<STR_LIT:success>" ) ; String expectedOutput = "<STR_LIT>" + "<STR_LIT>" ; checkDisassemblyFor ( "<STR_LIT>" , expectedOutput ) ; } public void testFieldLevelAnnotations_defaultretention ( ) throws Exception { runConformTest ( new String [ ] { "<STR_LIT>" , "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" , "<STR_LIT>" , "<STR_LIT>" + "<STR_LIT>" , } , "<STR_LIT:success>" ) ; String expectedOutput = "<STR_LIT>" + "<STR_LIT>" ; checkDisassemblyFor ( "<STR_LIT>" , expectedOutput ) ; } public void testFieldLevelAnnotations_delegate ( ) throws Exception { runConformTest ( new String [ ] { "<STR_LIT>" , "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" , "<STR_LIT>" , "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" , "<STR_LIT>" , "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" , } , "<STR_LIT>" ) ; checkGCUDeclaration ( "<STR_LIT>" , "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" ) ; } public void testHalfFinishedGenericsProgram ( ) { this . runNegativeTest ( new String [ ] { "<STR_LIT>" , "<STR_LIT>" + "<STR_LIT:n>" + "<STR_LIT>" + "<STR_LIT:n>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT:n>" + "<STR_LIT>" + "<STR_LIT:n>" + "<STR_LIT>" } , "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" ) ; } public void testHalfFinishedGenericsProgramWithCorrectSuppression ( ) { this . runNegativeTest ( new String [ ] { "<STR_LIT>" , "<STR_LIT>" + "<STR_LIT:n>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" } , "<STR_LIT>" ) ; } public void testHalfFinishedGenericsProgramWithCorrectSuppressionAtTheTypeLevel ( ) { this . runNegativeTest ( new String [ ] { "<STR_LIT>" , "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT:n>" + "<STR_LIT>" + "<STR_LIT>" } , "<STR_LIT>" ) ; } public void testHalfFinishedGenericsProgramWithUnnecessarySuppression ( ) { this . runNegativeTest ( new String [ ] { "<STR_LIT>" , "<STR_LIT>" + "<STR_LIT:n>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" } , "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" ) ; } public void testHalfFinishedGenericsProgramWithSuppressionValueSpeltWrong ( ) { this . runNegativeTest ( new String [ ] { "<STR_LIT>" , "<STR_LIT>" + "<STR_LIT:n>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" } , "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" ) ; } public void testHalfFinishedGenericsProgramWithMultipleSuppressionValues ( ) { this . runNegativeTest ( new String [ ] { "<STR_LIT>" , "<STR_LIT>" + "<STR_LIT:n>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" } , "<STR_LIT>" ) ; } public void testHalfFinishedGenericsProgramWithMultipleSuppressionValuesWithOneSpeltWrong ( ) { this . runNegativeTest ( new String [ ] { "<STR_LIT>" , "<STR_LIT>" + "<STR_LIT:n>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" } , "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" ) ; } public void testTypeClash ( ) { this . runNegativeTest ( new String [ ] { "<STR_LIT>" , "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" , "<STR_LIT>" , "<STR_LIT>" + "<STR_LIT>" } , "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" ) ; } public void testCallStaticMethodFromGtoJ ( ) { this . runConformTest ( new String [ ] { "<STR_LIT>" , "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" , "<STR_LIT>" , "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" } , "<STR_LIT:success>" ) ; } public void testCallStaticMethodFromJtoG ( ) { this . runConformTest ( new String [ ] { "<STR_LIT>" , "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" , "<STR_LIT>" , "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" } , "<STR_LIT:success>" ) ; } public void testNotMakingInterfacesImplementGroovyObject ( ) { this . runConformTest ( new String [ ] { "<STR_LIT>" , "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" , "<STR_LIT>" , "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" , } , "<STR_LIT:success>" ) ; } public void testConstructorLevelAnnotations01 ( ) { this . runConformTest ( new String [ ] { "<STR_LIT>" , "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" , "<STR_LIT>" , "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" , } , "<STR_LIT:success>" ) ; String expectedOutput = "<STR_LIT>" ; checkGCUDeclaration ( "<STR_LIT>" , expectedOutput ) ; expectedOutput = ( GroovyUtils . GROOVY_LEVEL < <NUM_LIT> ? "<STR_LIT>" : "<STR_LIT>" ) + "<STR_LIT>" + "<STR_LIT>" ; checkDisassemblyFor ( "<STR_LIT>" , expectedOutput ) ; } public void testAnnotations04_defaultParamMethods ( ) { this . runConformTest ( new String [ ] { "<STR_LIT>" , "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" , "<STR_LIT>" , "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" , } , "<STR_LIT:success>" ) ; String expectedOutput = "<STR_LIT>" ; checkGCUDeclaration ( "<STR_LIT>" , expectedOutput ) ; expectedOutput = "<STR_LIT>" ; checkGCUDeclaration ( "<STR_LIT>" , expectedOutput ) ; } public void testTypeLevelAnnotations_SingleMember ( ) { this . runConformTest ( new String [ ] { "<STR_LIT>" , "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" , "<STR_LIT>" , "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" , "<STR_LIT>" , "<STR_LIT>" + "<STR_LIT>" , } , "<STR_LIT:success>" ) ; String expectedOutput = "<STR_LIT>" ; checkGCUDeclaration ( "<STR_LIT>" , expectedOutput ) ; } public void testAnnotationsTargetType ( ) { this . runConformTest ( new String [ ] { "<STR_LIT>" , "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" , "<STR_LIT>" , "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" , "<STR_LIT>" , "<STR_LIT>" + "<STR_LIT>" , } , "<STR_LIT:success>" ) ; } public void testAnnotationsTargetType02 ( ) { this . runNegativeTest ( new String [ ] { "<STR_LIT>" , "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" , "<STR_LIT>" , "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" , "<STR_LIT>" , "<STR_LIT>" + "<STR_LIT>" , } , "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" ) ; } public void testAnnotationsTargetType03 ( ) { this . runNegativeTest ( new String [ ] { "<STR_LIT>" , "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" , "<STR_LIT>" , "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" , "<STR_LIT>" , "<STR_LIT>" + "<STR_LIT>" , } , "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" ) ; } public void testAnnotationsTargetType04 ( ) { this . runNegativeTest ( new String [ ] { "<STR_LIT>" , "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" , "<STR_LIT>" , "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" , "<STR_LIT>" , "<STR_LIT>" + "<STR_LIT>" , } , "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" ) ; } public void testAnnotationsTargetType05 ( ) { this . runConformTest ( new String [ ] { "<STR_LIT>" , "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" , "<STR_LIT>" , "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" , "<STR_LIT>" , "<STR_LIT>" + "<STR_LIT>" , } , "<STR_LIT:success>" ) ; } public void testAnnotationsTargetType06 ( ) { this . runNegativeTest ( new String [ ] { "<STR_LIT>" , "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" , "<STR_LIT>" , "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" , "<STR_LIT>" , "<STR_LIT>" + "<STR_LIT>" , } , "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" ) ; } public void testAnnotationsTargetType07 ( ) { this . runNegativeTest ( new String [ ] { "<STR_LIT>" , "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" , "<STR_LIT>" , "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" , "<STR_LIT>" , "<STR_LIT>" + "<STR_LIT>" , } , "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" ) ; } public void testAnnotationsTargetType08 ( ) { this . runNegativeTest ( new String [ ] { "<STR_LIT>" , "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" , "<STR_LIT>" , "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" , "<STR_LIT>" , "<STR_LIT>" + "<STR_LIT>" , } , "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" ) ; } public void testAnnotationsTargetType09 ( ) { this . runConformTest ( new String [ ] { "<STR_LIT>" , "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" , "<STR_LIT>" , "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" , "<STR_LIT>" , "<STR_LIT>" + "<STR_LIT>" , } , "<STR_LIT:success>" ) ; } public void testAnnotationsTargetType10 ( ) { this . runNegativeTest ( new String [ ] { "<STR_LIT>" , "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" , "<STR_LIT>" , "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" , "<STR_LIT>" , "<STR_LIT>" + "<STR_LIT>" , } , "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" ) ; } public void testAnnotationsTargetType11 ( ) { this . runNegativeTest ( new String [ ] { "<STR_LIT>" , "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" , "<STR_LIT>" , "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" , "<STR_LIT>" , "<STR_LIT>" + "<STR_LIT>" , } , "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" ) ; } public void testAnnotationsTargetType12 ( ) { this . runNegativeTest ( new String [ ] { "<STR_LIT>" , "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" , "<STR_LIT>" , "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" , "<STR_LIT>" , "<STR_LIT>" + "<STR_LIT>" , } , "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" ) ; } public void testWildcards01 ( ) { this . runNegativeTest ( new String [ ] { "<STR_LIT>" , "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" , "<STR_LIT>" , "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" , } , "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" ) ; } public void testWildcards02 ( ) { this . runNegativeTest ( new String [ ] { "<STR_LIT>" , "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" , "<STR_LIT>" , "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" , } , "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" ) ; } public void testWildcards03 ( ) { this . runNegativeTest ( new String [ ] { "<STR_LIT>" , "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" , "<STR_LIT>" , "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" , } , "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" ) ; } public void testWildcards04 ( ) { this . runNegativeTest ( new String [ ] { "<STR_LIT>" , "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" , "<STR_LIT>" , "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" , } , "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" ) ; } public void testWildcards05 ( ) { this . runConformTest ( new String [ ] { "<STR_LIT>" , "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" , "<STR_LIT>" , "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" , } , "<STR_LIT:success>" ) ; } public void testWildcards06 ( ) { this . runConformTest ( new String [ ] { "<STR_LIT>" , "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" , "<STR_LIT>" , "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" , } , "<STR_LIT:success>" ) ; } public void testWildcards07 ( ) { this . runNegativeTest ( new String [ ] { "<STR_LIT>" , "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" , "<STR_LIT>" , "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" , } , "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" ) ; } public void testWildcards08 ( ) { this . runNegativeTest ( new String [ ] { "<STR_LIT>" , "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" , "<STR_LIT>" , "<STR_LIT>" + "<STR_LIT>" , "<STR_LIT>" , "<STR_LIT>" + "<STR_LIT>" , } , "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" ) ; } public void testWildcards09 ( ) { this . runNegativeTest ( new String [ ] { "<STR_LIT>" , "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" , "<STR_LIT>" , "<STR_LIT>" + "<STR_LIT>" , "<STR_LIT>" , "<STR_LIT>" + "<STR_LIT>" , } , "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" ) ; } public void testWildcards11 ( ) { this . runNegativeTest ( new String [ ] { "<STR_LIT>" , "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" , "<STR_LIT>" , "<STR_LIT>" + "<STR_LIT>" , "<STR_LIT>" , "<STR_LIT>" + "<STR_LIT>" , "<STR_LIT>" , "<STR_LIT>" + "<STR_LIT>" , } , "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" ) ; } public void testTypeLevelAnnotations_SingleMember02 ( ) { this . runConformTest ( new String [ ] { "<STR_LIT>" , "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" , "<STR_LIT>" , "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" , "<STR_LIT>" , "<STR_LIT>" + "<STR_LIT>" , } , "<STR_LIT:success>" ) ; String expectedOutput = "<STR_LIT>" ; checkGCUDeclaration ( "<STR_LIT>" , expectedOutput ) ; } public void testMethodLevelAnnotations_SingleMember ( ) { this . runConformTest ( new String [ ] { "<STR_LIT>" , "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" , "<STR_LIT>" , "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" , "<STR_LIT>" , "<STR_LIT>" + "<STR_LIT>" , } , "<STR_LIT:success>" ) ; String expectedOutput = "<STR_LIT>" ; checkGCUDeclaration ( "<STR_LIT>" , expectedOutput ) ; } public void testMethodLevelAnnotations_SingleMember02 ( ) { this . runConformTest ( new String [ ] { "<STR_LIT>" , "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" , "<STR_LIT>" , "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" , "<STR_LIT>" , "<STR_LIT>" + "<STR_LIT>" , } , "<STR_LIT:success>" ) ; String expectedOutput = "<STR_LIT>" ; checkGCUDeclaration ( "<STR_LIT>" , expectedOutput ) ; } public void testFieldLevelAnnotations_SingleMember ( ) { this . runConformTest ( new String [ ] { "<STR_LIT>" , "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" , "<STR_LIT>" , "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" , "<STR_LIT>" , "<STR_LIT>" + "<STR_LIT>" , } , "<STR_LIT:success>" ) ; String expectedOutput = "<STR_LIT>" ; checkGCUDeclaration ( "<STR_LIT>" , expectedOutput ) ; } public void testAnnotations10_singleMemberAnnotationField ( ) { this . runConformTest ( new String [ ] { "<STR_LIT>" , "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" , "<STR_LIT>" , "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" , "<STR_LIT>" , "<STR_LIT>" + "<STR_LIT>" , } , "<STR_LIT:success>" ) ; String expectedOutput = "<STR_LIT>" ; checkGCUDeclaration ( "<STR_LIT>" , expectedOutput ) ; } public void testAnnotations11_singleMemberAnnotationFailure ( ) { this . runNegativeTest ( new String [ ] { "<STR_LIT>" , "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" , "<STR_LIT>" , "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" , } , "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + ( GroovyUtils . isGroovy16 ( ) ? "<STR_LIT>" : "<STR_LIT>" ) + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + ( isGE20 ( ) ? "<STR_LIT>" : "<STR_LIT>" ) + "<STR_LIT:n>" + ( GroovyUtils . GROOVY_LEVEL < <NUM_LIT> ? "<STR_LIT>" : "<STR_LIT>" ) + "<STR_LIT>" ) ; } public void testExtendingInterface2 ( ) { this . runNegativeTest ( new String [ ] { "<STR_LIT>" , "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" , } , "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" ) ; } public void testExtendingGroovyWithJava1 ( ) { this . runConformTest ( new String [ ] { "<STR_LIT>" , "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" , "<STR_LIT>" , "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" , } , "<STR_LIT:success>" ) ; } public void testExtendingJavaWithGroovy1 ( ) { this . runConformTest ( new String [ ] { "<STR_LIT>" , "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" , "<STR_LIT>" , "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" , } , "<STR_LIT:success>" ) ; } public void testCallingGenericConstructors ( ) { this . runConformTest ( new String [ ] { "<STR_LIT>" , "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" , "<STR_LIT>" , "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" , } , "<STR_LIT:success>" ) ; } public void testExtendingJavaWithGroovyAndThenJava ( ) { this . runConformTest ( new String [ ] { "<STR_LIT>" , "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" , "<STR_LIT>" , "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" , "<STR_LIT>" , "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" , } , "<STR_LIT:success>" ) ; } public void testPublicClassInWrongFile ( ) { this . runConformTest ( new String [ ] { "<STR_LIT>" , "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" , } , "<STR_LIT:success>" ) ; } public void testBuildingTwoGroovyFiles ( ) { this . runConformTest ( new String [ ] { "<STR_LIT>" , "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" , "<STR_LIT>" , "<STR_LIT>" + "<STR_LIT>" } , "<STR_LIT:success>" ) ; } public void testExtendingGroovyInterfaceWithJava ( ) { this . runConformTest ( new String [ ] { "<STR_LIT>" , "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" , "<STR_LIT>" , "<STR_LIT>" + "<STR_LIT>" } , "<STR_LIT:success>" ) ; } public void testExtendingJavaInterfaceWithGroovy ( ) { this . runConformTest ( new String [ ] { "<STR_LIT>" , "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" , "<STR_LIT>" , "<STR_LIT>" + "<STR_LIT>" } , "<STR_LIT:success>" ) ; } public void testExtendingJavaWithGroovyAndThenJavaAndThenGroovy ( ) { this . runConformTest ( new String [ ] { "<STR_LIT>" , "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" , "<STR_LIT>" , "<STR_LIT>" + "<STR_LIT>" , "<STR_LIT>" , "<STR_LIT>" + "<STR_LIT>" , "<STR_LIT>" , "<STR_LIT>" + "<STR_LIT>" } , "<STR_LIT:success>" ) ; } public void testGroovyGenerics ( ) { this . runConformTest ( new String [ ] { "<STR_LIT>" , "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" , "<STR_LIT>" , "<STR_LIT>" + "<STR_LIT>" , } , "<STR_LIT:success>" ) ; } public void testExtendingGenerics_GroovyExtendsJava ( ) { this . runConformTest ( new String [ ] { "<STR_LIT>" , "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" , "<STR_LIT>" , "<STR_LIT>" + "<STR_LIT>" , } , "<STR_LIT:success>" ) ; } public void testExtendingGenerics_GroovyExtendsJava2 ( ) { this . runConformTest ( new String [ ] { "<STR_LIT>" , "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" , "<STR_LIT>" , "<STR_LIT>" , "<STR_LIT>" , "<STR_LIT>" , "<STR_LIT>" , "<STR_LIT>" + "<STR_LIT>" , } , "<STR_LIT:success>" ) ; } public void testExtendingGenerics_GroovyExtendsJava4 ( ) { this . runConformTest ( new String [ ] { "<STR_LIT>" , "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" , } , "<STR_LIT>" ) ; } public void testExtendingGenerics_GroovyExtendsJava5 ( ) { this . runConformTest ( new String [ ] { "<STR_LIT>" , "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" , } , "<STR_LIT:success>" ) ; } public void testExtendingGenerics_GroovyExtendsJava5a ( ) { this . runConformTest ( new String [ ] { "<STR_LIT>" , "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" , } , "<STR_LIT:success>" ) ; } public void testExtendingGenerics_GroovyExtendsJava6 ( ) { this . runConformTest ( new String [ ] { "<STR_LIT>" , "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" , "<STR_LIT>" , "<STR_LIT>" + "<STR_LIT>" , } , "<STR_LIT:success>" ) ; } public void testExtendingGenerics_GroovyExtendsJava7 ( ) { this . runConformTest ( new String [ ] { "<STR_LIT>" , "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" , "<STR_LIT>" , "<STR_LIT>" + "<STR_LIT>" , } , "<STR_LIT:success>" ) ; } public void testExtendingGenerics_GroovyExtendsJava8 ( ) { this . runConformTest ( new String [ ] { "<STR_LIT>" , "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" , "<STR_LIT>" , "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" , } , "<STR_LIT:success>" ) ; } public void testExtendingGenerics_GroovyExtendsJava9 ( ) { this . runConformTest ( new String [ ] { "<STR_LIT>" , "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" , "<STR_LIT>" , "<STR_LIT>" + "<STR_LIT>" , "<STR_LIT>" , "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" , } , "<STR_LIT:success>" ) ; } public void testExtendingGenerics_GroovyExtendsJava10 ( ) { this . runConformTest ( new String [ ] { "<STR_LIT>" , "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" , "<STR_LIT>" , "<STR_LIT>" + "<STR_LIT>" , "<STR_LIT>" , "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" , } , "<STR_LIT:success>" ) ; } public void testExtendingGenerics_JavaExtendsGroovy ( ) { this . runConformTest ( new String [ ] { "<STR_LIT>" , "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" , "<STR_LIT>" , "<STR_LIT>" + "<STR_LIT>" , } , "<STR_LIT:success>" ) ; } public void testExtendingGenerics_GroovyExtendsJava3 ( ) { this . runConformTest ( new String [ ] { "<STR_LIT>" , "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" , "<STR_LIT>" , "<STR_LIT>" , "<STR_LIT>" , "<STR_LIT>" , "<STR_LIT>" , "<STR_LIT>" + "<STR_LIT>" , } , "<STR_LIT:success>" ) ; } public void testExtendingGenerics_GroovyExtendsJava3a ( ) { this . runConformTest ( new String [ ] { "<STR_LIT>" , "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" , "<STR_LIT>" , "<STR_LIT>" , "<STR_LIT>" , "<STR_LIT>" , "<STR_LIT>" , "<STR_LIT>" + "<STR_LIT>" , } , "<STR_LIT:success>" ) ; } public void testImplementingInterface1 ( ) { this . runNegativeTest ( new String [ ] { "<STR_LIT>" , "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" , "<STR_LIT>" , "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" , } , "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" ) ; } public void testImplementingInterface2 ( ) { this . runConformTest ( new String [ ] { "<STR_LIT>" , "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" , "<STR_LIT>" , "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" , } , "<STR_LIT:success>" ) ; } public void testImplementingInterface3 ( ) { this . runNegativeTest ( new String [ ] { "<STR_LIT>" , "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" , "<STR_LIT>" , "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" , } , "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" ) ; } public void testImplementingInterface4 ( ) { this . runConformTest ( new String [ ] { "<STR_LIT>" , "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" , "<STR_LIT>" , "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" , } , "<STR_LIT:success>" ) ; } public void testImplementingInterface_JavaExtendingGroovyAndImplementingMethod ( ) { this . runNegativeTest ( new String [ ] { "<STR_LIT>" , "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" , "<STR_LIT>" , "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" , } , "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" ) ; } public void testFieldPositioning01 ( ) { this . runNegativeTest ( new String [ ] { "<STR_LIT>" , "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" , } , "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" ) ; } public void testImplementingInterface_JavaExtendingGroovyAndImplementingMethod_ArrayReferenceReturnType ( ) { this . runNegativeTest ( new String [ ] { "<STR_LIT>" , "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" , "<STR_LIT>" , "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" , } , "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" ) ; } public void testImplementingInterface_JavaExtendingGroovyAndImplementingMethod_QualifiedArrayReferenceReturnType ( ) { this . runNegativeTest ( new String [ ] { "<STR_LIT>" , "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" , "<STR_LIT>" , "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" , } , "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" ) ; } public void testImplementingInterface_JavaExtendingGroovyAndImplementingMethod_ParamPosition ( ) { this . runNegativeTest ( new String [ ] { "<STR_LIT>" , "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" , "<STR_LIT>" , "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" , } , "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" ) ; } public void testImplementingInterface_JavaExtendingGroovyAndImplementingMethod_QualifiedParamPosition ( ) { this . runNegativeTest ( new String [ ] { "<STR_LIT>" , "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" , "<STR_LIT>" , "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" , } , "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" ) ; } public void testImplementingInterface_JavaExtendingGroovyGenericType ( ) { this . runConformTest ( new String [ ] { "<STR_LIT>" , "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" , "<STR_LIT>" , "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" , } , "<STR_LIT:success>" ) ; } public void testImplementingInterface_JavaGenericsIncorrectlyExtendingGroovyGenerics ( ) { this . runNegativeTest ( new String [ ] { "<STR_LIT>" , "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" , "<STR_LIT>" , "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" , } , "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" ) ; } public void testImplementingInterface_GroovyGenericsIncorrectlyExtendingJavaGenerics ( ) { this . runNegativeTest ( new String [ ] { "<STR_LIT>" , "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" , "<STR_LIT>" , "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" , } , "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" ) ; } public void testImplementingInterface_MethodWithParameters_GextendsJ ( ) { this . runConformTest ( new String [ ] { "<STR_LIT>" , "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" , "<STR_LIT>" , "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" , } , "<STR_LIT:success>" ) ; } public void testImportAliasingGoober ( ) { this . runConformTest ( new String [ ] { "<STR_LIT>" , "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" , } , "<STR_LIT>" ) ; } public void testImportAliasing ( ) { this . runConformTest ( new String [ ] { "<STR_LIT>" , "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" , "<STR_LIT>" , "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" , "<STR_LIT>" , "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" , } , "<STR_LIT>" ) ; } public void testImportAliasingAndOldReference ( ) { this . runNegativeTest ( new String [ ] { "<STR_LIT>" , "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" , "<STR_LIT>" , "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" , "<STR_LIT>" , "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" , } , "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" ) ; } public void testImportInnerInner01 ( ) { this . runConformTest ( new String [ ] { "<STR_LIT>" , "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" , "<STR_LIT>" , "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" , } , "<STR_LIT>" ) ; } public void testImportInnerClass01_JavaCase ( ) { this . runConformTest ( new String [ ] { "<STR_LIT>" , "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT:n>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" , "<STR_LIT>" , "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" , } , "<STR_LIT>" ) ; } public void testImportInnerClass01_GroovyCase ( ) { this . runConformTest ( new String [ ] { "<STR_LIT>" , "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT:n>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" , "<STR_LIT>" , "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" , } , "<STR_LIT>" ) ; } public void testImportInnerClass ( ) { this . runConformTest ( new String [ ] { "<STR_LIT>" , "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" , "<STR_LIT>" , "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" , } , "<STR_LIT>" ) ; } public void testImportAliasingInnerClass ( ) { this . runConformTest ( new String [ ] { "<STR_LIT>" , "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" , "<STR_LIT>" , "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" , } , "<STR_LIT>" ) ; } public void testImplementingInterface_MethodWithParameters_JextendsG ( ) { this . runConformTest ( new String [ ] { "<STR_LIT>" , "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" , "<STR_LIT>" , "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" , } , "<STR_LIT:success>" ) ; } public void testImplementingInterface_MethodWithParameters2_JextendsG ( ) { this . runConformTest ( new String [ ] { "<STR_LIT>" , "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" , "<STR_LIT>" , "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" , } , "<STR_LIT:success>" ) ; } public void testImplementingInterface_MethodWithParameters2_GextendsJ ( ) { this . runConformTest ( new String [ ] { "<STR_LIT>" , "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" , "<STR_LIT>" , "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" , } , "<STR_LIT:success>" ) ; } public void testImplementingInterface_MethodWithParameters3_GextendsJ ( ) { this . runConformTest ( new String [ ] { "<STR_LIT>" , "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" , "<STR_LIT>" , "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" , } , "<STR_LIT:success>" ) ; } public void testImplementingInterface_MethodWithParameters3_JextendsG ( ) { this . runConformTest ( new String [ ] { "<STR_LIT>" , "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" , "<STR_LIT>" , "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" , } , "<STR_LIT:success>" ) ; } public void testCallingMethods_JcallingG ( ) { this . runConformTest ( new String [ ] { "<STR_LIT>" , "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" , "<STR_LIT>" , "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" , } , "<STR_LIT:success>" ) ; } public void testCallingMethods_GcallingJ ( ) { this . runConformTest ( new String [ ] { "<STR_LIT>" , "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" , "<STR_LIT>" , "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" , } , "<STR_LIT:success>" ) ; } public void testReferencingFields_JreferingToG ( ) { this . runConformTest ( new String [ ] { "<STR_LIT>" , "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" , "<STR_LIT>" , "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" , } , "<STR_LIT:success>" ) ; } public void testReferencingFields_GreferingToJ ( ) { this . runConformTest ( new String [ ] { "<STR_LIT>" , "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" , "<STR_LIT>" , "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" , } , "<STR_LIT:success>" ) ; } public void testCallingConstructors_JcallingG ( ) { this . runConformTest ( new String [ ] { "<STR_LIT>" , "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" , "<STR_LIT>" , "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" , } , "<STR_LIT:success>" ) ; } public void testCallingConstructors_GcallingJ ( ) { this . runConformTest ( new String [ ] { "<STR_LIT>" , "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" , "<STR_LIT>" , "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" , } , "<STR_LIT:success>" ) ; } public void testReferencingFieldsGenerics_JreferingToG ( ) { this . runConformTest ( new String [ ] { "<STR_LIT>" , "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" , "<STR_LIT>" , "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" , } , "<STR_LIT>" ) ; } public void testReferencingFieldsGenerics_GreferingToJ ( ) { this . runConformTest ( new String [ ] { "<STR_LIT>" , "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" , "<STR_LIT>" , "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" , } , "<STR_LIT>" ) ; } public void testGroovyObjectsAreGroovyAtCompileTime ( ) { this . runConformTest ( new String [ ] { "<STR_LIT>" , "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" , "<STR_LIT>" , "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" , } , "<STR_LIT:success>" ) ; } public void testCallGroovyObjectMethods_invokeMethod ( ) { this . runConformTest ( new String [ ] { "<STR_LIT>" , "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" , "<STR_LIT>" , "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" , } , "<STR_LIT:success>" ) ; } public void testGroovyObjectsAreGroovyAtRunTime ( ) { this . runConformTest ( new String [ ] { "<STR_LIT>" , "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" , "<STR_LIT>" , "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" , } , "<STR_LIT:true>" ) ; } public void testGroovyBug ( ) { this . runConformTest ( new String [ ] { "<STR_LIT>" , "<STR_LIT>" + "<STR_LIT>" , "<STR_LIT>" , "<STR_LIT>" + "<STR_LIT>" , } , "<STR_LIT:a>" ) ; } public void testGroovyBug2 ( ) { this . runConformTest ( new String [ ] { "<STR_LIT>" , "<STR_LIT>" + "<STR_LIT>" , "<STR_LIT>" , "<STR_LIT>" + "<STR_LIT>" , } , "<STR_LIT:a>" ) ; } public void testExtendingGroovyObjects_clinit ( ) { this . runConformTest ( new String [ ] { "<STR_LIT>" , "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" , "<STR_LIT>" , "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" , } , "<STR_LIT:success>" ) ; } public void testGroovyPropertyAccessors_ErrorCases1 ( ) { this . runConformTest ( new String [ ] { "<STR_LIT>" , "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" , "<STR_LIT>" , "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" , } , "<STR_LIT:foo>" ) ; } public void testGroovyPropertyAccessors_ErrorCases2 ( ) { this . runConformTest ( new String [ ] { "<STR_LIT>" , "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" , "<STR_LIT>" , "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" , } , "<STR_LIT:false>" ) ; } public void testGroovyPropertyAccessors_ErrorCases3 ( ) { this . runConformTest ( new String [ ] { "<STR_LIT>" , "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" , "<STR_LIT>" , "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" , } , "<STR_LIT:foo>" ) ; } public void testGroovyPropertyAccessors_ErrorCases4 ( ) { this . runConformTest ( new String [ ] { "<STR_LIT>" , "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" , "<STR_LIT>" , "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" , } , "<STR_LIT:abc>" ) ; } public void testGroovyPropertyAccessors ( ) { this . runConformTest ( new String [ ] { "<STR_LIT>" , "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" , "<STR_LIT>" , "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" , } , "<STR_LIT>" ) ; } public void testGroovyPropertyAccessors_Set ( ) { this . runConformTest ( new String [ ] { "<STR_LIT>" , "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" , "<STR_LIT>" , "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" , } , "<STR_LIT>" ) ; } public void testGroovyPropertyAccessorsGenerics ( ) { this . runConformTest ( new String [ ] { "<STR_LIT>" , "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" , "<STR_LIT>" , "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" , } , "<STR_LIT:123>" ) ; } public void testDefaultValueMethods ( ) { this . runConformTest ( new String [ ] { "<STR_LIT>" , "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" , "<STR_LIT>" , "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" , } , "<STR_LIT>" ) ; String expectedOutput = "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" ; checkGCUDeclaration ( "<STR_LIT>" , expectedOutput ) ; expectedOutput = "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" ; checkDisassemblyFor ( "<STR_LIT>" , expectedOutput , ClassFileBytesDisassembler . COMPACT ) ; expectedOutput = "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" ; checkDisassemblyFor ( "<STR_LIT>" , expectedOutput , ClassFileBytesDisassembler . COMPACT ) ; } public void testDefaultValueMethods02 ( ) { this . runConformTest ( new String [ ] { "<STR_LIT>" , "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" , "<STR_LIT>" , "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" , } , "<STR_LIT>" ) ; String expectedOutput = "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" ; checkGCUDeclaration ( "<STR_LIT>" , expectedOutput ) ; expectedOutput = "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" ; checkDisassemblyFor ( "<STR_LIT>" , expectedOutput , ClassFileBytesDisassembler . COMPACT ) ; expectedOutput = "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" ; checkDisassemblyFor ( "<STR_LIT>" , expectedOutput , ClassFileBytesDisassembler . COMPACT ) ; expectedOutput = "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" ; checkDisassemblyFor ( "<STR_LIT>" , expectedOutput , ClassFileBytesDisassembler . COMPACT ) ; expectedOutput = "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" ; checkDisassemblyFor ( "<STR_LIT>" , expectedOutput , ClassFileBytesDisassembler . COMPACT ) ; } public void testDefaultValueConstructors ( ) { this . runConformTest ( new String [ ] { "<STR_LIT>" , "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" , "<STR_LIT>" , "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" , } , "<STR_LIT>" ) ; String expectedOutput = "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" ; checkGCUDeclaration ( "<STR_LIT>" , expectedOutput ) ; expectedOutput = "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" ; checkDisassemblyFor ( "<STR_LIT>" , expectedOutput , ClassFileBytesDisassembler . COMPACT ) ; expectedOutput = "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" ; checkDisassemblyFor ( "<STR_LIT>" , expectedOutput , ClassFileBytesDisassembler . COMPACT ) ; } public void testAnnotationsAndMetaMethods ( ) { this . runConformTest ( new String [ ] { "<STR_LIT>" , "<STR_LIT>" , "<STR_LIT>" , "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" , } , "<STR_LIT>" ) ; } public void testClashingMethodsWithDefaultParams ( ) { this . runNegativeTest ( new String [ ] { "<STR_LIT>" , "<STR_LIT>" + "<STR_LIT:n>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" , } , "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + ( isGE20 ( ) ? "<STR_LIT>" : "<STR_LIT>" ) + "<STR_LIT:n>" + "<STR_LIT>" + "<STR_LIT>" ) ; } public void testCallingJavaFromGroovy1 ( ) throws Exception { this . runConformTest ( new String [ ] { "<STR_LIT>" , "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" , "<STR_LIT>" , "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" , } , "<STR_LIT>" ) ; } public void testCallingJavaFromGroovy2 ( ) throws Exception { this . runConformTest ( new String [ ] { "<STR_LIT>" , "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" , "<STR_LIT>" , "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" , "<STR_LIT>" , "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" , } , "<STR_LIT:success>" ) ; } public void testGenericFields_JcallingG ( ) { this . runConformTest ( new String [ ] { "<STR_LIT>" , "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" , "<STR_LIT>" , "<STR_LIT>" + "<STR_LIT>" } , "<STR_LIT:success>" ) ; } public void testGenericFields_GcallingJ ( ) { this . runConformTest ( new String [ ] { "<STR_LIT>" , "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" , "<STR_LIT>" , "<STR_LIT>" + "<STR_LIT>" } , "<STR_LIT:success>" ) ; } public void testExtendingRawJavaType ( ) { this . runConformTest ( new String [ ] { "<STR_LIT>" , "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" , "<STR_LIT>" , "<STR_LIT>" + "<STR_LIT>" , "<STR_LIT>" , "<STR_LIT>" + "<STR_LIT>" } , "<STR_LIT:success>" ) ; } public void testTypeVariableBoundIsRawType ( ) { this . runConformTest ( new String [ ] { "<STR_LIT>" , "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" , "<STR_LIT>" , "<STR_LIT>" + "<STR_LIT>" , "<STR_LIT>" , "<STR_LIT>" + "<STR_LIT>" } , "<STR_LIT:success>" ) ; } public void testEnum ( ) { this . runConformTest ( new String [ ] { "<STR_LIT>" , "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" , "<STR_LIT>" , "<STR_LIT>" + "<STR_LIT>" , } , "<STR_LIT>" ) ; } public void testDuplicateGroovyObjectMethods ( ) { this . runConformTest ( new String [ ] { "<STR_LIT>" , "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" , } , "<STR_LIT:success>" ) ; } public void testDuplicateGroovyObjectMethods2 ( ) { this . runConformTest ( new String [ ] { "<STR_LIT>" , "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" , } , "<STR_LIT:success>" ) ; } public void testTwoTopLevelTypesInAFile ( ) { this . runConformTest ( new String [ ] { "<STR_LIT>" , "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" , } , "<STR_LIT:success>" ) ; } public void testImports1 ( ) { this . runConformTest ( new String [ ] { "<STR_LIT>" , "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" , } , "<STR_LIT:success>" ) ; } public void testImports2 ( ) { this . runConformTest ( new String [ ] { "<STR_LIT>" , "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" , } , "<STR_LIT:success>" ) ; } public void testImportsBigDecimal1 ( ) { this . runConformTest ( new String [ ] { "<STR_LIT>" , "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" , } , "<STR_LIT:success>" ) ; } public void testImportsBigDecimal2 ( ) { this . runConformTest ( new String [ ] { "<STR_LIT>" , "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" , } , "<STR_LIT:success>" ) ; } public void testImportsBigInteger1 ( ) { this . runConformTest ( new String [ ] { "<STR_LIT>" , "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" , } , "<STR_LIT:success>" ) ; } public void testImportsBigInteger3 ( ) { this . runConformTest ( new String [ ] { "<STR_LIT>" , "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" , } , "<STR_LIT>" ) ; } public void testMultipleTypesInOneFile01 ( ) { this . runConformTest ( new String [ ] { "<STR_LIT>" , "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" } , "<STR_LIT:success>" ) ; } public void testMultipleTypesInOneFile02 ( ) { this . runConformTest ( new String [ ] { "<STR_LIT>" , "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" } , "<STR_LIT:success>" ) ; } public void testMultipleTypesInOneFile03 ( ) { this . runConformTest ( new String [ ] { "<STR_LIT>" , "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" } , "<STR_LIT:success>" ) ; } public void testJDKClasses ( ) { this . runConformTest ( new String [ ] { "<STR_LIT>" , "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" } , "<STR_LIT:success>" ) ; } public void testImportsBigInteger2 ( ) { this . runConformTest ( new String [ ] { "<STR_LIT>" , "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" , } , "<STR_LIT:success>" ) ; } public void testVisibility ( ) { this . runConformTest ( new String [ ] { "<STR_LIT>" , "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" , "<STR_LIT>" , "<STR_LIT>" + "<STR_LIT>" , } , "<STR_LIT:success>" ) ; } public void testClosuresBasic ( ) { this . runConformTest ( new String [ ] { "<STR_LIT>" , "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" } , "<STR_LIT:123>" ) ; } public void testGrab ( ) { this . runConformTest ( new String [ ] { "<STR_LIT>" , "<STR_LIT>" + "<STR_LIT:n>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" } , "<STR_LIT>" ) ; } public void testScriptWithError ( ) { this . runNegativeTest ( new String [ ] { "<STR_LIT>" , "<STR_LIT>" , } , "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" ) ; } public void testScript ( ) { this . runConformTest ( new String [ ] { "<STR_LIT>" , "<STR_LIT>" , } , "<STR_LIT>" ) ; } public void testScriptCallJava ( ) { this . runConformTest ( new String [ ] { "<STR_LIT>" , "<STR_LIT>" , "<STR_LIT>" , "<STR_LIT>" } , "<STR_LIT:abc>" ) ; } public void testBuiltInTransforms_Singleton ( ) { this . runConformTest ( new String [ ] { "<STR_LIT>" , "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" , "<STR_LIT>" , "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" , "<STR_LIT>" , "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" } , "<STR_LIT>" ) ; } public void testBuiltInTransforms_Singleton2 ( ) { this . runConformTest ( new String [ ] { "<STR_LIT>" , "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" , "<STR_LIT>" , "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" , "<STR_LIT>" , "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" } , "<STR_LIT>" ) ; } public void testBuiltInTransforms_Singleton3 ( ) { this . runConformTest ( new String [ ] { "<STR_LIT>" , "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" , "<STR_LIT>" , "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" , "<STR_LIT>" , "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" } , "<STR_LIT>" ) ; } public void testBuiltInTransforms_Category1 ( ) { this . runConformTest ( new String [ ] { "<STR_LIT>" , "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT:n>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" , "<STR_LIT>" , "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" , "<STR_LIT>" , "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT:n>" , } , "<STR_LIT>" ) ; } public void testBuiltInTransforms_Category2 ( ) { this . runConformTest ( new String [ ] { "<STR_LIT>" , "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT:n>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" , "<STR_LIT>" , "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" , "<STR_LIT>" , "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT:n>" , } , "<STR_LIT>" ) ; } public void testBuiltInTransforms_Category3 ( ) { this . runConformTest ( new String [ ] { "<STR_LIT>" , "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT:n>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" , "<STR_LIT>" , "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" , "<STR_LIT>" , "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" , "<STR_LIT>" , "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" , "<STR_LIT>" , "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" , "<STR_LIT>" , "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" , "<STR_LIT>" , "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" , } , "<STR_LIT>" ) ; } public void testBuiltInTransforms_PackageScope ( ) { if ( GroovyUtils . GROOVY_LEVEL < <NUM_LIT> ) { return ; } this . runConformTest ( new String [ ] { "<STR_LIT>" , "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" , "<STR_LIT>" , "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" , "<STR_LIT>" , "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" } , "<STR_LIT>" ) ; } public void testTypeChecked ( ) { if ( GroovyUtils . GROOVY_LEVEL < <NUM_LIT:20> ) { return ; } runNegativeTest ( new String [ ] { "<STR_LIT>" , "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT:}>" } , "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + ( isGE20 ( ) ? "<STR_LIT>" : "<STR_LIT>" ) + "<STR_LIT:n>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + ( isGE20 ( ) ? "<STR_LIT>" : "<STR_LIT>" ) + "<STR_LIT:n>" + "<STR_LIT>" + ( isGE20 ( ) ? "<STR_LIT>" : "<STR_LIT>" ) + "<STR_LIT:n>" + "<STR_LIT>" ) ; } public void testTypeChecked2 ( ) { if ( GroovyUtils . GROOVY_LEVEL < <NUM_LIT:20> ) { return ; } runNegativeTest ( new String [ ] { "<STR_LIT>" , "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT:}>" } , "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + ( isGE20 ( ) ? "<STR_LIT>" : "<STR_LIT>" ) + "<STR_LIT:n>" + "<STR_LIT>" + ( isGE20 ( ) ? "<STR_LIT>" : "<STR_LIT>" ) + "<STR_LIT:n>" + "<STR_LIT>" ) ; } public void testCompileStatic2 ( ) { if ( GroovyUtils . GROOVY_LEVEL < <NUM_LIT:20> ) { return ; } runConformTest ( new String [ ] { "<STR_LIT>" , "<STR_LIT>" + "<STR_LIT:n>" + "<STR_LIT>" + "<STR_LIT:n>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT:n>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT:n>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT:n>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" } , "<STR_LIT>" ) ; } public void testCompileStatic ( ) { if ( GroovyUtils . GROOVY_LEVEL < <NUM_LIT:20> ) { return ; } runNegativeTest ( new String [ ] { "<STR_LIT>" , "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT:}>" } , "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + ( isGE20 ( ) ? "<STR_LIT>" : "<STR_LIT>" ) + "<STR_LIT:n>" + "<STR_LIT>" + ( isGE20 ( ) ? "<STR_LIT>" : "<STR_LIT>" ) + "<STR_LIT:n>" + "<STR_LIT>" ) ; } public void testCompileStatic3 ( ) { if ( GroovyUtils . GROOVY_LEVEL < <NUM_LIT:20> ) { return ; } runConformTest ( new String [ ] { "<STR_LIT>" , "<STR_LIT>" + "<STR_LIT:n>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" } , "<STR_LIT>" ) ; } public void testCompileStatic_1505 ( ) { if ( GroovyUtils . GROOVY_LEVEL < <NUM_LIT:20> ) { return ; } runConformTest ( new String [ ] { "<STR_LIT>" , "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" } , "<STR_LIT:abc>" ) ; } public void testCompileStatic4 ( ) { if ( GroovyUtils . GROOVY_LEVEL < <NUM_LIT:20> ) { return ; } runConformTest ( new String [ ] { "<STR_LIT>" , "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" , "<STR_LIT>" , "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT:n>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT:n>" + "<STR_LIT>" } , "<STR_LIT>" ) ; } public void testGroovyAnnotation ( ) { runConformTest ( new String [ ] { "<STR_LIT>" , "<STR_LIT>" , "<STR_LIT>" , "<STR_LIT>" } , "<STR_LIT>" ) ; String expectedContents = "<STR_LIT>" + "<STR_LIT>" ; checkDisassemblyFor ( "<STR_LIT>" , expectedContents ) ; } public void testExtraImports ( ) throws IOException { Map options = getCompilerOptions ( ) ; options . put ( CompilerOptions . OPTIONG_GroovyExtraImports , "<STR_LIT>" ) ; options . put ( CompilerOptions . OPTIONG_GroovyProjectName , "<STR_LIT:Test>" ) ; runConformTest ( new String [ ] { "<STR_LIT>" , "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" , "<STR_LIT>" , "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" , } , "<STR_LIT>" , null , true , null , options , null ) ; } public void testExtraImports_exactType ( ) throws IOException { Map options = getCompilerOptions ( ) ; options . put ( CompilerOptions . OPTIONG_GroovyExtraImports , "<STR_LIT>" ) ; options . put ( CompilerOptions . OPTIONG_GroovyProjectName , "<STR_LIT:Test>" ) ; runConformTest ( new String [ ] { "<STR_LIT>" , "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" , "<STR_LIT>" , "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" , } , "<STR_LIT>" , null , true , null , options , null ) ; } public void testExtraImports_withSuffixDotStar ( ) throws IOException { Map options = getCompilerOptions ( ) ; options . put ( CompilerOptions . OPTIONG_GroovyExtraImports , "<STR_LIT>" ) ; options . put ( CompilerOptions . OPTIONG_GroovyProjectName , "<STR_LIT:Test>" ) ; runConformTest ( new String [ ] { "<STR_LIT>" , "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" , "<STR_LIT>" , "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" , } , "<STR_LIT>" , null , true , null , options , null ) ; } public void testExtraImports_withSuffixExactType ( ) throws IOException { Map options = getCompilerOptions ( ) ; options . put ( CompilerOptions . OPTIONG_GroovyExtraImports , "<STR_LIT>" ) ; options . put ( CompilerOptions . OPTIONG_GroovyProjectName , "<STR_LIT:Test>" ) ; runConformTest ( new String [ ] { "<STR_LIT>" , "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" , "<STR_LIT>" , "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" , } , "<STR_LIT>" , null , true , null , options , null ) ; } public void testExtraImports_withSuffixExactType2 ( ) throws IOException { Map options = getCompilerOptions ( ) ; options . put ( CompilerOptions . OPTIONG_GroovyExtraImports , "<STR_LIT>" ) ; options . put ( CompilerOptions . OPTIONG_GroovyProjectName , "<STR_LIT:Test>" ) ; runConformTest ( new String [ ] { "<STR_LIT>" , "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" , "<STR_LIT>" , "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" , "<STR_LIT>" , "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" , } , "<STR_LIT>" , null , true , null , options , null ) ; } public void testExtraImports_noneMatchingSuffix ( ) throws IOException { Map options = getCompilerOptions ( ) ; options . put ( CompilerOptions . OPTIONG_GroovyExtraImports , "<STR_LIT>" ) ; options . put ( CompilerOptions . OPTIONG_GroovyProjectName , "<STR_LIT:Test>" ) ; runConformTest ( new String [ ] { "<STR_LIT>" , "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" , "<STR_LIT>" , "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" , } , "<STR_LIT>" , null , true , null , options , null ) ; } public void testExtraImports_typeDoesNotExist ( ) throws IOException { Map options = getCompilerOptions ( ) ; options . put ( CompilerOptions . OPTIONG_GroovyExtraImports , "<STR_LIT>" ) ; options . put ( CompilerOptions . OPTIONG_GroovyProjectName , "<STR_LIT:Test>" ) ; runNegativeTest ( new String [ ] { "<STR_LIT>" , "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" , "<STR_LIT>" , "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" , } , "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" , null , true , options ) ; } public void testExtraImports_packageDoesNotExist ( ) throws IOException { Map options = getCompilerOptions ( ) ; options . put ( CompilerOptions . OPTIONG_GroovyExtraImports , "<STR_LIT>" ) ; options . put ( CompilerOptions . OPTIONG_GroovyProjectName , "<STR_LIT:Test>" ) ; runNegativeTest ( new String [ ] { "<STR_LIT>" , "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" , "<STR_LIT>" , "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" , } , "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" , null , true , options ) ; } public void testExtraImports_multiple ( ) throws IOException { Map options = getCompilerOptions ( ) ; options . put ( CompilerOptions . OPTIONG_GroovyExtraImports , "<STR_LIT>" ) ; options . put ( CompilerOptions . OPTIONG_GroovyProjectName , "<STR_LIT:Test>" ) ; runConformTest ( new String [ ] { "<STR_LIT>" , "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" , "<STR_LIT>" , "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" , "<STR_LIT>" , "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" , } , "<STR_LIT>" , null , true , null , options , null ) ; } public void testExtraImports_multipleSuffixes ( ) throws IOException { Map options = getCompilerOptions ( ) ; options . put ( CompilerOptions . OPTIONG_GroovyExtraImports , "<STR_LIT>" ) ; options . put ( CompilerOptions . OPTIONG_GroovyProjectName , "<STR_LIT:Test>" ) ; runConformTest ( new String [ ] { "<STR_LIT>" , "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" , "<STR_LIT>" , "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" , } , "<STR_LIT>" , null , true , null , options , null ) ; } public void testTransforms_BasicLogging ( ) throws IOException { Map options = getCompilerOptions ( ) ; options . put ( CompilerOptions . OPTIONG_GroovyClassLoaderPath , FileLocator . resolve ( Platform . getBundle ( "<STR_LIT>" ) . getEntry ( "<STR_LIT>" ) ) . getFile ( ) ) ; options . put ( CompilerOptions . OPTIONG_GroovyProjectName , "<STR_LIT:Test>" ) ; runConformTest ( new String [ ] { "<STR_LIT>" , "<STR_LIT>" + "<STR_LIT:n>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT:n>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT:n>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT:n>" + "<STR_LIT:n>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT:n>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT:n>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT:n>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT:n>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT:n>" , } , "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" , null , true , null , options , null ) ; } public void testTransforms_AtLog ( ) throws IOException { runConformTest ( new String [ ] { "<STR_LIT>" , "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT:}>" , "<STR_LIT>" , "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT:}>" , "<STR_LIT>" , "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT:}>" , "<STR_LIT>" , "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT:}>" , } ) ; } public void testInvokingVarargs01_JtoG ( ) { this . runConformTest ( new String [ ] { "<STR_LIT>" , "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" , "<STR_LIT>" , "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" , } , "<STR_LIT>" ) ; } public void testInvokingVarargs01_GtoJ ( ) { this . runConformTest ( new String [ ] { "<STR_LIT>" , "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" , "<STR_LIT>" , "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" , } , "<STR_LIT>" ) ; } public void testInvokingVarargs02_JtoG ( ) { this . runConformTest ( new String [ ] { "<STR_LIT>" , "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" , "<STR_LIT>" , "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" , } , "<STR_LIT>" ) ; } public void testInvokingVarargs03_JtoG ( ) { this . runConformTest ( new String [ ] { "<STR_LIT>" , "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" , "<STR_LIT>" , "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" , } , "<STR_LIT>" ) ; } public void testInvokingVarargs02_GtoJ ( ) { this . runConformTest ( new String [ ] { "<STR_LIT>" , "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" , "<STR_LIT>" , "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" , } , "<STR_LIT>" ) ; } public void testInvokingVarargsCtors01_JtoG ( ) { this . runConformTest ( new String [ ] { "<STR_LIT>" , "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" , "<STR_LIT>" , "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" , } , "<STR_LIT>" ) ; } public void testInvokingVarargsCtors01_GtoJ ( ) { this . runConformTest ( new String [ ] { "<STR_LIT>" , "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" , "<STR_LIT>" , "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" , } , "<STR_LIT>" ) ; } public void testPositions ( ) { this . runNegativeTest ( new String [ ] { "<STR_LIT>" , "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" , } , "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" ) ; } public void testPositions_2 ( ) { this . runNegativeTest ( new String [ ] { "<STR_LIT>" , "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" , } , "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" ) ; } public void testStaticImports_JtoG ( ) { this . runConformTest ( new String [ ] { "<STR_LIT>" , "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" , "<STR_LIT>" , "<STR_LIT>" + "<STR_LIT>" , } , "<STR_LIT>" ) ; } public void testStaticImports_GtoJ ( ) { this . runConformTest ( new String [ ] { "<STR_LIT>" , "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" , "<STR_LIT>" , "<STR_LIT>" + "<STR_LIT>" , } , "<STR_LIT>" ) ; } public void testJDTClassNode_633 ( ) { try { JDTResolver . recordInstances = true ; this . runConformTest ( new String [ ] { "<STR_LIT>" , "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" , "<STR_LIT>" , "<STR_LIT>" + "<STR_LIT>" , "<STR_LIT>" , "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" , } , "<STR_LIT>" ) ; JDTClassNode classnode = ( ( JDTResolver ) JDTResolver . instances . get ( <NUM_LIT:0> ) ) . getCachedNode ( "<STR_LIT>" ) ; assertNotNull ( classnode ) ; List methods = classnode . getMethods ( ) ; assertEquals ( <NUM_LIT:1> , methods . size ( ) ) ; assertEquals ( "<STR_LIT>" , ( ( MethodNode ) methods . get ( <NUM_LIT:0> ) ) . getTypeDescriptor ( ) ) ; } finally { JDTResolver . instances . clear ( ) ; JDTResolver . recordInstances = false ; } } public void testStaticImports2_GtoJ ( ) { this . runConformTest ( new String [ ] { "<STR_LIT>" , "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" , "<STR_LIT>" , "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" , } , "<STR_LIT>" ) ; } public void testStaticImportsAliasing_G ( ) { this . runConformTest ( new String [ ] { "<STR_LIT>" , "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT:n>" + "<STR_LIT>" } , "<STR_LIT:1.0>" ) ; } public void testSecondaryTypeTagging ( ) { this . runConformTest ( new String [ ] { "<STR_LIT>" , "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" } , "<STR_LIT:1.0>" ) ; GroovyCompilationUnitDeclaration gcud = getCUDeclFor ( "<STR_LIT>" ) ; TypeDeclaration [ ] tds = gcud . types ; assertFalse ( ( tds [ <NUM_LIT:0> ] . bits & ASTNode . IsSecondaryType ) != <NUM_LIT:0> ) ; assertTrue ( ( tds [ <NUM_LIT:1> ] . bits & ASTNode . IsSecondaryType ) != <NUM_LIT:0> ) ; assertTrue ( ( tds [ <NUM_LIT:2> ] . bits & ASTNode . IsSecondaryType ) != <NUM_LIT:0> ) ; assertTrue ( ( tds [ <NUM_LIT:3> ] . bits & ASTNode . IsSecondaryType ) != <NUM_LIT:0> ) ; this . runConformTest ( new String [ ] { "<STR_LIT>" , "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" } , "<STR_LIT:1.0>" ) ; gcud = getCUDeclFor ( "<STR_LIT>" ) ; tds = gcud . types ; assertTrue ( ( tds [ <NUM_LIT:0> ] . bits & ASTNode . IsSecondaryType ) != <NUM_LIT:0> ) ; assertFalse ( ( tds [ <NUM_LIT:1> ] . bits & ASTNode . IsSecondaryType ) != <NUM_LIT:0> ) ; assertTrue ( ( tds [ <NUM_LIT:2> ] . bits & ASTNode . IsSecondaryType ) != <NUM_LIT:0> ) ; assertTrue ( ( tds [ <NUM_LIT:3> ] . bits & ASTNode . IsSecondaryType ) != <NUM_LIT:0> ) ; } public void testImportStatic1 ( ) { this . runConformTest ( new String [ ] { "<STR_LIT>" , "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" , "<STR_LIT>" , "<STR_LIT>" + "<STR_LIT>" , } , "<STR_LIT:abc>" ) ; GroovyCompilationUnitDeclaration gcud = getCUDeclFor ( "<STR_LIT>" ) ; ImportReference [ ] irs = gcud . imports ; assertEquals ( "<STR_LIT>" , irs [ <NUM_LIT:0> ] . toString ( ) . trim ( ) ) ; assertTrue ( irs [ <NUM_LIT:0> ] . isStatic ( ) ) ; } public void testImportStatic2 ( ) { this . runConformTest ( new String [ ] { "<STR_LIT>" , "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" , "<STR_LIT>" , "<STR_LIT>" + "<STR_LIT>" , } , "<STR_LIT:abc>" ) ; GroovyCompilationUnitDeclaration gcud = getCUDeclFor ( "<STR_LIT>" ) ; ImportReference [ ] irs = gcud . imports ; assertEquals ( "<STR_LIT>" , irs [ <NUM_LIT:0> ] . toString ( ) . trim ( ) ) ; assertTrue ( irs [ <NUM_LIT:0> ] . isStatic ( ) ) ; } public void testImportStatic3 ( ) { this . runConformTest ( new String [ ] { "<STR_LIT>" , "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" , "<STR_LIT>" , "<STR_LIT>" + "<STR_LIT>" , } , "<STR_LIT:abc>" ) ; GroovyCompilationUnitDeclaration gcud = getCUDeclFor ( "<STR_LIT>" ) ; ImportReference [ ] irs = gcud . imports ; assertTrue ( irs [ <NUM_LIT:0> ] instanceof AliasImportReference ) ; assertEquals ( "<STR_LIT>" , irs [ <NUM_LIT:0> ] . toString ( ) . trim ( ) ) ; assertTrue ( irs [ <NUM_LIT:0> ] . isStatic ( ) ) ; assertEquals ( "<STR_LIT>" , new String ( ( ( AliasImportReference ) irs [ <NUM_LIT:0> ] ) . getSimpleName ( ) ) ) ; } public void testSafeDereferencingParserRecovery ( ) { this . runNegativeTest ( new String [ ] { "<STR_LIT>" , "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT:}>" } , "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" ) ; String expectedOutput = "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" ; checkGCUDeclaration ( "<STR_LIT>" , expectedOutput ) ; } public void testParsingBlankImport_538 ( ) throws Exception { if ( GroovyUtils . GROOVY_LEVEL < <NUM_LIT> ) { return ; } this . runNegativeTest ( new String [ ] { "<STR_LIT>" , "<STR_LIT>" } , "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" ) ; ModuleNode mn = getModuleNode ( "<STR_LIT>" ) ; assertNotNull ( mn ) ; assertFalse ( mn . encounteredUnrecoverableError ( ) ) ; List imports = mn . getImports ( ) ; ImportNode brokenImportNode = ( ImportNode ) imports . get ( <NUM_LIT:0> ) ; assertEquals ( <NUM_LIT:2> , brokenImportNode . getStart ( ) ) ; assertEquals ( <NUM_LIT:0> , brokenImportNode . getEnd ( ) ) ; assertEquals ( "<STR_LIT>" , brokenImportNode . getType ( ) . getName ( ) ) ; ClassNode cn = ( ClassNode ) mn . getClasses ( ) . get ( <NUM_LIT:0> ) ; assertNotNull ( cn ) ; assertTrue ( cn . getName ( ) . equals ( "<STR_LIT:A>" ) ) ; } public void testParsingDotTerminatedImport_538 ( ) throws Exception { if ( GroovyUtils . GROOVY_LEVEL < <NUM_LIT> ) { return ; } this . runNegativeTest ( new String [ ] { "<STR_LIT>" , "<STR_LIT>" } , "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" ) ; ModuleNode mn = getModuleNode ( "<STR_LIT>" ) ; assertNotNull ( mn ) ; assertFalse ( mn . encounteredUnrecoverableError ( ) ) ; List imports = mn . getStarImports ( ) ; ImportNode brokenImportNode = ( ImportNode ) imports . get ( <NUM_LIT:0> ) ; assertEquals ( "<STR_LIT>" , brokenImportNode . getPackageName ( ) ) ; ClassNode cn = ( ClassNode ) mn . getClasses ( ) . get ( <NUM_LIT:0> ) ; assertNotNull ( cn ) ; assertTrue ( cn . getName ( ) . equals ( "<STR_LIT:A>" ) ) ; } public void testParsingBlankImportStatic_538 ( ) throws Exception { if ( GroovyUtils . GROOVY_LEVEL < <NUM_LIT> ) { return ; } this . runNegativeTest ( new String [ ] { "<STR_LIT>" , "<STR_LIT>" } , "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" ) ; ModuleNode mn = getModuleNode ( "<STR_LIT>" ) ; assertNotNull ( mn ) ; assertFalse ( mn . encounteredUnrecoverableError ( ) ) ; Map imports = mn . getStaticImports ( ) ; ImportNode brokenImportNode = ( ImportNode ) imports . get ( "<STR_LIT>" ) ; assertEquals ( "<STR_LIT>" , brokenImportNode . getType ( ) . getName ( ) ) ; ClassNode cn = ( ClassNode ) mn . getClasses ( ) . get ( <NUM_LIT:0> ) ; assertNotNull ( cn ) ; assertTrue ( cn . getName ( ) . equals ( "<STR_LIT:A>" ) ) ; } public void testParsingDotTerminatedImportFollowedByClassDeclaration_538 ( ) throws Exception { if ( GroovyUtils . GROOVY_LEVEL < <NUM_LIT> ) { return ; } this . runNegativeTest ( new String [ ] { "<STR_LIT>" , "<STR_LIT>" + "<STR_LIT:n>" + "<STR_LIT>" } , "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" ) ; ModuleNode mn = getModuleNode ( "<STR_LIT>" ) ; assertNotNull ( mn ) ; assertFalse ( mn . encounteredUnrecoverableError ( ) ) ; List imports = mn . getStarImports ( ) ; ImportNode brokenImportNode = ( ImportNode ) imports . get ( <NUM_LIT:0> ) ; assertEquals ( "<STR_LIT>" , brokenImportNode . getPackageName ( ) ) ; ClassNode cn = ( ClassNode ) mn . getClasses ( ) . get ( <NUM_LIT:0> ) ; assertNotNull ( cn ) ; assertEquals ( "<STR_LIT>" , cn . getName ( ) ) ; } public void testParsingDotTerminatedImportFollowedByModifierAndClassDeclaration_538 ( ) throws Exception { if ( GroovyUtils . GROOVY_LEVEL < <NUM_LIT> ) { return ; } this . runNegativeTest ( new String [ ] { "<STR_LIT>" , "<STR_LIT>" + "<STR_LIT:n>" + "<STR_LIT>" } , "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" ) ; ModuleNode mn = getModuleNode ( "<STR_LIT>" ) ; assertNotNull ( mn ) ; assertFalse ( mn . encounteredUnrecoverableError ( ) ) ; List imports = mn . getStarImports ( ) ; ImportNode brokenImportNode = ( ImportNode ) imports . get ( <NUM_LIT:0> ) ; assertEquals ( "<STR_LIT>" , brokenImportNode . getPackageName ( ) ) ; ClassNode cn = ( ClassNode ) mn . getClasses ( ) . get ( <NUM_LIT:0> ) ; assertNotNull ( cn ) ; assertEquals ( "<STR_LIT>" , cn . getName ( ) ) ; } public void testParsingBlankImportFollowedByClassDeclaration_538 ( ) throws Exception { if ( GroovyUtils . GROOVY_LEVEL < <NUM_LIT> ) { return ; } this . runNegativeTest ( new String [ ] { "<STR_LIT>" , "<STR_LIT>" + "<STR_LIT:n>" + "<STR_LIT>" } , "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" ) ; ModuleNode mn = getModuleNode ( "<STR_LIT>" ) ; assertNotNull ( mn ) ; assertFalse ( mn . encounteredUnrecoverableError ( ) ) ; List imports = mn . getImports ( ) ; ImportNode brokenImportNode = ( ImportNode ) imports . get ( <NUM_LIT:0> ) ; assertEquals ( "<STR_LIT>" , brokenImportNode . getType ( ) . getName ( ) ) ; ClassNode cn = ( ClassNode ) mn . getClasses ( ) . get ( <NUM_LIT:0> ) ; assertNotNull ( cn ) ; assertEquals ( "<STR_LIT>" , cn . getName ( ) ) ; } public void testParsingIncompleteClassDeclaration_495 ( ) throws Exception { if ( GroovyUtils . GROOVY_LEVEL < <NUM_LIT> ) { return ; } this . runNegativeTest ( new String [ ] { "<STR_LIT>" , "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" } , "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" ) ; ModuleNode mn = getModuleNode ( "<STR_LIT>" ) ; assertNotNull ( mn ) ; List l = mn . getClasses ( ) ; for ( int i = <NUM_LIT:0> ; i < l . size ( ) ; i ++ ) { System . out . println ( l . get ( i ) ) ; } assertFalse ( mn . encounteredUnrecoverableError ( ) ) ; ClassNode cn = ( ClassNode ) mn . getClasses ( ) . get ( <NUM_LIT:2> ) ; assertNotNull ( cn ) ; assertEquals ( "<STR_LIT>" , cn . getName ( ) ) ; cn = ( ClassNode ) mn . getClasses ( ) . get ( <NUM_LIT:1> ) ; assertNotNull ( cn ) ; assertEquals ( "<STR_LIT>" , cn . getName ( ) ) ; } private void checkDisassemblyFor ( String filename , String expectedOutput ) { checkDisassemblyFor ( filename , expectedOutput , ClassFileBytesDisassembler . DETAILED ) ; } private void checkDisassemblyFor ( String filename , String expectedOutput , int detail ) { try { File f = new File ( OUTPUT_DIR + File . separator + filename ) ; byte [ ] classFileBytes = org . eclipse . jdt . internal . compiler . util . Util . getFileByteContent ( f ) ; ClassFileBytesDisassembler disassembler = ToolFactory . createDefaultClassFileBytesDisassembler ( ) ; String result = disassembler . disassemble ( classFileBytes , "<STR_LIT:n>" , detail ) ; int index = result . indexOf ( expectedOutput ) ; if ( index == - <NUM_LIT:1> || expectedOutput . length ( ) == <NUM_LIT:0> ) { System . out . println ( Util . displayString ( result , <NUM_LIT:3> ) ) ; } if ( index == - <NUM_LIT:1> ) { assertEquals ( "<STR_LIT>" , expectedOutput , result ) ; } } catch ( Exception e ) { fail ( e . toString ( ) ) ; } } private void checkGCUDeclaration ( String filename , String expectedOutput ) { GroovyCompilationUnitDeclaration decl = ( GroovyCompilationUnitDeclaration ) ( ( DebugRequestor ) GroovyParser . debugRequestor ) . declarations . get ( filename ) ; String declarationContents = decl . print ( ) ; if ( expectedOutput == null || expectedOutput . length ( ) == <NUM_LIT:0> ) { System . out . println ( Util . displayString ( declarationContents , <NUM_LIT:2> ) ) ; } else { int foundIndex = declarationContents . indexOf ( expectedOutput ) ; if ( foundIndex == - <NUM_LIT:1> ) { fail ( "<STR_LIT>" + expectedOutput + "<STR_LIT>" + declarationContents ) ; } } } private ModuleNode getModuleNode ( String filename ) { GroovyCompilationUnitDeclaration decl = ( GroovyCompilationUnitDeclaration ) ( ( DebugRequestor ) GroovyParser . debugRequestor ) . declarations . get ( filename ) ; if ( decl != null ) { return decl . getModuleNode ( ) ; } else { return null ; } } private GroovyCompilationUnitDeclaration getCUDeclFor ( String filename ) { return ( GroovyCompilationUnitDeclaration ) ( ( DebugRequestor ) GroovyParser . debugRequestor ) . declarations . get ( filename ) ; } static class DebugRequestor implements IGroovyDebugRequestor { Map declarations ; Map types ; public DebugRequestor ( ) { declarations = new HashMap ( ) ; } public void acceptCompilationUnitDeclaration ( GroovyCompilationUnitDeclaration gcuDeclaration ) { System . out . println ( gcuDeclaration ) ; String filename = new String ( gcuDeclaration . getFileName ( ) ) ; filename = filename . substring ( filename . lastIndexOf ( File . separator ) + <NUM_LIT:1> ) ; declarations . put ( filename , gcuDeclaration ) ; } } private String stringify ( TypeReference type ) { StringBuffer sb = new StringBuffer ( ) ; stringify ( type , sb ) ; return sb . toString ( ) ; } private void stringify ( TypeReference type , StringBuffer sb ) { if ( type . getClass ( ) == ParameterizedSingleTypeReference . class ) { ParameterizedSingleTypeReference pstr = ( ParameterizedSingleTypeReference ) type ; sb . append ( "<STR_LIT:(>" + pstr . sourceStart + "<STR_LIT:>>" + pstr . sourceEnd + "<STR_LIT:)>" ) . append ( pstr . token ) ; TypeReference [ ] typeArgs = pstr . typeArguments ; sb . append ( "<STR_LIT:<>" ) ; for ( int t = <NUM_LIT:0> ; t < typeArgs . length ; t ++ ) { stringify ( typeArgs [ t ] , sb ) ; } sb . append ( "<STR_LIT:>>" ) ; } else if ( type . getClass ( ) == ParameterizedQualifiedTypeReference . class ) { ParameterizedQualifiedTypeReference pqtr = ( ParameterizedQualifiedTypeReference ) type ; sb . append ( "<STR_LIT:(>" + type . sourceStart + "<STR_LIT:>>" + type . sourceEnd + "<STR_LIT:)>" ) ; long [ ] positions = pqtr . sourcePositions ; TypeReference [ ] [ ] allTypeArgs = pqtr . typeArguments ; for ( int i = <NUM_LIT:0> ; i < pqtr . tokens . length ; i ++ ) { if ( i > <NUM_LIT:0> ) { sb . append ( '<CHAR_LIT:.>' ) ; } sb . append ( "<STR_LIT:(>" + ( int ) ( positions [ i ] > > > <NUM_LIT:32> ) + "<STR_LIT:>>" + ( int ) ( positions [ i ] & <NUM_LIT> ) + "<STR_LIT:)>" ) . append ( pqtr . tokens [ i ] ) ; if ( allTypeArgs [ i ] != null ) { sb . append ( "<STR_LIT:<>" ) ; for ( int t = <NUM_LIT:0> ; t < allTypeArgs [ i ] . length ; t ++ ) { stringify ( allTypeArgs [ i ] [ t ] , sb ) ; } sb . append ( "<STR_LIT:>>" ) ; } } } else if ( type . getClass ( ) == ArrayTypeReference . class ) { ArrayTypeReference atr = ( ArrayTypeReference ) type ; sb . append ( "<STR_LIT:(>" + atr . sourceStart + "<STR_LIT:>>" + atr . sourceEnd + "<STR_LIT>" + atr . originalSourceEnd + "<STR_LIT:)>" ) . append ( atr . token ) ; for ( int d = <NUM_LIT:0> ; d < atr . dimensions ; d ++ ) { sb . append ( "<STR_LIT:[]>" ) ; } } else if ( type . getClass ( ) == Wildcard . class ) { Wildcard w = ( Wildcard ) type ; if ( w . kind == Wildcard . UNBOUND ) { sb . append ( "<STR_LIT:(>" + type . sourceStart + "<STR_LIT:>>" + type . sourceEnd + "<STR_LIT:)>" ) . append ( '<CHAR_LIT>' ) ; } else if ( w . kind == Wildcard . SUPER ) { sb . append ( "<STR_LIT:(>" + type . sourceStart + "<STR_LIT:>>" + type . sourceEnd + "<STR_LIT:)>" ) . append ( "<STR_LIT>" ) ; stringify ( w . bound , sb ) ; } else if ( w . kind == Wildcard . EXTENDS ) { sb . append ( "<STR_LIT:(>" + type . sourceStart + "<STR_LIT:>>" + type . sourceEnd + "<STR_LIT:)>" ) . append ( "<STR_LIT>" ) ; stringify ( w . bound , sb ) ; } } else if ( type . getClass ( ) == SingleTypeReference . class ) { sb . append ( "<STR_LIT:(>" + type . sourceStart + "<STR_LIT:>>" + type . sourceEnd + "<STR_LIT:)>" ) . append ( ( ( SingleTypeReference ) type ) . token ) ; } else if ( type instanceof ArrayQualifiedTypeReference ) { ArrayQualifiedTypeReference aqtr = ( ArrayQualifiedTypeReference ) type ; sb . append ( "<STR_LIT:(>" + type . sourceStart + "<STR_LIT:>>" + type . sourceEnd + "<STR_LIT:)>" ) ; long [ ] positions = aqtr . sourcePositions ; for ( int i = <NUM_LIT:0> ; i < aqtr . tokens . length ; i ++ ) { if ( i > <NUM_LIT:0> ) { sb . append ( '<CHAR_LIT:.>' ) ; } sb . append ( "<STR_LIT:(>" + ( int ) ( positions [ i ] > > > <NUM_LIT:32> ) + "<STR_LIT:>>" + ( int ) ( positions [ i ] & <NUM_LIT> ) + "<STR_LIT:)>" ) . append ( aqtr . tokens [ i ] ) ; } for ( int i = <NUM_LIT:0> ; i < aqtr . dimensions ( ) ; i ++ ) { sb . append ( "<STR_LIT:[]>" ) ; } } else if ( type . getClass ( ) == QualifiedTypeReference . class ) { QualifiedTypeReference qtr = ( QualifiedTypeReference ) type ; sb . append ( "<STR_LIT:(>" + type . sourceStart + "<STR_LIT:>>" + type . sourceEnd + "<STR_LIT:)>" ) ; long [ ] positions = qtr . sourcePositions ; for ( int i = <NUM_LIT:0> ; i < qtr . tokens . length ; i ++ ) { if ( i > <NUM_LIT:0> ) { sb . append ( '<CHAR_LIT:.>' ) ; } sb . append ( "<STR_LIT:(>" + ( int ) ( positions [ i ] > > > <NUM_LIT:32> ) + "<STR_LIT:>>" + ( int ) ( positions [ i ] & <NUM_LIT> ) + "<STR_LIT:)>" ) . append ( qtr . tokens [ i ] ) ; } } else { throw new RuntimeException ( "<STR_LIT>" + type . getClass ( ) ) ; } } private FieldDeclaration grabField ( GroovyCompilationUnitDeclaration decl , String fieldname ) { FieldDeclaration [ ] fDecls = decl . types [ <NUM_LIT:0> ] . fields ; for ( int i = <NUM_LIT:0> ; i < fDecls . length ; i ++ ) { if ( new String ( fDecls [ i ] . name ) . equals ( fieldname ) ) { return fDecls [ i ] ; } } return null ; } private void assertEventCount ( int expectedCount , EventListener listener ) { if ( listener . eventCount ( ) != expectedCount ) { fail ( "<STR_LIT>" + expectedCount + "<STR_LIT>" + listener . eventCount ( ) + "<STR_LIT>" + listener . toString ( ) ) ; } } private void assertEvent ( String eventText , EventListener listener ) { boolean found = false ; Iterator eventIter = listener . getEvents ( ) . iterator ( ) ; while ( eventIter . hasNext ( ) ) { String s = ( String ) eventIter . next ( ) ; if ( s . equals ( eventText ) ) { found = true ; break ; } } if ( ! found ) { fail ( "<STR_LIT>" + eventText + "<STR_LIT>" + listener . toString ( ) ) ; } } } </s>
|
<s> package org . eclipse . jdt . groovy . core . tests . basic ; import java . io . IOException ; import java . net . URL ; import junit . framework . Test ; import org . codehaus . groovy . ast . ClassNode ; import org . codehaus . groovy . ast . ModuleNode ; import org . codehaus . jdt . groovy . internal . compiler . ast . GroovyCompilationUnitDeclaration ; import org . codehaus . jdt . groovy . internal . compiler . ast . GroovyParser ; import org . eclipse . core . runtime . FileLocator ; import org . eclipse . core . runtime . Platform ; import org . eclipse . jdt . core . tests . compiler . regression . AbstractRegressionTest ; import org . eclipse . jdt . groovy . core . tests . basic . GroovySimpleTest . DebugRequestor ; import org . eclipse . jdt . internal . compiler . classfmt . ClassFileConstants ; public class FailingErrorRecoveryTests extends AbstractRegressionTest { public FailingErrorRecoveryTests ( String name ) { super ( name ) ; } public static Test suite ( ) { return buildUniqueComplianceTestSuite ( testClass ( ) , ClassFileConstants . JDK1_5 ) ; } protected void setUp ( ) throws Exception { super . setUp ( ) ; GroovyCompilationUnitDeclaration . defaultCheckGenerics = true ; GroovyParser . debugRequestor = new DebugRequestor ( ) ; complianceLevel = ClassFileConstants . JDK1_5 ; } public static Class testClass ( ) { return FailingErrorRecoveryTests . class ; } protected void tearDown ( ) throws Exception { super . tearDown ( ) ; GroovyCompilationUnitDeclaration . defaultCheckGenerics = false ; GroovyParser . debugRequestor = null ; } protected String [ ] getDefaultClassPaths ( ) { String [ ] cps = super . getDefaultClassPaths ( ) ; String [ ] newcps = new String [ cps . length + <NUM_LIT:3> ] ; System . arraycopy ( cps , <NUM_LIT:0> , newcps , <NUM_LIT:0> , cps . length ) ; try { URL groovyJar = Platform . getBundle ( "<STR_LIT>" ) . getEntry ( "<STR_LIT>" ) ; if ( groovyJar == null ) { groovyJar = Platform . getBundle ( "<STR_LIT>" ) . getEntry ( "<STR_LIT>" ) ; if ( groovyJar == null ) { groovyJar = Platform . getBundle ( "<STR_LIT>" ) . getEntry ( "<STR_LIT>" ) ; if ( groovyJar == null ) { groovyJar = Platform . getBundle ( "<STR_LIT>" ) . getEntry ( "<STR_LIT>" ) ; } } } newcps [ newcps . length - <NUM_LIT:1> ] = FileLocator . resolve ( groovyJar ) . getFile ( ) ; URL asmJar = Platform . getBundle ( "<STR_LIT>" ) . getEntry ( "<STR_LIT>" ) ; if ( asmJar == null ) { asmJar = Platform . getBundle ( "<STR_LIT>" ) . getEntry ( "<STR_LIT>" ) ; if ( asmJar == null ) { asmJar = Platform . getBundle ( "<STR_LIT>" ) . getEntry ( "<STR_LIT>" ) ; } } newcps [ newcps . length - <NUM_LIT:2> ] = FileLocator . resolve ( asmJar ) . getFile ( ) ; newcps [ newcps . length - <NUM_LIT:3> ] = FileLocator . resolve ( Platform . getBundle ( "<STR_LIT>" ) . getEntry ( "<STR_LIT>" ) ) . getFile ( ) ; } catch ( IOException e ) { fail ( "<STR_LIT>" + e . getMessage ( ) ) ; } return newcps ; } public void testParsingIncompleteIfCondition_1046 ( ) throws Exception { this . runNegativeTest ( new String [ ] { "<STR_LIT>" , "<STR_LIT>" + "<STR_LIT>" } , "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" ) ; ModuleNode mn = getModuleNode ( "<STR_LIT>" ) ; assertNotNull ( mn ) ; assertFalse ( mn . encounteredUnrecoverableError ( ) ) ; ClassNode cn = ( ClassNode ) mn . getClasses ( ) . get ( <NUM_LIT:0> ) ; assertNotNull ( cn ) ; assertTrue ( cn . getName ( ) . equals ( "<STR_LIT:A>" ) ) ; } public void testParsingDotTerminatingIncompleteIfCondition_1046 ( ) throws Exception { this . runNegativeTest ( new String [ ] { "<STR_LIT>" , "<STR_LIT>" + "<STR_LIT>" } , "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" ) ; ModuleNode mn = getModuleNode ( "<STR_LIT>" ) ; assertNotNull ( mn ) ; assertFalse ( mn . encounteredUnrecoverableError ( ) ) ; ClassNode cn = ( ClassNode ) mn . getClasses ( ) . get ( <NUM_LIT:0> ) ; assertNotNull ( cn ) ; assertTrue ( cn . getName ( ) . equals ( "<STR_LIT:A>" ) ) ; } public void testGRE941 ( ) throws Exception { this . runNegativeTest ( new String [ ] { "<STR_LIT>" , "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT:}>" } , "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" ) ; ModuleNode mn = getModuleNode ( "<STR_LIT>" ) ; assertNotNull ( mn ) ; assertFalse ( mn . encounteredUnrecoverableError ( ) ) ; ClassNode cn = ( ClassNode ) mn . getClasses ( ) . get ( <NUM_LIT:0> ) ; assertNotNull ( cn ) ; assertEquals ( "<STR_LIT>" , cn . getName ( ) ) ; } public void testGRE644 ( ) throws Exception { this . runNegativeTest ( new String [ ] { "<STR_LIT>" , "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT:}>" , "<STR_LIT>" , "<STR_LIT>" } , "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" ) ; ModuleNode mn = getModuleNode ( "<STR_LIT>" ) ; assertNotNull ( mn ) ; assertFalse ( mn . encounteredUnrecoverableError ( ) ) ; ClassNode cn = ( ClassNode ) mn . getClasses ( ) . get ( <NUM_LIT:0> ) ; assertNotNull ( cn ) ; assertTrue ( cn . getName ( ) . equals ( "<STR_LIT:A>" ) ) ; } public void testGRE1048 ( ) throws Exception { this . runNegativeTest ( new String [ ] { "<STR_LIT>" , "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT:}>" , } , "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" + "<STR_LIT>" ) ; ModuleNode mn = getModuleNode ( "<STR_LIT>" ) ; assertNotNull ( mn ) ; assertFalse ( mn . encounteredUnrecoverableError ( ) ) ; ClassNode cn = ( ClassNode ) mn . getClasses ( ) . get ( <NUM_LIT:0> ) ; assertNotNull ( cn ) ; assertTrue ( cn . getName ( ) . equals ( "<STR_LIT>" ) ) ; } private ModuleNode getModuleNode ( String filename ) { GroovyCompilationUnitDeclaration decl = ( GroovyCompilationUnitDeclaration ) ( ( DebugRequestor ) GroovyParser . debugRequestor ) . declarations . get ( filename ) ; if ( decl != null ) { return decl . getModuleNode ( ) ; } else { return null ; } } } </s>
|
<s> public class JavaMain { public static void main ( String ... args ) { new GroovyHello ( ) . sayHello ( ) ; new JavaHello ( ) . sayHello ( ) ; } } </s>
|
<s> public class JavaHello implements Helloable { public void sayHello ( ) { System . out . println ( "<STR_LIT>" ) ; } } </s>
|
<s> import org . junit . Test ; import org . junit . Assert ; public class JavaTest { @ Test public void testMethod ( ) { JavaMain . main ( new String [ ] { } ) ; Assert . assertTrue ( true ) ; } } </s>
|
<s> public class JavaHello implements Helloable { public void sayHello ( ) { System . out . println ( "<STR_LIT>" ) ; } } </s>
|
<s> public class JavaMain { public static void main ( String ... args ) { new GroovyHello ( ) . sayHello ( ) ; new JavaHello ( ) . sayHello ( ) ; } } </s>
|
<s> import org . junit . Test ; import org . junit . Assert ; public class JavaTest { @ Test public void testMethod ( ) { JavaMain . main ( new String [ ] { } ) ; Assert . assertTrue ( true ) ; } } </s>
|
<s> package com . test ; import lombok . Data ; public @ Data class LombokDataClass { private final int a ; private final int b ; } </s>
|
<s> import org . junit . Test ; import org . junit . Assert ; public class JavaTest { @ Test public void testMethod ( ) { JavaMain . main ( new String [ ] { } ) ; Assert . assertTrue ( true ) ; } @ Test public void testMethod2 ( ) { } } </s>
|
<s> public class JavaMain { public static void main ( String ... args ) { new GroovyHello ( ) . sayHello ( ) ; new JavaHello ( ) . sayHello ( ) ; } } </s>
|
<s> public class JavaHello implements Helloable { public void sayHello ( ) { System . out . println ( "<STR_LIT>" ) ; } } </s>
|
<s> import org . junit . Test ; import org . junit . Assert ; public class JavaTest { @ Test public void testMethod ( ) { JavaMain . main ( new String [ ] { } ) ; Assert . assertTrue ( true ) ; } } </s>
|
<s> public class JavaHello implements Helloable { public void sayHello ( ) { System . out . println ( "<STR_LIT>" ) ; } } </s>
|
<s> public class JavaMain { public static void main ( String ... args ) { new GroovyHello ( ) . sayHello ( ) ; new JavaHello ( ) . sayHello ( ) ; } } </s>
|
<s> import org . junit . Test ; import org . junit . Assert ; public class JavaTest { @ Test public void testMethod ( ) { JavaMain . main ( null ) ; Assert . assertTrue ( true ) ; } } </s>
|
<s> interface Helloable { void sayHello ( ) ; } </s>
|
<s> class JavaHello implements Helloable { public void sayHello ( ) { System . out . println ( "<STR_LIT>" ) ; } } </s>
|
<s> public class JavaMain { public static void main ( String [ ] args ) { new JavaHello ( ) . sayHello ( ) ; } } </s>
|
<s> import org . junit . Test ; import org . junit . Assert ; public class JavaTest { @ Test public void testMethod ( ) { JavaMain . main ( new String [ ] { } ) ; Assert . assertTrue ( true ) ; } } </s>
|
<s> public class JavaHello implements Helloable { public void sayHello ( ) { System . out . println ( "<STR_LIT>" ) ; } } </s>
|
<s> public class JavaMain { public static void main ( String ... args ) { new GroovyHello ( ) . sayHello ( ) ; new JavaHello ( ) . sayHello ( ) ; } } </s>
|
<s> package org . codehaus . groovy . m2eclipse ; import org . eclipse . core . runtime . Plugin ; import org . osgi . framework . BundleContext ; public class Activator extends Plugin { public static final String PLUGIN_ID = "<STR_LIT>" ; private static Activator plugin ; public Activator ( ) { } public void start ( BundleContext context ) throws Exception { super . start ( context ) ; plugin = this ; } public void stop ( BundleContext context ) throws Exception { plugin = null ; super . stop ( context ) ; } public static Activator getDefault ( ) { return plugin ; } } </s>
|
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.