Return-Path: X-Original-To: apmail-usergrid-commits-archive@minotaur.apache.org Delivered-To: apmail-usergrid-commits-archive@minotaur.apache.org Received: from mail.apache.org (hermes.apache.org [140.211.11.3]) by minotaur.apache.org (Postfix) with SMTP id A098510942 for ; Tue, 3 Mar 2015 20:00:48 +0000 (UTC) Received: (qmail 46150 invoked by uid 500); 3 Mar 2015 20:00:42 -0000 Delivered-To: apmail-usergrid-commits-archive@usergrid.apache.org Received: (qmail 46099 invoked by uid 500); 3 Mar 2015 20:00:42 -0000 Mailing-List: contact commits-help@usergrid.incubator.apache.org; run by ezmlm Precedence: bulk List-Help: List-Unsubscribe: List-Post: List-Id: Reply-To: dev@usergrid.incubator.apache.org Delivered-To: mailing list commits@usergrid.incubator.apache.org Received: (qmail 45298 invoked by uid 99); 3 Mar 2015 20:00:41 -0000 Received: from git1-us-west.apache.org (HELO git1-us-west.apache.org) (140.211.11.23) by apache.org (qpsmtpd/0.29) with ESMTP; Tue, 03 Mar 2015 20:00:41 +0000 Received: by git1-us-west.apache.org (ASF Mail Server at git1-us-west.apache.org, from userid 33) id 41074E1087; Tue, 3 Mar 2015 20:00:41 +0000 (UTC) Content-Type: text/plain; charset="us-ascii" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit From: grey@apache.org To: commits@usergrid.apache.org Date: Tue, 03 Mar 2015 20:01:13 -0000 Message-Id: In-Reply-To: <31613d817b9b4e14abf7adb913ddece6@git.apache.org> References: <31613d817b9b4e14abf7adb913ddece6@git.apache.org> X-Mailer: ASF-Git Admin Mailer Subject: [34/37] incubator-usergrid git commit: Removing unnecessary test class and commented out dependencies. Removing unnecessary test class and commented out dependencies. Project: http://git-wip-us.apache.org/repos/asf/incubator-usergrid/repo Commit: http://git-wip-us.apache.org/repos/asf/incubator-usergrid/commit/489bf458 Tree: http://git-wip-us.apache.org/repos/asf/incubator-usergrid/tree/489bf458 Diff: http://git-wip-us.apache.org/repos/asf/incubator-usergrid/diff/489bf458 Branch: refs/heads/USERGRID-422 Commit: 489bf458e561833ed0d84c7e290b2986e3c8280e Parents: 2f6edd7 Author: Dave Johnson Authored: Fri Feb 27 16:36:58 2015 -0500 Committer: Dave Johnson Committed: Fri Feb 27 16:36:58 2015 -0500 ---------------------------------------------------------------------- .../org/apache/usergrid/rest/SimplestTest.java | 71 -------------------- stack/test-utils/pom.xml | 11 --- 2 files changed, 82 deletions(-) ---------------------------------------------------------------------- http://git-wip-us.apache.org/repos/asf/incubator-usergrid/blob/489bf458/stack/rest/src/test/java/org/apache/usergrid/rest/SimplestTest.java ---------------------------------------------------------------------- diff --git a/stack/rest/src/test/java/org/apache/usergrid/rest/SimplestTest.java b/stack/rest/src/test/java/org/apache/usergrid/rest/SimplestTest.java deleted file mode 100644 index 27898a9..0000000 --- a/stack/rest/src/test/java/org/apache/usergrid/rest/SimplestTest.java +++ /dev/null @@ -1,71 +0,0 @@ -/* - * Licensed to the Apache Software Foundation (ASF) under one or more - * contributor license agreements. See the NOTICE file distributed with - * this work for additional information regarding copyright ownership. - * The ASF licenses this file to You under the Apache License, Version 2.0 - * (the "License"); you may not use this file except in compliance with - * the License. You may obtain a copy of the License at - * - * http://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - */ -package org.apache.usergrid.rest; - -import com.fasterxml.jackson.core.JsonProcessingException; -import com.fasterxml.jackson.databind.ObjectMapper; -import org.apache.usergrid.persistence.DynamicEntity; -import org.apache.usergrid.rest.test.resource2point0.model.Collection; -import org.apache.usergrid.rest.test.resource2point0.model.Entity; -import org.apache.usergrid.rest.test.resource2point0.model.QueryParameters; -import org.apache.usergrid.utils.MapUtils; -import org.junit.Test; -import org.slf4j.Logger; -import org.slf4j.LoggerFactory; - -import java.util.Collections; - -import static org.junit.Assert.assertEquals; -import static org.junit.Assert.assertNotNull; - - -/** - * Simple test verifies if REST test infrastructure is functioning. - */ -public class SimplestTest extends org.apache.usergrid.rest.test.resource2point0.AbstractRestIT { - private static final Logger logger = LoggerFactory.getLogger(SimplestTest.class); - - @Test - public void getGetToken() { - assertNotNull( getAdminToken() ); - } - - @Test - public void testEntityPost() { - - Entity cat = new Entity(); - cat.put("name", "Bertha"); - cat.put("property1", "value1"); - Entity savedCat = this.app().collection("cats").post(cat); - - assertEquals( cat.get("property1"), savedCat.get("property1")); - } - - @Test - public void testEntityPostAndGet() { - - Entity dog = new Entity(); - dog.put("name", "Pokey"); - dog.put("property1", "value1"); - this.app().collection("dogs").post(dog); - refreshIndex(); - - Collection savedDogs = this.app().collection("dogs").get(); - Entity savedDog = (Entity)savedDogs.iterator().next(); - assertEquals( dog.get("property1"), savedDog.get("property1")); - } -} http://git-wip-us.apache.org/repos/asf/incubator-usergrid/blob/489bf458/stack/test-utils/pom.xml ---------------------------------------------------------------------- diff --git a/stack/test-utils/pom.xml b/stack/test-utils/pom.xml index d9728af..fecf069 100644 --- a/stack/test-utils/pom.xml +++ b/stack/test-utils/pom.xml @@ -242,12 +242,6 @@ - - @@ -256,11 +250,6 @@ test - - - - - org.apache.tomcat.embed tomcat-embed-core