package com.sap.furcas.ide.editor.contentassist.processor;
import java.util.ArrayList;
import java.util.List;
import org.junit.Before;
import org.junit.BeforeClass;
import org.junit.Test;
public class TestCtsContentAssistProcessorAlternativeSimple extends CtsContentAssistProcessorEditorTestMetamodelTestBase {
@BeforeClass
public static void generateParser() throws Exception {
initMetamodelTestbase("Alternative");
}
@Before
public void initProcessor() throws Exception {
initProcessorForPrefix("Simple");
}
@Test
public void beginningOfFile() {
List<String> expected = new ArrayList<String>();
expected.add("graduate");
expected.add("graduate name expert");
expected.add("undergraduate");
expected.add("undergraduate name beginner");
assertDisplayStrings(expected, 0, 0);
}
@Test
public void inAlternativeAfterFirstKeyword() {
List<String> expected = new ArrayList<String>();
expected.add("name");
assertDisplayStrings(expected, 0, 9);
}
}