You are viewing a plain text version of this content. The canonical link for it is here.
Posted to issues@spark.apache.org by "Yang Jie (Jira)" <ji...@apache.org> on 2021/03/12 03:25:00 UTC

[jira] [Created] (SPARK-34722) Clean up Deprecated API usage about JUnit

Yang Jie created SPARK-34722:
--------------------------------

             Summary: Clean up Deprecated API usage about JUnit
                 Key: SPARK-34722
                 URL: https://issues.apache.org/jira/browse/SPARK-34722
             Project: Spark
          Issue Type: Improvement
          Components: Spark Core
    Affects Versions: 3.2.0
            Reporter: Yang Jie


Maven compile compilation warnings as follows:

 
{code:java}
[WARNING] [Warn] /spark/common/network-common/src/test/java/org/apache/spark/network/client/TransportClientFactorySuite.java:231: org.junit.rules.ExpectedException中的none()已过时
[WARNING] [Warn] /spark/common/network-common/src/test/java/org/apache/spark/network/client/TransportClientFactorySuite.java:247: org.junit.rules.ExpectedException中的none()已过时
[WARNING] [Warn] /spark/common/network-common/src/test/java/org/apache/spark/network/crypto/TransportCipherSuite.java:84: org.junit.Assert中的<T>assertThat(T,org.hamcrest.Matcher<? super T>)已过时
[WARNING] [Warn] /spark/launcher/src/test/java/org/apache/spark/launcher/SparkSubmitCommandBuilderSuite.java:43: org.junit.rules.ExpectedException中的none()已过时
[WARNING] [Warn] /spark/core/src/test/java/org/apache/spark/unsafe/map/AbstractBytesToBytesMapSuite.java:542: org.junit.Assert中的<T>assertThat(T,org.hamcrest.Matcher<? super T>)已过时
[WARNING] [Warn] /spark/core/src/test/java/org/apache/spark/util/collection/unsafe/sort/UnsafeExternalSorterSuite.java:227: org.junit.Assert中的<T>assertThat(T,org.hamcrest.Matcher<? super T>)已过时
[WARNING] [Warn] /spark/core/src/test/java/org/apache/spark/util/collection/unsafe/sort/UnsafeExternalSorterSuite.java:235: org.junit.Assert中的<T>assertThat(T,org.hamcrest.Matcher<? super T>)已过时
[WARNING] [Warn] /spark/core/src/test/java/org/apache/spark/util/collection/unsafe/sort/UnsafeExternalSorterSuite.java:254: org.junit.Assert中的<T>assertThat(T,org.hamcrest.Matcher<? super T>)已过时
[WARNING] [Warn] /spark/sql/core/src/test/java/test/org/apache/spark/sql/JavaDatasetSuite.java:915: org.junit.rules.ExpectedException中的none()已过时

{code}
 

"已过时" means  Deprecated

 



--
This message was sent by Atlassian Jira
(v8.3.4#803005)

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