Examples of atOffset()


Examples of org.loadui.testfx.service.query.PointQuery.atOffset()

        // given:
        boundsLocatorStub.bounds = nodeBounds;
        PointQuery pointQuery = pointLocator.pointFor(new Point2D(100, 100));

        // when:
        Point2D point = pointQuery.atOffset(0, 0).query();

        // then:
        assertThat(point, Matchers.equalTo(new Point2D(100, 100)));
    }
View Full Code Here

Examples of org.loadui.testfx.service.query.PointQuery.atOffset()

        // given:
        boundsLocatorStub.bounds = nodeBounds;
        PointQuery pointQuery = pointLocator.pointFor((Node) null);

        // when:
        Point2D point = pointQuery.atOffset(0, 0).query();

        // then:
        assertThat(point, Matchers.equalTo(topLeftPointFrom(nodeBounds)));
    }
View Full Code Here

Examples of org.loadui.testfx.service.query.PointQuery.atOffset()

        boundsLocatorStub.bounds = nodeBounds;
        PointQuery pointQuery = pointLocator.pointFor((Node) null);

        // when:
        boundsLocatorStub.bounds = nodeBoundsAfterChange;
        Point2D point = pointQuery.atOffset(0, 0).query();

        // then:
        assertThat(point, Matchers.equalTo(topLeftPointFrom(nodeBoundsAfterChange)));
    }
View Full Code Here

Examples of org.loadui.testfx.service.query.PointQuery.atOffset()

        // given:
        boundsLocatorStub.bounds = sceneBounds;
        PointQuery pointQuery = pointLocator.pointFor((Scene) null);

        // when:
        Point2D point = pointQuery.atOffset(0, 0).query();

        // then:
        assertThat(point, Matchers.equalTo(topLeftPointFrom(sceneBounds)));
    }
View Full Code Here

Examples of org.loadui.testfx.service.query.PointQuery.atOffset()

        boundsLocatorStub.bounds = sceneBounds;
        PointQuery pointQuery = pointLocator.pointFor((Scene) null);

        // when:
        boundsLocatorStub.bounds = sceneBoundsAfterChange;
        Point2D point = pointQuery.atOffset(0, 0).query();

        // then:
        assertThat(point, Matchers.equalTo(topLeftPointFrom(sceneBoundsAfterChange)));
    }
View Full Code Here

Examples of org.loadui.testfx.service.query.PointQuery.atOffset()

        // given:
        boundsLocatorStub.bounds = windowBounds;
        PointQuery pointQuery = pointLocator.pointFor((Window) null);

        // when:
        Point2D point = pointQuery.atOffset(0, 0).query();

        // then:
        assertThat(point, Matchers.equalTo(topLeftPointFrom(windowBounds)));
    }
View Full Code Here

Examples of org.loadui.testfx.service.query.PointQuery.atOffset()

        boundsLocatorStub.bounds = windowBounds;
        PointQuery pointQuery = pointLocator.pointFor((Window) null);

        // when:
        boundsLocatorStub.bounds = windowBoundsAfterChange;
        Point2D point = pointQuery.atOffset(0, 0).query();

        // then:
        assertThat(point, Matchers.equalTo(topLeftPointFrom(windowBoundsAfterChange)));
    }
View Full Code Here

Examples of org.threeten.bp.LocalDateTime.atOffset()

  @Override
  public void start() {
    LocalDateTime now = LocalDateTime.now();
    LocalDateTime nextHour = now.truncatedTo(HOURS).plusHours(1);
    Duration delay = Duration.between(now.atOffset(ZoneOffset.UTC), nextHour.atOffset(ZoneOffset.UTC));
    Duration oneHour = Duration.ofHours(1);
    s_logger.warn("Now {} Next {} Delay {} {}", new Object[] {now, nextHour, delay, delay.toMillis() });
    _timerExecutor.scheduleAtFixedRate(new SnapshotTask(), delay.toMillis(), oneHour.toMillis(), TimeUnit.MILLISECONDS);
    if (getInitializationFileName() != null) {
      initializeFromFile(getInitializationFileName());
View Full Code Here

Examples of org.threeten.bp.LocalDateTime.atOffset()

   * @param timestamp  the SQL time-stamp to convert, not null
   * @return the instant, null if far-future
   */
  public static Instant fromSqlTimestamp(Timestamp timestamp) {
    LocalDateTime ldt = fromSqlDateTime(timestamp);
    return ldt.atOffset(ZoneOffset.UTC).toInstant();
  }

  /**
   * Creates an {@code Instant} from an SQL time-stamp treating null as far-future.
   *
 
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.