Skip to content

Commit 726e4f2

Browse files
committed
Apply spotless formatter
1 parent 1e44951 commit 726e4f2

File tree

7 files changed

+37
-40
lines changed

7 files changed

+37
-40
lines changed

src/main/java/io/github/lambdatest/gradle/AppUploader.java

+6-5
Original file line numberDiff line numberDiff line change
@@ -6,10 +6,11 @@
66
import org.apache.logging.log4j.Logger;
77

88
/**
9-
* Handles the asynchronous upload of application files to the LambdaTest platform.
10-
* This class manages the upload process and returns the application ID for test execution.
9+
* Handles the asynchronous upload of application files to the LambdaTest platform. This class
10+
* manages the upload process and returns the application ID for test execution.
1111
*
12-
* <p>Uses {@link UploaderUtil#uploadAndGetId(String, String, String)} for the actual file upload process.</p>
12+
* <p>Uses {@link UploaderUtil#uploadAndGetId(String, String, String)} for the actual file upload
13+
* process.
1314
*/
1415
public class AppUploader {
1516

@@ -40,8 +41,8 @@ public AppUploader(String username, String accessKey, String appFilePath) {
4041
* Uploads the application file asynchronously to LambdaTest.
4142
*
4243
* @return A CompletableFuture that resolves to the uploaded application's ID
43-
* @implNote Uses CompletableFuture to perform the upload asynchronously, allowing
44-
* parallel processing of other tasks
44+
* @implNote Uses CompletableFuture to perform the upload asynchronously, allowing parallel
45+
* processing of other tasks
4546
*/
4647
public CompletableFuture<String> uploadAppAsync() {
4748
return CompletableFuture.supplyAsync(

src/main/java/io/github/lambdatest/gradle/Constants.java

+3-5
Original file line numberDiff line numberDiff line change
@@ -1,13 +1,11 @@
11
package io.github.lambdatest.gradle;
22

33
/**
4-
* Constants used throughout the LambdaTest Gradle plugin.
5-
* This utility class provides centralized access to API endpoints and other constant values.
4+
* Constants used throughout the LambdaTest Gradle plugin. This utility class provides centralized
5+
* access to API endpoints and other constant values.
66
*/
77
public class Constants {
8-
/**
9-
* Private constructor to prevent instantiation of this utility class.
10-
*/
8+
/** Private constructor to prevent instantiation of this utility class. */
119
private Constants() {
1210
throw new UnsupportedOperationException(
1311
"This is a utility class and cannot be instantiated");

src/main/java/io/github/lambdatest/gradle/LambdaTestPlugin.java

+2-2
Original file line numberDiff line numberDiff line change
@@ -4,8 +4,8 @@
44
import org.gradle.api.Project;
55

66
/**
7-
* The main plugin class that integrates LambdaTest functionality into the Gradle build system.
8-
* This plugin adds the 'runLambdaTest' task to the project's task container.
7+
* The main plugin class that integrates LambdaTest functionality into the Gradle build system. This
8+
* plugin adds the 'runLambdaTest' task to the project's task container.
99
*/
1010
public class LambdaTestPlugin implements Plugin<Project> {
1111

src/main/java/io/github/lambdatest/gradle/LambdaTestTask.java

+9-9
Original file line numberDiff line numberDiff line change
@@ -12,11 +12,12 @@
1212
import org.gradle.api.tasks.TaskAction;
1313

1414
/**
15-
* Main task class for the LambdaTest Gradle plugin that handles test execution on the LambdaTest platform.
16-
* This task manages the upload of applications and test suites, followed by test execution with specified configurations.
15+
* Main task class for the LambdaTest Gradle plugin that handles test execution on the LambdaTest
16+
* platform. This task manages the upload of applications and test suites, followed by test
17+
* execution with specified configurations.
1718
*
18-
* <p>This task coordinates between {@link AppUploader}, {@link TestSuiteUploader}, and {@link TestExecutor}
19-
* to manage the complete test execution lifecycle.</p>
19+
* <p>This task coordinates between {@link AppUploader}, {@link TestSuiteUploader}, and {@link
20+
* TestExecutor} to manage the complete test execution lifecycle.
2021
*/
2122
public class LambdaTestTask extends DefaultTask {
2223

@@ -49,11 +50,10 @@ public class LambdaTestTask extends DefaultTask {
4950
* Executes the LambdaTest task, which includes uploading the application and test suite,
5051
* followed by test execution on the LambdaTest platform.
5152
*
52-
* @implNote This method handles the task execution in three main phases:
53-
* 1. Asynchronous upload of the application using {@link AppUploader#uploadAppAsync()}
54-
* 2. Asynchronous upload of the test suite using {@link TestSuiteUploader#uploadTestSuiteAsync()}
55-
* 3. Test execution with {@link TestExecutor#executeTests(Map)}
56-
*
53+
* @implNote This method handles the task execution in three main phases: 1. Asynchronous upload
54+
* of the application using {@link AppUploader#uploadAppAsync()} 2. Asynchronous upload of
55+
* the test suite using {@link TestSuiteUploader#uploadTestSuiteAsync()} 3. Test execution
56+
* with {@link TestExecutor#executeTests(Map)}
5757
* @throws RuntimeException if any upload or test execution fails
5858
*/
5959
@TaskAction

src/main/java/io/github/lambdatest/gradle/TestExecutor.java

+6-6
Original file line numberDiff line numberDiff line change
@@ -10,10 +10,10 @@
1010
import org.apache.logging.log4j.Logger;
1111

1212
/**
13-
* Manages the execution of tests on the LambdaTest platform.
14-
* This class handles the test execution configuration and communication with the LambdaTest API.
13+
* Manages the execution of tests on the LambdaTest platform. This class handles the test execution
14+
* configuration and communication with the LambdaTest API.
1515
*
16-
* <p>Uses endpoints defined in {@link Constants} for API communication.</p>
16+
* <p>Uses endpoints defined in {@link Constants} for API communication.
1717
*/
1818
public class TestExecutor {
1919
private static final Logger logger = LogManager.getLogger(TestExecutor.class);
@@ -55,9 +55,9 @@ public TestExecutor(
5555
*
5656
* @param params Map of additional test execution parameters
5757
* @throws IOException if there's an error in communication with the LambdaTest API
58-
* @implNote This method constructs the test capabilities and sends them to either
59-
* {@link Constants#BUILD_URL} or {@link Constants#FLUTTER_BUILD_URL}
60-
* based on whether it's a Flutter or standard application
58+
* @implNote This method constructs the test capabilities and sends them to either {@link
59+
* Constants#BUILD_URL} or {@link Constants#FLUTTER_BUILD_URL} based on whether it's a
60+
* Flutter or standard application
6161
*/
6262
public void executeTests(Map<String, String> params) throws IOException {
6363
try {

src/main/java/io/github/lambdatest/gradle/TestSuiteUploader.java

+4-4
Original file line numberDiff line numberDiff line change
@@ -6,8 +6,8 @@
66
import org.apache.logging.log4j.Logger;
77

88
/**
9-
* Handles the asynchronous upload of test suite files to the LambdaTest platform.
10-
* This class manages the upload process and returns the test suite ID for test execution.
9+
* Handles the asynchronous upload of test suite files to the LambdaTest platform. This class
10+
* manages the upload process and returns the test suite ID for test execution.
1111
*/
1212
public class TestSuiteUploader {
1313

@@ -34,8 +34,8 @@ public TestSuiteUploader(String username, String accessKey, String testSuiteFile
3434
* Uploads the test suite file asynchronously to LambdaTest.
3535
*
3636
* @return A CompletableFuture that resolves to the uploaded test suite's ID
37-
* @implNote Uses CompletableFuture to perform the upload asynchronously, allowing
38-
* parallel processing of other tasks
37+
* @implNote Uses CompletableFuture to perform the upload asynchronously, allowing parallel
38+
* processing of other tasks
3939
*/
4040
public CompletableFuture<String> uploadTestSuiteAsync() {
4141
return CompletableFuture.supplyAsync(

src/main/java/io/github/lambdatest/gradle/UploaderUtil.java

+7-9
Original file line numberDiff line numberDiff line change
@@ -13,16 +13,14 @@
1313
import okhttp3.Response;
1414

1515
/**
16-
* Utility class providing common upload functionality for the LambdaTest Gradle plugin.
17-
* This class handles the actual file upload process and response parsing.
16+
* Utility class providing common upload functionality for the LambdaTest Gradle plugin. This class
17+
* handles the actual file upload process and response parsing.
1818
*
19-
* <p>This utility is used by both {@link AppUploader} and {@link TestSuiteUploader}
20-
* to handle file uploads to the LambdaTest platform.</p>
19+
* <p>This utility is used by both {@link AppUploader} and {@link TestSuiteUploader} to handle file
20+
* uploads to the LambdaTest platform.
2121
*/
2222
public final class UploaderUtil {
23-
/**
24-
* Private constructor to prevent instantiation of this utility class.
25-
*/
23+
/** Private constructor to prevent instantiation of this utility class. */
2624
private UploaderUtil() {
2725
throw new UnsupportedOperationException(
2826
"This is a utility class and cannot be instantiated");
@@ -36,8 +34,8 @@ private UploaderUtil() {
3634
* @param filePath The path to the file to be uploaded
3735
* @return The ID of the uploaded file
3836
* @throws IOException if there's an error during file upload or response parsing
39-
* @implNote This method sends the file to {@link Constants#API_URL} and handles
40-
* the multipart form data construction and response parsing
37+
* @implNote This method sends the file to {@link Constants#API_URL} and handles the multipart
38+
* form data construction and response parsing
4139
*/
4240
public static String uploadAndGetId(String username, String accessKey, String filePath)
4341
throws IOException {

0 commit comments

Comments
 (0)