commons-issues mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Benedikt Ritter (Commented) (JIRA)" <>
Subject [jira] [Commented] (SANDBOX-379) [BeanUtils2] Implement describe() on DefaultBeanAccessor
Date Thu, 02 Feb 2012 10:35:53 GMT


Benedikt Ritter commented on SANDBOX-379:

Hey, thanks for the feedback. Let me comment on that ;)

{{BeanAccessorTestCase}} has only 1 test method that can be included in BeanUtilsTest; the
describes is protected (and there's no reason why), it can be {{private final}}.

I created BeanAccessorTestCase as a Unit Test for DefaultBeanAccessor (wow, supprise ;) ),
having in mind, that there are some more methods to be tested like clone(), populate() and
copyProperties(). BeanUtilsTest is a unit test for testing the factory methods in BeanUtils.
Adding tests for all methods in BeanAccessor to BeanUtilsTest would lead to a huge test class,
that tests more than one class at once. So I thought creating a new test for DefaultBeanAccessor
would be a good idea, regarding separation of concerns. What do you think?

The protected String array was copied from BeanUtils1, but you're right, there is no reason
to have it protected. I'll change it.

Same thing for {{Jira157TestCase}}, test methods can be moved in the {{BeanUtilsTest}} class;
methods name have to be renamed stripping the {{testIssue_BEANUTILS_157_BeanUtils}} prefix;

I really liked the idea to have a dedicated test for a bug. To be honest, I was thinking about
proposing that in my company :) But if you don't like it, I'll move it depending on your comment
to the above mentioned topic.

{{AccessibleObjectsRegistry#getMethodsRegistry()}} can be referenced statically in {{PropertyDescriptorsRegistry;}}

I'll change it.

{{PropertyDescriptorsRegistry#makeMethodsAccessible}} returns the same {{PropertyDescriptor}}
input instance, there's no reason that method has a return statement, signature can be changed
to void.

ok :)

Have a nice day!
> [BeanUtils2] Implement describe() on DefaultBeanAccessor 
> ---------------------------------------------------------
>                 Key: SANDBOX-379
>                 URL:
>             Project: Commons Sandbox
>          Issue Type: Improvement
>          Components: BeanUtils2
>    Affects Versions: Nightly Builds
>            Reporter: Benedikt Ritter
>         Attachments: SANDBOX-379.txt
> Implement the above mentioned method an corresponding unit tests

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