jena-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From a...@apache.org
Subject [13/15] jena git commit: Add NumberFormatException as possible expected exception.
Date Tue, 23 Dec 2014 17:59:09 GMT
Add NumberFormatException as possible expected exception.

Project: http://git-wip-us.apache.org/repos/asf/jena/repo
Commit: http://git-wip-us.apache.org/repos/asf/jena/commit/f5a2047e
Tree: http://git-wip-us.apache.org/repos/asf/jena/tree/f5a2047e
Diff: http://git-wip-us.apache.org/repos/asf/jena/diff/f5a2047e

Branch: refs/heads/master
Commit: f5a2047e33d110a6c856cb484ece4be856607bf9
Parents: 6a63e14
Author: Andy Seaborne <andy@apache.org>
Authored: Tue Dec 23 17:43:53 2014 +0000
Committer: Andy Seaborne <andy@apache.org>
Committed: Tue Dec 23 17:43:53 2014 +0000

----------------------------------------------------------------------
 .../apache/jena/security/model/SecuredLiteralTest.java    | 10 +++++-----
 1 file changed, 5 insertions(+), 5 deletions(-)
----------------------------------------------------------------------


http://git-wip-us.apache.org/repos/asf/jena/blob/f5a2047e/jena-security/src/test/java/org/apache/jena/security/model/SecuredLiteralTest.java
----------------------------------------------------------------------
diff --git a/jena-security/src/test/java/org/apache/jena/security/model/SecuredLiteralTest.java
b/jena-security/src/test/java/org/apache/jena/security/model/SecuredLiteralTest.java
index 1985d8b..97ec072 100644
--- a/jena-security/src/test/java/org/apache/jena/security/model/SecuredLiteralTest.java
+++ b/jena-security/src/test/java/org/apache/jena/security/model/SecuredLiteralTest.java
@@ -268,7 +268,7 @@ public class SecuredLiteralTest extends SecuredRDFNodeTest
 								e, e.getTriple()));
 			}
 		}
-		catch (final DatatypeFormatException e)
+		catch (final DatatypeFormatException | NumberFormatException e )
 		{
 			// expected
 		}
@@ -294,7 +294,7 @@ public class SecuredLiteralTest extends SecuredRDFNodeTest
 								e, e.getTriple()));
 			}
 		}
-		catch (final DatatypeFormatException e)
+		catch (final DatatypeFormatException | NumberFormatException e )
 		{
 			// expected
 		}
@@ -364,7 +364,7 @@ public class SecuredLiteralTest extends SecuredRDFNodeTest
 								e, e.getTriple()));
 			}
 		}
-		catch (final DatatypeFormatException e)
+		catch (final DatatypeFormatException | NumberFormatException e )
 		{
 			// expected
 		}
@@ -390,7 +390,7 @@ public class SecuredLiteralTest extends SecuredRDFNodeTest
 								e, e.getTriple()));
 			}
 		}
-		catch (final DatatypeFormatException e)
+		catch (final DatatypeFormatException | NumberFormatException e )
 		{
 			// expected
 		}
@@ -416,7 +416,7 @@ public class SecuredLiteralTest extends SecuredRDFNodeTest
 								e, e.getTriple()));
 			}
 		}
-		catch (final DatatypeFormatException e)
+		catch (final DatatypeFormatException | NumberFormatException e )
 		{
 			// expected
 		}


Mime
View raw message