org.eclipse.xtext.junit4.ui
Class AbstractContentAssistProcessorTest

java.lang.Object
  extended by org.junit.Assert
      extended by org.eclipse.xtext.junit4.AbstractXtextTests
          extended by org.eclipse.xtext.junit4.ui.AbstractContentAssistProcessorTest
All Implemented Interfaces:
ResourceLoadHelper

public abstract class AbstractContentAssistProcessorTest
extends AbstractXtextTests

Unit test for class DefaultContentAssistProcessor. Reused by Xtend implementation.

Author:
Michael Clay - Initial contribution and API, Jan Koehnlein, Sebastian Zarnekow
See Also:
org.eclipse.xtext.ui.editor.contentassist.impl.DefaultContentAssistProcessor

Nested Class Summary
static class AbstractContentAssistProcessorTest.SetupExtension
           
 
Nested classes/interfaces inherited from class org.eclipse.xtext.junit4.AbstractXtextTests
AbstractXtextTests.Keys
 
Field Summary
protected static boolean useStaticInjector
           
 
Fields inherited from class org.eclipse.xtext.junit4.AbstractXtextTests
EXPECT_ERRORS, UNKNOWN_EXPECTATION
 
Constructor Summary
AbstractContentAssistProcessorTest()
           
 
Method Summary
static void discardStaticInjector()
           
protected abstract  ISetup doGetSetup()
           
protected  ISetup getSetup()
           
protected  ContentAssistProcessorTestBuilder newBuilder()
           
protected  ContentAssistProcessorTestBuilder newBuilder(ISetup setup)
           
static void useStaticInjector()
           
 
Methods inherited from class org.eclipse.xtext.junit4.AbstractXtextTests
checkNodeModel, disableSerializerTest, doGetResource, get, get, getAsStream, getASTFactory, getCurrentFileExtension, getGrammarAccess, getInjector, getInvariantChecker, getLinkingService, getModel, getModel, getModel, getModelAndExpect, getModelAndExpect, getNodeModelFormatter, getParser, getParseResult, getParseResultAndExpect, getParseTreeConstructor, getResource, getResource, getResource, getResourceAndExpect, getResourceAndExpect, getResourceFactory, getResourceFor, getResourceFromString, getResourceFromStringAndExpect, getRootNode, getRootNode, getRootNode, getRootNodeAndExpect, getRootNodeAndExpect, getScopeProvider, getSerializer, getValueConverterService, injectMembers, readFileIntoString, serialize, setInjector, setUp, shouldTestSerializer, tearDown, with, with, with
 
Methods inherited from class org.junit.Assert
assertArrayEquals, assertArrayEquals, assertArrayEquals, assertArrayEquals, assertArrayEquals, assertArrayEquals, assertArrayEquals, assertArrayEquals, assertArrayEquals, assertArrayEquals, assertArrayEquals, assertArrayEquals, assertEquals, assertEquals, assertEquals, assertEquals, assertEquals, assertEquals, assertEquals, assertEquals, assertEquals, assertEquals, assertFalse, assertFalse, assertNotNull, assertNotNull, assertNotSame, assertNotSame, assertNull, assertNull, assertSame, assertSame, assertThat, assertThat, assertTrue, assertTrue, fail, fail
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

useStaticInjector

protected static boolean useStaticInjector
Constructor Detail

AbstractContentAssistProcessorTest

public AbstractContentAssistProcessorTest()
Method Detail

useStaticInjector

public static void useStaticInjector()

discardStaticInjector

public static void discardStaticInjector()

newBuilder

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

newBuilder

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

getSetup

protected ISetup getSetup()

doGetSetup

protected abstract ISetup doGetSetup()