deltaspike-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From tandrasc...@apache.org
Subject [5/5] deltaspike git commit: DELTASPIKE-823 fixed test as the new proxy throws the real exception and not a wrapped InvocationTargetException
Date Sat, 14 Feb 2015 10:19:24 GMT
DELTASPIKE-823 fixed test as the new proxy throws the real exception and not a wrapped InvocationTargetException

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

Branch: refs/heads/master
Commit: eb8dc9a897c7e19b9ed12da44e06cba973dded26
Parents: 812b554
Author: Thomas Andraschko <tandraschko@apache.org>
Authored: Sat Feb 14 11:17:02 2015 +0100
Committer: Thomas Andraschko <tandraschko@apache.org>
Committed: Sat Feb 14 11:17:02 2015 +0100

----------------------------------------------------------------------
 .../org/apache/deltaspike/data/impl/criteria/CriteriaTest.java   | 4 ++--
 1 file changed, 2 insertions(+), 2 deletions(-)
----------------------------------------------------------------------


http://git-wip-us.apache.org/repos/asf/deltaspike/blob/eb8dc9a8/deltaspike/modules/data/impl/src/test/java/org/apache/deltaspike/data/impl/criteria/CriteriaTest.java
----------------------------------------------------------------------
diff --git a/deltaspike/modules/data/impl/src/test/java/org/apache/deltaspike/data/impl/criteria/CriteriaTest.java
b/deltaspike/modules/data/impl/src/test/java/org/apache/deltaspike/data/impl/criteria/CriteriaTest.java
index 49c7e79..1efd4ac 100644
--- a/deltaspike/modules/data/impl/src/test/java/org/apache/deltaspike/data/impl/criteria/CriteriaTest.java
+++ b/deltaspike/modules/data/impl/src/test/java/org/apache/deltaspike/data/impl/criteria/CriteriaTest.java
@@ -24,7 +24,6 @@ import static org.junit.Assert.assertNotNull;
 import static org.junit.Assert.assertNull;
 import static org.junit.Assert.assertTrue;
 
-import java.lang.reflect.InvocationTargetException;
 import java.util.Calendar;
 import java.util.Date;
 import java.util.List;
@@ -32,6 +31,7 @@ import java.util.List;
 import javax.enterprise.inject.Produces;
 import javax.inject.Inject;
 import javax.persistence.EntityManager;
+import javax.persistence.NonUniqueResultException;
 import javax.persistence.PersistenceContext;
 
 import org.apache.deltaspike.data.test.TransactionalTestCase;
@@ -310,7 +310,7 @@ public class CriteriaTest extends TransactionalTestCase
         assertNull(result2);
     }
 
-    @Test(expected = InvocationTargetException.class)
+    @Test(expected = NonUniqueResultException.class)
     public void should_fail_with_optional_nonunique_result()
     {
         // given


Mime
View raw message