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

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

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

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

@Override
public void evaluate() throws Throwable {
  try {
    this.doEvaluation(TestRunnerUtils.getTestRunnerFacade(), this.context);
  } catch (Throwable t) {
    throw RemoteUtils.getActualThrowable(t);
  }
}

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

@Override
public void evaluate() throws Throwable {
  try {
    this.doEvaluation(TestRunnerUtils.getTestRunnerFacade(), this.context);
  } catch (Throwable t) {
    throw RemoteUtils.getActualThrowable(t);
  }
}

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

/**
 * Runs an arbitrary method in an EJB context and returns the result of the method.
 * @param className Class name that contains the method
 * @param methodName Method name
 * @param parameterTypes Array of argument types
 * @param args Array of arguments
 * @return Result value of the method
 */
protected final <T> T runMethodInEjbContext(String className, String methodName, Class<?> parameterTypes[], Object args[]) {
  try {
    @SuppressWarnings("unchecked")
    T res = (T) testRunnerFacade.runMethodInEjbContext(className, methodName, parameterTypes, args);
    return res;
  } catch (Exception ex) {
    Throwable actualThrowable = RemoteUtils.getActualThrowable(ex);
    throw new JuRuntimeException("Couldn't run method in EJB context: %s"
        , actualThrowable
        , actualThrowable == null ? null : actualThrowable.getMessage());
  }
}

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

/**
 * Runs an arbitrary method in an EJB context and returns the result of the method.
 * @param className Class name that contains the method
 * @param methodName Method name
 * @param parameterTypes Array of argument types
 * @param args Array of arguments
 * @return Result value of the method
 */
protected final <T> T runMethodInEjbContext(String className, String methodName, Class<?> parameterTypes[], Object args[]) {
  try {
    @SuppressWarnings("unchecked")
    T res = (T) testRunnerFacade.runMethodInEjbContext(className, methodName, parameterTypes, args);
    return res;
  } catch (Exception ex) {
    Throwable actualThrowable = RemoteUtils.getActualThrowable(ex);
    throw new JuRuntimeException("Couldn't run method in EJB context: %s"
        , actualThrowable
        , actualThrowable == null ? null : actualThrowable.getMessage());
  }
}

ch.inftec.ju.ee.testRemoteUtils

Javadoc

Remote call related utility functions.

Most used methods

  • getActualThrowable
    Gets the actual throwable from a throwable returned by an EJB client call. The actual throwable migh

Popular in Java

  • Running tasks concurrently on multiple threads
  • compareTo (BigDecimal)
  • getResourceAsStream (ClassLoader)
  • getSupportFragmentManager (FragmentActivity)
  • BufferedImage (java.awt.image)
    The BufferedImage subclass describes an java.awt.Image with an accessible buffer of image data. All
  • ResultSet (java.sql)
    An interface for an object which represents a database table entry, returned as the result of the qu
  • MessageFormat (java.text)
    Produces concatenated messages in language-neutral way. New code should probably use java.util.Forma
  • Collections (java.util)
    This class consists exclusively of static methods that operate on or return collections. It contains
  • Queue (java.util)
    A collection designed for holding elements prior to processing. Besides basic java.util.Collection o
  • TimeZone (java.util)
    TimeZone represents a time zone offset, and also figures out daylight savings. Typically, you get a
  • Top plugins for Android Studio
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