Skip to content

Commit f8b4abc

Browse files
authored
Merge branch 'master' into remove-unused-dependency
2 parents 3e21589 + ca6ced5 commit f8b4abc

File tree

8 files changed

+107
-84
lines changed

8 files changed

+107
-84
lines changed

pom.xml

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -35,7 +35,7 @@
3535
</distributionManagement>
3636

3737
<properties>
38-
<jackson.version>2.13.4</jackson.version>
38+
<jackson.version>2.14.2</jackson.version>
3939
<junit.version>4.13.2</junit.version>
4040
<project.build.sourceEncoding>UTF-8</project.build.sourceEncoding>
4141
<maven.compiler.source>1.8</maven.compiler.source>
@@ -47,7 +47,7 @@
4747
<plugin>
4848
<groupId>org.apache.maven.plugins</groupId>
4949
<artifactId>maven-compiler-plugin</artifactId>
50-
<version>3.5.1</version>
50+
<version>3.11.0</version>
5151
<configuration>
5252
<source>1.8</source>
5353
<target>1.8</target>
@@ -69,7 +69,7 @@
6969
<plugin>
7070
<groupId>org.apache.maven.plugins</groupId>
7171
<artifactId>maven-javadoc-plugin</artifactId>
72-
<version>2.10.3</version>
72+
<version>3.5.0</version>
7373
<configuration>
7474
<additionalparam>-Xdoclint:none</additionalparam>
7575
</configuration>
@@ -116,7 +116,7 @@
116116
<dependency>
117117
<groupId>com.google.http-client</groupId>
118118
<artifactId>google-http-client-apache-v2</artifactId>
119-
<version>1.42.2</version>
119+
<version>1.43.0</version>
120120
</dependency>
121121

122122
<dependency>

src/main/java/com/browserstack/appautomate/AppAutomateClient.java

Lines changed: 27 additions & 22 deletions
Original file line numberDiff line numberDiff line change
@@ -26,6 +26,11 @@ public class AppAutomateClient extends BrowserStackClient implements AppAutomate
2626

2727
private static final String BASE_URL = "https://api-cloud.browserstack.com/app-automate";
2828

29+
/**
30+
*
31+
* @param username Browserstack username
32+
* @param accessKey Browserstack accessKey
33+
*/
2934
public AppAutomateClient(String username, String accessKey) {
3035
super(System.getProperty("browserstack.app-automate.api", BASE_URL), username, accessKey);
3136
}
@@ -35,8 +40,8 @@ public AppAutomateClient(String username, String accessKey) {
3540
*
3641
* @param sessionId ID that uniquely identifies a session.
3742
* @return {@link Session} objects containing test session information.
38-
* @throws SessionNotFound
39-
* @throws AppAutomateException
43+
* @throws SessionNotFound session not found error
44+
* @throws AppAutomateException exception for AppAutomate sessions.
4045
*/
4146
@Override
4247
public Session getSession(String sessionId) throws SessionNotFound, AppAutomateException {
@@ -52,9 +57,9 @@ public Session getSession(String sessionId) throws SessionNotFound, AppAutomateE
5257
*
5358
* @param filePath absolute path of app to be uploaded.
5459
* @return AppUploadResponse object containing app upload response details.
55-
* @throws AppAutomateException
56-
* @throws FileNotFoundException
57-
* @throws InvalidFileExtensionException
60+
* @throws AppAutomateException exception for AppAutomate sessions.
61+
* @throws FileNotFoundException file not found at given path
62+
* @throws InvalidFileExtensionException unsupported file extension for app
5863
*/
5964
@Override
6065
public AppUploadResponse uploadApp(String filePath)
@@ -104,7 +109,7 @@ public AppUploadResponse uploadApp(String filePath)
104109
* @param status Return only builds that match the specified build status.
105110
* @param limit Limit results to the specified count.
106111
* @return List of {@link Build} objects.
107-
* @throws AppAutomateException
112+
* @throws AppAutomateException exception for AppAutomate sessions.
108113
*/
109114
@Override
110115
public List<Build> getBuilds(final BuildStatus status, final int limit)
@@ -124,7 +129,7 @@ public List<Build> getBuilds(final BuildStatus status, final int limit)
124129
* </p>
125130
*
126131
* @return List of {@link Build} objects.
127-
* @throws AppAutomateException
132+
* @throws AppAutomateException exception for AppAutomate sessions.
128133
*/
129134
@Override
130135
public List<Build> getBuilds() throws AppAutomateException {
@@ -140,7 +145,7 @@ public List<Build> getBuilds() throws AppAutomateException {
140145
*
141146
* @param limit Limit results to the specified count.
142147
* @return List of {@link Build} objects.
143-
* @throws AppAutomateException
148+
* @throws AppAutomateException exception for AppAutomate sessions.
144149
*/
145150
@Override
146151
public List<Build> getBuilds(final int limit) throws AppAutomateException {
@@ -156,7 +161,7 @@ public List<Build> getBuilds(final int limit) throws AppAutomateException {
156161
*
157162
* @param status Include only builds that match the specified build status.
158163
* @return List of {@link Build} objects.
159-
* @throws AppAutomateException
164+
* @throws AppAutomateException exception for AppAutomate sessions.
160165
*/
161166
@Override
162167
public List<Build> getBuilds(final BuildStatus status) throws AppAutomateException {
@@ -168,8 +173,8 @@ public List<Build> getBuilds(final BuildStatus status) throws AppAutomateExcepti
168173
*
169174
* @param buildId ID that uniquely identifies a build.
170175
* @return List of {@link Build} objects.
171-
* @throws BuildNotFound
172-
* @throws AppAutomateException
176+
* @throws BuildNotFound could not find build with given id
177+
* @throws AppAutomateException exception for AppAutomate sessions.
173178
*/
174179
@Override
175180
public Build getBuild(final String buildId) throws BuildNotFound, AppAutomateException {
@@ -185,8 +190,8 @@ public Build getBuild(final String buildId) throws BuildNotFound, AppAutomateExc
185190
*
186191
* @param buildName - Name of the build to search with
187192
* @return {@link Build} object.
188-
* @throws BuildNotFound
189-
* @throws AppAutomateException
193+
* @throws BuildNotFound could not find build with given id
194+
* @throws AppAutomateException exception for AppAutomate sessions.
190195
*/
191196
@Override
192197
public final Build getBuildByName(@Nonnull final String buildName) throws BuildNotFound, AppAutomateException {
@@ -202,7 +207,7 @@ public final Build getBuildByName(@Nonnull final String buildName) throws BuildN
202207
*
203208
* @param buildId ID that uniquely identifies a build.
204209
* @return true or false based on successful deletion of the build.
205-
* @throws AppAutomateException
210+
* @throws AppAutomateException exception for AppAutomate sessions.
206211
*/
207212
@Override
208213
public boolean deleteBuild(final String buildId) throws AppAutomateException {
@@ -220,8 +225,8 @@ public boolean deleteBuild(final String buildId) throws AppAutomateException {
220225
* @param status Include only builds that match the specified build status.
221226
* @param limit Limit results to the specified count.
222227
* @return List of {@link Session} objects containing test session information.
223-
* @throws BuildNotFound
224-
* @throws AppAutomateException
228+
* @throws BuildNotFound could not find build with given id
229+
* @throws AppAutomateException exception for AppAutomate sessions.
225230
*/
226231
@Override
227232
public List<Session> getSessions(final String buildId, final BuildStatus status, final int limit)
@@ -238,8 +243,8 @@ public List<Session> getSessions(final String buildId, final BuildStatus status,
238243
*
239244
* @param buildId ID that uniquely identifies a build.
240245
* @return List of {@link Session} objects containing test session information.
241-
* @throws BuildNotFound
242-
* @throws AppAutomateException
246+
* @throws BuildNotFound could not find build with given id
247+
* @throws AppAutomateException exception for AppAutomate sessions.
243248
*/
244249
@Override
245250
public List<Session> getSessions(final String buildId)
@@ -253,8 +258,8 @@ public List<Session> getSessions(final String buildId)
253258
* @param buildId ID that uniquely identifies a build.
254259
* @param limit Limit results to the specified count.
255260
* @return List of {@link Session} objects containing test session information.
256-
* @throws BuildNotFound
257-
* @throws AppAutomateException
261+
* @throws BuildNotFound could not find build with given id
262+
* @throws AppAutomateException exception for AppAutomate sessions.
258263
*/
259264
@Override
260265
public List<Session> getSessions(final String buildId, final int limit)
@@ -268,8 +273,8 @@ public List<Session> getSessions(final String buildId, final int limit)
268273
* @param buildId ID that uniquely identifies a build.
269274
* @param status Include only builds that match the specified build status.
270275
* @return List of {@link Session} objects containing test session information.
271-
* @throws BuildNotFound
272-
* @throws AppAutomateException
276+
* @throws BuildNotFound could not find build with given id
277+
* @throws AppAutomateException exception for AppAutomate sessions.
273278
*/
274279
@Override
275280
public List<Session> getSessions(final String buildId, final BuildStatus status)

0 commit comments

Comments
 (0)