Tabnine Logo
Result.wasFailed
Code IndexAdd Tabnine to your IDE (free)

How to use
wasFailed
method
in
org.apache.wicket.util.tester.Result

Best Java code snippets using org.apache.wicket.util.tester.Result.wasFailed (Showing top 13 results out of 315)

origin: org.apache.wicket/wicket-core

/**
 * 
 * @param result
 */
private void assertResult(Result result)
{
  if (result.wasFailed())
  {
    throw new AssertionFailedError(result.getMessage());
  }
}
origin: org.ops4j.pax.wicket/pax-wicket-service

private void assertResult(Result result)
{
  if (result.wasFailed())
  {
    throw new AssertionFailedError(result.getMessage());
  }
}
origin: org.apache.wicket/com.springsource.org.apache.wicket

  private void assertResult(Result result)
  {
    if (result.wasFailed())
    {
      throw new AssertionFailedError(result.getMessage());
    }
  }
}
origin: apache/wicket

/**
 *
 * @param result
 */
private void assertResult(Result result)
{
  if (result.wasFailed())
  {
    fail(result.getMessage());
  }
}
origin: apache/wicket

/**
 * Asserts there are no feedback messages with a certain level.
 *
 * @param level
 *            the level to check for
 */
public void assertNoFeedbackMessage(int level)
{
  Result result = hasNoFeedbackMessage(level);
  assertFalse(result.wasFailed(), result.getMessage());
}
origin: org.apache.wicket/wicket-core

/**
 * Asserts there are no feedback messages with a certain level.
 * 
 * @param level
 *            the level to check for
 */
public void assertNoFeedbackMessage(int level)
{
  Result result = hasNoFeedbackMessage(level);
  assertFalse(result.getMessage(), result.wasFailed());
}
origin: org.ops4j.pax.wicket/pax-wicket-service

    + " will not be rendered at all and thus won't be accessible for subsequent AJAX interaction";
  result = isTrue(failMessage, component.getOutputMarkupPlaceholderTag());
  if (result.wasFailed())
  .find();
result = isTrue(failMessage, isAjaxResponse);
if (result.wasFailed())
  + "which means that it can't have been added to the AJAX response";
result = isTrue(failMessage, !Strings.isEmpty(markupId));
if (result.wasFailed())
origin: org.apache.wicket/wicket-core

      componentInfo;
  result = isTrue(failMessage, component.getOutputMarkupPlaceholderTag());
  if (result.wasFailed())
  .find();
result = isTrue(failMessage, isAjaxResponse);
if (result.wasFailed())
    componentInfo;
result = isTrue(failMessage, !Strings.isEmpty(markupId));
if (result.wasFailed())
result = isTrue(failMessage, isComponentInAjaxResponse);
if (!result.wasFailed()) {
  return result;
boolean isEnclosureInAjaxResponse = !isComponentOnAjaxResponse(enclosure).wasFailed();
return isTrue(failMessage, isEnclosureInAjaxResponse);
origin: apache/wicket

    componentInfo;
  result = isTrue(failMessage, component.getOutputMarkupPlaceholderTag());
  if (result.wasFailed())
  .find();
result = isTrue(failMessage, isAjaxResponse);
if (result.wasFailed())
  "which means that it can't have been added to the AJAX response. " + componentInfo;
result = isTrue(failMessage, !Strings.isEmpty(markupId));
if (result.wasFailed())
result = isTrue(failMessage, isComponentInAjaxResponse);
if (!result.wasFailed())
boolean isEnclosureInAjaxResponse = !isComponentOnAjaxResponse(enclosure).wasFailed();
return isTrue(failMessage, isEnclosureInAjaxResponse);
origin: org.apache.wicket/com.springsource.org.apache.wicket

    + " will not be rendered at all and thus won't be accessible for subsequent AJAX interaction";
  result = isTrue(failMessage, component.getOutputMarkupPlaceholderTag());
  if (result.wasFailed())
boolean isAjaxResponse = ajaxResponse.startsWith("<?xml version=\"1.0\" encoding=\"UTF-8\"?><ajax-response>");
result = isTrue(failMessage, isAjaxResponse);
if (result.wasFailed())
  + "which means that it can't have been added to the AJAX response";
result = isTrue(failMessage, !Strings.isEmpty(markupId));
if (result.wasFailed())
origin: apache/wicket

/**
 * Checks whether a component is visible and/or enabled before usage
 *
 * @param component
 * @param throwException
 * @return result
 */
protected Result checkUsability(final Component component, boolean throwException)
{
  Result res = Result.pass();
  if (component.isVisibleInHierarchy() == false)
  {
    res = Result.fail(
      "The component is currently not visible in the hierarchy and thus you can not be used." +
        " Component: " + component);
  }
  if (component.isEnabledInHierarchy() == false)
  {
    res = Result.fail(
      "The component is currently not enabled in the hierarchy and thus you can not be used." +
        " Component: " + component);
  }
  if (throwException && res.wasFailed())
  {
    throw new AssertionError(res.getMessage());
  }
  return res;
}
origin: org.apache.wicket/wicket-core

/**
 * Checks whether a component is visible and/or enabled before usage
 *
 * @param component
 * @param throwException
 * @return result
 */
protected Result checkUsability(final Component component, boolean throwException)
{
  Result res = Result.pass();
  if (component.isVisibleInHierarchy() == false)
  {
    res = Result.fail("The component is currently not visible in the hierarchy and thus you can not be used." +
      " Component: " + component);
  }
  if (component.isEnabledInHierarchy() == false)
  {
    res = Result.fail("The component is currently not enabled in the hierarchy and thus you can not be used." +
      " Component: " + component);
  }
  if (throwException && res.wasFailed())
  {
    throw new AssertionFailedError(res.getMessage());
  }
  return res;
}
origin: org.geoserver.community/importer-web

/**
 * Checks whether text is NOT present in the rendered page
 * @param text
 */
protected void assertNotContains(String text)
{
  if (tester.ifContains("^" + text).wasFailed() == true)
  {
    assertTrue(true);
  }
  else
  {
    assertTrue(false);
  }
}
org.apache.wicket.util.testerResultwasFailed

Javadoc

Returns true if the Result was a failure.

Popular methods of Result

  • <init>
  • fail
    Returns a Result which failed.
  • getMessage
    Retrieves the error message.
  • pass
    Returns a Result which passed.

Popular in Java

  • Start an intent from android
  • startActivity (Activity)
  • compareTo (BigDecimal)
  • onCreateOptionsMenu (Activity)
  • Graphics2D (java.awt)
    This Graphics2D class extends the Graphics class to provide more sophisticated control overgraphics
  • URL (java.net)
    A Uniform Resource Locator that identifies the location of an Internet resource as specified by RFC
  • ResultSet (java.sql)
    An interface for an object which represents a database table entry, returned as the result of the qu
  • HashMap (java.util)
    HashMap is an implementation of Map. All optional operations are supported.All elements are permitte
  • Scanner (java.util)
    A parser that parses a text string of primitive types and strings with the help of regular expressio
  • Project (org.apache.tools.ant)
    Central representation of an Ant project. This class defines an Ant project with all of its targets,
  • Top 12 Jupyter Notebook Extensions
Tabnine Logo
  • Products

    Search for Java codeSearch for JavaScript code
  • IDE Plugins

    IntelliJ IDEAWebStormVisual StudioAndroid StudioEclipseVisual Studio CodePyCharmSublime TextPhpStormVimAtomGoLandRubyMineEmacsJupyter NotebookJupyter LabRiderDataGripAppCode
  • Company

    About UsContact UsCareers
  • Resources

    FAQBlogTabnine AcademyStudentsTerms of usePrivacy policyJava Code IndexJavascript Code Index
Get Tabnine for your IDE now