diff --git a/README.md b/README.md index 35199363b..a18aa250d 100644 --- a/README.md +++ b/README.md @@ -50,20 +50,20 @@ If you are using Maven without BOM, add this to your dependencies: If you are using Gradle 5.x or later, add this to your dependencies: ```Groovy -implementation platform('com.google.cloud:libraries-bom:26.0.0') +implementation platform('com.google.cloud:libraries-bom:26.1.0') implementation 'com.google.cloud:google-cloud-vision' ``` If you are using Gradle without BOM, add this to your dependencies: ```Groovy -implementation 'com.google.cloud:google-cloud-vision:3.0.1' +implementation 'com.google.cloud:google-cloud-vision:3.1.0' ``` If you are using SBT, add this to your dependencies: ```Scala -libraryDependencies += "com.google.cloud" % "google-cloud-vision" % "3.0.1" +libraryDependencies += "com.google.cloud" % "google-cloud-vision" % "3.1.0" ``` ## Authentication diff --git a/google-cloud-vision/src/test/java/com/google/cloud/vision/it/ITSystemTest.java b/google-cloud-vision/src/test/java/com/google/cloud/vision/it/ITSystemTest.java index 9ba1ee404..517fc799a 100644 --- a/google-cloud-vision/src/test/java/com/google/cloud/vision/it/ITSystemTest.java +++ b/google-cloud-vision/src/test/java/com/google/cloud/vision/it/ITSystemTest.java @@ -473,7 +473,7 @@ public void detectSafeSearchGcsTest() throws IOException { } @Test - public void detectWebEntitiesGcsTest() throws IOException { + public void detectWebEntitiesGcsTest() { ImageSource imgSource = ImageSource.newBuilder().setGcsImageUri(SAMPLE_BUCKET + "landmark/pofa.jpg").build(); Image img = Image.newBuilder().setSource(imgSource).build(); @@ -492,7 +492,7 @@ public void detectWebEntitiesGcsTest() throws IOException { actual.add(entity.getDescription()); } } - assertThat(actual).contains("The Palace Of Fine Arts"); + assertThat(actual).contains("Palace of Fine Arts"); } @Test @@ -547,14 +547,12 @@ public void detectWebEntitiesIncludeGeoResultsGcsTest() { imageAnnotatorClient.batchAnnotateImages(ImmutableList.of(request)); List responses = response.getResponsesList(); List actual = new ArrayList<>(); - System.out.println("WebEntitiesGeo SIZE"); - System.out.println(actual.size()); for (AnnotateImageResponse imgResponse : responses) { for (WebDetection.WebEntity entity : imgResponse.getWebDetection().getWebEntitiesList()) { actual.add(entity.getDescription()); } } - assertThat(actual).contains("The Palace Of Fine Arts"); + assertThat(actual).contains("Palace of Fine Arts"); } @Test