private Product givenService() { Product prod = new Product(); prod.setKey(PRODUCT_KEY); prod.setProductId(PRODUCT_ID); prod.setTemplate(prod); return prod; }
private Product createService() { Product prod = new Product(); prod.setKey(SERVICE_ID); prod.setProductId(SERVICE_NAME); prod.setTemplate(prod); return prod; }
private Product createProduct() { Product prod = new Product(); prod.setProductId(PRODUCT_ID); prod.setTechnicalProduct(new TechnicalProduct()); prod.setAutoAssignUserEnabled(Boolean.FALSE); return prod; }
private List<Product> givenProducts() { List<Product> products = new ArrayList<Product>(); Product product1 = new Product(); product1.setKey(PRODUCTKEY_1); product1.setProductId(PRODUCTID_1); Organization org1 = new Organization(); org1.setOrganizationId(VENDORID_1); product1.setVendor(org1); Product product2 = new Product(); product2.setProductId(PRODUCTID_2); product2.setKey(PRODUCTKEY_2); Organization org2 = new Organization(); org2.setOrganizationId(VENDORID_2); product2.setVendor(org2); products.add(product1); products.add(product2); return products; }