GV

GeezerVison

The World Wide Web, restored to 800 pixels of glory.

Home|About|Gaming cabinet|Archives|How it works|Starter sites

On this site

  • Sign in
  • ActionsCI/CD and automation
  • CodespacesCloud development environments
  • All Features
  • Documentation
  • Training
  • Certifications
  • Build with Copilot
  • Customize Copilot
  • Integrations
  • Trending repos
  • GitHub Sponsors
  • Developer articles
  • Enterprises

This view

  • Original page
  • New address

GeezerVison is showing github.com — fix the gradle check errors · semtle/java-sdk@2f89210

File tree

Expand file treeCollapse file tree
Open diff view settings
Filter options
  • README.md
  • alchemy
    • build.gradle
  • discovery/src/test/java/com/ibm/watson/developer_cloud/discovery/v1
    • DiscoveryServiceIT.java
    • DiscoveryServiceTest.java
  • natural-language-classifier/src/test/java/com/ibm/watson/developer_cloud/natural_language_classifier/v1
    • NaturalLanguageClassifierIT.java
  • visual-recognition/src
    • main/java/com/ibm/watson/developer_cloud/visual_recognition/v3
      • VisualRecognition.java
    • test/java/com/ibm/watson/developer_cloud/visual_recognition/v3
      • VisualRecognitionIT.java
      • VisualRecognitionTest.java
Expand file treeCollapse file tree
Open diff view settings
Collapse file

‎README.md‎

Copy file name to clipboardExpand all lines: README.md
+1Lines changed: 1 addition & 0 deletions
  • Display the source diff
  • Display the rich diff
Original file line numberDiff line numberDiff line change
@@ -257,6 +257,7 @@ Gradle:
257257
$ cd java-sdk
258258
$ gradle jar # build jar file (build/libs/watson-developer-cloud-3.5.3.jar)
259259
$ gradle test # run tests
260+
$ gradle check # performs quality checks on source files and generates reports
260261
```
261262

262263

Collapse file

‎alchemy/build.gradle‎

Copy file name to clipboardExpand all lines: alchemy/build.gradle
+1Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -11,6 +11,7 @@ apply plugin: 'java'
1111
apply plugin: 'ru.vyarus.animalsniffer'
1212
apply plugin: 'maven'
1313
apply plugin: 'checkstyle'
14+
apply plugin: 'eclipse'
1415

1516
version = '3.5.4-SNAPSHOT'
1617
group = 'com.ibm.watson.developercloud'
Collapse file

‎discovery/src/test/java/com/ibm/watson/developer_cloud/discovery/v1/DiscoveryServiceIT.java‎

Copy file name to clipboardExpand all lines: discovery/src/test/java/com/ibm/watson/developer_cloud/discovery/v1/DiscoveryServiceIT.java
+755-748Lines changed: 755 additions & 748 deletions
Large diffs are not rendered by default.
Collapse file

‎discovery/src/test/java/com/ibm/watson/developer_cloud/discovery/v1/DiscoveryServiceTest.java‎

Copy file name to clipboardExpand all lines: discovery/src/test/java/com/ibm/watson/developer_cloud/discovery/v1/DiscoveryServiceTest.java
+167-150Lines changed: 167 additions & 150 deletions
Large diffs are not rendered by default.
Collapse file

‎natural-language-classifier/src/test/java/com/ibm/watson/developer_cloud/natural_language_classifier/v1/NaturalLanguageClassifierIT.java‎

Copy file name to clipboardExpand all lines: natural-language-classifier/src/test/java/com/ibm/watson/developer_cloud/natural_language_classifier/v1/NaturalLanguageClassifierIT.java
+5-5Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -74,7 +74,7 @@ public void setUp() throws Exception {
7474
* @throws Exception the exception
7575
*/
7676
@Test
77-
public void Acreate() throws Exception {
77+
public void aCreate() throws Exception {
7878
final File trainingData = new File("src/test/resources/natural_language_classifier/weather_data_train.csv");
7979
final String classifierName = "devexp-available";
8080

@@ -94,7 +94,7 @@ public void Acreate() throws Exception {
9494
* Test get classifier.
9595
*/
9696
@Test
97-
public void BgetClassifier() {
97+
public void bGetClassifier() {
9898
final Classifier classifier;
9999

100100
try {
@@ -113,7 +113,7 @@ public void BgetClassifier() {
113113
* Test get classifiers.
114114
*/
115115
@Test
116-
public void CgetClassifiers() {
116+
public void cGetClassifiers() {
117117
final Classifiers classifiers = service.getClassifiers().execute();
118118
assertNotNull(classifiers);
119119

@@ -126,7 +126,7 @@ public void CgetClassifiers() {
126126
* Test classify. Use the pre created classifier to avoid waiting for availability
127127
*/
128128
@Test
129-
public void Dclassify() {
129+
public void dClassify() {
130130
Classification classification = null;
131131

132132
try {
@@ -145,7 +145,7 @@ public void Dclassify() {
145145
* Test delete classifier. Do not delete the pre created classifier. We need it for classify
146146
*/
147147
@Test
148-
public void Edelete() {
148+
public void eDelete() {
149149
List<Classifier> classifiers = service.getClassifiers().execute().getClassifiers();
150150

151151
for (Classifier classifier : classifiers) {
Collapse file

‎visual-recognition/src/main/java/com/ibm/watson/developer_cloud/visual_recognition/v3/VisualRecognition.java‎

Copy file name to clipboardExpand all lines: visual-recognition/src/main/java/com/ibm/watson/developer_cloud/visual_recognition/v3/VisualRecognition.java
+1-1Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -571,7 +571,7 @@ public ServiceCall<Collection> createCollection(String name) {
571571
.setType(MultipartBody.FORM)
572572
.addFormDataPart(PARAM_NAME, name)
573573
.build();
574-
574+
575575
RequestBuilder requestBuilder = RequestBuilder.post(PATH_COLLECTIONS);
576576
requestBuilder.body(body);
577577
requestBuilder.query(VERSION, versionDate);
Collapse file

‎visual-recognition/src/test/java/com/ibm/watson/developer_cloud/visual_recognition/v3/VisualRecognitionIT.java‎

Copy file name to clipboardExpand all lines: visual-recognition/src/test/java/com/ibm/watson/developer_cloud/visual_recognition/v3/VisualRecognitionIT.java
+1-1Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -323,7 +323,7 @@ public void testCollections() throws InterruptedException {
323323
File fileImage = new File(SINGLE_IMAGE_FILE);
324324
FindSimilarImagesOptions findImageOptions = new FindSimilarImagesOptions.Builder()
325325
.collectionId(collection.getId())
326-
.image(fileImage )
326+
.image(fileImage)
327327
.build();
328328

329329
List<CollectionImage> similarImages = service.findSimilarImages(findImageOptions).execute();
Collapse file

‎visual-recognition/src/test/java/com/ibm/watson/developer_cloud/visual_recognition/v3/VisualRecognitionTest.java‎

Copy file name to clipboardExpand all lines: visual-recognition/src/test/java/com/ibm/watson/developer_cloud/visual_recognition/v3/VisualRecognitionTest.java
+36-24Lines changed: 36 additions & 24 deletions
Original file line numberDiff line numberDiff line change
@@ -15,7 +15,18 @@
1515
import com.google.gson.Gson;
1616
import com.google.gson.JsonObject;
1717
import com.ibm.watson.developer_cloud.WatsonServiceUnitTest;
18-
import com.ibm.watson.developer_cloud.visual_recognition.v3.model.*;
18+
import com.ibm.watson.developer_cloud.visual_recognition.v3.model.AddImageToCollectionOptions;
19+
import com.ibm.watson.developer_cloud.visual_recognition.v3.model.ClassifierOptions;
20+
import com.ibm.watson.developer_cloud.visual_recognition.v3.model.ClassifyImagesOptions;
21+
import com.ibm.watson.developer_cloud.visual_recognition.v3.model.Collection;
22+
import com.ibm.watson.developer_cloud.visual_recognition.v3.model.CollectionImage;
23+
import com.ibm.watson.developer_cloud.visual_recognition.v3.model.DetectedFaces;
24+
import com.ibm.watson.developer_cloud.visual_recognition.v3.model.FindSimilarImagesOptions;
25+
import com.ibm.watson.developer_cloud.visual_recognition.v3.model.RecognizedText;
26+
import com.ibm.watson.developer_cloud.visual_recognition.v3.model.VisualClassification;
27+
import com.ibm.watson.developer_cloud.visual_recognition.v3.model.VisualClassifier;
28+
import com.ibm.watson.developer_cloud.visual_recognition.v3.model.VisualRecognitionOptions;
29+
1930
import okhttp3.mockwebserver.MockResponse;
2031
import okhttp3.mockwebserver.RecordedRequest;
2132

@@ -118,7 +129,8 @@ public void testClassifyWithBytes() throws IOException, InterruptedException {
118129

119130
byte[] fileBytes = Files.readAllBytes(Paths.get(images.getPath()));
120131

121-
ClassifyImagesOptions options = new ClassifyImagesOptions.Builder().images(fileBytes,"car.png").classifierIds("car").build();
132+
ClassifyImagesOptions options =
133+
new ClassifyImagesOptions.Builder().images(fileBytes, "car.png").classifierIds("car").build();
122134
VisualClassification serviceResponse = service.classify(options).execute();
123135

124136
// first request
@@ -353,9 +365,9 @@ public void testRecognizeText() throws IOException, InterruptedException {
353365
// Begin Similarity Search functionality
354366
// Collection tests
355367
/**
356-
* Test get collection
368+
* Test get collection.
357369
*
358-
* @throws IOException Signals that an I/O exception has occurred
370+
* @throws IOException Signals that an I/O exception has occurred.
359371
* @throws InterruptedException the interrupted exception
360372
*/
361373
@Test
@@ -379,7 +391,7 @@ public void testGetCollection() throws IOException, InterruptedException {
379391
}
380392

381393
/**
382-
* Negative Test for get collection
394+
* Negative Test for get collection.
383395
*
384396
*/
385397
@Test(expected = IllegalArgumentException.class)
@@ -389,9 +401,9 @@ public void testGetCollectionNeg() {
389401
}
390402

391403
/**
392-
* Test get collections
404+
* Test get collections.
393405
*
394-
* @throws IOException Signals that an I/O exception has occurred
406+
* @throws IOException Signals that an I/O exception has occurred.
395407
* @throws InterruptedException the interrupted exception
396408
*/
397409
@Test
@@ -421,9 +433,9 @@ public void testGetCollections() throws IOException, InterruptedException {
421433
}
422434

423435
/**
424-
* Test delete collection
436+
* Test delete collection.
425437
*
426-
* @throws IOException Signals that an I/O exception has occurred
438+
* @throws IOException Signals that an I/O exception has occurred.
427439
* @throws InterruptedException the interrupted exception
428440
*/
429441
@Test
@@ -444,7 +456,7 @@ public void testDeleteCollection() throws IOException, InterruptedException {
444456
}
445457

446458
/**
447-
* Negative Test for delete collection
459+
* Negative Test for delete collection.
448460
*
449461
*/
450462
@Test(expected = IllegalArgumentException.class)
@@ -453,9 +465,9 @@ public void testDeleteCollectionNeg() {
453465
}
454466

455467
/**
456-
* Test create collection
468+
* Test create collection.
457469
*
458-
* @throws IOException Signals that an I/O exception has occurred
470+
* @throws IOException Signals that an I/O exception has occurred.
459471
* @throws InterruptedException the interrupted exception
460472
*/
461473
@Test
@@ -478,7 +490,7 @@ public void testCreateCollection() throws IOException, InterruptedException {
478490
}
479491

480492
/**
481-
* Negative Test for create collection
493+
* Negative Test for create collection.
482494
*
483495
*/
484496
@Test(expected = IllegalArgumentException.class)
@@ -488,9 +500,9 @@ public void testCreateCollectionNeg() {
488500

489501
// Image tests
490502
/**
491-
* Test get image
503+
* Test get image.
492504
*
493-
* @throws IOException Signals that an I/O exception has occurred
505+
* @throws IOException Signals that an I/O exception has occurred.
494506
* @throws InterruptedException the interrupted exception
495507
*/
496508
@Test
@@ -515,7 +527,7 @@ public void testGetImage() throws IOException, InterruptedException {
515527
}
516528

517529
/**
518-
* Negative Test for get image
530+
* Negative Test for get image.
519531
*
520532
*/
521533
@Test(expected = IllegalArgumentException.class)
@@ -525,9 +537,9 @@ public void testGetImageNeg() {
525537
}
526538

527539
/**
528-
* Test get images
540+
* Test get images.
529541
*
530-
* @throws IOException Signals that an I/O exception has occurred
542+
* @throws IOException Signals that an I/O exception has occurred.
531543
* @throws InterruptedException the interrupted exception
532544
*/
533545
@Test
@@ -558,7 +570,7 @@ public void testGetImages() throws IOException, InterruptedException {
558570
}
559571

560572
/**
561-
* Negative Test for get images
573+
* Negative Test for get images.
562574
*
563575
*/
564576
@Test(expected = IllegalArgumentException.class)
@@ -568,7 +580,7 @@ public void testGetImagesNeg() {
568580
}
569581

570582
/**
571-
* Test create image
583+
* Test create image.
572584
*
573585
* @throws IOException Signals that an I/O exception has occurred
574586
* @throws InterruptedException the interrupted exception
@@ -597,7 +609,7 @@ public void testCreateImage() throws IOException, InterruptedException {
597609
}
598610

599611
/**
600-
* Negative Test for create image
612+
* Negative Test for create image.
601613
*
602614
*/
603615
@Test(expected = IllegalArgumentException.class)
@@ -606,7 +618,7 @@ public void testCreateImageNeg1() {
606618
}
607619

608620
/**
609-
* Test find image
621+
* Test find image.
610622
*
611623
* @throws IOException Signals that an I/O exception has occurred
612624
* @throws InterruptedException the interrupted exception
@@ -645,9 +657,9 @@ public void testFindImages() throws IOException, InterruptedException {
645657
}
646658

647659
/**
648-
* Test delete image
660+
* Test delete image.
649661
*
650-
* @throws IOException Signals that an I/O exception has occurred
662+
* @throws IOException Signals that an I/O exception has occurred.
651663
* @throws InterruptedException the interrupted exception
652664
*/
653665
@Test

0 commit comments

Comments
0 (0)
You are visitor 01402792 — GeezerVison does not store the pages you look up.
Best viewed with Netscape Navigator 4.7 or Internet Explorer 6 at 800×600. No cookies required.