Created
February 10, 2017 22:27
-
-
Save rterp/82a2a01d267f02199f2318ce9799fe2c to your computer and use it in GitHub Desktop.
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
public void runTest() { | |
ProductSummaryBean summaryBean = new ProductSummaryBean(19.95, "MyWidget", "Z332332", new DecimalFormat("$#,###,##0.00")); | |
ProductDetailsBean detailBean = getProductDetailsBean(summaryBean); | |
productMap.put(summaryBean, detailBean); | |
//Load the same summaryBean from the DB | |
summaryBean = loadSummaryBean("Z332332"); | |
//Pull the detailBean from the map for the given summaryBean | |
detailBean = productMap.get(summaryBean); | |
System.out.println("DetailBean is: " + detailBean ); | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment