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 18:58:53 UTC

[4/4] ant-ivy git commit: Extraneous exceptions

Extraneous exceptions

Project: http://git-wip-us.apache.org/repos/asf/ant-ivy/repo
Commit: http://git-wip-us.apache.org/repos/asf/ant-ivy/commit/8c4cd482
Tree: http://git-wip-us.apache.org/repos/asf/ant-ivy/tree/8c4cd482
Diff: http://git-wip-us.apache.org/repos/asf/ant-ivy/diff/8c4cd482

Branch: refs/heads/master
Commit: 8c4cd482a09661db20497285321d9cf806675787
Parents: 2597f85
Author: Gintas Grigelionis <gi...@apache.org>
Authored: Wed Mar 28 20:58:32 2018 +0200
Committer: Gintas Grigelionis <gi...@apache.org>
Committed: Wed Mar 28 20:58:32 2018 +0200

----------------------------------------------------------------------
 .../parser/m2/MavenVersionRangeParserTest.java      | 16 ++++++++--------
 1 file changed, 8 insertions(+), 8 deletions(-)
----------------------------------------------------------------------


http://git-wip-us.apache.org/repos/asf/ant-ivy/blob/8c4cd482/test/java/org/apache/ivy/plugins/parser/m2/MavenVersionRangeParserTest.java
----------------------------------------------------------------------
diff --git a/test/java/org/apache/ivy/plugins/parser/m2/MavenVersionRangeParserTest.java b/test/java/org/apache/ivy/plugins/parser/m2/MavenVersionRangeParserTest.java
index ed610b7..78e681f 100644
--- a/test/java/org/apache/ivy/plugins/parser/m2/MavenVersionRangeParserTest.java
+++ b/test/java/org/apache/ivy/plugins/parser/m2/MavenVersionRangeParserTest.java
@@ -34,7 +34,7 @@ public class MavenVersionRangeParserTest {
      * @throws Exception if something goes wrong
      */
     @Test
-    public void testExactValue() throws Exception {
+    public void testExactValue() {
         assertTrue("Exact value was expected to match", MavenVersionRangeParser.rangeAccepts("3", "3"));
         assertTrue("Exact value was expected to match", MavenVersionRangeParser.rangeAccepts("1.0", "1.0"));
         assertTrue("Exact value was expected to match", MavenVersionRangeParser.rangeAccepts("2.1.4", "2.1.4"));
@@ -47,7 +47,7 @@ public class MavenVersionRangeParserTest {
      * @throws Exception if something goes wrong
      */
     @Test
-    public void testLessThanEqualBoundRange() throws Exception {
+    public void testLessThanEqualBoundRange() {
         final String range = "(,5.0]";
         assertTrue("<= range was expected to match", MavenVersionRangeParser.rangeAccepts(range, "1"));
         assertTrue("<= range was expected to match", MavenVersionRangeParser.rangeAccepts(range, "3.41.2"));
@@ -68,7 +68,7 @@ public class MavenVersionRangeParserTest {
      * @throws Exception if something goes wrong
      */
     @Test
-    public void testLessThanBoundRange() throws Exception {
+    public void testLessThanBoundRange() {
         final String range = "(,23.0.1)";
         assertTrue("'<' range was expected to match", MavenVersionRangeParser.rangeAccepts(range, "1"));
         assertTrue("'<' range was expected to match", MavenVersionRangeParser.rangeAccepts(range, "3.41.2"));
@@ -89,7 +89,7 @@ public class MavenVersionRangeParserTest {
      * @throws Exception if something goes wrong
      */
     @Test
-    public void testEqualsBoundRange() throws Exception {
+    public void testEqualsBoundRange() {
         final String range = "[1.0]";
         assertTrue("range was expected to match", MavenVersionRangeParser.rangeAccepts(range, "1.0"));
         assertFalse("range wasn't expected to match", MavenVersionRangeParser.rangeAccepts(range, "1.0.1"));
@@ -102,7 +102,7 @@ public class MavenVersionRangeParserTest {
      * @throws Exception if something goes wrong
      */
     @Test
-    public void testGreaterThanEqualBoundRange() throws Exception {
+    public void testGreaterThanEqualBoundRange() {
         final String range = "[7.0,)";
         assertTrue(">= range was expected to match", MavenVersionRangeParser.rangeAccepts(range, "7"));
         assertTrue(">= range was expected to match", MavenVersionRangeParser.rangeAccepts(range, "7.41.2"));
@@ -124,7 +124,7 @@ public class MavenVersionRangeParserTest {
      * @throws Exception if something goes wrong
      */
     @Test
-    public void testGreaterThanBoundRange() throws Exception {
+    public void testGreaterThanBoundRange() {
         final String range = "(11.0,)";
         assertTrue("'>' range was expected to match", MavenVersionRangeParser.rangeAccepts(range, "12"));
         assertTrue("'>' range was expected to match", MavenVersionRangeParser.rangeAccepts(range, "42.121.1"));
@@ -144,7 +144,7 @@ public class MavenVersionRangeParserTest {
      * @throws Exception if something goes wrong
      */
     @Test
-    public void testMultiRange() throws Exception {
+    public void testMultiRange() {
         final String range = "(,1.0],[1.2,)"; // x <= 1.0 or x >= 1.2
         assertTrue("Range with multiple sets was expected to match", MavenVersionRangeParser.rangeAccepts(range, "1.0"));
         assertTrue("Range with multiple sets was expected to match", MavenVersionRangeParser.rangeAccepts(range, "1"));
@@ -165,7 +165,7 @@ public class MavenVersionRangeParserTest {
      * @throws Exception if something goes wrong
      */
     @Test
-    public void testMultiRangeSpecificValue() throws Exception {
+    public void testMultiRangeSpecificValue() {
         final String range = "(,1.1),(1.1,)"; // x != 1.1
         assertTrue("Range with multiple sets was expected to match", MavenVersionRangeParser.rangeAccepts(range, "1.0"));
         assertTrue("Range with multiple sets was expected to match", MavenVersionRangeParser.rangeAccepts(range, "1.0.1"));