Skip to content
This repository has been archived by the owner on Sep 16, 2023. It is now read-only.

Commit

Permalink
test: fix package and imports (#22)
Browse files Browse the repository at this point in the history
  • Loading branch information
Praful Makani authored and chingor13 committed Dec 3, 2019
1 parent 3a6c458 commit abf9875
Show file tree
Hide file tree
Showing 2 changed files with 30 additions and 8 deletions.
Expand Up @@ -14,12 +14,23 @@
* limitations under the License.
*/

package com.google.cloud.texttospeech.v1;
package com.google.cloud.texttospeech.v1.it;

import static org.junit.Assert.assertTrue;

import com.google.cloud.texttospeech.v1.AudioConfig;
import com.google.cloud.texttospeech.v1.AudioEncoding;
import com.google.cloud.texttospeech.v1.ListVoicesRequest;
import com.google.cloud.texttospeech.v1.ListVoicesResponse;
import com.google.cloud.texttospeech.v1.SsmlVoiceGender;
import com.google.cloud.texttospeech.v1.SynthesisInput;
import com.google.cloud.texttospeech.v1.SynthesizeSpeechResponse;
import com.google.cloud.texttospeech.v1.TextToSpeechClient;
import com.google.cloud.texttospeech.v1.Voice;
import com.google.cloud.texttospeech.v1.VoiceSelectionParams;
import com.google.protobuf.ByteString;
import java.io.IOException;
import java.util.List;
import org.junit.Assert;
import org.junit.Test;

public class ITSystemTest {
Expand All @@ -43,7 +54,7 @@ public void synthesizeSpeechTest() throws IOException {

ByteString audioContents = response.getAudioContent();

Assert.assertTrue(!audioContents.isEmpty());
assertTrue(!audioContents.isEmpty());
}
}

Expand All @@ -55,7 +66,7 @@ public void listVoicesTest() throws IOException {
ListVoicesResponse response = textToSpeechClient.listVoices(request);
List<Voice> voices = response.getVoicesList();

Assert.assertTrue(!voices.isEmpty());
assertTrue(!voices.isEmpty());
}
}
}
Expand Up @@ -14,12 +14,23 @@
* limitations under the License.
*/

package com.google.cloud.texttospeech.v1beta1;
package com.google.cloud.texttospeech.v1beta1.it;

import static org.junit.Assert.assertTrue;

import com.google.cloud.texttospeech.v1beta1.AudioConfig;
import com.google.cloud.texttospeech.v1beta1.AudioEncoding;
import com.google.cloud.texttospeech.v1beta1.ListVoicesRequest;
import com.google.cloud.texttospeech.v1beta1.ListVoicesResponse;
import com.google.cloud.texttospeech.v1beta1.SsmlVoiceGender;
import com.google.cloud.texttospeech.v1beta1.SynthesisInput;
import com.google.cloud.texttospeech.v1beta1.SynthesizeSpeechResponse;
import com.google.cloud.texttospeech.v1beta1.TextToSpeechClient;
import com.google.cloud.texttospeech.v1beta1.Voice;
import com.google.cloud.texttospeech.v1beta1.VoiceSelectionParams;
import com.google.protobuf.ByteString;
import java.io.IOException;
import java.util.List;
import org.junit.Assert;
import org.junit.Test;

public class ITSystemTest {
Expand All @@ -43,7 +54,7 @@ public void synthesizeSpeechTest() throws IOException {

ByteString audioContents = response.getAudioContent();

Assert.assertTrue(!audioContents.isEmpty());
assertTrue(!audioContents.isEmpty());
}
}

Expand All @@ -55,7 +66,7 @@ public void listVoicesTest() throws IOException {
ListVoicesResponse response = textToSpeechClient.listVoices(request);
List<Voice> voices = response.getVoicesList();

Assert.assertTrue(!voices.isEmpty());
assertTrue(!voices.isEmpty());
}
}
}

0 comments on commit abf9875

Please sign in to comment.