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

com.github.dreamhead.moco.util.Idles 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.util;

import com.github.dreamhead.moco.MocoException;

import java.util.concurrent.TimeUnit;

public final class Idles {
    public static void idle(final long duration, final TimeUnit unit) {
        try {
            unit.sleep(duration);
        } catch (InterruptedException e) {
            throw new MocoException(e);
        }
    }

    private Idles() {
    }
}




© 2015 - 2024 Weber Informatics LLC | Privacy Policy