Examples of ConditionFactory


Examples of com.jayway.awaitility.core.ConditionFactory

     *
     * @param alias the alias that will be shown if the await timeouts.
     * @return the condition factory
     */
    public static ConditionFactory await(String alias) {
        return new ConditionFactory(alias, defaultTimeout, defaultPollInterval, defaultPollDelay,
                defaultCatchUncaughtExceptions, defaultConditionEvaluationListener);
    }
View Full Code Here

Examples of com.jayway.awaitility.core.ConditionFactory

     * default behavior.
     *
     * @return the condition factory
     */
    public static ConditionFactory catchUncaughtExceptions() {
        return new ConditionFactory(defaultTimeout, defaultPollInterval, defaultPollDelay, true);
    }
View Full Code Here

Examples of com.jayway.awaitility.core.ConditionFactory

     * make the await statement fail if exceptions occur in other threads.
     *
     * @return the condition factory
     */
    public static ConditionFactory dontCatchUncaughtExceptions() {
        return new ConditionFactory(defaultTimeout, defaultPollInterval, defaultPollDelay, false);
    }
View Full Code Here

Examples of com.jayway.awaitility.core.ConditionFactory

     * </pre>
     *
     * @return the condition factory
     */
    public static ConditionFactory with() {
        return new ConditionFactory(defaultTimeout, defaultPollInterval, defaultPollDelay,
                defaultCatchUncaughtExceptions, defaultConditionEvaluationListener);
    }
View Full Code Here

Examples of com.jayway.awaitility.core.ConditionFactory

     * </pre>
     *
     * @return the condition factory
     */
    public static ConditionFactory given() {
        return new ConditionFactory(defaultTimeout, defaultPollInterval, defaultPollDelay,
                defaultCatchUncaughtExceptions);
    }
View Full Code Here

Examples of com.jayway.awaitility.core.ConditionFactory

     *
     * @param timeout the timeout
     * @return the condition factory
     */
    public static ConditionFactory waitAtMost(Duration timeout) {
        return new ConditionFactory(timeout, defaultPollInterval, defaultPollDelay, defaultCatchUncaughtExceptions);
    }
View Full Code Here

Examples of com.jayway.awaitility.core.ConditionFactory

     * @param value the value
     * @param unit  the unit
     * @return the condition factory
     */
    public static ConditionFactory waitAtMost(long value, TimeUnit unit) {
        return new ConditionFactory(new Duration(value, unit), defaultPollInterval, defaultPollDelay,
                defaultCatchUncaughtExceptions);
    }
View Full Code Here

Examples of org.apache.synapse.commons.evaluators.config.ConditionFactory

     * @throws EvaluatorException if the configuration is invalid
     */
    public void init(OMElement conditions) throws EvaluatorException {
        Iterator it = conditions.getChildElements();

        ConditionFactory rf = new ConditionFactory();
        List<Condition> conditionList = new ArrayList<Condition>();
        while (it.hasNext()) {
            OMElement conditionElement = (OMElement) it.next();

            if (!conditionElement.getLocalName().equals(EvaluatorConstants.CONDITION)) {
                handleException("Only " + EvaluatorConstants.CONDITION + " elements expected");
            }

            Condition r = null;
            try {
                r = rf.createCondition(conditionElement);
            } catch (EvaluatorException e) {
                handleException("Error creating " +
                        EvaluatorConstants.CONDITION + ": " + e.getMessage());
            }

View Full Code Here

Examples of org.drools.smf.ConditionFactory

    {
        Configuration config = this.ruleSetReader.endConfiguration( );
        SemanticModule module = this.ruleSetReader.lookupSemanticModule( uri,
                                                                         localName );

        ConditionFactory factory = module.getConditionFactory( localName );
        Condition[] conditions;
        try
        {
            Rule rule = (Rule) this.ruleSetReader.getParent( Rule.class );
            conditions = factory.newCondition( rule,
                                              this.ruleSetReader.getFactoryContext( ),
                                              config );

            for (int i = 0; i < conditions.length; i++)
            {
View Full Code Here

Examples of org.freeplane.features.filter.condition.ConditionFactory

    return applyToVisibleNodeOnly;
  }

  public ConditionFactory getConditionFactory() {
    if (conditionFactory == null) {
      conditionFactory = new ConditionFactory();
    }
    return conditionFactory;
  }
View Full Code Here
TOP
Copyright © 2018 www.massapi.com. All rights reserved.
All source code are property of their respective owners. Java is a trademark of Sun Microsystems, Inc and owned by ORACLE Inc. Contact coftware#gmail.com.