| java.lang.Object org.netbeans.test.java.editor.completion.CompletionTest
CompletionTest | public class CompletionTest extends java.lang.Object (Code) | |
Editor module API test: completion/CompletionTest
What it tests:
The purpose of this test is to test Java (and HTML) code completion. This test
is done on some layer between user and API. It uses file and completion
is called on the top of the file, but it is never shown.
How it works:
TestFile is opened, given text is written to it, and code completion is
asked to return response. The type of completion is defined by the type of
the file. Unfortunately, it is not possible to ask completion for response
without opening the file.
Settings:
This test is not complete test, it's only stub, so for concrete test instance
it's necessary to provide text to add and whether the response should be
sorted. No more settings needed, when runned on clean build.
Output:
The output should be completion reponse in human readable form.
Possible reasons of failure:
- An exception when obtaining indent engine (for example if it doesn't exist).
- An exception when writting to indent engine.
- Possibly unrecognized MIME type.
- Indent engine error.
- The file can not be opened. This test must be able to open the file.
The test will fail if it is not able to open the file. In case it starts
opening sequence, but the editor is not opened, it may lock.
author: Jan Lahoda version: 1.0 |
Method Summary | |
public void | test(PrintWriter out, PrintWriter log, String assign, boolean unsorted, File dataDir, String projectName, String testFileName, int line) | public void | test(PrintWriter out, PrintWriter log, String assign, boolean unsorted, File dataDir, String projectName, String testFileName, int line, int queryType) |
CompletionTest | public CompletionTest()(Code) | | Creates new CompletionTest
|
|
|