avalon-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Berin Loritsch <blorit...@apache.org>
Subject Re: Testlet to JUnit conversions
Date Thu, 02 Aug 2001 14:45:52 GMT
Berin Loritsch wrote:
> 
> In order to convert all the testlets to JUnit TestCases,
> we need to do the following:
> 
> 1) Change name from xxxTestlet to xxxTestCase (preferred but not necessary)
> 
> 2) Change class extended from org.apache.testlet.AbstractTestlet to
>    junit.framework.TestCase
> 
> 3) Global replace "assertEquality(" with "assertEquals("
> 
> 4) Global replace "assert(" with "assertTrue(".  The assert() method works
>    but is deprecated in favor of the more semantically correct version.

5) Change all uses org.apache.testlet.TestletFailedException to
   junit.framework.AssertionFailedError

> 
> Optionally:
> 
> Place all initialization code in "setUp()" and disposal code in "tearDown()"
> 
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: avalon-dev-unsubscribe@jakarta.apache.org
> For additional commands, e-mail: avalon-dev-help@jakarta.apache.org

---------------------------------------------------------------------
To unsubscribe, e-mail: avalon-dev-unsubscribe@jakarta.apache.org
For additional commands, e-mail: avalon-dev-help@jakarta.apache.org


Mime
View raw message