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 2017/12/05 10:57:50 UTC
ant-ivy git commit: do not fail, assert
Repository: ant-ivy
Updated Branches:
refs/heads/master 4a8068579 -> 30c217ec4
do not fail, assert
Project: http://git-wip-us.apache.org/repos/asf/ant-ivy/repo
Commit: http://git-wip-us.apache.org/repos/asf/ant-ivy/commit/30c217ec
Tree: http://git-wip-us.apache.org/repos/asf/ant-ivy/tree/30c217ec
Diff: http://git-wip-us.apache.org/repos/asf/ant-ivy/diff/30c217ec
Branch: refs/heads/master
Commit: 30c217ec400b9175e9490807748ec3e48fe2ba22
Parents: 4a80685
Author: Gintas Grigelionis <gi...@apache.org>
Authored: Tue Dec 5 11:57:36 2017 +0100
Committer: Gintas Grigelionis <gi...@apache.org>
Committed: Tue Dec 5 11:57:36 2017 +0100
----------------------------------------------------------------------
.../org/apache/ivy/plugins/resolver/FileSystemResolverTest.java | 3 +++
test/java/org/apache/ivy/plugins/resolver/ResolverTestHelper.java | 3 ---
2 files changed, 3 insertions(+), 3 deletions(-)
----------------------------------------------------------------------
http://git-wip-us.apache.org/repos/asf/ant-ivy/blob/30c217ec/test/java/org/apache/ivy/plugins/resolver/FileSystemResolverTest.java
----------------------------------------------------------------------
diff --git a/test/java/org/apache/ivy/plugins/resolver/FileSystemResolverTest.java b/test/java/org/apache/ivy/plugins/resolver/FileSystemResolverTest.java
index dea435e..ddf6503 100644
--- a/test/java/org/apache/ivy/plugins/resolver/FileSystemResolverTest.java
+++ b/test/java/org/apache/ivy/plugins/resolver/FileSystemResolverTest.java
@@ -1035,16 +1035,19 @@ public class FileSystemResolverTest extends AbstractDependencyResolverTest {
"org2", "org6", "org9", "orgfailure", "yourorg", "IVY-644"}, orgs);
OrganisationEntry org = ResolverTestHelper.getEntry(orgs, "org1");
+ assertNotNull("organisation not found: org1", org);
ModuleEntry[] mods = resolver.listModules(org);
ResolverTestHelper.assertModuleEntries(resolver, org, new String[] {"mod1.1", "mod1.2",
"mod1.3", "mod1.4", "mod1.5", "mod1.6"}, mods);
ModuleEntry mod = ResolverTestHelper.getEntry(mods, "mod1.1");
+ assertNotNull("module not found: mod1.1", mod);
RevisionEntry[] revs = resolver.listRevisions(mod);
ResolverTestHelper.assertRevisionEntries(resolver, mod, new String[] {"1.0", "1.0.1",
"1.1", "2.0"}, revs);
mod = ResolverTestHelper.getEntry(mods, "mod1.2");
+ assertNotNull("module not found: mod1.2", mod);
revs = resolver.listRevisions(mod);
ResolverTestHelper.assertRevisionEntries(resolver, mod, new String[] {"0.9", "1.0", "1.1",
"2.0", "2.1", "2.2"}, revs);
http://git-wip-us.apache.org/repos/asf/ant-ivy/blob/30c217ec/test/java/org/apache/ivy/plugins/resolver/ResolverTestHelper.java
----------------------------------------------------------------------
diff --git a/test/java/org/apache/ivy/plugins/resolver/ResolverTestHelper.java b/test/java/org/apache/ivy/plugins/resolver/ResolverTestHelper.java
index 58d5e44..e7c6bc7 100644
--- a/test/java/org/apache/ivy/plugins/resolver/ResolverTestHelper.java
+++ b/test/java/org/apache/ivy/plugins/resolver/ResolverTestHelper.java
@@ -26,7 +26,6 @@ import org.apache.ivy.core.search.RevisionEntry;
import static org.junit.Assert.assertEquals;
import static org.junit.Assert.assertNotNull;
import static org.junit.Assert.assertTrue;
-import static org.junit.Assert.fail;
/**
*
@@ -112,7 +111,6 @@ public class ResolverTestHelper {
return org;
}
}
- fail("organisation not found: " + name);
return null; // for compilation only
}
@@ -122,7 +120,6 @@ public class ResolverTestHelper {
return mod;
}
}
- fail("module not found: " + name);
return null; // for compilation only
}
}