Skip to content
This repository was archived by the owner on Sep 16, 2023. It is now read-only.

Commit 3272c49

Browse files
authored
fix: Update IT Test Case Results (#976)
Thank you for opening a Pull Request! Before submitting your PR, there are a few things you can do to make sure it goes smoothly: - [ ] Make sure to open an issue as a [bug/issue](https://github.com/googleapis/java-vision/issues/new/choose) before writing your code! That way we can discuss the change, evaluate designs, and agree on the general idea - [ ] Ensure the tests and linter pass - [ ] Code coverage does not decrease (if any source code was changed) - [ ] Appropriate docs were updated (if necessary) Fixes [#968](https://github.com/googleapis/java-vision/issues/968) and [#967](https://github.com/googleapis/java-vision/issues/967) ☕️ If you write sample code, please follow the [samples format]( https://github.com/GoogleCloudPlatform/java-docs-samples/blob/main/SAMPLE_FORMAT.md).
1 parent b0263dc commit 3272c49

File tree

2 files changed

+6
-8
lines changed

2 files changed

+6
-8
lines changed

README.md

+3-3
Original file line numberDiff line numberDiff line change
@@ -50,20 +50,20 @@ If you are using Maven without BOM, add this to your dependencies:
5050
If you are using Gradle 5.x or later, add this to your dependencies:
5151

5252
```Groovy
53-
implementation platform('com.google.cloud:libraries-bom:26.0.0')
53+
implementation platform('com.google.cloud:libraries-bom:26.1.0')
5454
5555
implementation 'com.google.cloud:google-cloud-vision'
5656
```
5757
If you are using Gradle without BOM, add this to your dependencies:
5858

5959
```Groovy
60-
implementation 'com.google.cloud:google-cloud-vision:3.0.1'
60+
implementation 'com.google.cloud:google-cloud-vision:3.1.0'
6161
```
6262

6363
If you are using SBT, add this to your dependencies:
6464

6565
```Scala
66-
libraryDependencies += "com.google.cloud" % "google-cloud-vision" % "3.0.1"
66+
libraryDependencies += "com.google.cloud" % "google-cloud-vision" % "3.1.0"
6767
```
6868

6969
## Authentication

google-cloud-vision/src/test/java/com/google/cloud/vision/it/ITSystemTest.java

+3-5
Original file line numberDiff line numberDiff line change
@@ -473,7 +473,7 @@ public void detectSafeSearchGcsTest() throws IOException {
473473
}
474474

475475
@Test
476-
public void detectWebEntitiesGcsTest() throws IOException {
476+
public void detectWebEntitiesGcsTest() {
477477
ImageSource imgSource =
478478
ImageSource.newBuilder().setGcsImageUri(SAMPLE_BUCKET + "landmark/pofa.jpg").build();
479479
Image img = Image.newBuilder().setSource(imgSource).build();
@@ -492,7 +492,7 @@ public void detectWebEntitiesGcsTest() throws IOException {
492492
actual.add(entity.getDescription());
493493
}
494494
}
495-
assertThat(actual).contains("The Palace Of Fine Arts");
495+
assertThat(actual).contains("Palace of Fine Arts");
496496
}
497497

498498
@Test
@@ -547,14 +547,12 @@ public void detectWebEntitiesIncludeGeoResultsGcsTest() {
547547
imageAnnotatorClient.batchAnnotateImages(ImmutableList.of(request));
548548
List<AnnotateImageResponse> responses = response.getResponsesList();
549549
List<String> actual = new ArrayList<>();
550-
System.out.println("WebEntitiesGeo SIZE");
551-
System.out.println(actual.size());
552550
for (AnnotateImageResponse imgResponse : responses) {
553551
for (WebDetection.WebEntity entity : imgResponse.getWebDetection().getWebEntitiesList()) {
554552
actual.add(entity.getDescription());
555553
}
556554
}
557-
assertThat(actual).contains("The Palace Of Fine Arts");
555+
assertThat(actual).contains("Palace of Fine Arts");
558556
}
559557

560558
@Test

0 commit comments

Comments
 (0)