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

Monil Narang commented on NET-736:
----------------------------------

I have also created [a PR for the 
same|https://github.com/apache/commons-net/pull/328].

> Refactored test in SubnetUtilsTest to use parameterized unit testing to 
> reduce duplication and improve maintainability
> ----------------------------------------------------------------------------------------------------------------------
>
>                 Key: NET-736
>                 URL: https://issues.apache.org/jira/browse/NET-736
>             Project: Commons Net
>          Issue Type: Improvement
>            Reporter: Monil Narang
>            Priority: Major
>
> Aim is to improve the test code by avoiding code duplication, improving 
> maintainability, reducing boilerplate code, and enhancing readability.
> To accomplish this, I have retrofitted the test testNET641 in SubnetUtilsTest 
> into a parameterized unit test. This reduces duplication, allows easy 
> extension by simply adding new value sets, and makes debugging easier as it 
> clearly indicates which test failed instead of requiring a search through 
> individual assertions.



--
This message was sent by Atlassian Jira
(v8.20.10#820010)

Reply via email to