empire-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From franci...@apache.org
Subject svn commit: r749116 - in /incubator/empire-db/trunk/empire-db/src/test/java/org/apache/empire/db: CompanyDB.java TestDB.java expr/set/DBSetExprTest.java hsql/DBDatabaseDriverHSqlTest.java
Date Sun, 01 Mar 2009 21:20:59 GMT
Author: francisdb
Date: Sun Mar  1 21:20:59 2009
New Revision: 749116

URL: http://svn.apache.org/viewvc?rev=749116&view=rev
Log:
rename test db so that maven does not pick it up as a test class

Added:
    incubator/empire-db/trunk/empire-db/src/test/java/org/apache/empire/db/CompanyDB.java
      - copied, changed from r749112, incubator/empire-db/trunk/empire-db/src/test/java/org/apache/empire/db/TestDB.java
Removed:
    incubator/empire-db/trunk/empire-db/src/test/java/org/apache/empire/db/TestDB.java
Modified:
    incubator/empire-db/trunk/empire-db/src/test/java/org/apache/empire/db/expr/set/DBSetExprTest.java
    incubator/empire-db/trunk/empire-db/src/test/java/org/apache/empire/db/hsql/DBDatabaseDriverHSqlTest.java

Copied: incubator/empire-db/trunk/empire-db/src/test/java/org/apache/empire/db/CompanyDB.java
(from r749112, incubator/empire-db/trunk/empire-db/src/test/java/org/apache/empire/db/TestDB.java)
URL: http://svn.apache.org/viewvc/incubator/empire-db/trunk/empire-db/src/test/java/org/apache/empire/db/CompanyDB.java?p2=incubator/empire-db/trunk/empire-db/src/test/java/org/apache/empire/db/CompanyDB.java&p1=incubator/empire-db/trunk/empire-db/src/test/java/org/apache/empire/db/TestDB.java&r1=749112&r2=749116&rev=749116&view=diff
==============================================================================
--- incubator/empire-db/trunk/empire-db/src/test/java/org/apache/empire/db/TestDB.java (original)
+++ incubator/empire-db/trunk/empire-db/src/test/java/org/apache/empire/db/CompanyDB.java
Sun Mar  1 21:20:59 2009
@@ -30,7 +30,7 @@
  * This is the basic database for testing
  *
  */
-public class TestDB extends DBDatabase
+public class CompanyDB extends DBDatabase
 {
     /**
      * This class represents the definition of the Departments table.
@@ -117,11 +117,11 @@
     public final Employees    EMPLOYEE   = new Employees(this);
 
     /**
-     * Constructor of the TestDB data model description
+     * Constructor of the CompanyDB data model description
      *
      * Put all foreigen key realtions here.
      */
-    public TestDB()
+    public CompanyDB()
     {
         // Define Foreign-Key Relations
         addRelation( EMPLOYEE.DEPARTMENT_ID.referenceOn( DEPARTMENT.ID ));

Modified: incubator/empire-db/trunk/empire-db/src/test/java/org/apache/empire/db/expr/set/DBSetExprTest.java
URL: http://svn.apache.org/viewvc/incubator/empire-db/trunk/empire-db/src/test/java/org/apache/empire/db/expr/set/DBSetExprTest.java?rev=749116&r1=749115&r2=749116&view=diff
==============================================================================
--- incubator/empire-db/trunk/empire-db/src/test/java/org/apache/empire/db/expr/set/DBSetExprTest.java
(original)
+++ incubator/empire-db/trunk/empire-db/src/test/java/org/apache/empire/db/expr/set/DBSetExprTest.java
Sun Mar  1 21:20:59 2009
@@ -8,7 +8,7 @@
 import org.apache.empire.db.DBColumn;
 import org.apache.empire.db.DBExpr;
 import org.apache.empire.db.MockDriver;
-import org.apache.empire.db.TestDB;
+import org.apache.empire.db.CompanyDB;
 import org.junit.Before;
 import org.junit.Test;
 
@@ -16,11 +16,11 @@
 {
     
     private DBSetExpr expr;
-    private TestDB testDB;
+    private CompanyDB testDB;
     
     @Before
     public void setup(){
-        testDB = new TestDB();
+        testDB = new CompanyDB();
         testDB.open(new MockDriver(), null);
         expr = new DBSetExpr(testDB.EMPLOYEE.FIRSTNAME, "JUnit");
     }

Modified: incubator/empire-db/trunk/empire-db/src/test/java/org/apache/empire/db/hsql/DBDatabaseDriverHSqlTest.java
URL: http://svn.apache.org/viewvc/incubator/empire-db/trunk/empire-db/src/test/java/org/apache/empire/db/hsql/DBDatabaseDriverHSqlTest.java?rev=749116&r1=749115&r2=749116&view=diff
==============================================================================
--- incubator/empire-db/trunk/empire-db/src/test/java/org/apache/empire/db/hsql/DBDatabaseDriverHSqlTest.java
(original)
+++ incubator/empire-db/trunk/empire-db/src/test/java/org/apache/empire/db/hsql/DBDatabaseDriverHSqlTest.java
Sun Mar  1 21:20:59 2009
@@ -12,7 +12,7 @@
 import org.apache.empire.db.DBRecord;
 import org.apache.empire.db.DBSQLScript;
 import org.apache.empire.db.DBTools;
-import org.apache.empire.db.TestDB;
+import org.apache.empire.db.CompanyDB;
 import org.junit.AfterClass;
 import org.junit.Assert;
 import org.junit.BeforeClass;
@@ -21,7 +21,7 @@
 
 public class DBDatabaseDriverHSqlTest
 {
-    public static TestDB db;
+    public static CompanyDB db;
     public static Connection conn;
     
     @BeforeClass
@@ -32,7 +32,7 @@
                                            "sa",                     // username
                                            "");                      // password
         DBDatabaseDriver driver = new DBDatabaseDriverHSql();
-        db = new TestDB();
+        db = new CompanyDB();
         db.open(driver, conn);
         DBSQLScript script = new DBSQLScript();
         db.getCreateDDLScript(db.getDriver(), script);



Mime
View raw message