Search in sources :

Example 1 with SubNodeProgressMonitor

use of org.knime.core.node.DefaultNodeProgressMonitor.SubNodeProgressMonitor in project knime-core by knime.

the class DefaultNodeProgressMonitorTest method testManyMessageEventsSubProgress.

/**
 * Calls internal test message for {@link SubNodeProgressMonitor}.
 */
@Test(timeout = 2000L)
public void testManyMessageEventsSubProgress() throws Exception {
    final DefaultNodeProgressMonitor progMon = new DefaultNodeProgressMonitor();
    internalTestManyMessageEvents(progMon, new SubNodeProgressMonitor(progMon, 1.0));
}
Also used : SubNodeProgressMonitor(org.knime.core.node.DefaultNodeProgressMonitor.SubNodeProgressMonitor) Test(org.junit.Test)

Example 2 with SubNodeProgressMonitor

use of org.knime.core.node.DefaultNodeProgressMonitor.SubNodeProgressMonitor in project knime-core by knime.

the class DefaultNodeProgressMonitorTest method testManySmallIncrementsSubProgress.

/**
 * Just a lot of incremental numeric progress updates on sub progress monitor.
 */
@Test(timeout = 10000L)
public void testManySmallIncrementsSubProgress() throws Exception {
    // this has a ridiculous large timeout because the math we do in the implementation
    // of SubnodeProgresMonitor is insane. Not going to change it as we spend days getting it "right" years ago
    DefaultNodeProgressMonitor m = new DefaultNodeProgressMonitor();
    internalTestManySmallIncrements(m, new SubNodeProgressMonitor(m, 1.0));
}
Also used : SubNodeProgressMonitor(org.knime.core.node.DefaultNodeProgressMonitor.SubNodeProgressMonitor) Test(org.junit.Test)

Aggregations

Test (org.junit.Test)2 SubNodeProgressMonitor (org.knime.core.node.DefaultNodeProgressMonitor.SubNodeProgressMonitor)2