You are viewing a plain text version of this content. The canonical link for it is here.
Posted to dev@cassandra.apache.org by Ran Tavory <ra...@gmail.com> on 2010/01/26 08:45:03 UTC
Refactor for testability: Make class DatabaseDescriptor a real class
with member methods, and non-static methods
What do you think of this suggestion?
https://issues.apache.org/jira/browse/CASSANDRA-741
Re: Refactor for testability: Make class DatabaseDescriptor a real
class with member methods, and non-static methods
Posted by Gary Dusbabek <gd...@gmail.com>.
It would certainly make aspects of unit testing simpler. However, the
codebase treats the values retrieved from DatabaseDescriptor as
constant over the life of the cassandra process. You should keep that
in mind as you make the refactorings.
Gary
On Tue, Jan 26, 2010 at 01:45, Ran Tavory <ra...@gmail.com> wrote:
> What do you think of this suggestion?
> https://issues.apache.org/jira/browse/CASSANDRA-741
>