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

com.github.dreamhead.moco.util.Preconditions 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 static com.google.common.base.Strings.isNullOrEmpty;

public final class Preconditions {
    public static String checkNotNullOrEmpty(final String reference, final Object errorMessage) {
        if (isNullOrEmpty(reference)) {
            throw new IllegalArgumentException(String.valueOf(errorMessage));
        }

        return reference;
    }

    private Preconditions() {
    }
}




© 2015 - 2024 Weber Informatics LLC | Privacy Policy