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

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

Best Java code snippets using ch.inftec.ju.ee.test.RemoteUtils.getActualThrowable (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.testRemoteUtilsgetActualThrowable

Javadoc

Gets the actual throwable from a throwable returned by an EJB client call. The actual throwable might be wrapped up in some other EJB generic exceptions.

Popular methods of RemoteUtils

    Popular in Java

    • Start an intent from android
    • getApplicationContext (Context)
    • compareTo (BigDecimal)
    • orElseThrow (Optional)
      Return the contained value, if present, otherwise throw an exception to be created by the provided s
    • Component (java.awt)
      A component is an object having a graphical representation that can be displayed on the screen and t
    • Font (java.awt)
      The Font class represents fonts, which are used to render text in a visible way. A font provides the
    • Graphics2D (java.awt)
      This Graphics2D class extends the Graphics class to provide more sophisticated control overgraphics
    • PrintWriter (java.io)
      Wraps either an existing OutputStream or an existing Writerand provides convenience methods for prin
    • TreeSet (java.util)
      TreeSet is an implementation of SortedSet. All optional operations (adding and removing) are support
    • JOptionPane (javax.swing)
    • 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