Search in sources :

Example 1 with GetReferenceImageRequest

use of com.google.cloud.vision.v1.GetReferenceImageRequest in project java-vision by googleapis.

the class ITSystemTest method getReferenceImageTest.

@Test
public void getReferenceImageTest() {
    GetReferenceImageRequest request = GetReferenceImageRequest.newBuilder().setName(formatReferenceImageName).build();
    ReferenceImage actualReferenceImage = productSearchClient.getReferenceImage(request);
    assertEquals(referenceImage.getName(), actualReferenceImage.getName());
    assertEquals(referenceImage.getUri(), actualReferenceImage.getUri());
}
Also used : GetReferenceImageRequest(com.google.cloud.vision.v1.GetReferenceImageRequest) ReferenceImage(com.google.cloud.vision.v1.ReferenceImage) Test(org.junit.Test)

Aggregations

GetReferenceImageRequest (com.google.cloud.vision.v1.GetReferenceImageRequest)1 ReferenceImage (com.google.cloud.vision.v1.ReferenceImage)1 Test (org.junit.Test)1