org.jboss.jsr299.tck.tests.deployment.lifecycle.broken.exceptionInAfterBeanValidationObserver
Class AfterDeploymentValidationObserverExecutionFailureTest

java.lang.Object
  extended by org.jboss.testharness.AbstractTest
      extended by org.jboss.jsr299.tck.AbstractJSR299Test
          extended by org.jboss.jsr299.tck.tests.deployment.lifecycle.broken.exceptionInAfterBeanValidationObserver.AfterDeploymentValidationObserverExecutionFailureTest
All Implemented Interfaces:
org.testng.IHookable, org.testng.ITestNGListener

@Artifact
@ExpectedDeploymentException(value=DeploymentFailure.class)
@SpecVersion(spec="cdi",
             version="20091101")
@Extension(value="javax.enterprise.inject.spi.Extension")
public class AfterDeploymentValidationObserverExecutionFailureTest
extends AbstractJSR299Test

Tests that any failure in an observer observing the AfterDeploymentValidation event results in a deployment error.

Author:
David Allen, Dan Allen

Constructor Summary
AfterDeploymentValidationObserverExecutionFailureTest()
           
 
Method Summary
 void testObserverFailureTreatedAsDeploymentError()
           
 
Methods inherited from class org.jboss.jsr299.tck.AbstractJSR299Test
annotationSetMatches, deserialize, destroyContext, getBeans, getBeans, getCurrentConfiguration, getCurrentManager, getInstanceByName, getInstanceByType, getInstanceByType, getUniqueBean, getUniqueBean, handleDeploymentFailure, rawTypeSetMatches, serialize, setContextActive, setContextInactive, typeSetMatches
 
Methods inherited from class org.jboss.testharness.AbstractTest
afterClass, afterMethod, afterSuite, beforeClass, beforeMethod, beforeSuite, getContextPath, isInContainer, isThrowablePresent, postCreate, run, setInContainer
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

AfterDeploymentValidationObserverExecutionFailureTest

public AfterDeploymentValidationObserverExecutionFailureTest()
Method Detail

testObserverFailureTreatedAsDeploymentError

@SpecAssertion(section="11.5.3",
               id="c")
public void testObserverFailureTreatedAsDeploymentError()


Copyright © 2008-2012 Seam Framework. All Rights Reserved.