Permalink
Browse files

Deleted unused files. Corrected test names.

  • Loading branch information...
1 parent fdc81f7 commit 9e5b1de74faa60908e2587e43c9b6c269a1e8f68 @alexec committed May 13, 2012
View
18 pom.xml
@@ -3,9 +3,11 @@
xsi:schemaLocation="http://maven.apache.org/POM/4.0.0 http://maven.apache.org/xsd/maven-4.0.0.xsd">
<modelVersion>4.0.0</modelVersion>
- <groupId>hibernate-jpa</groupId>
- <artifactId>hibernate-jpa</artifactId>
- <version>1.0</version>
+ <groupId>com.alexecollins</groupId>
+ <artifactId>tutorial-hibernate-jpa</artifactId>
+ <version>0.1.0-SNAPSHOT</version>
+
+ <url>http://www.alexecollins.com/?q=content/tutorial-hibernate-jpa-part-1</url>
<dependencies>
<dependency>
@@ -38,7 +40,6 @@
</dependencies>
<build>
- <finalName>tutorial</finalName>
<plugins>
<plugin>
<groupId>org.apache.maven.plugins</groupId>
@@ -49,15 +50,6 @@
<target>1.6</target>
</configuration>
</plugin>
- <plugin>
- <groupId>org.codehaus.mojo</groupId>
- <artifactId>tomcat-maven-plugin</artifactId>
- <version>1.1</version>
- <configuration>
- <server>localhost</server>
- </configuration>
- </plugin>
</plugins>
</build>
- <packaging>war</packaging>
</project>
@@ -1,10 +0,0 @@
-<%@ page language="java" contentType="text/html; charset=ISO-8859-1"
- pageEncoding="ISO-8859-1"%>
-<html>
-<head>
-<title>Hello World!</title>
-</head>
-<body>
- <p>Hello World!</p>
-</body>
-</html>
@@ -1,9 +0,0 @@
-<?xml version="1.0" encoding="UTF-8"?>
-<web-app version="2.5"
- xmlns="http://java.sun.com/xml/ns/javaee" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
- xsi:schemaLocation="http://java.sun.com/xml/ns/javaee http://java.sun.com/xml/ns/javaee/web-app_2_5.xsd">
- <display-name>Tutorial</display-name>
- <welcome-file-list>
- <welcome-file>/index.jsp</welcome-file>
- </welcome-file-list>
-</web-app>
@@ -1,39 +1,39 @@
-package tutorial;
-
-import org.apache.derby.jdbc.EmbeddedDataSource;
-import org.apache.naming.java.javaURLContextFactory;
-import org.junit.AfterClass;
-import org.junit.BeforeClass;
-
-import javax.naming.Context;
-import javax.naming.InitialContext;
-
-public abstract class AbstractTest {
-
- @BeforeClass
- public static void setUpClass() throws Exception {
- System.setProperty(Context.INITIAL_CONTEXT_FACTORY, javaURLContextFactory.class.getName());
- System.setProperty(Context.URL_PKG_PREFIXES, "org.apache.naming");
- InitialContext ic = new InitialContext();
-
- ic.createSubcontext("java:");
- ic.createSubcontext("java:comp");
- ic.createSubcontext("java:comp/env");
- ic.createSubcontext("java:comp/env/jdbc");
-
- EmbeddedDataSource ds = new EmbeddedDataSource();
- ds.setDatabaseName("tutorialDB");
- // tell Derby to create the database if it does not already exist
- ds.setCreateDatabase("create");
-
- ic.bind("java:comp/env/jdbc/tutorialDS", ds);
- }
-
- @AfterClass
- public static void tearDownClass() throws Exception {
-
- InitialContext ic = new InitialContext();
-
- ic.unbind("java:comp/env/jdbc/tutorialDS");
- }
+package tutorial;
+
+import org.apache.derby.jdbc.EmbeddedDataSource;
+import org.apache.naming.java.javaURLContextFactory;
+import org.junit.AfterClass;
+import org.junit.BeforeClass;
+
+import javax.naming.Context;
+import javax.naming.InitialContext;
+
+public abstract class AbstractIT {
+
+ @BeforeClass
+ public static void setUpClass() throws Exception {
+ System.setProperty(Context.INITIAL_CONTEXT_FACTORY, javaURLContextFactory.class.getName());
+ System.setProperty(Context.URL_PKG_PREFIXES, "org.apache.naming");
+ InitialContext ic = new InitialContext();
+
+ ic.createSubcontext("java:");
+ ic.createSubcontext("java:comp");
+ ic.createSubcontext("java:comp/env");
+ ic.createSubcontext("java:comp/env/jdbc");
+
+ EmbeddedDataSource ds = new EmbeddedDataSource();
+ ds.setDatabaseName("tutorialDB");
+ // tell Derby to create the database if it does not already exist
+ ds.setCreateDatabase("create");
+
+ ic.bind("java:comp/env/jdbc/tutorialDS", ds);
+ }
+
+ @AfterClass
+ public static void tearDownClass() throws Exception {
+
+ InitialContext ic = new InitialContext();
+
+ ic.unbind("java:comp/env/jdbc/tutorialDS");
+ }
}
Oops, something went wrong.

0 comments on commit 9e5b1de

Please sign in to comment.