package io.vertx.db2client.tck;

import java.util.function.BiConsumer;
import java.util.function.Function;
import java.util.function.Supplier;

import org.junit.ClassRule;
import org.junit.Ignore;
import org.junit.Test;
import org.junit.runner.RunWith;

import io.vertx.db2client.junit.DB2Resource;
import io.vertx.ext.unit.TestContext;
import io.vertx.ext.unit.junit.VertxUnitRunner;
import io.vertx.sqlclient.Row;
import io.vertx.sqlclient.tck.CollectorTestBase;

@RunWith(VertxUnitRunner.class)
public class DB2CollectorTest extends CollectorTestBase {
  @ClassRule
  public static DB2Resource rule = DB2Resource.SHARED_INSTANCE;

  @Override
  protected void initConnector() {
    connector = ClientConfig.CONNECT.connect(vertx, rule.options());
  }

  @Override
  @Ignore // TODO: implement error paths properly
  @Test
  public void testCollectorFailureProvidingSupplier(TestContext ctx) {
  }

  @Override
  @Ignore // TODO: implement error paths properly
  @Test
  public void testCollectorFailureInSupplier(TestContext ctx) {
  }

  @Override
  @Ignore // TODO: implement error paths properly
  @Test
  public void testCollectorFailureProvidingAccumulator(TestContext ctx) {
  }

  @Override
  @Ignore // TODO: implement error paths properly
  @Test
  public void testCollectorFailureInAccumulator(TestContext ctx) {
  }

  @Override
  @Ignore // TODO: implement error paths properly
  @Test
  public void testCollectorFailureProvidingFinisher(TestContext ctx) {
  }

  @Override
  @Ignore // TODO: implement error paths properly
  @Test
  public void testCollectorFailureInFinisher(TestContext ctx) {
  }
}

@@ -37,186 +37,27 @@
 ort 
-java.util.function.BiConsumer;%0Aimport java.util.function.Function;%0Aimport java.util.function.Supplier;%0A%0Aimport org.junit.ClassRule;%0Aimport org.junit.Ignore;%0Aimport org.junit.Test
+org.junit.ClassRule
 ;%0Aim
@@ -137,46 +137,8 @@
 ce;%0A
-import io.vertx.ext.unit.TestContext;%0A
 impo
@@ -185,39 +185,8 @@
 er;%0A
-import io.vertx.sqlclient.Row;%0A
 impo
@@ -446,16 +446,16 @@
 tor() %7B%0A
+
     conn
@@ -522,868 +522,7 @@
 %0A  %7D
-%0A%0A  @Override%0A  @Ignore // TODO: implement error paths properly%0A  @Test%0A  public void testCollectorFailureProvidingSupplier(TestContext ctx) %7B%0A  %7D%0A%0A  @Override%0A  @Ignore // TODO: implement error paths properly%0A  @Test%0A  public void testCollectorFailureInSupplier(TestContext ctx) %7B%0A  %7D%0A%0A  @Override%0A  @Ignore // TODO: implement error paths properly%0A  @Test%0A  public void testCollectorFailureProvidingAccumulator(TestContext ctx) %7B%0A  %7D%0A%0A  @Override%0A  @Ignore // TODO: implement error paths properly%0A  @Test%0A  public void testCollectorFailureInAccumulator(TestContext ctx) %7B%0A  %7D%0A%0A  @Override%0A  @Ignore // TODO: implement error paths properly%0A  @Test%0A  public void testCollectorFailureProvidingFinisher(TestContext ctx) %7B%0A  %7D%0A%0A  @Override%0A  @Ignore // TODO: implement error paths properly%0A  @Test%0A  public void testCollectorFailureInFinisher(TestContext ctx) %7B%0A  %7D
 %0A%7D%0A

Enable DB2Collector error path tests