| 
     
      
      
      From: Julien V. <ju...@jb...> - 2006-07-08 00:33:09
      
     
   | 
  User: julien  
  Date: 06/07/07 20:33:07
  Modified:    test/src/main/org/jboss/portal/test/framework/container/result 
                        AssertResult.java
  Log:
  - improve request decoding of the media type from the content type
  - added test case to ensure this is done correctly by the portal servlet
  
  Revision  Changes    Path
  1.2       +8 -1      jboss-portal/test/src/main/org/jboss/portal/test/framework/container/result/AssertResult.java
  
  (In the diff below, changes in quantity of whitespace are not shown.)
  
  Index: AssertResult.java
  ===================================================================
  RCS file: /cvsroot/jboss/jboss-portal/test/src/main/org/jboss/portal/test/framework/container/result/AssertResult.java,v
  retrieving revision 1.1
  retrieving revision 1.2
  diff -u -b -r1.1 -r1.2
  --- AssertResult.java	22 Apr 2006 17:43:13 -0000	1.1
  +++ AssertResult.java	8 Jul 2006 00:33:07 -0000	1.2
  @@ -32,7 +32,7 @@
    * A set of assertions as result.
    *
    * @author <a href="mailto:ju...@jb...">Julien Viet</a>
  - * @version $Revision: 1.1 $
  + * @version $Revision: 1.2 $
    */
   public class AssertResult extends Result
   {
  @@ -59,6 +59,13 @@
         count++;
      }
   
  +   public static AssertResult run(Test test) throws IllegalArgumentException, IllegalStateException
  +   {
  +      AssertResult assertResult = new AssertResult();
  +      assertResult.execute(test);
  +      return assertResult;
  +   }
  +
      /**
       * Run the test, record the error or failure if any and increment the count.
       *
  
  
  
 |