congrats Icon
New! Announcing Tabnine Chat Beta
Learn More
Tabnine Logo
ContainerTestContext
Code IndexAdd Tabnine to your IDE (free)

How to use
ContainerTestContext
in
ch.inftec.ju.ee.test

Best Java code snippets using ch.inftec.ju.ee.test.ContainerTestContext (Showing top 12 results out of 315)

origin: ch.inftec.ju/ju-ee-testing

@Override
public void close() {
  ContainerTestContext.endContext(this.disposeContext);
}
origin: ch.inftec.ju/ju-ee-testing

@Override
public boolean isActive() {
  return isContextActive();
}
origin: ch.inftec.ju/ju-ee-testing

@Override
public <T> T get(Contextual<T> contextual, CreationalContext<T> creationalContext) {
  T t = this.get(contextual);
  if (t == null) {
    Bean<T> b = (Bean<T>) contextual;
    return storeObject(b.getBeanClass(), new CustomScopeInstance<T>(b, creationalContext));
  } else {
    return t;
  }
}
origin: ch.inftec.ju/ju-util-ee

public ContainerTestContextSetter() {
  ContainerTestContext.startContext(getContext() != null
      ? getContext().getUuid()
      : null);
}
origin: ch.inftec.ju/ju-ee-testing

@Override
public <T> T get(Contextual<T> contextual) {
  Bean<T> b = (Bean<T>) contextual;
  @SuppressWarnings("unchecked")
  T t = (T) getObject(b.getBeanClass(), contextual);
  return t;
}
origin: ch.inftec.ju/ju-ee-testing

  public void registerContext(@Observes final AfterBeanDiscovery event) {
    logger.debug("Adding Context ContainerTestContext");
    event.addContext(new ContainerTestContext());
  }
}
origin: ch.inftec.ju/ju-util-ee

@Override
public <T> T get(Contextual<T> contextual, CreationalContext<T> creationalContext) {
  T t = this.get(contextual);
  if (t == null) {
    Bean<T> b = (Bean<T>) contextual;
    return storeObject(b.getBeanClass(), new CustomScopeInstance<T>(b, creationalContext));
  } else {
    return t;
  }
}
origin: ch.inftec.ju/ju-ee-testing

public ContainerTestContextSetter() {
  ContainerTestContext.startContext(getContext() != null
      ? getContext().getUuid()
      : null);
}
origin: ch.inftec.ju/ju-util-ee

@Override
public <T> T get(Contextual<T> contextual) {
  Bean<T> b = (Bean<T>) contextual;
  @SuppressWarnings("unchecked")
  T t = (T) getObject(b.getBeanClass(), contextual);
  return t;
}
origin: ch.inftec.ju/ju-util-ee

  public void registerContext(@Observes final AfterBeanDiscovery event) {
    logger.debug("Adding Context ContainerTestContext");
    event.addContext(new ContainerTestContext());
  }
}
origin: ch.inftec.ju/ju-util-ee

@Override
public void close() {
  ContainerTestContext.endContext(this.disposeContext);
}
origin: ch.inftec.ju/ju-util-ee

@Override
public boolean isActive() {
  return isContextActive();
}
ch.inftec.ju.ee.testContainerTestContext

Javadoc

Context that covers the lifetime of a ContainerTest test method.

If not running in a ContainerTest scope, the context will

Most used methods

  • <init>
  • endContext
  • get
  • getObject
  • isContextActive
    Static method to evaluate if the context is active, i.e. if we're ina test method environment. Note
  • startContext
  • storeObject

Popular in Java

  • Running tasks concurrently on multiple threads
  • orElseThrow (Optional)
    Return the contained value, if present, otherwise throw an exception to be created by the provided s
  • startActivity (Activity)
  • getSharedPreferences (Context)
  • HttpServer (com.sun.net.httpserver)
    This class implements a simple HTTP server. A HttpServer is bound to an IP address and port number a
  • Font (java.awt)
    The Font class represents fonts, which are used to render text in a visible way. A font provides the
  • Hashtable (java.util)
    A plug-in replacement for JDK1.5 java.util.Hashtable. This version is based on org.cliffc.high_scale
  • Set (java.util)
    A Set is a data structure which does not allow duplicate elements.
  • TimerTask (java.util)
    The TimerTask class represents a task to run at a specified time. The task may be run once or repeat
  • Semaphore (java.util.concurrent)
    A counting semaphore. Conceptually, a semaphore maintains a set of permits. Each #acquire blocks if
  • Top plugins for WebStorm
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