org.jboss.jsr299.tck.tests.deployment.lifecycle.broken.addDefinitionError
Class AddDefinitionErrorTest

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.addDefinitionError.AddDefinitionErrorTest
All Implemented Interfaces:
org.testng.IHookable, org.testng.ITestNGListener

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

Tests that any definition error added by an observer of the AfterBeanDiscovery event results in a definition error.

Author:
David Allen, Dan Allen

Constructor Summary
AddDefinitionErrorTest()
           
 
Method Summary
 void testObserverDefinitionErrorTreatedAsDefinitionError()
           
 
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

AddDefinitionErrorTest

public AddDefinitionErrorTest()
Method Detail

testObserverDefinitionErrorTreatedAsDefinitionError

@SpecAssertions(value={@SpecAssertion(section="11.5.2",id="ca"),@SpecAssertion(section="12.2",id="c")})
public void testObserverDefinitionErrorTreatedAsDefinitionError()


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