diff --git a/datastore/pom.xml b/datastore/pom.xml index a43ce97bfc1..45a5255e489 100644 --- a/datastore/pom.xml +++ b/datastore/pom.xml @@ -1,7 +1,19 @@ - - + + 4.0.0 com.google.datastore.snippets datastore-snippets @@ -25,14 +37,13 @@ gcloud-java-datastore 0.2.8 + + junit junit 4.12 - - compile + test diff --git a/datastore/src/main/java/com/google/datastore/snippets/Concepts.java b/datastore/src/test/java/com/google/datastore/snippets/ConceptsTest.java similarity index 99% rename from datastore/src/main/java/com/google/datastore/snippets/Concepts.java rename to datastore/src/test/java/com/google/datastore/snippets/ConceptsTest.java index 78c773eee8d..764fa13385f 100644 --- a/datastore/src/main/java/com/google/datastore/snippets/Concepts.java +++ b/datastore/src/test/java/com/google/datastore/snippets/ConceptsTest.java @@ -57,6 +57,8 @@ import org.junit.Rule; import org.junit.Test; import org.junit.rules.ExpectedException; +import org.junit.runner.RunWith; +import org.junit.runners.JUnit4; import java.io.IOException; import java.util.ArrayList; @@ -74,7 +76,8 @@ /** * Contains Cloud Datastore snippets demonstrating concepts for documentation. */ -public class Concepts { +@RunWith(JUnit4.class) +public class ConceptsTest { private static final LocalDatastoreHelper HELPER = LocalDatastoreHelper.create(1.0); private static final FullEntity TEST_FULL_ENTITY = FullEntity.builder().build(); @@ -989,7 +992,7 @@ public void testPropertyFilteringRunQuery() { } // [END property_filtering_run_query] Map> expected = - ImmutableMap.of("Task", ImmutableSet.of("priority", "tag", "category")); + ImmutableMap.of("Task", ImmutableSet.of("priority", "tag")); assertEquals(expected, propertiesByKind); }