This repository was archived by the owner on Sep 16, 2023. It is now read-only.
File tree 2 files changed +6
-8
lines changed
google-cloud-vision/src/test/java/com/google/cloud/vision/it
2 files changed +6
-8
lines changed Original file line number Diff line number Diff line change @@ -50,20 +50,20 @@ If you are using Maven without BOM, add this to your dependencies:
50
50
If you are using Gradle 5.x or later, add this to your dependencies:
51
51
52
52
``` Groovy
53
- implementation platform('com.google.cloud:libraries-bom:26.0 .0')
53
+ implementation platform('com.google.cloud:libraries-bom:26.1 .0')
54
54
55
55
implementation 'com.google.cloud:google-cloud-vision'
56
56
```
57
57
If you are using Gradle without BOM, add this to your dependencies:
58
58
59
59
``` Groovy
60
- implementation 'com.google.cloud:google-cloud-vision:3.0.1 '
60
+ implementation 'com.google.cloud:google-cloud-vision:3.1.0 '
61
61
```
62
62
63
63
If you are using SBT, add this to your dependencies:
64
64
65
65
``` Scala
66
- libraryDependencies += " com.google.cloud" % " google-cloud-vision" % " 3.0.1 "
66
+ libraryDependencies += " com.google.cloud" % " google-cloud-vision" % " 3.1.0 "
67
67
```
68
68
69
69
## Authentication
Original file line number Diff line number Diff line change @@ -473,7 +473,7 @@ public void detectSafeSearchGcsTest() throws IOException {
473
473
}
474
474
475
475
@ Test
476
- public void detectWebEntitiesGcsTest () throws IOException {
476
+ public void detectWebEntitiesGcsTest () {
477
477
ImageSource imgSource =
478
478
ImageSource .newBuilder ().setGcsImageUri (SAMPLE_BUCKET + "landmark/pofa.jpg" ).build ();
479
479
Image img = Image .newBuilder ().setSource (imgSource ).build ();
@@ -492,7 +492,7 @@ public void detectWebEntitiesGcsTest() throws IOException {
492
492
actual .add (entity .getDescription ());
493
493
}
494
494
}
495
- assertThat (actual ).contains ("The Palace Of Fine Arts" );
495
+ assertThat (actual ).contains ("Palace of Fine Arts" );
496
496
}
497
497
498
498
@ Test
@@ -547,14 +547,12 @@ public void detectWebEntitiesIncludeGeoResultsGcsTest() {
547
547
imageAnnotatorClient .batchAnnotateImages (ImmutableList .of (request ));
548
548
List <AnnotateImageResponse > responses = response .getResponsesList ();
549
549
List <String > actual = new ArrayList <>();
550
- System .out .println ("WebEntitiesGeo SIZE" );
551
- System .out .println (actual .size ());
552
550
for (AnnotateImageResponse imgResponse : responses ) {
553
551
for (WebDetection .WebEntity entity : imgResponse .getWebDetection ().getWebEntitiesList ()) {
554
552
actual .add (entity .getDescription ());
555
553
}
556
554
}
557
- assertThat (actual ).contains ("The Palace Of Fine Arts" );
555
+ assertThat (actual ).contains ("Palace of Fine Arts" );
558
556
}
559
557
560
558
@ Test
You can’t perform that action at this time.
0 commit comments