| org.netbeans.test.syntax.CompletionTest
All known Subclasses: org.netbeans.test.syntax.IndentationTest, org.netbeans.test.syntax.AutoCompletionTest, org.netbeans.test.syntax.J2EETest, org.netbeans.test.syntax.ReformatingTest, org.netbeans.test.syntax.CssCompletionTest,
CompletionTest | public class CompletionTest extends JellyTestCase (Code) | | Test goes throught files and looking for CC Test Steps.
The CC Test Steps are writen in document body as three lines:
JSP comments which start with '<%--CC' prefix, where:
- first line contains ccPrefix with optional '|' character which represents
cursor position
- second line contains ccChoice item which will be used for CC substitution
- third line contains ccResult
For example:
<%--CC
<%@ taglib |
uri
<%@ taglib uri=""
--%>
does:
- inserts '<%@ taglib ' string into new line
- invokes CC
- dumps Completion Query Result
- choses "uri" item from the query result and substitute it
- checks if subtituted line is: '<%@ taglib uri=""'
- undoes all changes
author: ms113234 |
Inner Class :protected static class TestStep | |
Method Summary | |
protected void | assertInstanceOf(Class expectedType, Object actual) | protected boolean | dumpCompletion(CompletionJListOperator comp, TestStep step, JEditorPane editor, boolean printDirectly) | protected String | dumpToken(TokenItem tokenItem) | protected void | ending() | protected void | exec(JEditorPane editor, TestStep step) | protected Method | findMethod(Class clazz, String name, Class[] paramTypes) | public static void | main(java.lang.String[] args) | public static BaseDocument | openFile(FileObject fileObject) | protected void | run(JEditorPane editor, List<TestStep> steps) | protected static void | runInAWT(Runnable r) | public void | runTest() | public void | setUp() | public static Test | suite() | protected void | test(FileObject fileObj, String stepStart, String stepEnd, boolean ignoreComment) | protected void | waitTypingFinished(BaseDocument doc) |
JSP_EXTS | final protected static List JSP_EXTS(Code) | | |
XML_EXTS | final protected static List XML_EXTS(Code) | | |
debug | protected boolean debug(Code) | | |
testFileObj | protected FileObject testFileObj(Code) | | |
CompletionTest | public CompletionTest(String name, FileObject testFileObj)(Code) | | Need to be defined because of JUnit
|
assertInstanceOf | protected void assertInstanceOf(Class expectedType, Object actual)(Code) | | |
dumpCompletion | protected boolean dumpCompletion(CompletionJListOperator comp, TestStep step, JEditorPane editor, boolean printDirectly) throws Exception(Code) | | Parameters: printDirectly - if to print directly whether the selected code completion item was found throws: java.lang.Exception - |
dumpToken | protected String dumpToken(TokenItem tokenItem)(Code) | | |
openFile | public static BaseDocument openFile(FileObject fileObject) throws Exception(Code) | | |
setUp | public void setUp()(Code) | | |
suite | public static Test suite()(Code) | | |
waitTypingFinished | protected void waitTypingFinished(BaseDocument doc)(Code) | | |
|
|