Skip to content

Commit

Permalink
Change == to equals()
Browse files Browse the repository at this point in the history
  • Loading branch information
alex-iotiq authored and DaGeRe committed Jan 10, 2023
1 parent 615f16e commit 4e5418a
Showing 1 changed file with 6 additions and 6 deletions.
12 changes: 6 additions & 6 deletions src/main/java/de/dagere/peass/ci/MeasureVersionBuilder.java
Original file line number Diff line number Diff line change
Expand Up @@ -451,10 +451,10 @@ private void parameterizeExecutionConfig(final ExecutionConfig executionConfig)
executionConfig.setUseAlternativeBuildfile(useAlternativeBuildfile);
executionConfig.setUseAnbox(useAnbox);
executionConfig.setAndroidManifest(androidManifest);
executionConfig.setAndroidCompileSdkVersion(androidCompileSdkVersion == "" ? null : androidCompileSdkVersion);
executionConfig.setAndroidMinSdkVersion(androidMinSdkVersion == "" ? null : androidMinSdkVersion);
executionConfig.setAndroidTargetSdkVersion(androidTargetSdkVersion == "" ? null : androidTargetSdkVersion);
executionConfig.setAndroidGradleVersion(androidGradleVersion == "" ? null : androidGradleVersion);
executionConfig.setAndroidCompileSdkVersion(androidCompileSdkVersion.equals("") ? null : androidCompileSdkVersion);
executionConfig.setAndroidMinSdkVersion(androidMinSdkVersion.equals("") ? null : androidMinSdkVersion);
executionConfig.setAndroidTargetSdkVersion(androidTargetSdkVersion.equals("") ? null : androidTargetSdkVersion);
executionConfig.setAndroidGradleVersion(androidGradleVersion.equals("") ? null : androidGradleVersion);
executionConfig.setAndroidGradleTasks(IncludeExcludeParser.getStringListSimple(androidGradleTasks));

executionConfig.setRedirectSubprocessOutputToFile(redirectSubprocessOutputToFile);
Expand Down Expand Up @@ -498,13 +498,13 @@ private void parameterizeExecutionConfig(final ExecutionConfig executionConfig)
throw new RuntimeException("ClearMockitoCaches may only be activated if executeBeforeClassInMeasurement is activated!");
}
if (executionConfig.isUseAnbox()) {
if (executionConfig.getTestExecutor() != "de.dagere.peass.execution.gradle.AnboxTestExecutor") {
if (!executionConfig.getTestExecutor().equals("de.dagere.peass.execution.gradle.AnboxTestExecutor")) {
throw new RuntimeException("Emulator needs 'testExecutor' to be set to'de.dagere.peass.execution.gradle.AnboxTestExecutor'!");
}
if (executionConfig.getAndroidGradleTasks().size() == 0) {
throw new RuntimeException("No Gradle install tasks set! Emulator needs Gradle tasks to compile and install the tests on the emulator like 'installDebug;installDebugAndroidTest'");
}
if (executionConfig.getAndroidManifest() == "") {
if (executionConfig.getAndroidManifest().equals("")) {
throw new RuntimeException("No AndroidManifest.xml set! Default is 'app/src/main/AndroidManifest.xml'");
}
}
Expand Down

0 comments on commit 4e5418a

Please sign in to comment.