You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@commons.apache.org by pa...@apache.org on 2017/02/28 22:34:40 UTC

[lang] JUnit imports (closes #247)

Repository: commons-lang
Updated Branches:
  refs/heads/master 98fa164cd -> c79e6fb8f


JUnit imports (closes #247)

The junit.framework package has been deprecated, and should no longer
be used.

This patch fixes the one remaining import from it to statically import
org.junit.Assert.assertNull instead.


Project: http://git-wip-us.apache.org/repos/asf/commons-lang/repo
Commit: http://git-wip-us.apache.org/repos/asf/commons-lang/commit/c79e6fb8
Tree: http://git-wip-us.apache.org/repos/asf/commons-lang/tree/c79e6fb8
Diff: http://git-wip-us.apache.org/repos/asf/commons-lang/diff/c79e6fb8

Branch: refs/heads/master
Commit: c79e6fb8f95bb07d2394221b29b75fcc016f4900
Parents: 98fa164
Author: Allon Mureinik <am...@redhat.com>
Authored: Tue Feb 28 23:17:51 2017 +0200
Committer: pascalschumacher <pa...@gmx.net>
Committed: Tue Feb 28 23:33:26 2017 +0100

----------------------------------------------------------------------
 src/test/java/org/apache/commons/lang3/RandomUtilsTest.java | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)
----------------------------------------------------------------------


http://git-wip-us.apache.org/repos/asf/commons-lang/blob/c79e6fb8/src/test/java/org/apache/commons/lang3/RandomUtilsTest.java
----------------------------------------------------------------------
diff --git a/src/test/java/org/apache/commons/lang3/RandomUtilsTest.java b/src/test/java/org/apache/commons/lang3/RandomUtilsTest.java
index ed032e7..ddbaab1 100644
--- a/src/test/java/org/apache/commons/lang3/RandomUtilsTest.java
+++ b/src/test/java/org/apache/commons/lang3/RandomUtilsTest.java
@@ -16,10 +16,10 @@
  */
 package org.apache.commons.lang3;
 
-import static junit.framework.TestCase.assertNotNull;
 import static org.junit.Assert.assertArrayEquals;
 import static org.junit.Assert.assertEquals;
 import static org.junit.Assert.assertFalse;
+import static org.junit.Assert.assertNotNull;
 import static org.junit.Assert.assertTrue;
 
 import org.junit.Test;


Re: [lang] JUnit imports (closes #247)

Posted by Allon Mureinik <mu...@gmail.com>.
thanks

On Wed, Mar 8, 2017 at 10:22 AM, Benedikt Ritter <br...@apache.org> wrote:

> Nice catch!
>
> > Am 28.02.2017 um 23:34 schrieb pascalschumacher@apache.org:
> >
> > Repository: commons-lang
> > Updated Branches:
> >  refs/heads/master 98fa164cd -> c79e6fb8f
> >
> >
> > JUnit imports (closes #247)
> >
> > The junit.framework package has been deprecated, and should no longer
> > be used.
> >
> > This patch fixes the one remaining import from it to statically import
> > org.junit.Assert.assertNull instead.
> >
> >
> > Project: http://git-wip-us.apache.org/repos/asf/commons-lang/repo
> > Commit: http://git-wip-us.apache.org/repos/asf/commons-lang/commit/
> c79e6fb8
> > Tree: http://git-wip-us.apache.org/repos/asf/commons-lang/tree/c79e6fb8
> > Diff: http://git-wip-us.apache.org/repos/asf/commons-lang/diff/c79e6fb8
> >
> > Branch: refs/heads/master
> > Commit: c79e6fb8f95bb07d2394221b29b75fcc016f4900
> > Parents: 98fa164
> > Author: Allon Mureinik <am...@redhat.com>
> > Authored: Tue Feb 28 23:17:51 2017 +0200
> > Committer: pascalschumacher <pa...@gmx.net>
> > Committed: Tue Feb 28 23:33:26 2017 +0100
> >
> > ----------------------------------------------------------------------
> > src/test/java/org/apache/commons/lang3/RandomUtilsTest.java | 2 +-
> > 1 file changed, 1 insertion(+), 1 deletion(-)
> > ----------------------------------------------------------------------
> >
> >
> > http://git-wip-us.apache.org/repos/asf/commons-lang/blob/
> c79e6fb8/src/test/java/org/apache/commons/lang3/RandomUtilsTest.java
> > ----------------------------------------------------------------------
> > diff --git a/src/test/java/org/apache/commons/lang3/RandomUtilsTest.java
> b/src/test/java/org/apache/commons/lang3/RandomUtilsTest.java
> > index ed032e7..ddbaab1 100644
> > --- a/src/test/java/org/apache/commons/lang3/RandomUtilsTest.java
> > +++ b/src/test/java/org/apache/commons/lang3/RandomUtilsTest.java
> > @@ -16,10 +16,10 @@
> >  */
> > package org.apache.commons.lang3;
> >
> > -import static junit.framework.TestCase.assertNotNull;
> > import static org.junit.Assert.assertArrayEquals;
> > import static org.junit.Assert.assertEquals;
> > import static org.junit.Assert.assertFalse;
> > +import static org.junit.Assert.assertNotNull;
> > import static org.junit.Assert.assertTrue;
> >
> > import org.junit.Test;
> >
>
>
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: dev-unsubscribe@commons.apache.org
> For additional commands, e-mail: dev-help@commons.apache.org
>
>

Re: [lang] JUnit imports (closes #247)

Posted by Benedikt Ritter <br...@apache.org>.
Nice catch!

> Am 28.02.2017 um 23:34 schrieb pascalschumacher@apache.org:
> 
> Repository: commons-lang
> Updated Branches:
>  refs/heads/master 98fa164cd -> c79e6fb8f
> 
> 
> JUnit imports (closes #247)
> 
> The junit.framework package has been deprecated, and should no longer
> be used.
> 
> This patch fixes the one remaining import from it to statically import
> org.junit.Assert.assertNull instead.
> 
> 
> Project: http://git-wip-us.apache.org/repos/asf/commons-lang/repo
> Commit: http://git-wip-us.apache.org/repos/asf/commons-lang/commit/c79e6fb8
> Tree: http://git-wip-us.apache.org/repos/asf/commons-lang/tree/c79e6fb8
> Diff: http://git-wip-us.apache.org/repos/asf/commons-lang/diff/c79e6fb8
> 
> Branch: refs/heads/master
> Commit: c79e6fb8f95bb07d2394221b29b75fcc016f4900
> Parents: 98fa164
> Author: Allon Mureinik <am...@redhat.com>
> Authored: Tue Feb 28 23:17:51 2017 +0200
> Committer: pascalschumacher <pa...@gmx.net>
> Committed: Tue Feb 28 23:33:26 2017 +0100
> 
> ----------------------------------------------------------------------
> src/test/java/org/apache/commons/lang3/RandomUtilsTest.java | 2 +-
> 1 file changed, 1 insertion(+), 1 deletion(-)
> ----------------------------------------------------------------------
> 
> 
> http://git-wip-us.apache.org/repos/asf/commons-lang/blob/c79e6fb8/src/test/java/org/apache/commons/lang3/RandomUtilsTest.java
> ----------------------------------------------------------------------
> diff --git a/src/test/java/org/apache/commons/lang3/RandomUtilsTest.java b/src/test/java/org/apache/commons/lang3/RandomUtilsTest.java
> index ed032e7..ddbaab1 100644
> --- a/src/test/java/org/apache/commons/lang3/RandomUtilsTest.java
> +++ b/src/test/java/org/apache/commons/lang3/RandomUtilsTest.java
> @@ -16,10 +16,10 @@
>  */
> package org.apache.commons.lang3;
> 
> -import static junit.framework.TestCase.assertNotNull;
> import static org.junit.Assert.assertArrayEquals;
> import static org.junit.Assert.assertEquals;
> import static org.junit.Assert.assertFalse;
> +import static org.junit.Assert.assertNotNull;
> import static org.junit.Assert.assertTrue;
> 
> import org.junit.Test;
> 


---------------------------------------------------------------------
To unsubscribe, e-mail: dev-unsubscribe@commons.apache.org
For additional commands, e-mail: dev-help@commons.apache.org