[Java] Refactor tests after using more options from VMOptionsSevice in JavaShellCommandSpecsProvider

IDEA-359564

GitOrigin-RevId: d2bd0584ffe414aa8c11ead3cf5eefad138349d1
This commit is contained in:
Georgii Ustinov
2024-09-26 20:08:52 +03:00
committed by intellij-monorepo-bot
parent 44e3345c64
commit ed565f05a1

View File

@@ -24,8 +24,9 @@ class JavaShellCommandSpecsProviderTest : BasePlatformTestCase() {
val fixture = ShellCompletionTestFixture.builder(project).mockShellCommandResults { _ ->
return@mockShellCommandResults ShellCommandResult.create("", exitCode = 1)
}.build()
assertSameElements(fixture.getCompletionNames(), listOf("-?", "-help", "-h", "-jar", "-D", "-version", "-classpath", "-cp", "-showversion",
"-dsa", "-enablesystemassertions", "-esa", "-disablesystemassertions", "-ea", "-enableassertions", "-da", "-disableassertions", "-agentlib", "-agentpath", "-javaagent"))
assertSameElements(fixture.getCompletionNames(), listOf("-ea", "-enableassertions", "-da", "-disableassertions", "-esa", "-enablesystemassertions",
"-dsa", "-disablesystemassertions", "-agentpath:", "-agentlib:", "-javaagent:",
"-D", "-XX:", "-?", "-help", "-h", "-jar", "-version", "-classpath", "-cp", "-showversion"))
}
@Test