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 "Ayush Saxena (Jira)" <ji...@apache.org> on 2022/01/25 14:11:00 UTC
[jira] [Resolved] (HADOOP-18093) Better exception handling for testFileStatusOnMountLink() in ViewFsBaseTest.java
[ https://issues.apache.org/jira/browse/HADOOP-18093?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]
Ayush Saxena resolved HADOOP-18093.
-----------------------------------
Fix Version/s: 3.4.0
Hadoop Flags: Reviewed
Resolution: Fixed
> Better exception handling for testFileStatusOnMountLink() in ViewFsBaseTest.java
> --------------------------------------------------------------------------------
>
> Key: HADOOP-18093
> URL: https://issues.apache.org/jira/browse/HADOOP-18093
> Project: Hadoop Common
> Issue Type: Improvement
> Reporter: Xing Lin
> Assignee: Xing Lin
> Priority: Trivial
> Labels: pull-request-available
> Fix For: 3.4.0
>
> Time Spent: 1h 10m
> Remaining Estimate: 0h
>
> The following exception handling code section in testFileStatusOnMountLink()
>
> {code:java}
> try {
> fcView.getFileStatus(new Path("/danglingLink"));
> Assert.fail("Excepted a not found exception here");
> } catch ( FileNotFoundException e) {
> // as excepted
> }{code}
> can be replaced with a single in the @Test
> {code:java}
> @Test(expected = FileNotFoundException.class){code}
--
This message was sent by Atlassian Jira
(v8.20.1#820001)
---------------------------------------------------------------------
To unsubscribe, e-mail: common-dev-unsubscribe@hadoop.apache.org
For additional commands, e-mail: common-dev-help@hadoop.apache.org