protected static void skipTestUnless(boolean requirement) { if (!requirement) { throw new SkipException("requirement not met"); } }
public void notVerified() { throw new SkipException("Not verified using this TCK."); } }
public void notVerified(String msg) { throw new SkipException(msg); } }
public void notVerified() { throw new SkipException("Not verified by this TCK."); }
public void notVerified(String message) { throw new SkipException(message); }
public void notVerified() { throw new SkipException("Not verified using this TCK."); }
@BeforeMethod protected void checkEnvironment() { if (!resourceAvailable) { throw new SkipException("Skipping tests because resource was not available."); } }
@Override public void testPartitionSchemaMismatch() { // test expects an exception to be thrown throw new SkipException("FileHiveMetastore only supports replaceTable() for views"); }
public void potentiallyPendingTest(Publisher<T> pub, PublisherTestRun<T> body, String message) throws Throwable { if (pub != null) { body.run(pub); } else { throw new SkipException(message); } }
@Override public void required_mustRequestFromUpstreamForElementsThatHaveBeenRequestedLongAgo() throws Throwable { throw new SkipException("WARNING: EmitterProcessor does not emit until all " + "subscribers request at least 1"); }
@Override public void required_mustRequestFromUpstreamForElementsThatHaveBeenRequestedLongAgo() throws Throwable { throw new SkipException("WorkQueueProcessor cannot do that given its distributing nature"); } }
@Override public void required_spec104_mustCallOnErrorOnAllItsSubscribersIfItEncountersANonRecoverableError() throws Throwable { throw new SkipException("WARNING: EmitterProcessor does not emit until all " + "subscribers request at least 1"); } }
@Test(groups = {"functional"}) public void testInvokedAndSkipped() throws SkipException { // System.out.println("Skipping this test after it is invoked."); throw new SkipException("This test is skipped after invocation"); }
@BeforeMethod public void beforeMethod() { invocations++; if (invocations == 2) { throw new SkipException("skipping"); } }
@Test public void test3() { throw new SkipException("simulating a skip"); }
@Test(dataProvider = "getVerdic", retryAnalyzer = DataProviderRetryAnalyzer.class) public void test(String verdict) { switch (verdict) { case "FAIL": Assert.fail("This time test FAIL!"); break; case "SKIP": throw new SkipException("This time test SKIPPED!"); default: break; } }
@BeforeMethod public void beforeMethod(Method method) { if ("test1".equals(method.getName())) { throw new SkipException("Skip from [before]"); } }
@Override public void beforeInvocation(final IInvokedMethod method, final ITestResult testResult) { if (!method.isTestMethod()) { return; } synchronized (this) { if (hasFailures) { throw new SkipException("Skipping this test"); } } }
@Override protected ConnectorTableHandle getTableHandle(ConnectorMetadata metadata, SchemaTableName tableName) { if (tableName.getTableName().startsWith(TEMPORARY_TABLE_PREFIX)) { return super.getTableHandle(metadata, tableName); } throw new SkipException("tests using existing tables are not supported"); }
@BeforeSuite public void beforeSuite() { throw new SkipException(ERROR_MSG); } @Test