mirror of https://github.com/apache/jclouds.git
Issue 158: changed Product Package test to iterate through active packages in Account
This commit is contained in:
parent
e62834c624
commit
8bb614bf72
|
@ -43,7 +43,9 @@ public class ProductPackageClientLiveTest extends BaseSoftLayerClientLiveTest {
|
|||
|
||||
@Test
|
||||
public void testGetProductPackage() {
|
||||
ProductPackage response = client.getProductPackage(46);
|
||||
for (ProductPackage productPackage : context.getApi().getAccountClient().getActivePackages()) {
|
||||
ProductPackage response = client.getProductPackage(productPackage.getId());
|
||||
|
||||
assert null != response;
|
||||
assert response.getId() > 0 : response;
|
||||
assert response.getName() != null : response;
|
||||
|
@ -56,6 +58,7 @@ public class ProductPackageClientLiveTest extends BaseSoftLayerClientLiveTest {
|
|||
checkProductItem(item);
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
private void checkProductItem(ProductItem item) {
|
||||
assert item.getId() > 0 : item;
|
||||
|
|
Loading…
Reference in New Issue