You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@tomee.apache.org by rm...@apache.org on 2012/10/02 16:39:13 UTC
svn commit: r1392930 -
/openejb/trunk/openejb/arquillian/arquillian-tomee-tests/arquillian-tomee-webprofile-tests/src/test/java/org/apache/openejb/arquillian/tests/exception/DeploymentExceptionErrorTest.java
Author: rmannibucau
Date: Tue Oct 2 14:39:13 2012
New Revision: 1392930
URL: http://svn.apache.org/viewvc?rev=1392930&view=rev
Log:
fixing DeploymentExceptionErrorTest
Modified:
openejb/trunk/openejb/arquillian/arquillian-tomee-tests/arquillian-tomee-webprofile-tests/src/test/java/org/apache/openejb/arquillian/tests/exception/DeploymentExceptionErrorTest.java
Modified: openejb/trunk/openejb/arquillian/arquillian-tomee-tests/arquillian-tomee-webprofile-tests/src/test/java/org/apache/openejb/arquillian/tests/exception/DeploymentExceptionErrorTest.java
URL: http://svn.apache.org/viewvc/openejb/trunk/openejb/arquillian/arquillian-tomee-tests/arquillian-tomee-webprofile-tests/src/test/java/org/apache/openejb/arquillian/tests/exception/DeploymentExceptionErrorTest.java?rev=1392930&r1=1392929&r2=1392930&view=diff
==============================================================================
--- openejb/trunk/openejb/arquillian/arquillian-tomee-tests/arquillian-tomee-webprofile-tests/src/test/java/org/apache/openejb/arquillian/tests/exception/DeploymentExceptionErrorTest.java (original)
+++ openejb/trunk/openejb/arquillian/arquillian-tomee-tests/arquillian-tomee-webprofile-tests/src/test/java/org/apache/openejb/arquillian/tests/exception/DeploymentExceptionErrorTest.java Tue Oct 2 14:39:13 2012
@@ -16,8 +16,7 @@
*/
package org.apache.openejb.arquillian.tests.exception;
-import org.apache.openejb.OpenEJBException;
-import org.apache.webbeans.exception.WebBeansConfigurationException;
+import org.apache.openejb.OpenEJBRuntimeException;
import org.jboss.arquillian.container.spi.client.container.DeploymentException;
import org.jboss.arquillian.container.test.api.Deployment;
import org.jboss.arquillian.container.test.api.ShouldThrowException;
@@ -40,13 +39,10 @@ public class DeploymentExceptionErrorTes
private DeploymentException de;
@ArquillianResource
- private WebBeansConfigurationException owbException;
-
- @ArquillianResource
- private OpenEJBException oejbException;
+ private OpenEJBRuntimeException oejbException;
@Deployment(testable = false)
- @ShouldThrowException(OpenEJBException.class)
+ @ShouldThrowException(OpenEJBRuntimeException.class)
public static WebArchive war() {
return ShrinkWrap.create(WebArchive.class)
.addAsWebInfResource(new StringAsset(Descriptors.create(BeansDescriptor.class)
@@ -59,7 +55,6 @@ public class DeploymentExceptionErrorTes
@Test
public void checkSomeExceptionsOfTheHierarchy() {
assertNotNull(de);
- assertNotNull(owbException);
assertNotNull(oejbException);
}
}