ant-notifications mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From gin...@apache.org
Subject [1/2] ant-ivy git commit: chop extraneous throws, fix imports and javadoc
Date Tue, 05 Dec 2017 10:12:41 GMT
Repository: ant-ivy
Updated Branches:
  refs/heads/master d86ae886e -> 4e2846d5f


http://git-wip-us.apache.org/repos/asf/ant-ivy/blob/4e2846d5/test/java/org/apache/ivy/core/settings/XmlSettingsParserTest.java
----------------------------------------------------------------------
diff --git a/test/java/org/apache/ivy/core/settings/XmlSettingsParserTest.java b/test/java/org/apache/ivy/core/settings/XmlSettingsParserTest.java
index 6299190..1aae1f3 100644
--- a/test/java/org/apache/ivy/core/settings/XmlSettingsParserTest.java
+++ b/test/java/org/apache/ivy/core/settings/XmlSettingsParserTest.java
@@ -658,7 +658,7 @@ public class XmlSettingsParserTest {
     }
 
     @Test
-    public void testBaseDirVariables() throws Exception {
+    public void testBaseDirVariables() {
         IvySettings settings = new IvySettings();
         settings.setBaseDir(new File("test/base/dir"));
         assertEquals(new File("test/base/dir").getAbsolutePath(), settings.getVariable("basedir"));

http://git-wip-us.apache.org/repos/asf/ant-ivy/blob/4e2846d5/test/java/org/apache/ivy/core/sort/SortTest.java
----------------------------------------------------------------------
diff --git a/test/java/org/apache/ivy/core/sort/SortTest.java b/test/java/org/apache/ivy/core/sort/SortTest.java
index be3654a..0660884 100644
--- a/test/java/org/apache/ivy/core/sort/SortTest.java
+++ b/test/java/org/apache/ivy/core/sort/SortTest.java
@@ -74,7 +74,7 @@ public class SortTest {
     }
 
     @Test
-    public void testSort() throws Exception {
+    public void testSort() {
         addDependency(md2, "md1", "rev1");
         addDependency(md3, "md2", "rev2");
         addDependency(md4, "md3", "rev3");
@@ -95,7 +95,7 @@ public class SortTest {
      * @throws Exception if something goes wrong
      */
     @Test
-    public void testCircularDependency() throws Exception {
+    public void testCircularDependency() {
         addDependency(md1, "md4", "rev4");
         addDependency(md2, "md1", "rev1");
         addDependency(md3, "md2", "rev2");
@@ -111,7 +111,7 @@ public class SortTest {
     }
 
     @Test
-    public void testCircularDependency2() throws Exception {
+    public void testCircularDependency2() {
         addDependency(md2, "md3", "rev3");
         addDependency(md2, "md1", "rev1");
         addDependency(md3, "md2", "rev2");
@@ -133,7 +133,7 @@ public class SortTest {
      * @see <a href="https://issues.apache.org/jira/browse/IVY-624">IVY-624</a>
      */
     @Test
-    public void testCircularDependencyInfiniteLoop() throws Exception {
+    public void testCircularDependencyInfiniteLoop() {
         addDependency(md1, "md2", "rev2");
         addDependency(md1, "md3", "rev3");
         addDependency(md2, "md3", "rev3");

http://git-wip-us.apache.org/repos/asf/ant-ivy/blob/4e2846d5/test/java/org/apache/ivy/osgi/core/ManifestParserTest.java
----------------------------------------------------------------------
diff --git a/test/java/org/apache/ivy/osgi/core/ManifestParserTest.java b/test/java/org/apache/ivy/osgi/core/ManifestParserTest.java
index 21bfb83..a6db458 100644
--- a/test/java/org/apache/ivy/osgi/core/ManifestParserTest.java
+++ b/test/java/org/apache/ivy/osgi/core/ManifestParserTest.java
@@ -104,7 +104,7 @@ public class ManifestParserTest {
     }
 
     @Test
-    public void testFormatLines() throws Exception {
+    public void testFormatLines() {
         assertEquals("foo bar\n", ManifestParser.formatLines("foo bar"));
         assertEquals(
             "123456789012345678901234567890123456789012345678901234567890123456789012\n",

http://git-wip-us.apache.org/repos/asf/ant-ivy/blob/4e2846d5/test/java/org/apache/ivy/osgi/repo/BundleRepoTest.java
----------------------------------------------------------------------
diff --git a/test/java/org/apache/ivy/osgi/repo/BundleRepoTest.java b/test/java/org/apache/ivy/osgi/repo/BundleRepoTest.java
index 0e4bdb7..55a2515 100644
--- a/test/java/org/apache/ivy/osgi/repo/BundleRepoTest.java
+++ b/test/java/org/apache/ivy/osgi/repo/BundleRepoTest.java
@@ -22,7 +22,6 @@ import java.io.ByteArrayOutputStream;
 import java.io.File;
 import java.io.FileInputStream;
 import java.io.IOException;
-import java.text.ParseException;
 
 import javax.xml.transform.TransformerConfigurationException;
 import javax.xml.transform.sax.SAXTransformerFactory;
@@ -95,7 +94,7 @@ public class BundleRepoTest {
     }
 
     @Test
-    public void testXMLSerialisation() throws SAXException, ParseException, IOException {
+    public void testXMLSerialisation() throws SAXException, IOException {
         FSManifestIterable it = new FSManifestIterable(bundlerepo);
         BundleRepoDescriptor repo = new BundleRepoDescriptor(bundlerepo.toURI(),
                 ExecutionEnvironmentProfileProvider.getInstance());

http://git-wip-us.apache.org/repos/asf/ant-ivy/blob/4e2846d5/test/java/org/apache/ivy/osgi/updatesite/UpdateSiteResolverTest.java
----------------------------------------------------------------------
diff --git a/test/java/org/apache/ivy/osgi/updatesite/UpdateSiteResolverTest.java b/test/java/org/apache/ivy/osgi/updatesite/UpdateSiteResolverTest.java
index 6e47044..0d2d868 100644
--- a/test/java/org/apache/ivy/osgi/updatesite/UpdateSiteResolverTest.java
+++ b/test/java/org/apache/ivy/osgi/updatesite/UpdateSiteResolverTest.java
@@ -86,7 +86,7 @@ public class UpdateSiteResolverTest {
     }
 
     @Test
-    public void testListOrganization() throws Exception {
+    public void testListOrganization() {
         OrganisationEntry[] orgs = resolver.listOrganisations();
         assertEquals(2, orgs.length);
         assertTrue((orgs[0].getOrganisation().equals(BundleInfo.BUNDLE_TYPE) && orgs[1]
@@ -96,7 +96,7 @@ public class UpdateSiteResolverTest {
     }
 
     @Test
-    public void testListModules() throws Exception {
+    public void testListModules() {
         ModuleEntry[] modules = resolver.listModules(new OrganisationEntry(resolver,
                 BundleInfo.BUNDLE_TYPE));
         assertEquals(3, modules.length);

http://git-wip-us.apache.org/repos/asf/ant-ivy/blob/4e2846d5/test/java/org/apache/ivy/osgi/util/VersionTest.java
----------------------------------------------------------------------
diff --git a/test/java/org/apache/ivy/osgi/util/VersionTest.java b/test/java/org/apache/ivy/osgi/util/VersionTest.java
index 0cd2243..ae4420a 100644
--- a/test/java/org/apache/ivy/osgi/util/VersionTest.java
+++ b/test/java/org/apache/ivy/osgi/util/VersionTest.java
@@ -25,7 +25,7 @@ import static org.junit.Assert.assertTrue;
 public class VersionTest {
 
     @Test
-    public void testParsing() throws Exception {
+    public void testParsing() {
         Version v;
 
         v = new Version("1");
@@ -46,7 +46,7 @@ public class VersionTest {
     }
 
     @Test
-    public void testCompareTo() throws Exception {
+    public void testCompareTo() {
         assertTrue(new Version("1.2.3").compareTo(new Version("1.2.3")) == 0);
 
         assertTrue(new Version("1.2.3").compareTo(new Version("1.2.2")) > 0);

http://git-wip-us.apache.org/repos/asf/ant-ivy/blob/4e2846d5/test/java/org/apache/ivy/plugins/circular/IgnoreCircularDependencyStrategyTest.java
----------------------------------------------------------------------
diff --git a/test/java/org/apache/ivy/plugins/circular/IgnoreCircularDependencyStrategyTest.java
b/test/java/org/apache/ivy/plugins/circular/IgnoreCircularDependencyStrategyTest.java
index 10707f4..9c371dc 100644
--- a/test/java/org/apache/ivy/plugins/circular/IgnoreCircularDependencyStrategyTest.java
+++ b/test/java/org/apache/ivy/plugins/circular/IgnoreCircularDependencyStrategyTest.java
@@ -43,19 +43,19 @@ public class IgnoreCircularDependencyStrategyTest {
     }
 
     @After
-    public void tearDown() throws Exception {
+    public void tearDown() {
         resetMockLogger(messageLoggerEngine);
     }
 
     @Test
-    public void testLog() throws Exception {
+    public void testLog() {
         strategy.handleCircularDependency(TestHelper.parseMridsToArray("#A;1.0, #B;1.0"));
 
         mockMessageImpl.assertLogVerboseContains("circular dependency found: #A;1.0->#B;1.0");
     }
 
     @Test
-    public void testRemoveDuplicates() throws Exception {
+    public void testRemoveDuplicates() {
         strategy.handleCircularDependency(TestHelper.parseMridsToArray("#A;1.1, #B;1.0"));
         strategy.handleCircularDependency(TestHelper.parseMridsToArray("#A;1.1, #B;1.0"));
 

http://git-wip-us.apache.org/repos/asf/ant-ivy/blob/4e2846d5/test/java/org/apache/ivy/plugins/circular/WarnCircularDependencyStrategyTest.java
----------------------------------------------------------------------
diff --git a/test/java/org/apache/ivy/plugins/circular/WarnCircularDependencyStrategyTest.java
b/test/java/org/apache/ivy/plugins/circular/WarnCircularDependencyStrategyTest.java
index f643864..6722aab 100644
--- a/test/java/org/apache/ivy/plugins/circular/WarnCircularDependencyStrategyTest.java
+++ b/test/java/org/apache/ivy/plugins/circular/WarnCircularDependencyStrategyTest.java
@@ -56,13 +56,13 @@ public class WarnCircularDependencyStrategyTest {
     }
 
     @Test
-    public void testLog() throws Exception {
+    public void testLog() {
         strategy.handleCircularDependency(TestHelper.parseMridsToArray("#A;1.0, #B;1.0"));
         mockMessageLogger.assertLogWarningContains("circular dependency found: #A;1.0->#B;1.0");
     }
 
     @Test
-    public void testRemoveDuplicates() throws Exception {
+    public void testRemoveDuplicates() {
         strategy.handleCircularDependency(TestHelper.parseMridsToArray("#A;1.1, #B;1.0"));
         strategy.handleCircularDependency(TestHelper.parseMridsToArray("#A;1.1, #B;1.0"));
 
@@ -71,7 +71,7 @@ public class WarnCircularDependencyStrategyTest {
     }
 
     @Test
-    public void testRemoveDuplicates2() throws Exception {
+    public void testRemoveDuplicates2() {
         setResolveContext("1");
         strategy.handleCircularDependency(TestHelper.parseMridsToArray("#A;1.1, #B;1.0"));
         strategy.handleCircularDependency(TestHelper.parseMridsToArray("#A;1.1, #B;1.0"));

http://git-wip-us.apache.org/repos/asf/ant-ivy/blob/4e2846d5/test/java/org/apache/ivy/plugins/conflict/StrictConflictManagerTest.java
----------------------------------------------------------------------
diff --git a/test/java/org/apache/ivy/plugins/conflict/StrictConflictManagerTest.java b/test/java/org/apache/ivy/plugins/conflict/StrictConflictManagerTest.java
index 5f14e9c..07eb201 100644
--- a/test/java/org/apache/ivy/plugins/conflict/StrictConflictManagerTest.java
+++ b/test/java/org/apache/ivy/plugins/conflict/StrictConflictManagerTest.java
@@ -47,7 +47,7 @@ public class StrictConflictManagerTest {
     }
 
     @Test
-    public void testInitFromConf() throws Exception {
+    public void testInitFromConf() {
         ConflictManager cm = ivy.getSettings().getDefaultConflictManager();
         assertTrue(cm instanceof StrictConflictManager);
     }

http://git-wip-us.apache.org/repos/asf/ant-ivy/blob/4e2846d5/test/java/org/apache/ivy/plugins/namespace/NameSpaceHelperTest.java
----------------------------------------------------------------------
diff --git a/test/java/org/apache/ivy/plugins/namespace/NameSpaceHelperTest.java b/test/java/org/apache/ivy/plugins/namespace/NameSpaceHelperTest.java
index bd880a5..68756aa 100644
--- a/test/java/org/apache/ivy/plugins/namespace/NameSpaceHelperTest.java
+++ b/test/java/org/apache/ivy/plugins/namespace/NameSpaceHelperTest.java
@@ -30,7 +30,7 @@ import static org.junit.Assert.assertEquals;
 
 public class NameSpaceHelperTest {
     @Test
-    public void testTransformArtifactWithExtraAttributes() throws Exception {
+    public void testTransformArtifactWithExtraAttributes() {
         Artifact artifact = new DefaultArtifact(ArtifactRevisionId.newInstance(
             ModuleRevisionId.parse("org.apache#test;1.0"), "test", "jar", "jar",
             Collections.singletonMap("m:qualifier", "sources")), new Date(), null, false);

http://git-wip-us.apache.org/repos/asf/ant-ivy/blob/4e2846d5/test/java/org/apache/ivy/plugins/parser/m2/PomModuleDescriptorParserTest.java
----------------------------------------------------------------------
diff --git a/test/java/org/apache/ivy/plugins/parser/m2/PomModuleDescriptorParserTest.java
b/test/java/org/apache/ivy/plugins/parser/m2/PomModuleDescriptorParserTest.java
index 82b42ae..f215e7c 100644
--- a/test/java/org/apache/ivy/plugins/parser/m2/PomModuleDescriptorParserTest.java
+++ b/test/java/org/apache/ivy/plugins/parser/m2/PomModuleDescriptorParserTest.java
@@ -109,7 +109,7 @@ public class PomModuleDescriptorParserTest extends AbstractModuleDescriptorParse
     }
 
     @Test
-    public void testAccept() throws Exception {
+    public void testAccept() {
         assertTrue(PomModuleDescriptorParser.getInstance().accept(
             new URLResource(getClass().getResource("test-simple.pom"))));
         assertFalse(PomModuleDescriptorParser.getInstance().accept(

http://git-wip-us.apache.org/repos/asf/ant-ivy/blob/4e2846d5/test/java/org/apache/ivy/plugins/repository/vfs/VfsResourceTest.java
----------------------------------------------------------------------
diff --git a/test/java/org/apache/ivy/plugins/repository/vfs/VfsResourceTest.java b/test/java/org/apache/ivy/plugins/repository/vfs/VfsResourceTest.java
index 99b9201..c33d8c4 100644
--- a/test/java/org/apache/ivy/plugins/repository/vfs/VfsResourceTest.java
+++ b/test/java/org/apache/ivy/plugins/repository/vfs/VfsResourceTest.java
@@ -120,7 +120,7 @@ public class VfsResourceTest {
      * @throws Exception if something goes wrong
      */
     @Test
-    public void testBadURI() throws Exception {
+    public void testBadURI() {
         String vfsURI = "smb1:/goobeldygook";
         VfsResource res = new VfsResource(vfsURI, helper.fsManager);
 
@@ -142,7 +142,7 @@ public class VfsResourceTest {
      * @throws Exception if something goes wrong
      */
     @Test
-    public void testListFolderChildren() throws Exception {
+    public void testListFolderChildren() {
         final String testFolder = "2/mod10.1";
         final List<String> expectedFiles =
                 Arrays.asList("ivy-1.0.xml", "ivy-1.1.xml", "ivy-1.2.xml", "ivy-1.3.xml");
@@ -177,7 +177,7 @@ public class VfsResourceTest {
      * @throws Exception if something goes wrong
      */
     @Test
-    public void testListFileChildren() throws Exception {
+    public void testListFileChildren() {
         for (VfsURI vfsURI : helper.createVFSUriSet(VfsTestHelper.TEST_IVY_XML)) {
             VfsResource res = new VfsResource(vfsURI.toString(), helper.fsManager);
             List<String> results = res.getChildren();
@@ -193,7 +193,7 @@ public class VfsResourceTest {
      * @throws Exception if something goes wrong
      */
     @Test
-    public void testListImaginary() throws Exception {
+    public void testListImaginary() {
         for (VfsURI vfsURI : helper.createVFSUriSet("idontexistzzxx")) {
             VfsResource res = new VfsResource(vfsURI.toString(), helper.fsManager);
             List<String> results = res.getChildren();

http://git-wip-us.apache.org/repos/asf/ant-ivy/blob/4e2846d5/test/java/org/apache/ivy/plugins/resolver/ChainResolverTest.java
----------------------------------------------------------------------
diff --git a/test/java/org/apache/ivy/plugins/resolver/ChainResolverTest.java b/test/java/org/apache/ivy/plugins/resolver/ChainResolverTest.java
index e318df7..2ff8c1f 100644
--- a/test/java/org/apache/ivy/plugins/resolver/ChainResolverTest.java
+++ b/test/java/org/apache/ivy/plugins/resolver/ChainResolverTest.java
@@ -97,7 +97,7 @@ public class ChainResolverTest extends AbstractDependencyResolverTest {
     }
 
     @Test
-    public void testName() throws Exception {
+    public void testName() {
         ChainResolver chain = new ChainResolver();
         chain.setSettings(settings);
         chain.setName("chain");
@@ -539,7 +539,7 @@ public class ChainResolverTest extends AbstractDependencyResolverTest
{
     }
 
     @Test
-    public void testDownloadWithDual() throws Exception {
+    public void testDownloadWithDual() {
         ChainResolver chain = new ChainResolver();
         chain.setName("chain");
         chain.setSettings(settings);

http://git-wip-us.apache.org/repos/asf/ant-ivy/blob/4e2846d5/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 07c75e7..dea435e 100644
--- a/test/java/org/apache/ivy/plugins/resolver/FileSystemResolverTest.java
+++ b/test/java/org/apache/ivy/plugins/resolver/FileSystemResolverTest.java
@@ -1020,7 +1020,7 @@ public class FileSystemResolverTest extends AbstractDependencyResolverTest
{
     }
 
     @Test
-    public void testListing() throws Exception {
+    public void testListing() {
         FileSystemResolver resolver = new FileSystemResolver();
         resolver.setName("test");
         resolver.setSettings(settings);

http://git-wip-us.apache.org/repos/asf/ant-ivy/blob/4e2846d5/test/java/org/apache/ivy/plugins/resolver/IBiblioResolverTest.java
----------------------------------------------------------------------
diff --git a/test/java/org/apache/ivy/plugins/resolver/IBiblioResolverTest.java b/test/java/org/apache/ivy/plugins/resolver/IBiblioResolverTest.java
index 88e5da0..5549344 100644
--- a/test/java/org/apache/ivy/plugins/resolver/IBiblioResolverTest.java
+++ b/test/java/org/apache/ivy/plugins/resolver/IBiblioResolverTest.java
@@ -155,7 +155,7 @@ public class IBiblioResolverTest extends AbstractDependencyResolverTest
{
 
     @SuppressWarnings({"rawtypes", "unchecked"})
     @Test
-    public void testMaven2Listing() throws Exception {
+    public void testMaven2Listing() {
         IBiblioResolver resolver = new IBiblioResolver();
         resolver.setName("test");
         resolver.setSettings(settings);

http://git-wip-us.apache.org/repos/asf/ant-ivy/blob/4e2846d5/test/java/org/apache/ivy/plugins/resolver/PackagerResolverTest.java
----------------------------------------------------------------------
diff --git a/test/java/org/apache/ivy/plugins/resolver/PackagerResolverTest.java b/test/java/org/apache/ivy/plugins/resolver/PackagerResolverTest.java
index 1cd1aa2..413d6ec 100644
--- a/test/java/org/apache/ivy/plugins/resolver/PackagerResolverTest.java
+++ b/test/java/org/apache/ivy/plugins/resolver/PackagerResolverTest.java
@@ -90,7 +90,7 @@ public class PackagerResolverTest extends AbstractDependencyResolverTest
{
     }
 
     @After
-    public void tearDown() throws Exception {
+    public void tearDown() {
         FileUtil.forceDelete(cache);
         cleanupTempDirs();
     }

http://git-wip-us.apache.org/repos/asf/ant-ivy/blob/4e2846d5/test/java/org/apache/ivy/plugins/trigger/LogTriggerTest.java
----------------------------------------------------------------------
diff --git a/test/java/org/apache/ivy/plugins/trigger/LogTriggerTest.java b/test/java/org/apache/ivy/plugins/trigger/LogTriggerTest.java
index 4956a95..e8b9f70 100644
--- a/test/java/org/apache/ivy/plugins/trigger/LogTriggerTest.java
+++ b/test/java/org/apache/ivy/plugins/trigger/LogTriggerTest.java
@@ -58,7 +58,7 @@ public class LogTriggerTest {
     }
 
     @Test
-    public void testMessage() throws Exception {
+    public void testMessage() {
         trigger.setMessage("msg: ${organisation} ${module} ${revision}");
 
         MockMessageLogger mockLogger = new MockMessageLogger();

http://git-wip-us.apache.org/repos/asf/ant-ivy/blob/4e2846d5/test/java/org/apache/ivy/plugins/version/LatestVersionMatcherTest.java
----------------------------------------------------------------------
diff --git a/test/java/org/apache/ivy/plugins/version/LatestVersionMatcherTest.java b/test/java/org/apache/ivy/plugins/version/LatestVersionMatcherTest.java
index 0b027dd..4f45dc9 100644
--- a/test/java/org/apache/ivy/plugins/version/LatestVersionMatcherTest.java
+++ b/test/java/org/apache/ivy/plugins/version/LatestVersionMatcherTest.java
@@ -42,14 +42,14 @@ public class LatestVersionMatcherTest {
     }
 
     @Test
-    public void testNeedModuleDescriptorStandardStatus() throws Exception {
+    public void testNeedModuleDescriptorStandardStatus() {
         assertNeed("latest.release", true);
         assertNeed("latest.milestone", true);
         assertNeed("latest.integration", false);
     }
 
     @Test
-    public void testNeedModuleDescriptorCustomStatus() throws Exception {
+    public void testNeedModuleDescriptorCustomStatus() {
         StatusManager.getCurrent().addStatus(new Status("release", false));
         StatusManager.getCurrent().addStatus(new Status("snapshot", true));
 
@@ -58,21 +58,21 @@ public class LatestVersionMatcherTest {
     }
 
     @Test
-    public void testAcceptForStandardStatus() throws Exception {
+    public void testAcceptForStandardStatus() {
         assertAccept("latest.release", "release", true);
         assertAccept("latest.release", "milestone", false);
         assertAccept("latest.release", "integration", false);
     }
 
     @Test
-    public void testAcceptForSameBranches() throws Exception {
+    public void testAcceptForSameBranches() {
         assertAccept("latest.release", "trunk", "release", "trunk", true);
         assertAccept("latest.release", "trunk", "milestone", "trunk", false);
         assertAccept("latest.release", "trunk", "integration", "trunk", false);
     }
 
   @Test
-    public void testAcceptForDifferentBranches() throws Exception {
+    public void testAcceptForDifferentBranches() {
         assertAccept("latest.release", "trunk", "release", "feature", false);
         assertAccept("latest.release", "trunk", "milestone", "feature", false);
         assertAccept("latest.release", "trunk", "integration", "feature", false);

http://git-wip-us.apache.org/repos/asf/ant-ivy/blob/4e2846d5/test/java/org/apache/ivy/plugins/version/MavenTimedSnapshotVersionMatcherTest.java
----------------------------------------------------------------------
diff --git a/test/java/org/apache/ivy/plugins/version/MavenTimedSnapshotVersionMatcherTest.java
b/test/java/org/apache/ivy/plugins/version/MavenTimedSnapshotVersionMatcherTest.java
index f984a62..29f42a1 100644
--- a/test/java/org/apache/ivy/plugins/version/MavenTimedSnapshotVersionMatcherTest.java
+++ b/test/java/org/apache/ivy/plugins/version/MavenTimedSnapshotVersionMatcherTest.java
@@ -29,11 +29,9 @@ public class MavenTimedSnapshotVersionMatcherTest {
 
     /**
      * Tests the {@link MavenTimedSnapshotVersionMatcher#isDynamic(ModuleRevisionId)} method
-     *
-     * @throws Exception
      */
     @Test
-    public void testIsDynamic() throws Exception {
+    public void testIsDynamic() {
         final MavenTimedSnapshotVersionMatcher versionMatcher = new MavenTimedSnapshotVersionMatcher();
         final ModuleRevisionId regularSnapshot = ModuleRevisionId.newInstance("org.apache",
"ant-ivy", "1.0.2-SNAPSHOT");
         Assert.assertFalse(regularSnapshot + " wasn't expected to be a dynamic revision",
versionMatcher.isDynamic(regularSnapshot));
@@ -46,11 +44,9 @@ public class MavenTimedSnapshotVersionMatcherTest {
 
     /**
      * Tests the {@link MavenTimedSnapshotVersionMatcher#computeIfSnapshot(String)} method
-     *
-     * @throws Exception
      */
     @Test
-    public void testSnapshotParsing() throws Exception {
+    public void testSnapshotParsing() {
         Assert.assertNull("Revision wasn't expected to be a snapshot",
             MavenTimedSnapshotVersionMatcher.computeIfSnapshot("1.9.9"));
 

http://git-wip-us.apache.org/repos/asf/ant-ivy/blob/4e2846d5/test/java/org/apache/ivy/plugins/version/VersionRangeMatcherTest.java
----------------------------------------------------------------------
diff --git a/test/java/org/apache/ivy/plugins/version/VersionRangeMatcherTest.java b/test/java/org/apache/ivy/plugins/version/VersionRangeMatcherTest.java
index 1abfe1a..3167ddb 100644
--- a/test/java/org/apache/ivy/plugins/version/VersionRangeMatcherTest.java
+++ b/test/java/org/apache/ivy/plugins/version/VersionRangeMatcherTest.java
@@ -27,7 +27,7 @@ public class VersionRangeMatcherTest {
     final VersionMatcher vm = new VersionRangeMatcher("range", new LatestRevisionStrategy());
 
     @Test
-    public void testMavenExcludeParenthesis() throws Exception {
+    public void testMavenExcludeParenthesis() {
         assertAccept("[3.8,4.0)", "3.7", false);
         assertAccept("[3.8,4.0)", "3.8", true);
         assertAccept("[3.8,4.0)", "3.9", true);

http://git-wip-us.apache.org/repos/asf/ant-ivy/blob/4e2846d5/test/java/org/apache/ivy/util/StringUtilsTest.java
----------------------------------------------------------------------
diff --git a/test/java/org/apache/ivy/util/StringUtilsTest.java b/test/java/org/apache/ivy/util/StringUtilsTest.java
index 3d48fb2..0e9aeae 100644
--- a/test/java/org/apache/ivy/util/StringUtilsTest.java
+++ b/test/java/org/apache/ivy/util/StringUtilsTest.java
@@ -26,7 +26,7 @@ import static org.junit.Assert.assertTrue;
 public class StringUtilsTest {
 
     @Test
-    public void testGetStackTrace() throws Exception {
+    public void testGetStackTrace() {
         String trace = StringUtils.getStackTrace(new Exception());
         assertTrue(trace.contains("java.lang.Exception"));
         assertTrue(trace.contains("at org.apache.ivy.util.StringUtilsTest.testGetStackTrace(StringUtilsTest.java"));


Mime
View raw message