Search in sources :

Example 1 with GetProductSetRequest

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

the class ITSystemTest method getProductSetTest.

@Test
public void getProductSetTest() {
    GetProductSetRequest request = GetProductSetRequest.newBuilder().setName(formatProductSetName).build();
    ProductSet actualProductSet = productSearchClient.getProductSet(request);
    assertEquals(productSet.getName(), actualProductSet.getName());
    assertEquals(PRODUCT_SET_DISPLAY_NAME, actualProductSet.getDisplayName());
}
Also used : GetProductSetRequest(com.google.cloud.vision.v1.GetProductSetRequest) ProductSet(com.google.cloud.vision.v1.ProductSet) Test(org.junit.Test)

Aggregations

GetProductSetRequest (com.google.cloud.vision.v1.GetProductSetRequest)1 ProductSet (com.google.cloud.vision.v1.ProductSet)1 Test (org.junit.Test)1