Tabnine Logo
TestContainer.getDeployment
Code IndexAdd Tabnine to your IDE (free)

How to use
getDeployment
method
in
org.jboss.arquillian.container.weld.ee.embedded_1_1.mock.TestContainer

Best Java code snippets using org.jboss.arquillian.container.weld.ee.embedded_1_1.mock.TestContainer.getDeployment (Showing top 4 results out of 315)

origin: org.jboss.arquillian.container/arquillian-weld-ee-embedded-1.1

/**
 * Bootstrap and shutdown the container.
 * 
 * @param runnable a {@link Runnable} to be called whilst the container is
 *           active
 * 
 */
public void run(Runnable runnable) throws Exception
{
  TestContainer container = null;
  try
  {
   container = new TestContainer(beansXml, classes);
   container.startContainer().ensureRequestActive();
   runnable.run(container.getBeanManager(container.getDeployment().getBeanDeploymentArchives().iterator().next()));
  }
  finally
  {
   if (container != null)
   {
     container.stopContainer();
   }
  }
}
origin: org.jboss.weld.arquillian.container/arquillian-weld-ee-embedded-1.1

/**
 * Bootstrap and shutdown the container.
 * 
 * @param runnable a {@link Runnable} to be called whilst the container is
 *           active
 * 
 */
public void run(Runnable runnable) throws Exception
{
  TestContainer container = null;
  try
  {
   container = new TestContainer(beansXml, classes);
   container.startContainer().ensureRequestActive();
   runnable.run(container.getBeanManager(container.getDeployment().getBeanDeploymentArchives().iterator().next()));
  }
  finally
  {
   if (container != null)
   {
     container.stopContainer();
   }
  }
}
origin: org.jboss.arquillian.container/arquillian-weld-ee-embedded-1.1

public ProtocolMetaData deploy(Archive<?> archive) throws DeploymentException
{  
 ShrinkWrapClassLoader classLoader = getClassLoader(archive);
 ContextClassLoaderManager classLoaderManager = new ContextClassLoaderManager(classLoader);
 classLoaderManager.enable();
 
 TestContainer container = new TestContainer(findArchiveId(archive), findBeansXml(archive), findBeanClasses(archive, classLoader), true);
 Bootstrap bootstrap = container.getBootstrap();
 contextClassLoaderManagerProducer.set(classLoaderManager);
 try {
   container.startContainer();
 } finally {
   // always set container - even if an exception occurs, we want the container to be cleaned up properly in undeploy()
   testContainerProducer.set(container);
   bootstrapProducer.set(bootstrap);
 }
 // Assume a flat structure
 WeldManager manager = container.getBeanManager(container.getDeployment().getBeanDeploymentArchives().iterator().next());
 weldManagerProducer.set(manager);
 beanManagerProducer.set(manager);
 return new ProtocolMetaData();
}
origin: org.jboss.weld.arquillian.container/arquillian-weld-ee-embedded-1.1

context.add(Bootstrap.class, bootstrap);
context.add(WeldManager.class, container.getBeanManager(container.getDeployment().getBeanDeploymentArchives().iterator().next()));
org.jboss.arquillian.container.weld.ee.embedded_1_1.mockTestContainergetDeployment

Popular methods of TestContainer

  • <init>
  • ensureRequestActive
  • startContainer
    Starts the container and begins the application
  • stopContainer
    Clean up the container, ending any active contexts
  • getBeanManager
  • getBootstrap
  • instance

Popular in Java

  • Reading from database using SQL prepared statement
  • compareTo (BigDecimal)
  • notifyDataSetChanged (ArrayAdapter)
  • onCreateOptionsMenu (Activity)
  • Menu (java.awt)
  • Set (java.util)
    A Set is a data structure which does not allow duplicate elements.
  • Modifier (javassist)
    The Modifier class provides static methods and constants to decode class and member access modifiers
  • Annotation (javassist.bytecode.annotation)
    The annotation structure.An instance of this class is returned bygetAnnotations() in AnnotationsAttr
  • JList (javax.swing)
  • JTable (javax.swing)
  • Top 12 Jupyter Notebook extensions
Tabnine Logo
  • Products

    Search for Java codeSearch for JavaScript code
  • IDE Plugins

    IntelliJ IDEAWebStormVisual StudioAndroid StudioEclipseVisual Studio CodePyCharmSublime TextPhpStormVimGoLandRubyMineEmacsJupyter NotebookJupyter LabRiderDataGripAppCode
  • Company

    About UsContact UsCareers
  • Resources

    FAQBlogTabnine AcademyTerms of usePrivacy policyJava Code IndexJavascript Code Index
Get Tabnine for your IDE now