@Test public void testExplicitProduct() throws Exception { projectSeeds.add(productSeed("product.id.1")); projectSeeds.add(productSeed("product.id.2")); List<Product> userConfig = Collections.singletonList(new Product("product.id.1")); subject = new ProductConfig(userConfig, projectSeeds); List<Product> expected = Arrays.asList(new Product("product.id.1")); assertEquals(expected, subject.getProducts()); }
public List<Product> getProducts() { return products; }
ProductConfig { public List<Product> getProducts() { return products; } }
ProductConfig { public List<Product> getProducts() { return products; } ProductConfig(List<Product> userConfig, Collection<DependencySeed> projectSeeds); }
ProductConfig { public List<Product> getProducts() { return products; } ProductConfig(List<Product> userConfig, Collection<DependencySeed> projectSeeds); boolean uniqueAttachIds(); List<Product> getProducts(); }
ProductConfig { public List<Product> getProducts() { return products; } ProductConfig(List<Product> userConfig, Collection<DependencySeed> projectSeeds); boolean uniqueAttachIds(); List<Product> getProducts();  }