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
2 files changed +12
-14
lines changed Original file line number Diff line number Diff line change 17
17
package com .google .cloud .vision .samples .landmarkdetection ;
18
18
19
19
// [START import_libraries]
20
+
20
21
import com .google .api .client .googleapis .auth .oauth2 .GoogleCredential ;
21
22
import com .google .api .client .googleapis .javanet .GoogleNetHttpTransport ;
22
23
import com .google .api .client .json .JsonFactory ;
32
33
import com .google .api .services .vision .v1 .model .Image ;
33
34
import com .google .api .services .vision .v1 .model .ImageSource ;
34
35
import com .google .common .collect .ImmutableList ;
35
-
36
36
import java .io .IOException ;
37
37
import java .security .GeneralSecurityException ;
38
38
import java .util .List ;
Original file line number Diff line number Diff line change 20
20
import static org .junit .Assert .fail ;
21
21
22
22
import com .google .api .services .vision .v1 .model .EntityAnnotation ;
23
-
23
+ import java .io .IOException ;
24
+ import java .util .List ;
24
25
import org .junit .Before ;
25
26
import org .junit .Test ;
26
27
import org .junit .runner .RunWith ;
27
28
import org .junit .runners .JUnit4 ;
28
29
29
- import java .io .IOException ;
30
- import java .util .List ;
31
-
32
30
/**
33
31
* Integration (system) tests for {@link DetectLandmark}.
34
32
**/
@@ -66,13 +64,13 @@ public class DetectLandmarkIT {
66
64
}
67
65
}
68
66
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
+ // }
78
76
}
You can’t perform that action at this time.
0 commit comments