empire-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From franci...@apache.org
Subject svn commit: r830389 - /incubator/empire-db/trunk/empire-db/src/test/java/org/apache/empire/db/hsql/DBDatabaseDriverHSqlTest.java
Date Tue, 27 Oct 2009 23:05:15 GMT
Author: francisdb
Date: Tue Oct 27 23:05:15 2009
New Revision: 830389

URL: http://svn.apache.org/viewvc?rev=830389&view=rev
Log:
fixing brackets code style

Modified:
    incubator/empire-db/trunk/empire-db/src/test/java/org/apache/empire/db/hsql/DBDatabaseDriverHSqlTest.java

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=830389&r1=830388&r2=830389&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
Tue Oct 27 23:05:15 2009
@@ -49,15 +49,13 @@
     public static Connection conn;
     
     @BeforeClass
-    public static void setup() throws ClassNotFoundException, SQLException, IOException{
+    public static void setup() throws ClassNotFoundException, SQLException, IOException
+    {
         // clean up possible previous test files
         FileUtils.deleteDirectory(new File(PATH));
         
         Class.forName("org.hsqldb.jdbcDriver");
-        conn = DriverManager.getConnection("jdbc:hsqldb:"
-                                           + PATH,    // filenames
-                                           "sa",                     // username
-                                           "");                      // password
+        conn = DriverManager.getConnection("jdbc:hsqldb:" + PATH, "sa", "");
         DBDatabaseDriver driver = new DBDatabaseDriverHSql();
         db = new CompanyDB();
         db.open(driver, conn);
@@ -69,13 +67,17 @@
     }
     
     @AfterClass
-    public static void shutdown() throws SQLException, IOException{
-        try{
+    public static void shutdown() throws SQLException, IOException
+    {
+        try
+        {
             DBSQLScript script = new DBSQLScript();
             db.getDriver().getDDLScript(DBCmdType.DROP, db.EMPLOYEE, script);
             db.getDriver().getDDLScript(DBCmdType.DROP, db.DEPARTMENT, script);
             script.run(db.getDriver(), conn, true);
-        }finally{
+        }
+        finally
+        {
             DBTools.close(conn);
             // clean up
             FileUtils.deleteDirectory(new File(PATH));
@@ -84,7 +86,8 @@
     }
     
     @Test
-    public void test(){
+    public void test()
+    {
         DBRecord dep = new DBRecord();
         dep.create(db.DEPARTMENT);
         dep.setValue(db.DEPARTMENT.NAME, "junit");



Mime
View raw message