You are viewing a plain text version of this content. The canonical link for it is here.
Posted to issues@ozone.apache.org by "Attila Doroszlai (Jira)" <ji...@apache.org> on 2025/01/23 11:57:00 UTC

[jira] [Created] (HDDS-12130) Improve assertion compatibility with old Hadoop

Attila Doroszlai created HDDS-12130:
---------------------------------------

             Summary: Improve assertion compatibility with old Hadoop
                 Key: HDDS-12130
                 URL: https://issues.apache.org/jira/browse/HDDS-12130
             Project: Apache Ozone
          Issue Type: Task
          Components: test
            Reporter: Attila Doroszlai
            Assignee: Attila Doroszlai


{{Assertions.assertThat}} is overloaded, returning different assertion object depending on the argument.  Passing an instance of raw {{Comparable}} results in compile error.  Hadoop's {{Path}} used to implement raw {{Comparable}} before HADOOP-16196.  Thus, compiling Ozone with old Hadoop that does not have HADOOP-16196 fails.

{code}
[ERROR] /home/adoroszlai/src/apache/ozone/hadoop-ozone/integration-test/src/test/java/org/apache/hadoop/fs/contract/AbstractContractGetFileStatusTest.java:[404,13] cannot find symbol
  symbol:   method isEqualTo(org.apache.hadoop.fs.Path)
  location: class java.lang.Object
{code}

This can be improved by using more specific assertion factory method (e.g. {{assertThatObject}}).



--
This message was sent by Atlassian Jira
(v8.20.10#820010)

---------------------------------------------------------------------
To unsubscribe, e-mail: issues-unsubscribe@ozone.apache.org
For additional commands, e-mail: issues-help@ozone.apache.org