Skip to content

Commit 3ea841e

Browse files
committed
Resolve comments in flutter#8487
1 parent 2494c6c commit 3ea841e

File tree

5 files changed

+17
-17
lines changed

5 files changed

+17
-17
lines changed

build.gradle.kts

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -314,7 +314,6 @@ tasks {
314314
systemProperty(
315315
"allure.results.directory", project.layout.buildDirectory.get().asFile.absolutePath + "/allure-results"
316316
)
317-
// systemProperty("uiPlatformBuildVersion", providers.gradleProperty("uiPlatformBuildVersion").get())
318317

319318
// Disable IntelliJ test listener that conflicts with standard JUnit
320319
systemProperty("idea.test.cyclic.buffer.size", "0")

src/io/flutter/module/FlutterGeneratorPeer.java

Lines changed: 4 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -13,8 +13,8 @@
1313
import com.intellij.openapi.ui.Messages;
1414
import com.intellij.openapi.ui.TextComponentAccessor;
1515
import com.intellij.openapi.ui.ValidationInfo;
16-
import com.intellij.openapi.util.text.StringUtil;
1716
import com.intellij.openapi.util.io.FileUtilRt;
17+
import com.intellij.openapi.util.text.StringUtil;
1818
import com.intellij.ui.ComboboxWithBrowseButton;
1919
import com.intellij.ui.DocumentAdapter;
2020
import com.intellij.ui.components.JBLabel;
@@ -23,14 +23,13 @@
2323
import io.flutter.module.settings.SettingsHelpForm;
2424
import io.flutter.sdk.FlutterSdk;
2525
import io.flutter.sdk.FlutterSdkUtil;
26+
import org.jetbrains.annotations.NotNull;
27+
import org.jetbrains.annotations.Nullable;
2628

2729
import javax.swing.*;
2830
import javax.swing.event.DocumentEvent;
2931
import javax.swing.text.JTextComponent;
3032

31-
import org.jetbrains.annotations.NotNull;
32-
import org.jetbrains.annotations.Nullable;
33-
3433
public class FlutterGeneratorPeer {
3534
private final WizardContext myContext;
3635
private JPanel myMainPanel;
@@ -66,7 +65,7 @@ private void init() {
6665
// a running Application which is the case for users and bots on the initial startup
6766
// experience.
6867
final String flutterSDKPath = System.getenv("FLUTTER_SDK");
69-
if (flutterSDKPath != null && !flutterSDKPath.isEmpty()) {
68+
if (StringUtil.isNotEmpty(flutterSDKPath)) {
7069
mySdkPathComboWithBrowse.getComboBox().setSelectedItem(flutterSDKPath);
7170
}
7271
}

testSrc/integration/io/flutter/integrationTest/NewProjectUITest.kt

Lines changed: 8 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -14,7 +14,13 @@ import com.intellij.ide.starter.driver.engine.BackgroundRun
1414
import com.intellij.ide.starter.driver.engine.runIdeWithDriver
1515
import com.intellij.ide.starter.junit5.config.UseLatestDownloadedIdeBuild
1616
import io.flutter.integrationTest.utils.newProjectWelcomeScreen
17-
import org.junit.jupiter.api.*
17+
import org.junit.jupiter.api.AfterAll
18+
import org.junit.jupiter.api.AfterEach
19+
import org.junit.jupiter.api.BeforeEach
20+
import org.junit.jupiter.api.Disabled
21+
import org.junit.jupiter.api.Tag
22+
import org.junit.jupiter.api.Test
23+
import org.junit.jupiter.api.TestInstance
1824
import org.junit.jupiter.api.extension.ExtendWith
1925
import java.nio.file.Paths
2026
import kotlin.time.Duration.Companion.minutes
@@ -25,7 +31,6 @@ import kotlin.time.Duration.Companion.minutes
2531
class MyProjectUITest {
2632

2733
companion object {
28-
// Generate a unique folder name for the test project to avoid conflicts
2934
var testProjectName = ""
3035

3136
/**
@@ -57,6 +62,7 @@ class MyProjectUITest {
5762
*/
5863
@BeforeEach
5964
fun initContext() {
65+
// Generate a unique folder name for the test project to avoid conflicts
6066
testProjectName = "my_test_project_${System.currentTimeMillis()}"
6167
}
6268

testSrc/integration/io/flutter/integrationTest/Setup.kt

Lines changed: 4 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -57,8 +57,7 @@ class Setup {
5757
fun setupTestContextIC(hyphenateWithClass: String, projectInfoSpec: ProjectInfoSpec = NoProject): IDETestContext {
5858
return setupTestContext(
5959
"", IdeProductProvider.IC.copy(
60-
// Intellij Platform UI Platform Build Version -> https://plugins.jetbrains.com/docs/intellij/integration-tests-ui.html
61-
// buildNumber = "243.26574.91", //System.getProperty("uiPlatformBuildVersion"),
60+
// TODO(team) should the version be fetched from some setting, i.e. System.getProperty("uiPlatformBuildVersion")
6261
buildNumber = "252.23892.409",
6362
buildType = BuildType.RELEASE.type
6463
), projectInfoSpec
@@ -68,8 +67,7 @@ class Setup {
6867
fun setupTestContextUE(hyphenateWithClass: String, projectInfoSpec: ProjectInfoSpec = NoProject): IDETestContext {
6968
return setupTestContext(
7069
"", IdeProductProvider.IU.copy(
71-
// Intellij Platform UI Platform Build Version -> https://plugins.jetbrains.com/docs/intellij/integration-tests-ui.html
72-
// buildNumber = "243.26574.91", //System.getProperty("uiPlatformBuildVersion"),
70+
// TODO(team) should the version be fetched from some setting, i.e. System.getProperty("uiPlatformBuildVersion")
7371
buildNumber = "252.23892.409",
7472
buildType = BuildType.RELEASE.type
7573
), projectInfoSpec
@@ -79,8 +77,7 @@ class Setup {
7977
fun setupTestContextWS(hyphenateWithClass: String, projectInfoSpec: ProjectInfoSpec = NoProject): IDETestContext {
8078
return setupTestContext(
8179
"", IdeProductProvider.WS.copy(
82-
// Intellij Platform UI Platform Build Version -> https://plugins.jetbrains.com/docs/intellij/integration-tests-ui.html
83-
// buildNumber = "243.26574.91", //System.getProperty("uiPlatformBuildVersion"),
80+
// TODO(team) should the version be fetched from some setting, i.e. System.getProperty("uiPlatformBuildVersion")
8481
buildNumber = "252.23892.411",
8582
buildType = BuildType.RELEASE.type
8683
), projectInfoSpec
@@ -167,5 +164,4 @@ class Setup {
167164
}.addProjectToTrustedLocations()
168165
}
169166
}
170-
171-
}
167+
}

testSrc/integration/io/flutter/integrationTest/utils/NewProject.kt

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -100,4 +100,4 @@ fun newProjectWelcomeScreen(run: BackgroundRun, testProjectName: String) {
100100
}
101101
}
102102
}
103-
}
103+
}

0 commit comments

Comments
 (0)