Uploaded image for project: 'Hadoop Common'
  1. Hadoop Common
  2. HADOOP-18248

Fix Junit Test Deprecated assertThat

    XMLWordPrintableJSON

Details

    • Improvement
    • Status: Resolved
    • Major
    • Resolution: Duplicate
    • 3.4.0
    • None
    • None

    Description

      javac will give a warning for compilation, as follows:

      org.junit.Assert.assertThat Deprecated. use org.hamcrest.MatcherAssert.assertThat()

      TestIncrementalBrVariations.java:141:4:[deprecation] <T>assertThat(T,Matcher<? super T>) in Assert has been deprecated 

      a related issue will be resolved in HDFS-16590.

      Attachments

        Issue Links

          Activity

            People

              slfan1989 Shilun Fan
              slfan1989 Shilun Fan
              Votes:
              0 Vote for this issue
              Watchers:
              2 Start watching this issue

              Dates

                Created:
                Updated:
                Resolved:

                Time Tracking

                  Estimated:
                  Original Estimate - Not Specified
                  Not Specified
                  Remaining:
                  Remaining Estimate - 0h
                  0h
                  Logged:
                  Time Spent - 4.5h
                  4.5h