File tree Expand file tree Collapse file tree 1 file changed +7
-2
lines changed
speech/grpc/src/test/java/com/google/cloud/speech/grpc/demos Expand file tree Collapse file tree 1 file changed +7
-2
lines changed Original file line number Diff line number Diff line change @@ -47,12 +47,17 @@ public void verifyBytesInSizeFromLocalFile() throws IOException {
47
47
48
48
@ Test
49
49
public void verifyBytesInSizeFromGoogleStorageFile () throws IOException {
50
- URI uri = URI .create ("gs://cloud-samples-tests/speech/audio.raw" );
50
+ String audioUri = "gs://cloud-samples-tests/speech/audio.raw" ;
51
+
52
+ URI uri = URI .create (audioUri );
51
53
AudioRequest audio = AudioRequestFactory .createRequest (uri );
52
54
53
55
int numBytes = audio .getContent ().toByteArray ().length ;
54
56
55
57
//assert the number of bytes in the audio as 57958
56
- assertEquals (57958 , numBytes );
58
+ assertEquals (0 , numBytes );
59
+
60
+ //assert the uri
61
+ assertEquals (audioUri , audio .getUri ());
57
62
}
58
63
}
You can’t perform that action at this time.
0 commit comments