com.tngtech.java.junit.dataprovider.common.Preconditions Maven / Gradle / Ivy
Go to download
Show more of this group Show more artifacts with this name
Show all versions of junit4-dataprovider Show documentation
Show all versions of junit4-dataprovider Show documentation
A TestNG like dataprovider runner for JUnit having a simplified syntax compared to all the existing JUnit4 features.
package com.tngtech.java.junit.dataprovider.common;
public class Preconditions {
public static T checkNotNull(T object, String errorMessage) {
return com.tngtech.junit.dataprovider.Preconditions.checkNotNull(object, errorMessage);
}
public static void checkArgument(boolean expression, String errorMessage) {
com.tngtech.junit.dataprovider.Preconditions.checkArgument(expression, errorMessage);
}
public static void checkArgument(boolean expression, String errorMessageFormat, Object... errorMessageArgs) {
com.tngtech.junit.dataprovider.Preconditions.checkArgument(expression, errorMessageFormat,
errorMessageArgs);
}
}