[ 
https://issues.apache.org/jira/browse/SLING-5913?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=15399175#comment-15399175
 ] 

Simone Tripodi edited comment on SLING-5913 at 7/29/16 11:41 AM:
-----------------------------------------------------------------

hi again [~teofili],
sorry for bugging but I am providing a last patch which fixes also test cases 
best practices, dropping _foreach_ statements for multiple tests in favour of 
[parametrized 
tests|http://stackoverflow.com/questions/19203730/writing-java-tests-with-data-providers],
 replacing

{noformat}
try {
    ...
} catch(MyException e) {
    fail(e)
}
{noformat}

code blocks for the more canonical {{@Test(expected = MyException.class)}} 
declaration.

HTH!


was (Author: simone.tripodi):
hi again [~teofili],
sorry for bugging but I am providing a last patch which fixes also test cases 
best practices, dropping _foreach_ statements for multiple tests in favour of 
data providers, replacing

{noformat}
try {
    ...
} catch(MyException e) {
    fail(e)
}
{noformat}

code blocks for the more canonical {{@Test(expected = MyException.class)}} 
declaration.

HTH!

> Clean-up the Distribution Core source code
> ------------------------------------------
>
>                 Key: SLING-5913
>                 URL: https://issues.apache.org/jira/browse/SLING-5913
>             Project: Sling
>          Issue Type: Improvement
>          Components: Distribution
>    Affects Versions: Content Distribution Core 0.1.18
>            Reporter: Simone Tripodi
>            Assignee: Tommaso Teofili
>            Priority: Minor
>             Fix For: Content Distribution 0.2.0
>
>         Attachments: SLING-5913.1.patch, SLING-5913.2.patch, SLING-5913.patch
>
>
> Current codebase is full of warnings due to unbound generics type, not used 
> variables, ... that makes code reading less pleasant than expected



--
This message was sent by Atlassian JIRA
(v6.3.4#6332)

Reply via email to