[jboss-cvs] jboss-seam/examples/blog/src/test ...

Gavin King gavin.king at jboss.com
Sat Sep 30 15:59:34 EDT 2006


  User: gavin   
  Date: 06/09/30 15:59:34

  Modified:    examples/blog/src/test  BlogTest.java
  Log:
  refreshed blog example to use page parameters
  
  Revision  Changes    Path
  1.9       +3 -3      jboss-seam/examples/blog/src/test/BlogTest.java
  
  (In the diff below, changes in quantity of whitespace are not shown.)
  
  Index: BlogTest.java
  ===================================================================
  RCS file: /cvsroot/jboss/jboss-seam/examples/blog/src/test/BlogTest.java,v
  retrieving revision 1.8
  retrieving revision 1.9
  diff -u -b -r1.8 -r1.9
  --- BlogTest.java	29 Sep 2006 23:15:01 -0000	1.8
  +++ BlogTest.java	30 Sep 2006 19:59:34 -0000	1.9
  @@ -33,7 +33,7 @@
            @Override
            protected void updateModelValues() throws Exception
            {
  -            BlogEntry entry = (BlogEntry) Component.getInstance("newBlogEntry");
  +            BlogEntry entry = (BlogEntry) Component.getInstance("blogEntry");
               entry.setId("testing");
               entry.setTitle("Integration testing Seam applications");
               entry.setBody("This post is about SeamTest...");
  @@ -65,7 +65,7 @@
               BlogEntry blogEntry = blogEntries.get(0);
               assert blogEntry.getId().equals("testing");
               assert blogEntry.getBody().equals("This post is about SeamTest...");
  -            assert blogEntry.getTitle().equals("Integration testing Seam applications");
  +            assert blogEntry.getTitle().equals("Integration testing Seam applications is easy!");
            }
   
         }.run();
  @@ -124,7 +124,7 @@
            @Override
            protected void invokeApplication() throws Exception
            {
  -            ( (EntryAction) Component.getInstance(EntryAction.class, true) ).getBlogEntry("i18n");
  +            ( (EntryAction) Component.getInstance(EntryAction.class, true) ).loadBlogEntry("i18n");
            }
   
            @Override
  
  
  



More information about the jboss-cvs-commits mailing list