[
https://issues.apache.org/jira/browse/NET-736?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel
]
Monil Narang updated NET-736:
-----------------------------
Description:
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.
was:
{*}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.
> 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)