Tabnine Logo
TestRunnerFacade$TransactionAware.setTxHandler
Code IndexAdd Tabnine to your IDE (free)

How to use
setTxHandler
method
in
ch.inftec.ju.ee.test.TestRunnerFacade$TransactionAware

Best Java code snippets using ch.inftec.ju.ee.test.TestRunnerFacade$TransactionAware.setTxHandler (Showing top 2 results out of 315)

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

private void initTestClass(Object instance, TxHandler txHandler) {
  // Try to set the context (if the class is ContextAware)
  if (ContextAware.class.isAssignableFrom(instance.getClass())) {
    ((ContextAware) instance).setContext(this.getContext());
  }
  
  if (TransactionAware.class.isAssignableFrom(instance.getClass())) {
    ((TransactionAware) instance).setTxHandler(txHandler);
  }
  
  // Try to call the init method (if the class implements Initializable)
  if (Initializable.class.isAssignableFrom(instance.getClass())) {
    ((Initializable) instance).init();
  }
}

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

private void initTestClass(Object instance, TxHandler txHandler) {
  // Try to set the context (if the class is ContextAware)
  if (ContextAware.class.isAssignableFrom(instance.getClass())) {
    ((ContextAware) instance).setContext(this.getContext());
  }
  
  if (TransactionAware.class.isAssignableFrom(instance.getClass())) {
    ((TransactionAware) instance).setTxHandler(txHandler);
  }
  
  // Try to call the init method (if the class implements Initializable)
  if (Initializable.class.isAssignableFrom(instance.getClass())) {
    ((Initializable) instance).init();
  }
}

ch.inftec.ju.ee.testTestRunnerFacade$TransactionAwaresetTxHandler

Javadoc

Sets the TxHandler used to control the transaction.

Popular methods of TestRunnerFacade$TransactionAware

    Popular in Java

    • Parsing JSON documents to java classes using gson
    • getResourceAsStream (ClassLoader)
    • getSharedPreferences (Context)
    • getOriginalFilename (MultipartFile)
      Return the original filename in the client's filesystem.This may contain path information depending
    • VirtualMachine (com.sun.tools.attach)
      A Java virtual machine. A VirtualMachine represents a Java virtual machine to which this Java vir
    • GridBagLayout (java.awt)
      The GridBagLayout class is a flexible layout manager that aligns components vertically and horizonta
    • GridLayout (java.awt)
      The GridLayout class is a layout manager that lays out a container's components in a rectangular gri
    • InputStream (java.io)
      A readable source of bytes.Most clients will use input streams that read data from the file system (
    • DateFormat (java.text)
      Formats or parses dates and times.This class provides factories for obtaining instances configured f
    • 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