anujmodi2021 commented on code in PR #7674: URL: https://github.com/apache/hadoop/pull/7674#discussion_r2272370316
########## hadoop-tools/hadoop-azure/src/test/java/org/apache/hadoop/fs/azurebfs/ITestOauthOverAbfsScheme.java: ########## @@ -20,23 +20,25 @@ import java.lang.reflect.Field; import java.net.URL; -import org.junit.Assume; -import org.junit.Test; +import org.junit.jupiter.api.Test; import org.apache.hadoop.conf.Configuration; import org.apache.hadoop.fs.azurebfs.constants.FileSystemUriSchemes; import org.apache.hadoop.fs.azurebfs.services.AbfsClient; import org.apache.hadoop.fs.azurebfs.services.AuthType; import org.apache.hadoop.fs.CommonConfigurationKeysPublic; +import static org.assertj.core.api.Assumptions.assumeThat; + /** * Test Oauth fail fast when uri scheme is incorrect. */ public class ITestOauthOverAbfsScheme extends AbstractAbfsIntegrationTest { public ITestOauthOverAbfsScheme() throws Exception { - Assume.assumeTrue("ITestOauthOverAbfsScheme is skipped because auth type is not OAuth", - getAuthType() == AuthType.OAuth); + assumeThat(getAuthType()) + .as("ITestOauthOverAbfsScheme is skipped because auth type is not OAuth") + .isNotEqualTo(AuthType.OAuth); Review Comment: This also need fix. Will take up with https://issues.apache.org/jira/browse/HADOOP-19649 -- This is an automated message from the Apache Git Service. To respond to the message, please log on to GitHub and use the URL above to go to the specific comment. To unsubscribe, e-mail: common-issues-unsubscr...@hadoop.apache.org For queries about this service, please contact Infrastructure at: us...@infra.apache.org --------------------------------------------------------------------- To unsubscribe, e-mail: common-issues-unsubscr...@hadoop.apache.org For additional commands, e-mail: common-issues-h...@hadoop.apache.org