-
Notifications
You must be signed in to change notification settings - Fork 153
Test Plan
- Windows
- macOS
- Linux
-
After the language server is initialized, check the status bar icon is π, and the problems view has two errors.
-
Select Foo.java file, invoke
classcode snippet to generate code as below and the problem view error number is reduced to 1.package app; /** * Foo */ public class Foo { }
-
Click the remain error in the diagnostic window, the code action icon should pop up both on the problems view and the side bar of the editor. Select the code action of
Create method 'call()' in type 'Foo'to fix the error. -
Save all the files, and invoke VSCode command
Java: Force Java compilation. There should be no errors. -
Typing the following file of code into the
App.mainmethod, the completion should work for File and there should be two errors in the problem view.File f = new File("demo.txt");
-
Organize Imports:
- Invoke the context menu command
Source Action...==>Organize Imports, there should be only one warning remains in the problem view. - You also can type F1 ->
Organize Imports, it should have the same result.
- Invoke the context menu command
- Open https://github.com/redhat-developer/vscode-java/tree/master/test/resources/projects/maven/salut.
- After the language server is initialized, check the status bar icon is π, and the problems views has several warnings but without errors.
- Editing experience is correctly working including diagnostics, code completion and code actions.
- Open https://github.com/redhat-developer/vscode-java/tree/master/test/resources/projects/maven/multimodule.
- After the language server is initialized, check the status bar icon is π, and there should be no errors/warning in the problems view.
- Open
Foo.javafile, make sure the editing experience is correctly working including diagnostics, code completion and code action on both modules.- module1\Foo.java
- module2\Foo.java
- Open https://github.com/redhat-developer/vscode-java/tree/master/test/resources/projects/gradle/simple-gradle
- After the language server is initialized, check the status bar icon is π, and there should be no errors/problems in the problems view.
- Open
Foo.javafile, make sure the editing experience is correctly working including diagnostics, code completion and code action
- Install JDK 11, and change the VSCode java.home to the JDK 11 path.
- Open https://github.com/redhat-developer/vscode-java/tree/master/test/resources/projects/maven/salut-java11.
- After the language server is initialized, check the status bar icon is π, and there should be no errors/problems in the problems view.
- Open
Bar.java, make sure the editing experience is correctly working including diagnostics, code completion and code action
- Install JDK 11.
- Open https://github.com/redhat-developer/vscode-java/tree/master/test/resources/projects/gradle/gradle-11.
- After the language server is initialized, check the status bar icon is π, and there should be no errors/problems in the problems view.
- Open
Foo.javafile, make sure the editing experience is correctly working including diagnostics, code completion and code action.
- Open/Create an empty folder
- Add a new Java file, name it Test.java. Check the language server is initialized, and the status bar icon is π after that.
- Type code snippet
classto generate the class body, typemainto generate the main methods. - In the Test.java file, make sure the editing experience is correctly working including diagnostics, code completion and code action.
- Make sure auto completion works well.
- Can start debug sessions for the following projects:
- Maven
- Gradle
- Standalone (invisible)
- Multi-Root
- Encoding
Open the project: https://github.com/junit-team/junit5-samples/tree/master/junit5-migration-maven
- The test explorer can show test case.
- Can run the test cases by clicking
Run Allin test explorer - Open a Java test file, the Code Lens could show above each test cases
- Can run the test cases by clicking the
Run TestCode Lens
- The feature:
Resovle unknown typeworks well
- Explorer can show correctly
- Can manage the dependencies for the standalone (invisible) project