io.crate.test.integration.CrateUnitTest



API Populatity

1 Client projects

Project: io.crate

Package: io.crate.test

Project crate/crate in file ...e.operation.collect.SimpleOneRowCollectorTest.java (2015-03-08)
@@ -24,6 +24,7 @@ package io.crate.operation.collect;
 import com.google.common.collect.ImmutableList;
 import io.crate.operation.*;
 import io.crate.planner.symbol.Literal;
+import io.crate.test.integration.CrateUnitTest;
 import org.junit.Test;
 import org.mockito.Mockito;
 
@@ -32,7 +33,7 @@ import java.util.List;
 
 import static org.mockito.Mockito.*;
 
-public class SimpleOneRowCollectorTest {
+public class SimpleOneRowCollectorTest extends CrateUnitTest {
 
     private final List<Input<?>> inputs = ImmutableList.<Input<?>>of(
             Literal.newLiteral(true), Literal.newLiteral("foo"));
Project crate/crate in file .../core.src.test.java.io.crate.types.IpTypeTest.java (2015-03-08)
@@ -21,12 +21,11 @@
 
 package io.crate.types;
 
-import org.junit.Test;
+import io.crate.test.integration.CrateUnitTest;
 import org.apache.lucene.util.BytesRef;
+import org.junit.Test;
 
-import static org.junit.Assert.*;
-
-public class IpTypeTest {
+public class IpTypeTest extends CrateUnitTest {
 
     @Test
     public void testValidation() throws Exception {
Project crate/crate in file ...c.test.java.io.crate.analyze.BaseAnalyzerTest.java (2015-03-08)
@@ -36,6 +36,7 @@ import io.crate.planner.symbol.Function;
 import io.crate.planner.symbol.Literal;
 import io.crate.planner.symbol.Symbol;
 import io.crate.sql.parser.SqlParser;
+import io.crate.test.integration.CrateUnitTest;
 import io.crate.types.ArrayType;
 import io.crate.types.DataType;
 import io.crate.types.DataTypes;
@@ -48,7 +49,7 @@ import org.junit.Before;
 
 import java.util.*;
 
-public abstract class BaseAnalyzerTest {
+public abstract class BaseAnalyzerTest extends CrateUnitTest {
 
     static final Routing shardRouting = new Routing(ImmutableMap.<String, Map<String, Set<Integer>>>builder()
             .put("nodeOne", ImmutableMap.<String, Set<Integer>>of("t1", ImmutableSet.of(1, 2)))
@@ -321,7 +322,7 @@ public abstract class BaseAnalyzerTest {
     }
 
     @Before
-    public void setUp() throws Exception {
+    public void prepareModules() throws Exception {
         ModulesBuilder builder = new ModulesBuilder();
         for (Module m : getModules()) {
             builder.add(m);