use of org.jboss.pnc.dto.Product in project pnc by project-ncl.
the class ProductEndpointTest method testGetAll.
@Test
@InSequence(10)
public void testGetAll() throws RemoteResourceException {
ProductClient client = new ProductClient(RestClientConfiguration.asAnonymous());
RemoteCollection<Product> all = client.getAll();
// from DatabaseDataInitializer
assertThat(all).hasSize(1);
}
use of org.jboss.pnc.dto.Product in project pnc by project-ncl.
the class ProductEndpointTest method testGetSpecific.
@Test
public void testGetSpecific() throws ClientException {
ProductClient client = new ProductClient(RestClientConfiguration.asAnonymous());
Product dto = client.getSpecific(productId);
// from DatabaseDataInitializer
assertThat(dto.getName()).isEqualTo("Project Newcastle Demo Product");
// from
assertThat(dto.getDescription()).isEqualTo("Example Product for Project Newcastle Demo");
// DatabaseDataInitializer
}
Aggregations