[
https://issues.apache.org/jira/browse/HDDS-9932?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel
]
Attila Doroszlai updated HDDS-9932:
-----------------------------------
Description:
{{ContainerTestVersionInfo}} is used in several classes to parameterize test
methods.
Example:
{code}
@ParameterizedTest
@MethodSource("data")
public void testIncorrectTotalsNoData(ContainerTestVersionInfo versionInfo)
{code}
The goal of this task is to reduce code duplication by defining a [composite
annotation|https://junit.org/junit5/docs/current/user-guide/#writing-tests-meta-annotation].
was:
{{ContainerTestVersionInfo}} is used in several classes to parameterize test
methods.
Example:
{code}
@ParameterizedTest
@MethodSource("data")
public void testIncorrectTotalsNoData(ContainerTestVersionInfo versionInfo)
{code}
The goal of this task is to reduce code duplication by defining a [composite
annotation|https://junit.org/junit5/docs/current/user-guide/#writing-tests-meta-annotation].
(Will create follow-up tasks for other similar common parameter types.)
> Compose annotation for tests parameterized with ContainerTestVersionInfo
> ------------------------------------------------------------------------
>
> Key: HDDS-9932
> URL: https://issues.apache.org/jira/browse/HDDS-9932
> Project: Apache Ozone
> Issue Type: Sub-task
> Components: test
> Reporter: Attila Doroszlai
> Assignee: Attila Doroszlai
> Priority: Minor
> Labels: pull-request-available
> Fix For: 1.5.0
>
>
> {{ContainerTestVersionInfo}} is used in several classes to parameterize test
> methods.
> Example:
> {code}
> @ParameterizedTest
> @MethodSource("data")
> public void testIncorrectTotalsNoData(ContainerTestVersionInfo versionInfo)
> {code}
> The goal of this task is to reduce code duplication by defining a [composite
> annotation|https://junit.org/junit5/docs/current/user-guide/#writing-tests-meta-annotation].
--
This message was sent by Atlassian Jira
(v8.20.10#820010)
---------------------------------------------------------------------
To unsubscribe, e-mail: [email protected]
For additional commands, e-mail: [email protected]