package pkg; import org.testng.annotations.Test; import java.util.concurrent.TimeUnit; public class ATest { @Test public void someMethod() throws InterruptedException { // checking processros # due to very slow Windows Jenkins machines TimeUnit.MILLISECONDS.sleep( Runtime.getRuntime().availableProcessors() == 1 ? 3600 : 1500 ); throw new RuntimeException( "assert \"foo\" == \"bar\"\n" + " |\n" + " false" ); } }