[jboss-cvs] jboss-seam/src/main/org/jboss/seam/mock ...

Gavin King gavin.king at jboss.com
Fri Jun 15 19:36:54 EDT 2007


  User: gavin   
  Date: 07/06/15 19:36:54

  Modified:    src/main/org/jboss/seam/mock  SeamTest.java
  Log:
  much nicer, I always wished TestNG did it this way
  
  Revision  Changes    Path
  1.76      +8 -5      jboss-seam/src/main/org/jboss/seam/mock/SeamTest.java
  
  (In the diff below, changes in quantity of whitespace are not shown.)
  
  Index: SeamTest.java
  ===================================================================
  RCS file: /cvsroot/jboss/jboss-seam/src/main/org/jboss/seam/mock/SeamTest.java,v
  retrieving revision 1.75
  retrieving revision 1.76
  diff -u -b -r1.75 -r1.76
  --- SeamTest.java	15 Jun 2007 17:15:40 -0000	1.75
  +++ SeamTest.java	15 Jun 2007 23:36:54 -0000	1.76
  @@ -6,7 +6,10 @@
    */
   package org.jboss.seam.mock;
   
  -import org.testng.annotations.Configuration;
  +import org.testng.annotations.AfterClass;
  +import org.testng.annotations.AfterMethod;
  +import org.testng.annotations.BeforeClass;
  +import org.testng.annotations.BeforeMethod;
   
   /**
    * Provides BaseSeamTest functionality for TestNG integration tests.
  @@ -18,28 +21,28 @@
   public class SeamTest extends BaseSeamTest
   {
      
  -   @Configuration(beforeTestMethod = true)
  +   @BeforeMethod
      @Override
      public void begin()
      {
         super.begin();
      }
   
  -   @Configuration(afterTestMethod = true)
  +   @AfterMethod
      @Override
      public void end()
      {
         super.end();
      }
   
  -   @Configuration(beforeTestClass = true)
  +   @BeforeClass
      @Override
      public void init() throws Exception
      {
         super.init();
      }
   
  -   @Configuration(afterTestClass = true)
  +   @AfterClass
      @Override
      public void cleanup() throws Exception
      {
  
  
  



More information about the jboss-cvs-commits mailing list