Last active
August 29, 2015 14:23
-
-
Save kozake/0f7b50617fb5f17351d9 to your computer and use it in GitHub Desktop.
mapOfItemsToSuppliersByGSCollections
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
@Test | |
public void mapOfItemsToSuppliersByGSCollections() | |
{ | |
final MutableMultimap<String, Supplier> itemsToSuppliers = | |
ArrayAdapter.adapt(this.company.getSuppliers()) | |
.groupByEach(s -> ArrayAdapter.adapt(s.getItemNames())); | |
Verify.assertIterableSize( | |
"should be 2 suppliers for sofa", | |
2, | |
itemsToSuppliers.get("sofa")); | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment