You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@tomee.apache.org by jl...@apache.org on 2016/12/03 16:56:15 UTC

[21/50] tomee git commit: Reverting this change

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 <jo...@jrg.me.uk>
Authored: Tue Jul 12 11:49:32 2016 +0100
Committer: Jonathan Gallimore <jo...@jrg.me.uk>
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
- * <p/>
- * http://www.apache.org/licenses/LICENSE-2.0
- * <p/>
- * 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<Movie> list = movies.getMovies();
-        assertEquals("List.size()", 3, list.size());
-
-        for (Movie movie : list) {
-            movies.deleteMovie(movie);
-        }
-
-        assertEquals("Movies.getMovies()", 0, movies.getMovies().size());
-    }
-}