[jboss-cvs] jboss-seam/doc/reference/en/modules ...

Peter Muir peter at bleepbleep.org.uk
Wed Oct 10 07:01:49 EDT 2007


  User: pmuir   
  Date: 07/10/10 07:01:49

  Modified:    doc/reference/en/modules  testing.xml
  Log:
  Slight refactor, finish test for simple.xhtml
  
  Revision  Changes    Path
  1.19      +3 -2      jboss-seam/doc/reference/en/modules/testing.xml
  
  (In the diff below, changes in quantity of whitespace are not shown.)
  
  Index: testing.xml
  ===================================================================
  RCS file: /cvsroot/jboss/jboss-seam/doc/reference/en/modules/testing.xml,v
  retrieving revision 1.18
  retrieving revision 1.19
  diff -u -b -r1.18 -r1.19
  --- testing.xml	9 Oct 2007 13:58:51 -0000	1.18
  +++ testing.xml	10 Oct 2007 11:01:49 -0000	1.19
  @@ -414,7 +414,7 @@
      @Test
      public void testSimpleMessage() throws Exception {
           
  -      new MailTest("/simple.xhtml") {
  +      new FacesRequest() {
   
            @Override
            protected void updateModelValues() throws Exception {
  @@ -424,7 +424,8 @@
            }
               
            @Override
  -         protected void testMessage(MimeMessage renderedMessage) throws Exception {
  +         protected void invokeApplication() throws Exception {
  +            MimeMessage renderedMessage = getRenderedMailMessage("/simple.xhtml");
               assert renderedMessage.getAllRecipients().length == 1;
               InternetAddress to = (InternetAddress) renderedMessage.getAllRecipients()[0];
               assert to.getAddress().equals("test at example.com");
  
  
  



More information about the jboss-cvs-commits mailing list