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

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

Best Java code snippets using ch.inftec.ju.ee.test.TestRunnerFacade$TransactionAware (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$TransactionAware

Javadoc

Interface for classes that are transaction aware, i.e. that are prepared to work with a TxHandler

Most used methods

  • setTxHandler
    Sets the TxHandler used to control the transaction.

Popular in Java

  • Updating database using SQL prepared statement
  • requestLocationUpdates (LocationManager)
  • addToBackStack (FragmentTransaction)
  • scheduleAtFixedRate (ScheduledExecutorService)
  • FileWriter (java.io)
    A specialized Writer that writes to a file in the file system. All write requests made by calling me
  • Deque (java.util)
    A linear collection that supports element insertion and removal at both ends. The name deque is shor
  • ImageIO (javax.imageio)
  • JButton (javax.swing)
  • JTable (javax.swing)
  • Runner (org.openjdk.jmh.runner)
  • From CI to AI: The AI layer in your organization
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