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

  • Reactive rest calls using spring rest template
  • runOnUiThread (Activity)
  • requestLocationUpdates (LocationManager)
  • getContentResolver (Context)
  • FileOutputStream (java.io)
    An output stream that writes bytes to a file. If the output file exists, it can be replaced or appen
  • List (java.util)
    An ordered collection (also known as a sequence). The user of this interface has precise control ove
  • TimerTask (java.util)
    The TimerTask class represents a task to run at a specified time. The task may be run once or repeat
  • HttpServlet (javax.servlet.http)
    Provides an abstract class to be subclassed to create an HTTP servlet suitable for a Web site. A sub
  • Response (javax.ws.rs.core)
    Defines the contract between a returned instance and the runtime when an application needs to provid
  • Join (org.hibernate.mapping)
  • 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