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

How to use
stopContainer
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.stopContainer (Showing top 6 results out of 315)

origin: org.jboss.weld/weld-porting-package

public void undeploy() {
  try {
    testContainer.stopContainer();
  } catch (Exception e) {
    log.log(Level.SEVERE, "Could not shut down container", e);
  }
  testContainer = null;
  deploymentException = null;
}
origin: org.jboss.weld/weld-porting-package-tck10

public void undeploy() {
  try {
    testContainer.stopContainer();
  } catch (Exception e) {
    log.log(Level.SEVERE, "Could not shut down container", e);
  }
  testContainer = null;
  deploymentException = null;
}
origin: org.jboss.weld.arquillian.container/arquillian-weld-ee-embedded-1.1

public void undeploy(Context context, Archive<?> archive) throws DeploymentException
{
 TestContainer container = context.get(TestContainer.class);
 if(container != null)
 {
   container.stopContainer();
 }
 ContextClassLoaderManager classLoaderManager = context.get(ContextClassLoaderManager.class);
 classLoaderManager.disable();
}
origin: org.jboss.arquillian.container/arquillian-weld-ee-embedded-1.1

public void undeploy(Archive<?> archive) throws DeploymentException
{
 TestContainer container = testContainerProducer.get();
 if(container != null)
 {
   container.stopContainer();
 }
 ContextClassLoaderManager classLoaderManager = contextClassLoaderManagerProducer.get();
 classLoaderManager.disable();
}
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();
   }
  }
}
org.jboss.arquillian.container.weld.ee.embedded_1_1.mockTestContainerstopContainer

Javadoc

Clean up the container, ending any active contexts

Popular methods of TestContainer

  • <init>
  • ensureRequestActive
  • startContainer
    Starts the container and begins the application
  • getBeanManager
  • getBootstrap
  • getDeployment
  • instance

Popular in Java

  • Creating JSON documents from java classes using gson
  • scheduleAtFixedRate (Timer)
  • addToBackStack (FragmentTransaction)
  • getContentResolver (Context)
  • InputStream (java.io)
    A readable source of bytes.Most clients will use input streams that read data from the file system (
  • Dictionary (java.util)
    Note: Do not use this class since it is obsolete. Please use the Map interface for new implementatio
  • Iterator (java.util)
    An iterator over a sequence of objects, such as a collection.If a collection has been changed since
  • Executor (java.util.concurrent)
    An object that executes submitted Runnable tasks. This interface provides a way of decoupling task s
  • JLabel (javax.swing)
  • Reflections (org.reflections)
    Reflections one-stop-shop objectReflections scans your classpath, indexes the metadata, allows you t
  • Github Copilot alternatives
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