hadoop-hdfs-issues mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Andrew Wang (JIRA)" <j...@apache.org>
Subject [jira] [Updated] (HDFS-5495) Remove further JUnit3 usages from HDFS
Date Mon, 11 Nov 2013 23:20:17 GMT

     [ https://issues.apache.org/jira/browse/HDFS-5495?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel
]

Andrew Wang updated HDFS-5495:
------------------------------

    Status: Patch Available  (was: Open)

> Remove further JUnit3 usages from HDFS
> --------------------------------------
>
>                 Key: HDFS-5495
>                 URL: https://issues.apache.org/jira/browse/HDFS-5495
>             Project: Hadoop HDFS
>          Issue Type: Improvement
>    Affects Versions: 2.2.0, 3.0.0
>            Reporter: Andrew Wang
>            Assignee: Jarek Jarcec Cecho
>              Labels: newbie
>         Attachments: HDFS-5495-trunk.patch
>
>
> We're trying to move away from junit3 in hadoop to junit4. One easy way of testing for
this is something like the following:
> {code}
> -> % ack junit.framework -l
> hadoop-hdfs/src/test/java/org/apache/hadoop/hdfs/TestAbandonBlock.java
> hadoop-hdfs/src/test/java/org/apache/hadoop/hdfs/TestConnCache.java
> hadoop-hdfs/src/test/java/org/apache/hadoop/hdfs/TestDFSClientExcludedNodes.java
> hadoop-hdfs/src/test/java/org/apache/hadoop/hdfs/TestDFSOutputStream.java
> hadoop-hdfs/src/test/java/org/apache/hadoop/hdfs/TestFileInputStreamCache.java
> hadoop-hdfs/src/test/java/org/apache/hadoop/hdfs/server/datanode/TestBlockReport.java
> hadoop-hdfs/src/test/java/org/apache/hadoop/hdfs/server/datanode/TestCachingStrategy.java
> hadoop-hdfs/src/test/java/org/apache/hadoop/hdfs/server/datanode/TestFsDatasetCache.java
> hadoop-hdfs/src/test/java/org/apache/hadoop/hdfs/server/datanode/TestMultipleNNDataBlockScanner.java
> hadoop-hdfs/src/test/java/org/apache/hadoop/hdfs/server/datanode/fsdataset/TestAvailableSpaceVolumeChoosingPolicy.java
> hadoop-hdfs/src/test/java/org/apache/hadoop/hdfs/server/namenode/TestPathBasedCacheRequests.java
> hadoop-hdfs/src/test/java/org/apache/hadoop/hdfs/util/TestXMLUtils.java
> hadoop-hdfs/src/test/java/org/apache/hadoop/hdfs/web/TestURLConnectionFactory.java
> hadoop-hdfs/src/test/java/org/apache/hadoop/net/TestNetworkTopology.java
> hadoop-hdfs-httpfs/src/test/java/org/apache/hadoop/fs/http/server/TestHttpFSKerberosAuthenticationHandler.java
> hadoop-hdfs-httpfs/src/test/java/org/apache/hadoop/fs/http/server/TestHttpFSWithKerberos.java
> hadoop-hdfs-httpfs/src/test/java/org/apache/hadoop/lib/service/security/TestDelegationTokenManagerService.java
> hadoop-hdfs-nfs/src/test/java/org/apache/hadoop/hdfs/nfs/nfs3/TestWrites.java
> {code}
> Most of these are probably just static assert imports, it's fairly mechanical to use
the JUnit4 versions. Same goes for converting the unit tests (if necessary).
> See HDFS-3583 and HDFS-3711 for the history.



--
This message was sent by Atlassian JIRA
(v6.1#6144)

Mime
View raw message