Package code.satyagraha.gfm.ui.api.Scheduler

Examples of code.satyagraha.gfm.ui.api.Scheduler.Callback


        // when
        model.start(markdownView, browser);
        model.showMarkdownFile(iFile);
        if (scheduleCount > 0) {
            Callback callback = schedulerCallbackCaptor.getValue();
            if (errorCount == 0) {
                callback.onComplete(htFile);
            } else {
                callback.onError(htFile, exception);
            }
        }
        model.stop();

        // then
View Full Code Here


        // when
        model.start(markdownView, browser);
        model.notifyEditorFile(iFile);
        if (scheduleCount > 0) {
            Callback callback = schedulerCallbackCaptor.getValue();
            callback.onComplete(htFile);
        }
        model.stop();

        // then
        verify(scheduler, times(scheduleCount)).scheduleTransformation(eq(mdFile), eq(htFile), any(Scheduler.Callback.class));
View Full Code Here

        // when
        model.start(markdownView, browser);
        model.showMarkdownFile(iFile);
        model.reload();
        if (scheduleCount > 0) {
            Callback callback = schedulerCallbackCaptor.getValue();
            callback.onComplete(htFile);
        }
        model.stop();

        // then
        verify(viewSupport, never()).isLinked();
View Full Code Here

TOP

Related Classes of code.satyagraha.gfm.ui.api.Scheduler.Callback

Copyright © 2018 www.massapicom. 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.