You are viewing a plain text version of this content. The canonical link for it is here.
Posted to common-dev@hadoop.apache.org by "Shilun Fan (Jira)" <ji...@apache.org> on 2025/07/22 00:53:00 UTC
[jira] [Resolved] (HADOOP-19618) Replace AssumptionViolatedException with TestAbortedException
[ https://issues.apache.org/jira/browse/HADOOP-19618?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]
Shilun Fan resolved HADOOP-19618.
---------------------------------
Fix Version/s: 3.5.0
Hadoop Flags: Reviewed
Resolution: Fixed
> Replace AssumptionViolatedException with TestAbortedException
> -------------------------------------------------------------
>
> Key: HADOOP-19618
> URL: https://issues.apache.org/jira/browse/HADOOP-19618
> Project: Hadoop Common
> Issue Type: Improvement
> Components: test
> Reporter: Shilun Fan
> Assignee: Shilun Fan
> Priority: Major
> Labels: pull-request-available
> Fix For: 3.5.0
>
>
> In JUnit 4, {{org.junit.internal.AssumptionViolatedException}} is used to indicate assumption failure and skip the test. However, {{AssumptionViolatedException}} is an implementation in JUnit 4, and in JUnit 5, we can use {{TestAbortedException}} to replace {{{}AssumptionViolatedException{}}}.
> {{TestAbortedException}} is used to indicate that a test has been aborted, and it can be used to replace {{{}AssumptionViolatedException{}}}. However, it is not directly related to assumption failure and is more commonly used in situations where the test needs to be aborted during execution.
--
This message was sent by Atlassian Jira
(v8.20.10#820010)
---------------------------------------------------------------------
To unsubscribe, e-mail: common-dev-unsubscribe@hadoop.apache.org
For additional commands, e-mail: common-dev-help@hadoop.apache.org