All Downloads are FREE. Search and download functionalities are using the official Maven repository.

com.github.dreamhead.moco.runner.WatcherRunner Maven / Gradle / Ivy

Go to download

Moco is an easy setup stub framework, mainly focusing on testing and integration.

There is a newer version: 1.5.0
Show newest version
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