File tree Expand file tree Collapse file tree 2 files changed +12
-14
lines changed
vision/landmark-detection/src
main/java/com/google/cloud/vision/samples/landmarkdetection
test/java/com/google/cloud/vision/samples/landmarkdetection Expand file tree Collapse file tree 2 files changed +12
-14
lines changed Original file line number Diff line number Diff line change 1717package com .google .cloud .vision .samples .landmarkdetection ;
1818
1919// [START import_libraries]
20+
2021import com .google .api .client .googleapis .auth .oauth2 .GoogleCredential ;
2122import com .google .api .client .googleapis .javanet .GoogleNetHttpTransport ;
2223import com .google .api .client .json .JsonFactory ;
3233import com .google .api .services .vision .v1 .model .Image ;
3334import com .google .api .services .vision .v1 .model .ImageSource ;
3435import com .google .common .collect .ImmutableList ;
35-
3636import java .io .IOException ;
3737import java .security .GeneralSecurityException ;
3838import java .util .List ;
Original file line number Diff line number Diff line change 2020import static org .junit .Assert .fail ;
2121
2222import com .google .api .services .vision .v1 .model .EntityAnnotation ;
23-
23+ import java .io .IOException ;
24+ import java .util .List ;
2425import org .junit .Before ;
2526import org .junit .Test ;
2627import org .junit .runner .RunWith ;
2728import org .junit .runners .JUnit4 ;
2829
29- import java .io .IOException ;
30- import java .util .List ;
31-
3230/**
3331 * Integration (system) tests for {@link DetectLandmark}.
3432 **/
@@ -66,13 +64,13 @@ public class DetectLandmarkIT {
6664 }
6765 }
6866
69- // TODO(lesv): Currently we can access it, need to set better attributes.
70- // @Test public void identifyLandmark_noImage_throwsForbidden() throws Exception {
71- // try {
72- // appUnderTest.identifyLandmark(PRIVATE_LANDMARK_URI, MAX_RESULTS);
73- // fail("Expected IOException");
74- // } catch (IOException expected) {
75- // assertThat(expected.getMessage()).named("IOException message").contains("permission");
76- // }
77- // }
67+ // TODO(lesv): Currently we can access it, need to set better attributes.
68+ // @Test public void identifyLandmark_noImage_throwsForbidden() throws Exception {
69+ // try {
70+ // appUnderTest.identifyLandmark(PRIVATE_LANDMARK_URI, MAX_RESULTS);
71+ // fail("Expected IOException");
72+ // } catch (IOException expected) {
73+ // assertThat(expected.getMessage()).named("IOException message").contains("permission");
74+ // }
75+ // }
7876}
You can’t perform that action at this time.
0 commit comments