Skip to content

Commit c22d639

Browse files
nnegreychingor13
authored andcommitted
samples: Fix tests for backend changes (#1082)
1 parent 33e8784 commit c22d639

File tree

1 file changed

+4
-4
lines changed

1 file changed

+4
-4
lines changed

vision/snippets/src/test/java/com/example/vision/DetectIT.java

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -236,7 +236,7 @@ public void detectWebAnnotations() throws Exception {
236236

237237
// Assert
238238
String got = bout.toString();
239-
assertThat(got).contains("Palace of Fine Arts Theatre");
239+
assertThat(got).contains("Landmark");
240240
assertThat(got).contains("Best guess label: palace of fine arts");
241241
}
242242

@@ -248,7 +248,7 @@ public void detectWebAnnotationsGcs() throws Exception {
248248

249249
// Assert
250250
String got = bout.toString();
251-
assertThat(got).contains("Palace of Fine Arts Theatre");
251+
assertThat(got).contains("Landmark");
252252
assertThat(got).contains("Best guess label: palace of fine arts");
253253
}
254254

@@ -270,7 +270,7 @@ public void testDetectWebEntitiesGcs() throws Exception {
270270
Detect.argsHelper(args, out);
271271

272272
String got = bout.toString();
273-
assertThat(got).contains("Description: Palace of Fine Arts Theatre");
273+
assertThat(got).contains("Description");
274274
}
275275

276276
@Test
@@ -292,7 +292,7 @@ public void testDetectWebEntitiesIncludeGeoResultsGcs() throws Exception {
292292
Detect.argsHelper(args, out);
293293

294294
String got = bout.toString();
295-
assertThat(got).contains("Description: Palace of Fine Arts Theatre");
295+
assertThat(got).contains("Description");
296296
}
297297

298298
@Test

0 commit comments

Comments
 (0)