This is an automated email from the ASF dual-hosted git repository.

elharo pushed a commit to branch extest
in repository https://gitbox.apache.org/repos/asf/maven-shared-utils.git


The following commit(s) were added to refs/heads/extest by this push:
     new 8930cfb  catch IntrospectionException
8930cfb is described below

commit 8930cfbe494ab05cdd4a24f2335baf6a2ab7531d
Author: Elliotte Rusty Harold <[email protected]>
AuthorDate: Thu Jun 1 06:42:02 2023 -0400

    catch IntrospectionException
---
 .../shared/utils/introspection/ReflectionValueExtractorTest.java  | 8 ++++----
 1 file changed, 4 insertions(+), 4 deletions(-)

diff --git 
a/src/test/java/org/apache/maven/shared/utils/introspection/ReflectionValueExtractorTest.java
 
b/src/test/java/org/apache/maven/shared/utils/introspection/ReflectionValueExtractorTest.java
index 2092021..1842f1e 100644
--- 
a/src/test/java/org/apache/maven/shared/utils/introspection/ReflectionValueExtractorTest.java
+++ 
b/src/test/java/org/apache/maven/shared/utils/introspection/ReflectionValueExtractorTest.java
@@ -207,18 +207,18 @@ public class ReflectionValueExtractorTest extends 
TestCase {
         assertNull(ReflectionValueExtractor.evaluate("h.value(a]", value));
     }
 
-    public void testIllegalIndexedType() throws IntrospectionException {
+    public void testIllegalIndexedType() {
         try {
             ReflectionValueExtractor.evaluate("h.value[1]", new 
ValueHolder("string"));
-        } catch (Exception e) {
+        } catch (IntrospectionException e) {
             assertNotNull(e.getMessage());
         }
     }
 
-    public void testIllegalMappedType() throws IntrospectionException {
+    public void testIllegalMappedType() {
         try {
             ReflectionValueExtractor.evaluate("h.value(key)", new 
ValueHolder("string"));
-        } catch (Exception e) {
+        } catch (IntrospectionException e) {
             assertNotNull(e.getMessage());
         }
     }

Reply via email to