![JAR search and dependency download from the Maven repository](/logo.png)
de.mklinger.commons.junitsupport.RuntimeIgnore Maven / Gradle / Ivy
Go to download
Show more of this group Show more artifacts with this name
Show all versions of junit-support Show documentation
Show all versions of junit-support Show documentation
Helpers and base test classes for junit
The newest version!
/*
* Copyright 2014-present mklinger GmbH - http://www.mklinger.de
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
* You may obtain a copy of the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to in writing, software
* distributed under the License is distributed on an "AS IS" BASIS,
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
* See the License for the specific language governing permissions and
* limitations under the License.
*/
package de.mklinger.commons.junitsupport;
import static org.junit.Assume.assumeFalse;
import static org.junit.Assume.assumeTrue;
/**
* Runtime test ignore util class.
* @author Marc Klinger - mklinger[at]mklinger[dot]de
*/
public class RuntimeIgnore {
private RuntimeIgnore() {
}
public static void ignore() {
assumeTrue("Test ignored", false);
}
public static void ignoreIf(final boolean shouldIgnore) {
assumeFalse("Test ignored", shouldIgnore);
}
public static void ignoreIfNot(final boolean shouldNotIgnore) {
assumeTrue("Test ignored", shouldNotIgnore);
}
}
© 2015 - 2025 Weber Informatics LLC | Privacy Policy