You are viewing a plain text version of this content. The canonical link for it is here.
Posted to notifications@ant.apache.org by gi...@apache.org on 2018/03/28 19:36:29 UTC

[5/5] ant-ivyde git commit: Simplify assertions

Simplify assertions

Project: http://git-wip-us.apache.org/repos/asf/ant-ivyde/repo
Commit: http://git-wip-us.apache.org/repos/asf/ant-ivyde/commit/42e704e2
Tree: http://git-wip-us.apache.org/repos/asf/ant-ivyde/tree/42e704e2
Diff: http://git-wip-us.apache.org/repos/asf/ant-ivyde/diff/42e704e2

Branch: refs/heads/master
Commit: 42e704e2e367eac36c9ac8e945c44a675e76d8a6
Parents: dcbe3ef
Author: Gintas Grigelionis <gi...@apache.org>
Authored: Wed Mar 28 21:36:11 2018 +0200
Committer: Gintas Grigelionis <gi...@apache.org>
Committed: Wed Mar 28 21:36:11 2018 +0200

----------------------------------------------------------------------
 .../test/java/org/apache/ivyde/common/model/IvyFileUtilTest.java | 4 ++--
 1 file changed, 2 insertions(+), 2 deletions(-)
----------------------------------------------------------------------


http://git-wip-us.apache.org/repos/asf/ant-ivyde/blob/42e704e2/org.apache.ivyde.eclipse/test/java/org/apache/ivyde/common/model/IvyFileUtilTest.java
----------------------------------------------------------------------
diff --git a/org.apache.ivyde.eclipse/test/java/org/apache/ivyde/common/model/IvyFileUtilTest.java b/org.apache.ivyde.eclipse/test/java/org/apache/ivyde/common/model/IvyFileUtilTest.java
index 438e749..2a76540 100644
--- a/org.apache.ivyde.eclipse/test/java/org/apache/ivyde/common/model/IvyFileUtilTest.java
+++ b/org.apache.ivyde.eclipse/test/java/org/apache/ivyde/common/model/IvyFileUtilTest.java
@@ -29,6 +29,7 @@ import org.junit.Test;
 import static org.junit.Assert.assertEquals;
 import static org.junit.Assert.assertNotNull;
 import static org.junit.Assert.assertNull;
+import static org.junit.Assert.assertTrue;
 
 public class IvyFileUtilTest {
     private static String hibContentStr;
@@ -49,8 +50,7 @@ public class IvyFileUtilTest {
     @Test
     public void testInTag() {
         IvyFile ivyFile = new IvyModuleDescriptorFile(null, "", hibContentStr);
-        boolean b = ivyFile.inTag(1000);
-        assertEquals(b, true);
+        assertTrue(ivyFile.inTag(1000));
     }
 
     @Test