Skip to content

Latest commit

 

History

History
42 lines (30 loc) · 1.16 KB

File metadata and controls

42 lines (30 loc) · 1.16 KB
title
3. Completion Test

In this test we will check if code completion, implemented in the Reference Contributor section of the Custom Language Support Tutorial works as we expect.

3.1. Define test data

Create a file DefaultTestData.simple.

# You are reading the ".properties" entry.
! The exclamation mark can also mark text as comments.
website = http://en.wikipedia.org/

language = English
# The backslash below tells the application to continue reading
# the value onto the next line.
message = Welcome to \
          Wikipedia!
# Add spaces to the key
key\ with\ spaces = This is the value that could be looked up with the key "key with spaces".
# Unicode
tab : \u0009

Create one more file CompleteTestData.java.

{% include /code_samples/simple_language_plugin/src/test/resources/CompleteTestData.java %}

3.2. Define a test

{% include /code_samples/simple_language_plugin/src/test/java/com/intellij/sdk/language/SimpleCodeInsightTest.java %}

3.3. Run the test

Run the test and make sure it's green.