Return-Path: X-Original-To: archive-asf-public-internal@cust-asf2.ponee.io Delivered-To: archive-asf-public-internal@cust-asf2.ponee.io Received: from cust-asf.ponee.io (cust-asf.ponee.io [163.172.22.183]) by cust-asf2.ponee.io (Postfix) with ESMTP id 91D2B200B53 for ; Tue, 12 Jul 2016 12:50:57 +0200 (CEST) Received: by cust-asf.ponee.io (Postfix) id 905A4160A56; Tue, 12 Jul 2016 10:50:57 +0000 (UTC) Delivered-To: archive-asf-public@cust-asf.ponee.io Received: from mail.apache.org (hermes.apache.org [140.211.11.3]) by cust-asf.ponee.io (Postfix) with SMTP id DD6A4160A6A for ; Tue, 12 Jul 2016 12:50:56 +0200 (CEST) Received: (qmail 94141 invoked by uid 500); 12 Jul 2016 10:50:55 -0000 Mailing-List: contact commits-help@tomee.apache.org; run by ezmlm Precedence: bulk List-Help: List-Unsubscribe: List-Post: List-Id: Reply-To: dev@tomee.apache.org Delivered-To: mailing list commits@tomee.apache.org Received: (qmail 94132 invoked by uid 99); 12 Jul 2016 10:50:55 -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, 12 Jul 2016 10:50:55 +0000 Received: by git1-us-west.apache.org (ASF Mail Server at git1-us-west.apache.org, from userid 33) id 88C9BE1021; Tue, 12 Jul 2016 10:50:55 +0000 (UTC) Content-Type: text/plain; charset="us-ascii" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit From: jgallimore@apache.org To: commits@tomee.apache.org Date: Tue, 12 Jul 2016 10:50:56 -0000 Message-Id: <3a475b3c21ed4428b83f5186622839e4@git.apache.org> In-Reply-To: <305ee6d9c0e5493da245fbc978565751@git.apache.org> References: <305ee6d9c0e5493da245fbc978565751@git.apache.org> X-Mailer: ASF-Git Admin Mailer Subject: [2/2] tomee git commit: Reverting this change archived-at: Tue, 12 Jul 2016 10:50:57 -0000 Reverting this change Project: http://git-wip-us.apache.org/repos/asf/tomee/repo Commit: http://git-wip-us.apache.org/repos/asf/tomee/commit/a1d04ed4 Tree: http://git-wip-us.apache.org/repos/asf/tomee/tree/a1d04ed4 Diff: http://git-wip-us.apache.org/repos/asf/tomee/diff/a1d04ed4 Branch: refs/heads/tomee-1.7.x Commit: a1d04ed438a0c51476f3f9d13021c48650600c8d Parents: afb44f7 Author: Jonathan Gallimore Authored: Tue Jul 12 11:49:32 2016 +0100 Committer: Jonathan Gallimore Committed: Tue Jul 12 11:49:32 2016 +0100 ---------------------------------------------------------------------- .../org/superbiz/eclipselink/MoviesTest.java | 54 -------------------- 1 file changed, 54 deletions(-) ---------------------------------------------------------------------- http://git-wip-us.apache.org/repos/asf/tomee/blob/a1d04ed4/examples/jpa-eclipselink/srcstest/java/org/superbiz/eclipselink/MoviesTest.java ---------------------------------------------------------------------- diff --git a/examples/jpa-eclipselink/srcstest/java/org/superbiz/eclipselink/MoviesTest.java b/examples/jpa-eclipselink/srcstest/java/org/superbiz/eclipselink/MoviesTest.java deleted file mode 100644 index f661b2d..0000000 --- a/examples/jpa-eclipselink/srcstest/java/org/superbiz/eclipselink/MoviesTest.java +++ /dev/null @@ -1,54 +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.superbiz.eclipselink; - -import junit.framework.TestCase; - -import javax.ejb.embeddable.EJBContainer; -import javax.naming.Context; -import java.util.List; -import java.util.Properties; - -/** - * @version $Revision: 607077 $ $Date: 2007-12-27 06:55:23 -0800 (Thu, 27 Dec 2007) $ - */ -public class MoviesTest extends TestCase { - - public void test() throws Exception { - Properties p = new Properties(); - p.put("movieDatabase", "new://Resource?type=DataSource"); - p.put("movieDatabase.JdbcDriver", "org.hsqldb.jdbcDriver"); - p.put("movieDatabase.JdbcUrl", "jdbc:hsqldb:mem:moviedb"); - - final Context context = EJBContainer.createEJBContainer(p).getContext(); - - Movies movies = (Movies) context.lookup("java:global/jpa-eclipselink/Movies"); - - movies.addMovie(new Movie("Quentin Tarantino", "Reservoir Dogs", 1992)); - movies.addMovie(new Movie("Joel Coen", "Fargo", 1996)); - movies.addMovie(new Movie("Joel Coen", "The Big Lebowski", 1998)); - - List list = movies.getMovies(); - assertEquals("List.size()", 3, list.size()); - - for (Movie movie : list) { - movies.deleteMovie(movie); - } - - assertEquals("Movies.getMovies()", 0, movies.getMovies().size()); - } -}