vmassol     01/10/27 08:36:46

  Modified:    src/sample/share/org/apache/cactus/sample/unit
                        TestServletTestCase1_InterceptorServletTestCase.java
  Log:
  replaced TestCase.name() by TestCase.getName() as the name() method, which was 
deprecated has now been removed from JUnit.
  
  Revision  Changes    Path
  1.6       +4 -4      
jakarta-cactus/src/sample/share/org/apache/cactus/sample/unit/TestServletTestCase1_InterceptorServletTestCase.java
  
  Index: TestServletTestCase1_InterceptorServletTestCase.java
  ===================================================================
  RCS file: 
/home/cvs/jakarta-cactus/src/sample/share/org/apache/cactus/sample/unit/TestServletTestCase1_InterceptorServletTestCase.java,v
  retrieving revision 1.5
  retrieving revision 1.6
  diff -u -r1.5 -r1.6
  --- TestServletTestCase1_InterceptorServletTestCase.java      2001/09/14 20:24:45    
 1.5
  +++ TestServletTestCase1_InterceptorServletTestCase.java      2001/10/27 15:36:46    
 1.6
  @@ -66,7 +66,7 @@
    *
    * @author <a href="mailto:[EMAIL PROTECTED]";>Vincent Massol</a>
    *
  - * @version $Id: TestServletTestCase1_InterceptorServletTestCase.java,v 1.5 
2001/09/14 20:24:45 pier Exp $
  + * @version $Id: TestServletTestCase1_InterceptorServletTestCase.java,v 1.6 
2001/10/27 15:36:46 vmassol Exp $
    * @see TestServletTestCase1
    */
   public class TestServletTestCase1_InterceptorServletTestCase 
  @@ -94,7 +94,7 @@
               // If the test case is "testAssertionFailedError" and the exception
               // is of type AssertionFailedError and contains the text
               // "test assertion failed error", then the test is ok.
  -            if (name().equals("testAssertionFailedError")) {
  +            if (getName().equals("testAssertionFailedError")) {
                   if (e.instanceOf(AssertionFailedError.class)) {
                       assertEquals("test assertion failed error", e.getMessage());
                       return;
  @@ -108,7 +108,7 @@
               // TestServletTestCaseHelper1_ExceptionNotSerializable
               // and contains the text "test non serializable exception", then
               // the test is ok.
  -            if (name().equals("testExceptionNotSerializable")) {
  +            if (getName().equals("testExceptionNotSerializable")) {
                   if (e.instanceOf(
                       TestServletTestCase1_ExceptionNotSerializable.class)) {
   
  @@ -122,7 +122,7 @@
               // is of type TestServletTestCaseHelper1_ExceptionSerializable
               // and contains the text "test serializable exception", then
               // the test is ok.
  -            if (name().equals("testExceptionSerializable")) {
  +            if (getName().equals("testExceptionSerializable")) {
                   assert(e.instanceOf(
                       TestServletTestCase1_ExceptionSerializable.class));
   
  
  
  

---------------------------------------------------------------------
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]

Reply via email to