You are viewing a plain text version of this content. The canonical link for it is here.
Posted to dev@abdera.apache.org by ck <ch...@googlemail.com> on 2010/05/11 23:26:34 UTC
Unit Test Refactoring
Hi guys,
I would like to refactor and extend the Unit tests, as I think this
would create a solid fundament for any major refactoring or addition
of new features.
This includes the following steps:
- remove all occurences of "extends TestCase" an replace them with
annotations if necessary
- remove all occurences of "extends Assert" and replace them with
static imports of assert*
- fix ABDERA-102 (https://issues.apache.org/jira/browse/ABDERA-102)
- remove Testsuites (don't see for what they are needed anymore?)
- remove unnecessary try/catches (example
http://svn.apache.org/viewvc/abdera/java/trunk/security/src/test/java/org/apache/abdera/test/security/filter/SecurityFilterTest.java?revision=723328&view=markup)
- reorder Test classes where necessary so that their structure is
analog to the source classes
- add further tests
- update test dependencies
This means a lot of long patches with only minor functional changes. I
already added some patches
(https://issues.apache.org/jira/browse/ABDERA-102,
http://www.mail-archive.com/dev@abdera.apache.org/msg00291.html), but
most of them where not committed. Would be great if I could hear your
opinion to this approach.
regards
ck
Re: Unit Test Refactoring
Posted by David Calavera <da...@gmail.com>.
This sounds really nice for me. +1 to everything
On Tue, May 11, 2010 at 11:26 PM, ck <ch...@googlemail.com> wrote:
> Hi guys,
>
> I would like to refactor and extend the Unit tests, as I think this
> would create a solid fundament for any major refactoring or addition
> of new features.
> This includes the following steps:
> - remove all occurences of "extends TestCase" an replace them with
> annotations if necessary
> - remove all occurences of "extends Assert" and replace them with
> static imports of assert*
> - fix ABDERA-102 (https://issues.apache.org/jira/browse/ABDERA-102)
> - remove Testsuites (don't see for what they are needed anymore?)
> - remove unnecessary try/catches (example
>
> http://svn.apache.org/viewvc/abdera/java/trunk/security/src/test/java/org/apache/abdera/test/security/filter/SecurityFilterTest.java?revision=723328&view=markup
> )
> - reorder Test classes where necessary so that their structure is
> analog to the source classes
> - add further tests
> - update test dependencies
>
> This means a lot of long patches with only minor functional changes. I
> already added some patches
> (https://issues.apache.org/jira/browse/ABDERA-102,
> http://www.mail-archive.com/dev@abdera.apache.org/msg00291.html), but
> most of them where not committed. Would be great if I could hear your
> opinion to this approach.
>
> regards
>
> ck
>