@Test public void testNoConfigDefaultsToPublishedProducts() throws Exception { projectSeeds.add(productSeed("product.id.1")); projectSeeds.add(productSeed("product.id.2")); projectSeeds.add(otherSeed("feature.id", ArtifactType.TYPE_ECLIPSE_FEATURE)); subject = new ProductConfig(null, projectSeeds); List<Product> products = subject.getProducts(); assertEquals(2, products.size()); assertTrue(products.contains(new Product("product.id.1"))); assertTrue(products.contains(new Product("product.id.2"))); }
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();  }