HADOOP-10503. Move junit up to v 4.11. Contributed by Chris Nauroth.

git-svn-id: https://svn.apache.org/repos/asf/hadoop/common/trunk@1589273 13f79535-47bb-0310-9956-ffa450edef68
This commit is contained in:
Chris Nauroth 2014-04-22 19:47:53 +00:00
parent 4a91b876db
commit 7bd5718594
34 changed files with 35 additions and 41 deletions

View File

@ -350,6 +350,8 @@ Release 2.5.0 - UNRELEASED
HADOOP-10485. Remove dead classes in hadoop-streaming. (wheat9)
HADOOP-10503. Move junit up to v 4.11. (cnauroth)
OPTIMIZATIONS
BUG FIXES

View File

@ -38,7 +38,7 @@
import java.util.concurrent.TimeUnit;
import java.util.concurrent.atomic.AtomicInteger;
import junit.framework.Assert;
import org.junit.Assert;
import org.apache.hadoop.fs.Path;
import org.apache.hadoop.conf.Configuration.DeprecationDelta;

View File

@ -17,7 +17,7 @@
*/
package org.apache.hadoop.crypto.key;
import junit.framework.Assert;
import org.junit.Assert;
import org.apache.hadoop.conf.Configuration;
import org.apache.hadoop.fs.Path;

View File

@ -23,7 +23,7 @@
import java.util.List;
import java.util.StringTokenizer;
import junit.framework.Assert;
import org.junit.Assert;
import org.apache.hadoop.fs.permission.FsPermission;
import org.apache.hadoop.security.UserGroupInformation;

View File

@ -21,7 +21,7 @@
import java.io.*;
import java.util.ArrayList;
import java.util.regex.Pattern;
import junit.framework.Assert;
import org.junit.Assert;
import org.apache.hadoop.fs.permission.FsPermission;
import org.apache.hadoop.util.Shell;

View File

@ -20,7 +20,7 @@
import java.io.IOException;
import java.util.Set;
import junit.framework.Assert;
import org.junit.Assert;
import org.apache.hadoop.util.ShutdownHookManager;
import org.junit.After;
import org.junit.Before;

View File

@ -18,8 +18,8 @@
package org.apache.hadoop.fs;
import static junit.framework.Assert.assertSame;
import static junit.framework.Assert.assertNotSame;
import static org.junit.Assert.assertSame;
import static org.junit.Assert.assertNotSame;
import java.io.IOException;
import java.net.URI;

View File

@ -13,7 +13,7 @@
*/
package org.apache.hadoop.http;
import junit.framework.Assert;
import org.junit.Assert;
import org.apache.hadoop.conf.Configuration;
import org.apache.hadoop.fs.FileUtil;
import org.apache.hadoop.net.NetUtils;

View File

@ -45,7 +45,7 @@
import javax.servlet.http.HttpServletRequestWrapper;
import javax.servlet.http.HttpServletResponse;
import junit.framework.Assert;
import org.junit.Assert;
import org.apache.commons.logging.Log;
import org.apache.commons.logging.LogFactory;

View File

@ -23,7 +23,7 @@
import java.io.IOException;
import java.util.Random;
import junit.framework.Assert;
import org.junit.Assert;
import org.apache.hadoop.conf.Configuration;
import org.apache.hadoop.fs.FSDataOutputStream;

View File

@ -19,7 +19,7 @@
import java.io.IOException;
import junit.framework.Assert;
import org.junit.Assert;
import junit.framework.TestCase;
import org.apache.hadoop.conf.Configuration;

View File

@ -19,7 +19,7 @@
import java.io.IOException;
import java.util.Random;
import junit.framework.Assert;
import org.junit.Assert;
import junit.framework.TestCase;
import org.apache.hadoop.conf.Configuration;

View File

@ -22,7 +22,7 @@
import java.io.IOException;
import java.util.Random;
import junit.framework.Assert;
import org.junit.Assert;
import junit.framework.TestCase;
import org.apache.hadoop.conf.Configuration;

View File

@ -19,7 +19,7 @@
import java.io.IOException;
import junit.framework.Assert;
import org.junit.Assert;
import junit.framework.TestCase;
import org.apache.hadoop.conf.Configuration;

View File

@ -21,7 +21,7 @@
import java.io.IOException;
import java.util.Random;
import junit.framework.Assert;
import org.junit.Assert;
import junit.framework.TestCase;
import org.apache.hadoop.conf.Configuration;

View File

@ -26,7 +26,7 @@
import java.util.Arrays;
import java.util.Enumeration;
import junit.framework.Assert;
import org.junit.Assert;
import org.apache.commons.logging.impl.Log4JLogger;
import org.apache.hadoop.conf.Configuration;

View File

@ -26,7 +26,7 @@
import java.lang.reflect.Method;
import java.net.InetSocketAddress;
import junit.framework.Assert;
import org.junit.Assert;
import org.apache.commons.logging.Log;
import org.apache.commons.logging.LogFactory;
@ -390,4 +390,4 @@ private GetProtocolSignatureRequestProto createGetProtocolSigRequestProto(
builder.setRpcKind(rpcKind.toString());
return builder.build();
}
}
}

View File

@ -24,7 +24,7 @@
import javax.net.SocketFactory;
import junit.framework.Assert;
import org.junit.Assert;
import org.apache.hadoop.conf.Configuration;
import org.apache.hadoop.fs.CommonConfigurationKeys;

View File

@ -25,7 +25,7 @@
import java.util.ArrayList;
import java.util.Enumeration;
import junit.framework.Assert;
import org.junit.Assert;
import org.apache.hadoop.conf.Configuration;
import org.apache.hadoop.io.Text;

View File

@ -18,7 +18,7 @@
import java.io.IOException;
import junit.framework.Assert;
import org.junit.Assert;
import org.apache.hadoop.conf.Configuration;
import org.apache.hadoop.fs.CommonConfigurationKeys;

View File

@ -22,7 +22,7 @@
import javax.security.auth.kerberos.KerberosPrincipal;
import junit.framework.Assert;
import org.junit.Assert;
import static org.junit.Assert.*;

View File

@ -30,7 +30,7 @@
import java.util.HashMap;
import java.util.Map;
import static junit.framework.Assert.assertEquals;
import static org.junit.Assert.assertEquals;
import static org.apache.hadoop.security.ssl.KeyStoreTestUtil.createTrustStore;
import static org.apache.hadoop.security.ssl.KeyStoreTestUtil.generateCertificate;
import static org.apache.hadoop.security.ssl.KeyStoreTestUtil.generateKeyPair;

View File

@ -30,7 +30,7 @@
import java.util.List;
import java.util.Map;
import junit.framework.Assert;
import org.junit.Assert;
import org.apache.commons.logging.Log;
import org.apache.commons.logging.LogFactory;

View File

@ -20,7 +20,7 @@
import java.io.File;
import junit.framework.Assert;
import org.junit.Assert;
import org.apache.log4j.Logger;
import org.junit.Test;

View File

@ -21,7 +21,7 @@
import java.util.LinkedList;
import java.util.List;
import junit.framework.Assert;
import org.junit.Assert;
import org.apache.commons.logging.Log;
import org.apache.commons.logging.LogFactory;

View File

@ -24,7 +24,7 @@
import org.apache.hadoop.util.LineReader;
import org.junit.Test;
import junit.framework.Assert;
import org.junit.Assert;
public class TestLineReader {
private LineReader lineReader;

View File

@ -150,12 +150,6 @@
<groupId>junit</groupId>
<artifactId>junit</artifactId>
<scope>compile</scope>
<exclusions>
<exclusion>
<groupId>org.hamcrest</groupId>
<artifactId>hamcrest-core</artifactId>
</exclusion>
</exclusions>
</dependency>
</dependencies>
</project>
</project>

View File

@ -51,7 +51,6 @@
<dependency>
<groupId>junit</groupId>
<artifactId>junit</artifactId>
<version>4.8.2</version>
</dependency>
<dependency>
<groupId>org.mockito</groupId>

View File

@ -17,7 +17,7 @@
*/
package org.apache.hadoop.nfs;
import junit.framework.Assert;
import org.junit.Assert;
import org.apache.hadoop.nfs.AccessPrivilege;
import org.apache.hadoop.nfs.NfsExports;

View File

@ -17,7 +17,7 @@
*/
package org.apache.hadoop.nfs;
import junit.framework.Assert;
import org.junit.Assert;
import org.apache.hadoop.nfs.NfsTime;
import org.apache.hadoop.oncrpc.XDR;

View File

@ -17,7 +17,7 @@
*/
package org.apache.hadoop.nfs.nfs3;
import junit.framework.Assert;
import org.junit.Assert;
import org.apache.hadoop.nfs.nfs3.FileHandle;
import org.apache.hadoop.oncrpc.XDR;

View File

@ -25,7 +25,7 @@
import java.net.Socket;
import java.util.Map;
import junit.framework.Assert;
import org.junit.Assert;
import org.apache.hadoop.oncrpc.RpcCall;
import org.apache.hadoop.oncrpc.XDR;

View File

@ -49,7 +49,6 @@
<dependency>
<groupId>junit</groupId>
<artifactId>junit</artifactId>
<version>3.8.1</version>
<scope>test</scope>
</dependency>
</dependencies>

View File

@ -591,7 +591,7 @@
<dependency>
<groupId>junit</groupId>
<artifactId>junit</artifactId>
<version>4.10</version>
<version>4.11</version>
</dependency>
<dependency>
<groupId>commons-lang</groupId>