Changeset 1039

Show
Ignore:
Timestamp:
06/26/08 13:24:33 (4 years ago)
Author:
amandel
Message:

New generic fail assertion

Files:
1 modified

Legend:

Unmodified
Added
Removed
  • trunk/test/java/org/jcoderz/commons/util/AssertTest.java

    r1011 r1039  
    7878   } 
    7979 
     80   /** Test the not fail method. */ 
     81   public final void testFail () 
     82   { 
     83      try 
     84      { 
     85         Assert.fail(BAR_STRING); 
     86         fail("Assertion fail should not pass."); 
     87      } 
     88      catch (AssertionFailedException ex) 
     89      { 
     90         assertEquals("Parameter message should be as given.", 
     91             BAR_STRING, 
     92               ex.getParameter( 
     93                  RteLogMessage.AssertionFailed.PARAM_MESSAGE)); 
     94      } 
     95   } 
     96 
    8097   /** 
    8198    * Tests the method {@link Assert#assertTrue(String, boolean)}.