You are viewing a plain text version of this content. The canonical link for it is here.
Posted to dev@tomee.apache.org by Anonymous CMS User <an...@apache.org> on 2015/06/23 22:21:57 UTC
CMS diff: CDI @RequestScoped
Clone URL (Committers only):
https://cms.apache.org/redirect?new=anonymous;action=diff;uri=http://tomee.apache.org/examples-trunk%2Fcdi-request-scope%2FREADME.md
Index: trunk/content/examples-trunk/cdi-request-scope/README.md
===================================================================
--- trunk/content/examples-trunk/cdi-request-scope/README.md (revision 1655892)
+++ trunk/content/examples-trunk/cdi-request-scope/README.md (working copy)
@@ -80,6 +80,8 @@
public class RestaurantTest {
private static String TOMATO_SOUP = "Tomato Soup";
+ private static String POTATO_SOUP = "Potato Soup";
+
private EJBContainer container;
@EJB
@@ -95,6 +97,7 @@
public void orderSoup(){
String soup = joe.orderSoup(TOMATO_SOUP);
assertEquals(TOMATO_SOUP, soup);
+
soup = joe.orderSoup(POTATO_SOUP);
assertEquals(POTATO_SOUP, soup);
}