commons-issues mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Ted Dunning (JIRA)" <>
Subject [jira] [Commented] (MATH-795) Refactoring ArrayRealVectorTest, RealVectorTest, SparseRealVectorTest
Date Thu, 31 May 2012 07:11:23 GMT


Ted Dunning commented on MATH-795:

Mahout has an extensive set of tests that work this way for both Vectors and Matrices.  Might
be worth a look to see if there is anything worth stealing.  Having an inheritable test makes
it MUCH easier to get a new kind of vector or matrix right.
> Refactoring ArrayRealVectorTest, RealVectorTest, SparseRealVectorTest
> ---------------------------------------------------------------------
>                 Key: MATH-795
>                 URL:
>             Project: Commons Math
>          Issue Type: Improvement
>    Affects Versions: 3.1
>            Reporter: S├ębastien Brisard
>            Assignee: S├ębastien Brisard
>            Priority: Minor
>             Fix For: 3.1
> The above mentioned tests contain a lot of duplicate code. Besides, some of the unit
tests are no longer _unit_ tests, since they test many different functionalities.
> It is proposed to refactor these tests. The duplicate code should be factored out to
the abstract class {{RealVectorAbstractTest}}. Then some tests could be splitted in smaller
> Besides readability, the benefit would be to ease the implementation of other kinds of
vector. This refactoring should also lead to a natural resolution of MATH-625.

This message is automatically generated by JIRA.
If you think it was sent incorrectly, please contact your JIRA administrators:!default.jspa
For more information on JIRA, see:


View raw message