public abstract class AbstractXbaseContentAssistTest extends org.junit.Assert implements ResourceLoadHelper, IJavaProjectProvider
Modifier and Type | Field and Description |
---|---|
protected static java.lang.String[] |
BIGDECIMAL_FEATURES |
protected static java.lang.String[] |
CAST_INSTANCEOF |
protected static java.lang.String[] |
CLASS_FEATURES |
protected java.lang.String |
fileExtension |
protected static java.lang.String[] |
KEYWORDS_AND_STATICS |
protected static java.lang.String[] |
STATIC_BIGDECIMAL_FEATURES |
protected static java.lang.String[] |
STATIC_CLASS_FEATURES |
protected static java.lang.String[] |
STATIC_STRING_FEATURES |
protected static java.lang.String[] |
STRING_FEATURES |
protected static java.lang.String[] |
STRING_OPERATORS |
protected org.eclipse.core.resources.IWorkspace |
workspace |
Constructor and Description |
---|
AbstractXbaseContentAssistTest() |
Modifier and Type | Method and Description |
---|---|
protected static void |
addFields(org.eclipse.jdt.core.IType type,
java.util.List<java.lang.String> features,
java.util.List<java.lang.String> staticFeatures,
java.util.Set<java.lang.String> featuresAsSet,
java.util.Set<java.lang.String> staticFeaturesAsSet,
java.util.Set<java.lang.String> types) |
protected static void |
addMethods(org.eclipse.jdt.core.IType type,
java.util.List<java.lang.String> features,
java.util.List<java.lang.String> staticFeatures,
java.util.Set<java.lang.String> featuresOrTypes) |
protected boolean |
doCleanWorkspace() |
protected static void |
doInitBigDecimalFeatures(org.eclipse.jdt.core.IJavaProject javaProject) |
protected static void |
doInitClassFeatures(org.eclipse.jdt.core.IJavaProject javaProject) |
protected static void |
doInitFeatures(org.eclipse.jdt.core.IJavaProject javaProject) |
protected static void |
doInitStringFeatures(org.eclipse.jdt.core.IJavaProject javaProject) |
protected java.lang.String[] |
expect(java.lang.String[]... arrays) |
protected XExpression |
expression(java.lang.String string) |
<T> T |
get(java.lang.Class<T> clazz) |
java.lang.String[] |
getBigDecimalFeatures() |
java.lang.String[] |
getClassFeatures() |
protected abstract com.google.inject.Injector |
getInjector() |
abstract org.eclipse.jdt.core.IJavaProject |
getJavaProject(org.eclipse.emf.ecore.resource.ResourceSet resourceSet) |
protected java.lang.String[] |
getKeywordsAndStatics() |
protected java.lang.String |
getPrefix() |
XtextResource |
getResourceFor(java.io.InputStream stream) |
protected XtextResourceSet |
getResourceSet() |
java.lang.String[] |
getStaticBigDecimalFeatures() |
java.lang.String[] |
getStaticClassFeatures() |
java.lang.String[] |
getStaticStringFeatures() |
java.lang.String[] |
getStringFeatures() |
protected java.lang.String |
getSuffix() |
protected void |
initFeatures() |
protected ContentAssistProcessorTestBuilder |
newBuilder() |
protected void |
setExtensions(java.lang.String extensions) |
void |
setUp() |
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 |
testAfterBinaryOperation_11() |
void |
testCamelCase_01() |
void |
testCamelCase_02() |
void |
testCamelCase_03() |
void |
testCatchParameter_01() |
void |
testCatchParameter_02() |
void |
testClosure_01() |
void |
testClosure_02() |
void |
testClosure_03() |
void |
testClosure_04() |
void |
testEmptyInput() |
void |
testForLoop_01() |
void |
testForLoop_02() |
void |
testForLoop_03() |
void |
testForLoop_04() |
void |
testForLoop_05() |
void |
testNestedTypes_01() |
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 |
testOnStringLiteral_39() |
void |
testOnStringLiteral_40() |
void |
testOnVoidMethod_01() |
void |
testStaticFeatures_01() |
void |
testStaticFeatures_02() |
void |
testSwitchOnEnum_01() |
void |
testSwitchOnEnum_02() |
void |
testSwitchOnEnum_03() |
assertArrayEquals, assertArrayEquals, assertArrayEquals, assertArrayEquals, assertArrayEquals, assertArrayEquals, assertArrayEquals, assertArrayEquals, assertArrayEquals, assertArrayEquals, assertArrayEquals, assertArrayEquals, assertArrayEquals, assertArrayEquals, assertArrayEquals, assertArrayEquals, assertEquals, assertEquals, assertEquals, assertEquals, assertEquals, assertEquals, assertEquals, assertEquals, assertEquals, assertEquals, assertEquals, assertEquals, assertFalse, assertFalse, assertNotEquals, assertNotEquals, assertNotEquals, assertNotEquals, assertNotEquals, assertNotEquals, assertNotNull, assertNotNull, assertNotSame, assertNotSame, assertNull, assertNull, assertSame, assertSame, assertThat, assertThat, assertTrue, assertTrue, fail, fail
@Inject protected org.eclipse.core.resources.IWorkspace workspace
protected java.lang.String fileExtension
protected static java.lang.String[] KEYWORDS_AND_STATICS
protected static java.lang.String[] STRING_OPERATORS
protected static java.lang.String[] CAST_INSTANCEOF
protected static java.lang.String[] STRING_FEATURES
protected static java.lang.String[] STATIC_STRING_FEATURES
protected static java.lang.String[] BIGDECIMAL_FEATURES
protected static java.lang.String[] STATIC_BIGDECIMAL_FEATURES
protected static java.lang.String[] CLASS_FEATURES
protected static java.lang.String[] STATIC_CLASS_FEATURES
public void setUp() throws java.lang.Exception
java.lang.Exception
public void tearDown() throws java.lang.Exception
java.lang.Exception
protected boolean doCleanWorkspace()
protected abstract com.google.inject.Injector getInjector()
public abstract org.eclipse.jdt.core.IJavaProject getJavaProject(org.eclipse.emf.ecore.resource.ResourceSet resourceSet)
getJavaProject
in interface IJavaProjectProvider
public <T> T get(java.lang.Class<T> clazz)
protected XExpression expression(java.lang.String string) throws java.lang.Exception
java.lang.Exception
protected final XtextResourceSet getResourceSet()
public final XtextResource getResourceFor(java.io.InputStream stream)
getResourceFor
in interface ResourceLoadHelper
@Inject protected void setExtensions(java.lang.String extensions)
public void testEmptyInput() throws java.lang.Exception
java.lang.Exception
protected java.lang.String[] getKeywordsAndStatics()
protected void initFeatures()
protected static void doInitFeatures(org.eclipse.jdt.core.IJavaProject javaProject)
protected static void doInitStringFeatures(org.eclipse.jdt.core.IJavaProject javaProject) throws org.eclipse.jdt.core.JavaModelException
org.eclipse.jdt.core.JavaModelException
protected static void doInitBigDecimalFeatures(org.eclipse.jdt.core.IJavaProject javaProject) throws org.eclipse.jdt.core.JavaModelException
org.eclipse.jdt.core.JavaModelException
protected static void doInitClassFeatures(org.eclipse.jdt.core.IJavaProject javaProject) throws org.eclipse.jdt.core.JavaModelException
org.eclipse.jdt.core.JavaModelException
protected static void addFields(org.eclipse.jdt.core.IType type, java.util.List<java.lang.String> features, java.util.List<java.lang.String> staticFeatures, java.util.Set<java.lang.String> featuresAsSet, java.util.Set<java.lang.String> staticFeaturesAsSet, java.util.Set<java.lang.String> types) throws org.eclipse.jdt.core.JavaModelException
org.eclipse.jdt.core.JavaModelException
protected static void addMethods(org.eclipse.jdt.core.IType type, java.util.List<java.lang.String> features, java.util.List<java.lang.String> staticFeatures, java.util.Set<java.lang.String> featuresOrTypes) throws org.eclipse.jdt.core.JavaModelException
org.eclipse.jdt.core.JavaModelException
public java.lang.String[] getStringFeatures()
public java.lang.String[] getStaticStringFeatures()
public java.lang.String[] getBigDecimalFeatures()
public java.lang.String[] getStaticBigDecimalFeatures()
public java.lang.String[] getClassFeatures()
public java.lang.String[] getStaticClassFeatures()
protected java.lang.String[] expect(java.lang.String[]... arrays)
public void testOnStringLiteral_01() throws java.lang.Exception
java.lang.Exception
public void testOnStringLiteral_02() throws java.lang.Exception
java.lang.Exception
public void testOnStringLiteral_03() throws java.lang.Exception
java.lang.Exception
public void testOnStringLiteral_04() throws java.lang.Exception
java.lang.Exception
public void testOnStringLiteral_05() throws java.lang.Exception
java.lang.Exception
public void testOnStringLiteral_06() throws java.lang.Exception
java.lang.Exception
public void testOnStringLiteral_07() throws java.lang.Exception
java.lang.Exception
public void testOnStringLiteral_08() throws java.lang.Exception
java.lang.Exception
public void testOnStringLiteral_09() throws java.lang.Exception
java.lang.Exception
public void testOnStringLiteral_10() throws java.lang.Exception
java.lang.Exception
public void testOnStringLiteral_11() throws java.lang.Exception
java.lang.Exception
public void testOnStringLiteral_12() throws java.lang.Exception
java.lang.Exception
public void testOnStringLiteral_13() throws java.lang.Exception
java.lang.Exception
public void testOnStringLiteral_14() throws java.lang.Exception
java.lang.Exception
public void testOnStringLiteral_15() throws java.lang.Exception
java.lang.Exception
public void testOnStringLiteral_16() throws java.lang.Exception
java.lang.Exception
public void testOnStringLiteral_17() throws java.lang.Exception
java.lang.Exception
public void testOnStringLiteral_18() throws java.lang.Exception
java.lang.Exception
public void testOnStringLiteral_19() throws java.lang.Exception
java.lang.Exception
public void testOnStringLiteral_20() throws java.lang.Exception
java.lang.Exception
public void testOnStringLiteral_21() throws java.lang.Exception
java.lang.Exception
public void testOnStringLiteral_22() throws java.lang.Exception
java.lang.Exception
public void testOnStringLiteral_23() throws java.lang.Exception
java.lang.Exception
public void testOnStringLiteral_24() throws java.lang.Exception
java.lang.Exception
public void testOnStringLiteral_25() throws java.lang.Exception
java.lang.Exception
public void testOnStringLiteral_26() throws java.lang.Exception
java.lang.Exception
public void testOnStringLiteral_27() throws java.lang.Exception
java.lang.Exception
public void testOnStringLiteral_28() throws java.lang.Exception
java.lang.Exception
public void testOnStringLiteral_29() throws java.lang.Exception
java.lang.Exception
public void testOnStringLiteral_30() throws java.lang.Exception
java.lang.Exception
public void testOnStringLiteral_31() throws java.lang.Exception
java.lang.Exception
public void testOnStringLiteral_32() throws java.lang.Exception
java.lang.Exception
public void testOnStringLiteral_33() throws java.lang.Exception
java.lang.Exception
public void testOnStringLiteral_34() throws java.lang.Exception
java.lang.Exception
public void testOnStringLiteral_35() throws java.lang.Exception
java.lang.Exception
public void testOnStringLiteral_36() throws java.lang.Exception
java.lang.Exception
public void testOnStringLiteral_37() throws java.lang.Exception
java.lang.Exception
public void testOnStringLiteral_38() throws java.lang.Exception
java.lang.Exception
public void testOnStringLiteral_39() throws java.lang.Exception
java.lang.Exception
public void testOnStringLiteral_40() throws java.lang.Exception
java.lang.Exception
public void testOnVoidMethod_01() throws java.lang.Exception
java.lang.Exception
public void testAfterBinaryOperation_01() throws java.lang.Exception
java.lang.Exception
public void testAfterBinaryOperation_02() throws java.lang.Exception
java.lang.Exception
public void testAfterBinaryOperation_03() throws java.lang.Exception
java.lang.Exception
public void testAfterBinaryOperation_04() throws java.lang.Exception
java.lang.Exception
public void testAfterBinaryOperation_05() throws java.lang.Exception
java.lang.Exception
public void testAfterBinaryOperation_06() throws java.lang.Exception
java.lang.Exception
public void testAfterBinaryOperation_07() throws java.lang.Exception
java.lang.Exception
public void testAfterBinaryOperation_08() throws java.lang.Exception
java.lang.Exception
public void testAfterBinaryOperation_09() throws java.lang.Exception
java.lang.Exception
public void testAfterBinaryOperation_10() throws java.lang.Exception
java.lang.Exception
public void testAfterBinaryOperation_11() throws java.lang.Exception
java.lang.Exception
public void testStaticFeatures_01() throws java.lang.Exception
java.lang.Exception
public void testStaticFeatures_02() throws java.lang.Exception
java.lang.Exception
public void testNestedTypes_01() throws java.lang.Exception
java.lang.Exception
public void testNull() throws java.lang.Exception
java.lang.Exception
public void testForLoop_01() throws java.lang.Exception
java.lang.Exception
public void testForLoop_02() throws java.lang.Exception
java.lang.Exception
public void testForLoop_03() throws java.lang.Exception
java.lang.Exception
public void testForLoop_04() throws java.lang.Exception
java.lang.Exception
public void testForLoop_05() throws java.lang.Exception
java.lang.Exception
public void testClosure_01() throws java.lang.Exception
java.lang.Exception
public void testClosure_02() throws java.lang.Exception
java.lang.Exception
public void testClosure_03() throws java.lang.Exception
java.lang.Exception
public void testClosure_04() throws java.lang.Exception
java.lang.Exception
public void testCatchParameter_01() throws java.lang.Exception
java.lang.Exception
public void testCatchParameter_02() throws java.lang.Exception
java.lang.Exception
public void testCamelCase_01() throws java.lang.Exception
java.lang.Exception
public void testCamelCase_02() throws java.lang.Exception
java.lang.Exception
public void testCamelCase_03() throws java.lang.Exception
java.lang.Exception
public void testSwitchOnEnum_01() throws java.lang.Exception
java.lang.Exception
public void testSwitchOnEnum_02() throws java.lang.Exception
java.lang.Exception
public void testSwitchOnEnum_03() throws java.lang.Exception
java.lang.Exception
protected final ContentAssistProcessorTestBuilder newBuilder() throws java.lang.Exception
java.lang.Exception
protected java.lang.String getPrefix()
protected java.lang.String getSuffix()