Examples of waitUntil()


Examples of org.apache.jackrabbit.oak.stats.Clock.waitUntil()

    }

    @Test
    public void modifiedReset() throws Exception {
        Clock clock = new Clock.Virtual();
        clock.waitUntil(System.currentTimeMillis());
        Revision.setClock(clock);
        MemoryDocumentStore docStore = new MemoryDocumentStore();
        DocumentNodeStore ns1 = new DocumentMK.Builder()
                .setDocumentStore(docStore).setClusterId(1)
                .setAsyncDelay(0).clock(clock).getNodeStore();
View Full Code Here

Examples of org.apache.jackrabbit.oak.stats.Clock.waitUntil()

        ns2.merge(builder2, EmptyHook.INSTANCE, CommitInfo.EMPTY);

        // wait at least _modified resolution. in reality the wait may
        // not be necessary. e.g. when the clock passes the resolution boundary
        // exactly at this time
        clock.waitUntil(System.currentTimeMillis() +
                SECONDS.toMillis(MODIFIED_IN_SECS_RESOLUTION + 1));

        builder1 = ns1.getRoot().builder();
        builder1.child("node").child("child-1");
        ns1.merge(builder1, EmptyHook.INSTANCE, CommitInfo.EMPTY);
View Full Code Here

Examples of org.eclipse.swtbot.eclipse.finder.SWTWorkbenchBot.waitUntil()

  public static CompareEditorTester forTitleContaining(String title) {
    SWTWorkbenchBot bot = new SWTWorkbenchBot();
    SWTBotEditor editor = bot.editor(new CompareEditorTitleMatcher(title));
    // Ensure that both StyledText widgets are enabled
    SWTBotStyledText styledText = editor.toTextEditor().getStyledText();
    bot.waitUntil(Conditions.widgetIsEnabled(styledText));
    return new CompareEditorTester(editor);
  }

  private CompareEditorTester(SWTBotEditor editor) {
    this.editor = editor;
View Full Code Here

Examples of org.eclipse.swtbot.swt.finder.SWTBot.waitUntil()

     * Waits until the watched job is done.
     */
    public void waitUntilDone()
    {
        SWTBot bot = new SWTBot();
        bot.waitUntil( new DefaultCondition()
        {

            public boolean test() throws Exception
            {
                if ( done.get() )
View Full Code Here

Examples of org.sikuli.remote.client.RemoteScreen.waitUntil()

  }
 
  @Test
  public void testWaitUntil() throws Exception {
    RemoteScreen rs = new RemoteScreen("localhost");
    rs.waitUntil(psc, timeout);
  }
 
  @Test
  public void testSetMinSimilarity() throws Exception {
    RemoteScreen rs = new RemoteScreen("localhost");
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.