File tree Expand file tree Collapse file tree 5 files changed +9
-8
lines changed
examples/java/com/ibm/watson/developer_cloud/speech_to_text/v1
src/test/java/com/ibm/watson/developer_cloud
natural_language_classifier/v1 Expand file tree Collapse file tree 5 files changed +9
-8
lines changed Original file line number Diff line number Diff line change @@ -46,7 +46,7 @@ public class TrascribeWithHttpAndWebSockets {
4646 *
4747 * @return the SSL context
4848 * @throws RuntimeException
49- * if the context can't be initialized
49+ * if the context cannot be initialized
5050 */
5151 private static SSLContext createSSLContext () {
5252 SSLContext sslContext = null ;
@@ -76,7 +76,7 @@ public static void main(String[] args) throws FileNotFoundException {
7676 *
7777 * @return the token
7878 * @throws RuntimeException
79- * if the token can't be created HTTP response status != 200
79+ * if the token cannot be created HTTP response status != 200
8080 */
8181 private String getToken () {
8282 String url = AUTHORIZATION_ENDPOINT + "/v1/token?url=" + HTTP_ENDPOINT ;
Original file line number Diff line number Diff line change 1515 */
1616package com .ibm .watson .developer_cloud .natural_language_classifier .v1 ;
1717
18- import static org .junit .Assert .*;
18+ import static org .junit .Assert .assertEquals ;
19+ import static org .junit .Assert .assertFalse ;
20+ import static org .junit .Assert .assertNotNull ;
1921import static org .mockserver .integration .ClientAndServer .startClientAndServer ;
2022import static org .mockserver .model .HttpRequest .request ;
2123import static org .mockserver .model .HttpResponse .response ;
Original file line number Diff line number Diff line change 1515 */
1616package com .ibm .watson .developer_cloud .tradeoff_analytics .v1 ;
1717
18- import static org .junit .Assert .* ;
18+ import static org .junit .Assert .assertNotNull ;
1919
2020import java .io .InputStream ;
2121
Original file line number Diff line number Diff line change 1515 */
1616package com .ibm .watson .developer_cloud .tradeoff_analytics .v1 ;
1717
18- import static org .junit .Assert .* ;
18+ import static org .junit .Assert .assertNotNull ;
1919
2020import java .io .InputStream ;
2121import java .util .ArrayList ;
Original file line number Diff line number Diff line change 1818
1919import java .io .File ;
2020
21- import org .junit .FixMethodOrder ;
22- import org .junit .runners .MethodSorters ;
2321import org .junit .Assert ;
2422import org .junit .Before ;
23+ import org .junit .FixMethodOrder ;
2524import org .junit .Test ;
25+ import org .junit .runners .MethodSorters ;
2626
2727import com .ibm .watson .developer_cloud .WatsonServiceTest ;
2828import com .ibm .watson .developer_cloud .service .BadRequestException ;
29- import com .ibm .watson .developer_cloud .visual_insights .v1 .VisualInsights ;
3029import com .ibm .watson .developer_cloud .visual_insights .v1 .model .Classifiers ;
3130import com .ibm .watson .developer_cloud .visual_insights .v1 .model .Summary ;
3231
You can’t perform that action at this time.
0 commit comments