org.eclipse.xtext.xbase.junit.ui
Class AbstractXbaseContentAssistTest

java.lang.Object
  extended by junit.framework.Assert
      extended by junit.framework.TestCase
          extended by org.eclipse.xtext.xbase.junit.ui.AbstractXbaseContentAssistTest
All Implemented Interfaces:
junit.framework.Test, ResourceLoadHelper
Direct Known Subclasses:
AbstractXbaseContentAssistInBlockTest

public abstract class AbstractXbaseContentAssistTest
extends junit.framework.TestCase
implements ResourceLoadHelper


Field Summary
protected static java.lang.String[] CAST_INSTANCEOF
           
protected  java.lang.String fileExtension
           
protected static java.lang.String[] KEYWORDS_AND_STATICS
           
protected static java.lang.String[] STRING_FEATURES
           
protected static java.lang.String[] STRING_OPERATORS
           
protected  org.eclipse.core.resources.IWorkspace workspace
           
 
Constructor Summary
AbstractXbaseContentAssistTest()
           
 
Method Summary
protected  boolean doCleanWorkspace()
           
protected  java.lang.String[] expect(java.lang.String[]... arrays)
           
protected  XExpression expression(java.lang.String string)
           
<T> T
get(java.lang.Class<T> clazz)
           
protected abstract  com.google.inject.Injector getInjector()
           
protected  java.lang.String[] getKeywordsAndStatics()
           
 XtextResource getResourceFor(java.io.InputStream stream)
           
 java.lang.String[] getStringFeatures()
           
protected  ContentAssistProcessorTestBuilder newBuilder()
           
protected  void setExtensions(java.lang.String extensions)
           
protected  void setUp()
           
protected  void tearDown()
           
 void testAfterBinaryOperation_01()
           
 void testAfterBinaryOperation_02()
           
 void testAfterBinaryOperation_03()
           
 void testAfterBinaryOperation_04()
           
 void testAfterBinaryOperation_05()
           
 void testAfterBinaryOperation_06()
           
 void testAfterBinaryOperation_07()
           
 void testAfterBinaryOperation_08()
           
 void testAfterBinaryOperation_09()
           
 void testAfterBinaryOperation_10()
           
 void testCatchParameter_01()
           
 void testCatchParameter_02()
           
 void testClosure_01()
           
 void testEmptyInput()
           
 void testForLoop_01()
           
 void testForLoop_02()
           
 void testForLoop_03()
           
 void testForLoop_04()
           
 void testForLoop_05()
           
 void testNull()
           
 void testOnStringLiteral_01()
           
 void testOnStringLiteral_02()
           
 void testOnStringLiteral_03()
           
 void testOnStringLiteral_04()
           
 void testOnStringLiteral_05()
           
 void testOnStringLiteral_06()
           
 void testOnStringLiteral_07()
           
 void testOnStringLiteral_08()
           
 void testOnStringLiteral_09()
           
 void testOnStringLiteral_10()
           
 void testOnStringLiteral_11()
           
 void testOnStringLiteral_12()
           
 void testOnStringLiteral_13()
           
 void testOnStringLiteral_14()
           
 void testOnStringLiteral_15()
           
 void testOnStringLiteral_16()
           
 void testOnStringLiteral_17()
           
 void testOnStringLiteral_18()
           
 void testOnStringLiteral_19()
           
 void testOnStringLiteral_20()
           
 void testOnStringLiteral_21()
           
 void testOnStringLiteral_22()
           
 void testOnStringLiteral_23()
           
 void testOnStringLiteral_24()
           
 void testOnStringLiteral_25()
           
 void testOnStringLiteral_26()
           
 void testOnStringLiteral_27()
           
 void testOnStringLiteral_28()
           
 void testOnStringLiteral_29()
           
 void testOnStringLiteral_30()
           
 void testOnStringLiteral_31()
           
 void testOnStringLiteral_32()
           
 void testOnStringLiteral_33()
           
 void testOnStringLiteral_34()
           
 void testOnStringLiteral_35()
           
 void testOnStringLiteral_36()
           
 void testOnStringLiteral_37()
           
 void testOnStringLiteral_38()
           
 void testStaticFeatures_01()
           
 
Methods inherited from class junit.framework.TestCase
countTestCases, createResult, getName, run, run, runBare, runTest, setName, toString
 
Methods inherited from class junit.framework.Assert
assertEquals, assertEquals, assertEquals, assertEquals, assertEquals, assertEquals, assertEquals, assertEquals, assertEquals, assertEquals, assertEquals, assertEquals, assertEquals, assertEquals, assertEquals, assertEquals, assertEquals, assertEquals, assertEquals, assertEquals, assertFalse, assertFalse, assertNotNull, assertNotNull, assertNotSame, assertNotSame, assertNull, assertNull, assertSame, assertSame, assertTrue, assertTrue, fail, fail, failNotEquals, failNotSame, failSame
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
 

Field Detail

workspace

@Inject
protected org.eclipse.core.resources.IWorkspace workspace

fileExtension

protected java.lang.String fileExtension

KEYWORDS_AND_STATICS

protected static java.lang.String[] KEYWORDS_AND_STATICS

STRING_OPERATORS

protected static java.lang.String[] STRING_OPERATORS

CAST_INSTANCEOF

protected static java.lang.String[] CAST_INSTANCEOF

STRING_FEATURES

protected static final java.lang.String[] STRING_FEATURES
Constructor Detail

AbstractXbaseContentAssistTest

public AbstractXbaseContentAssistTest()
Method Detail

setUp

protected void setUp()
              throws java.lang.Exception
Overrides:
setUp in class junit.framework.TestCase
Throws:
java.lang.Exception

tearDown

protected void tearDown()
                 throws java.lang.Exception
Overrides:
tearDown in class junit.framework.TestCase
Throws:
java.lang.Exception

doCleanWorkspace

protected boolean doCleanWorkspace()

getInjector

protected abstract com.google.inject.Injector getInjector()

get

public <T> T get(java.lang.Class<T> clazz)

expression

protected XExpression expression(java.lang.String string)
                          throws java.lang.Exception
Throws:
java.lang.Exception

getResourceFor

public XtextResource getResourceFor(java.io.InputStream stream)
Specified by:
getResourceFor in interface ResourceLoadHelper

setExtensions

@Inject
protected void setExtensions(java.lang.String extensions)

testEmptyInput

public void testEmptyInput()
                    throws java.lang.Exception
Throws:
java.lang.Exception

getKeywordsAndStatics

protected java.lang.String[] getKeywordsAndStatics()

getStringFeatures

public java.lang.String[] getStringFeatures()

expect

protected java.lang.String[] expect(java.lang.String[]... arrays)

testOnStringLiteral_01

public void testOnStringLiteral_01()
                            throws java.lang.Exception
Throws:
java.lang.Exception

testOnStringLiteral_02

public void testOnStringLiteral_02()
                            throws java.lang.Exception
Throws:
java.lang.Exception

testOnStringLiteral_03

public void testOnStringLiteral_03()
                            throws java.lang.Exception
Throws:
java.lang.Exception

testOnStringLiteral_04

public void testOnStringLiteral_04()
                            throws java.lang.Exception
Throws:
java.lang.Exception

testOnStringLiteral_05

public void testOnStringLiteral_05()
                            throws java.lang.Exception
Throws:
java.lang.Exception

testOnStringLiteral_06

public void testOnStringLiteral_06()
                            throws java.lang.Exception
Throws:
java.lang.Exception

testOnStringLiteral_07

public void testOnStringLiteral_07()
                            throws java.lang.Exception
Throws:
java.lang.Exception

testOnStringLiteral_08

public void testOnStringLiteral_08()
                            throws java.lang.Exception
Throws:
java.lang.Exception

testOnStringLiteral_09

public void testOnStringLiteral_09()
                            throws java.lang.Exception
Throws:
java.lang.Exception

testOnStringLiteral_10

public void testOnStringLiteral_10()
                            throws java.lang.Exception
Throws:
java.lang.Exception

testOnStringLiteral_11

public void testOnStringLiteral_11()
                            throws java.lang.Exception
Throws:
java.lang.Exception

testOnStringLiteral_12

public void testOnStringLiteral_12()
                            throws java.lang.Exception
Throws:
java.lang.Exception

testOnStringLiteral_13

public void testOnStringLiteral_13()
                            throws java.lang.Exception
Throws:
java.lang.Exception

testOnStringLiteral_14

public void testOnStringLiteral_14()
                            throws java.lang.Exception
Throws:
java.lang.Exception

testOnStringLiteral_15

public void testOnStringLiteral_15()
                            throws java.lang.Exception
Throws:
java.lang.Exception

testOnStringLiteral_16

public void testOnStringLiteral_16()
                            throws java.lang.Exception
Throws:
java.lang.Exception

testOnStringLiteral_17

public void testOnStringLiteral_17()
                            throws java.lang.Exception
Throws:
java.lang.Exception

testOnStringLiteral_18

public void testOnStringLiteral_18()
                            throws java.lang.Exception
Throws:
java.lang.Exception

testOnStringLiteral_19

public void testOnStringLiteral_19()
                            throws java.lang.Exception
Throws:
java.lang.Exception

testOnStringLiteral_20

public void testOnStringLiteral_20()
                            throws java.lang.Exception
Throws:
java.lang.Exception

testOnStringLiteral_21

public void testOnStringLiteral_21()
                            throws java.lang.Exception
Throws:
java.lang.Exception

testOnStringLiteral_22

public void testOnStringLiteral_22()
                            throws java.lang.Exception
Throws:
java.lang.Exception

testOnStringLiteral_23

public void testOnStringLiteral_23()
                            throws java.lang.Exception
Throws:
java.lang.Exception

testOnStringLiteral_24

public void testOnStringLiteral_24()
                            throws java.lang.Exception
Throws:
java.lang.Exception

testOnStringLiteral_25

public void testOnStringLiteral_25()
                            throws java.lang.Exception
Throws:
java.lang.Exception

testOnStringLiteral_26

public void testOnStringLiteral_26()
                            throws java.lang.Exception
Throws:
java.lang.Exception

testOnStringLiteral_27

public void testOnStringLiteral_27()
                            throws java.lang.Exception
Throws:
java.lang.Exception

testOnStringLiteral_28

public void testOnStringLiteral_28()
                            throws java.lang.Exception
Throws:
java.lang.Exception

testOnStringLiteral_29

public void testOnStringLiteral_29()
                            throws java.lang.Exception
Throws:
java.lang.Exception

testOnStringLiteral_30

public void testOnStringLiteral_30()
                            throws java.lang.Exception
Throws:
java.lang.Exception

testOnStringLiteral_31

public void testOnStringLiteral_31()
                            throws java.lang.Exception
Throws:
java.lang.Exception

testOnStringLiteral_32

public void testOnStringLiteral_32()
                            throws java.lang.Exception
Throws:
java.lang.Exception

testOnStringLiteral_33

public void testOnStringLiteral_33()
                            throws java.lang.Exception
Throws:
java.lang.Exception

testOnStringLiteral_34

public void testOnStringLiteral_34()
                            throws java.lang.Exception
Throws:
java.lang.Exception

testOnStringLiteral_35

public void testOnStringLiteral_35()
                            throws java.lang.Exception
Throws:
java.lang.Exception

testOnStringLiteral_36

public void testOnStringLiteral_36()
                            throws java.lang.Exception
Throws:
java.lang.Exception

testOnStringLiteral_37

public void testOnStringLiteral_37()
                            throws java.lang.Exception
Throws:
java.lang.Exception

testOnStringLiteral_38

public void testOnStringLiteral_38()
                            throws java.lang.Exception
Throws:
java.lang.Exception

testAfterBinaryOperation_01

public void testAfterBinaryOperation_01()
                                 throws java.lang.Exception
Throws:
java.lang.Exception

testAfterBinaryOperation_02

public void testAfterBinaryOperation_02()
                                 throws java.lang.Exception
Throws:
java.lang.Exception

testAfterBinaryOperation_03

public void testAfterBinaryOperation_03()
                                 throws java.lang.Exception
Throws:
java.lang.Exception

testAfterBinaryOperation_04

public void testAfterBinaryOperation_04()
                                 throws java.lang.Exception
Throws:
java.lang.Exception

testAfterBinaryOperation_05

public void testAfterBinaryOperation_05()
                                 throws java.lang.Exception
Throws:
java.lang.Exception

testAfterBinaryOperation_06

public void testAfterBinaryOperation_06()
                                 throws java.lang.Exception
Throws:
java.lang.Exception

testAfterBinaryOperation_07

public void testAfterBinaryOperation_07()
                                 throws java.lang.Exception
Throws:
java.lang.Exception

testAfterBinaryOperation_08

public void testAfterBinaryOperation_08()
                                 throws java.lang.Exception
Throws:
java.lang.Exception

testAfterBinaryOperation_09

public void testAfterBinaryOperation_09()
                                 throws java.lang.Exception
Throws:
java.lang.Exception

testAfterBinaryOperation_10

public void testAfterBinaryOperation_10()
                                 throws java.lang.Exception
Throws:
java.lang.Exception

testStaticFeatures_01

public void testStaticFeatures_01()
                           throws java.lang.Exception
Throws:
java.lang.Exception

testNull

public void testNull()
              throws java.lang.Exception
Throws:
java.lang.Exception

testForLoop_01

public void testForLoop_01()
                    throws java.lang.Exception
Throws:
java.lang.Exception

testForLoop_02

public void testForLoop_02()
                    throws java.lang.Exception
Throws:
java.lang.Exception

testForLoop_03

public void testForLoop_03()
                    throws java.lang.Exception
Throws:
java.lang.Exception

testForLoop_04

public void testForLoop_04()
                    throws java.lang.Exception
Throws:
java.lang.Exception

testForLoop_05

public void testForLoop_05()
                    throws java.lang.Exception
Throws:
java.lang.Exception

testClosure_01

public void testClosure_01()
                    throws java.lang.Exception
Throws:
java.lang.Exception

testCatchParameter_01

public void testCatchParameter_01()
                           throws java.lang.Exception
Throws:
java.lang.Exception

testCatchParameter_02

public void testCatchParameter_02()
                           throws java.lang.Exception
Throws:
java.lang.Exception

newBuilder

protected ContentAssistProcessorTestBuilder newBuilder()
                                                throws java.lang.Exception
Throws:
java.lang.Exception