Examples of Duration


Examples of org.easetech.easytest.annotation.Duration

            field.setAccessible(true);
            Intercept interceptor = field.getAnnotation(Intercept.class);
            if (interceptor != null) {
                provideProxyWrapperFor(interceptor.interceptor(), null, field, testInstance);
            } else {
                Duration duration = field.getAnnotation(Duration.class);
                if (duration != null) {
                    provideProxyWrapperFor(duration.interceptor(), duration.timeInMillis(), field, testInstance);
                }
            }

        }
    }
View Full Code Here

Examples of org.easetech.easytest.reports.data.Duration

    // sort the methods on name
    Map<String, Duration> methodDurationBeans = CommonUtils.sortByKeys(getMethodDurationBeans(methodTestResults));
   
    // add the duration beans to the list
    for (String methodName: methodDurationBeans.keySet()) {
      Duration duration = methodDurationBeans.get(methodName);
      durationBeans.add(duration);
    }
   
    List<MethodDurationReportBean> methodDurationReportBeans = new ArrayList<MethodDurationReportBean>();
   
View Full Code Here

Examples of org.eclipse.e4.xwt.animation.Duration

   * (non-Javadoc)
   *
   * @see org.eclipse.core.databinding.conversion.IConverter#convert(java.lang.Object)
   */
  public Object convert(Object fromObject) {
    return new Duration(TimeSpan.parse(fromObject.toString()));
  }
View Full Code Here

Examples of org.exolab.castor.types.Duration

            ShippingMethod method = invoice.getShippingMethod();
            System.out.print("   " + method.getCarrier());
            System.out.println("  " + method.getOption());
            System.out.print("   Estimated Time: ");

            Duration duration = method.getEstimatedDelivery();

            int years = duration.getYear();
            int months = duration.getMonth();
            int days = duration.getDay();
            int hours = duration.getHour();

            boolean printComma = false;

            if (years > 0) {
                System.out.print(years + " year(s)");
View Full Code Here

Examples of org.fireflow.model.Duration

                isBusinessTime = Boolean.parseBoolean(sIsBusTime);
            } catch (Exception ex) {
                return null;
            }
        }
        Duration duration = new Duration(value, durationElement.attributeValue(UNIT));
        duration.setBusinessTime(isBusinessTime);
        return duration;
    }
View Full Code Here

Examples of org.formulacompiler.compiler.internal.Duration

      else if (constantValue instanceof LocalDate) {
        final LocalDate localDate = (LocalDate) constantValue;
        _stringBuilder.append( localDate.doubleValue() );
      }
      else if (constantValue instanceof Duration) {
        final Duration duration = (Duration) constantValue;
        _stringBuilder.append( duration.doubleValue() );
      }
      else if (constantValue instanceof Number) {
        _stringBuilder.append( constantValue.toString() );
      }
      else if (constantValue instanceof String) {
View Full Code Here

Examples of org.goda.time.Duration

     */
    public Duration toDurationFrom(ReadableInstant startInstant) {
        long startMillis = DateTimeUtils.getInstantMillis(startInstant);
        Chronology chrono = DateTimeUtils.getInstantChronology(startInstant);
        long endMillis = chrono.add(this, startMillis, 1);
        return new Duration(startMillis, endMillis);
    }
View Full Code Here

Examples of org.huihoo.workflow.xpdl.util.Duration

  {
    this.duration = duration_;
  }
  public void setDuration(String duration_)
  {
    this.duration = new Duration(duration_);
  }
View Full Code Here

Examples of org.jboss.dna.common.math.Duration

     */
    public void stop() {
        if (this.isRunning()) {
            long duration = System.nanoTime() - this.lastStarted;
            this.lastStarted = 0l;
            this.stats.add(new Duration(duration));
        }
    }
View Full Code Here

Examples of org.jbpm.cal.Duration

    // we prepare the JobExecutor notification
    long delay = 0;
    if (timer.getRepeat() != null) {
      BusinessCalendar businessCalendar = new BusinessCalendar();
      Duration duration = new Duration(timer.getRepeat());
      delay = businessCalendar.add(new Date(0), duration).getTime();
    }

    toBeScheduledTimers.put(timer.getDbid(),
        new NotificationInfo(timer.getEligibleDate(), delay));
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.