com.github.dreamhead.moco.runner.WatcherRunner Maven / Gradle / Ivy
Go to download
Show more of this group Show more artifacts with this name
Show all versions of moco-runner Show documentation
Show all versions of moco-runner Show documentation
Moco is an easy setup stub framework, mainly focusing on testing and integration.
package com.github.dreamhead.moco.runner;
import com.github.dreamhead.moco.runner.watcher.Watcher;
public class WatcherRunner implements Runner {
private final Runner runner;
private final Watcher watcher;
public WatcherRunner(final Runner runner, final Watcher watcher) {
this.runner = runner;
this.watcher = watcher;
}
@Override
public final void run() {
this.runner.run();
this.watcher.start();
}
@Override
public final void stop() {
this.watcher.stop();
this.runner.stop();
}
}
© 2015 - 2025 Weber Informatics LLC | Privacy Policy