[Jiemamy-notify:1926] commit [3093] テストクラスをテストに移動。

アーカイブの一覧に戻る

svnno****@sourc***** svnno****@sourc*****
2009年 4月 4日 (土) 12:08:16 JST


Revision: 3093
          http://svn.sourceforge.jp/view?root=jiemamy&view=rev&rev=3093
Author:   daisuke_m
Date:     2009-04-04 12:08:16 +0900 (Sat, 04 Apr 2009)

Log Message:
-----------
テストクラスをテストに移動。

Added Paths:
-----------
    artemis/trunk/jiemamy-core/src/test/java/org/jiemamy/utils/DatabaseCleanerTest.java

Removed Paths:
-------------
    artemis/trunk/jiemamy-core/src/main/java/org/jiemamy/utils/DatabaseCleanerTest.java


-------------- next part --------------
Deleted: artemis/trunk/jiemamy-core/src/main/java/org/jiemamy/utils/DatabaseCleanerTest.java
===================================================================
--- artemis/trunk/jiemamy-core/src/main/java/org/jiemamy/utils/DatabaseCleanerTest.java	2009-04-04 02:53:52 UTC (rev 3092)
+++ artemis/trunk/jiemamy-core/src/main/java/org/jiemamy/utils/DatabaseCleanerTest.java	2009-04-04 03:08:16 UTC (rev 3093)
@@ -1,84 +0,0 @@
-/*
- * Copyright 2007-2009 Jiemamy Project and the Others.
- * Created on 2009/04/04
- *
- * This file is part of Jiemamy.
- *
- * Licensed 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.jiemamy.utils;
-
-import java.io.File;
-import java.net.URL;
-
-import org.junit.After;
-import org.junit.Before;
-import org.junit.Test;
-
-import org.jiemamy.composer.importer.DefaultDatabaseImportConfig;
-import org.jiemamy.dialect.Dialect;
-import org.jiemamy.internal.test.ReflectionDialectProvider;
-
-/**
- * TODO for daisuke
- * 
- * @author daisuke
- */
-public class DatabaseCleanerTest {
-	
-	private DatabaseCleaner databaseCleaner;
-	
-
-	/**
-	 * テストを初期化する。
-	 * 
-	 * @throws Exception 例外が発生した場合
-	 */
-	@Before
-	public void setUp() throws Exception {
-		databaseCleaner = new DatabaseCleaner();
-	}
-	
-	/**
-	 * テストの情報を破棄する。
-	 * 
-	 * @throws Exception 例外が発生した場合
-	 */
-	@After
-	public void tearDown() throws Exception {
-		databaseCleaner = null;
-	}
-	
-	/**
-	 * TODO for daisuke
-	 * 
-	 * @throws Exception 例外が発生した場合
-	 */
-	@Test
-	public void testname() throws Exception {
-		DefaultDatabaseImportConfig config = new DefaultDatabaseImportConfig();
-		ReflectionDialectProvider reflectionDialectProvider = new ReflectionDialectProvider();
-		Dialect dialect = reflectionDialectProvider.getInstance("org.jiemamy.dialect.postgresql.PostgresqlDialect");
-		config.setDialect(dialect);
-		config.setDriverClassName("org.postgresql.Driver");
-		config.setDriverJarPath(new URL[] {
-			new File("./src/test/resources/postgresql-8.3-603.jdbc3.jar").toURL()
-		});
-		config.setUsername("postgres");
-		config.setPassword("postgres");
-		config.setSchema("public");
-		config.setUri("jdbc:postgresql://localhost:5432/jiemamy");
-		
-//		databaseCleaner.clean(config);
-	}
-}

Copied: artemis/trunk/jiemamy-core/src/test/java/org/jiemamy/utils/DatabaseCleanerTest.java (from rev 3092, artemis/trunk/jiemamy-core/src/main/java/org/jiemamy/utils/DatabaseCleanerTest.java)
===================================================================
--- artemis/trunk/jiemamy-core/src/test/java/org/jiemamy/utils/DatabaseCleanerTest.java	                        (rev 0)
+++ artemis/trunk/jiemamy-core/src/test/java/org/jiemamy/utils/DatabaseCleanerTest.java	2009-04-04 03:08:16 UTC (rev 3093)
@@ -0,0 +1,84 @@
+/*
+ * Copyright 2007-2009 Jiemamy Project and the Others.
+ * Created on 2009/04/04
+ *
+ * This file is part of Jiemamy.
+ *
+ * Licensed 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.jiemamy.utils;
+
+import java.io.File;
+import java.net.URL;
+
+import org.junit.After;
+import org.junit.Before;
+import org.junit.Test;
+
+import org.jiemamy.composer.importer.DefaultDatabaseImportConfig;
+import org.jiemamy.dialect.Dialect;
+import org.jiemamy.internal.test.ReflectionDialectProvider;
+
+/**
+ * TODO for daisuke
+ * 
+ * @author daisuke
+ */
+public class DatabaseCleanerTest {
+	
+	private DatabaseCleaner databaseCleaner;
+	
+
+	/**
+	 * テストを初期化する。
+	 * 
+	 * @throws Exception 例外が発生した場合
+	 */
+	@Before
+	public void setUp() throws Exception {
+		databaseCleaner = new DatabaseCleaner();
+	}
+	
+	/**
+	 * テストの情報を破棄する。
+	 * 
+	 * @throws Exception 例外が発生した場合
+	 */
+	@After
+	public void tearDown() throws Exception {
+		databaseCleaner = null;
+	}
+	
+	/**
+	 * TODO for daisuke
+	 * 
+	 * @throws Exception 例外が発生した場合
+	 */
+	@Test
+	public void testname() throws Exception {
+		DefaultDatabaseImportConfig config = new DefaultDatabaseImportConfig();
+		ReflectionDialectProvider reflectionDialectProvider = new ReflectionDialectProvider();
+		Dialect dialect = reflectionDialectProvider.getInstance("org.jiemamy.dialect.postgresql.PostgresqlDialect");
+		config.setDialect(dialect);
+		config.setDriverClassName("org.postgresql.Driver");
+		config.setDriverJarPath(new URL[] {
+			new File("./src/test/resources/postgresql-8.3-603.jdbc3.jar").toURL()
+		});
+		config.setUsername("postgres");
+		config.setPassword("postgres");
+		config.setSchema("public");
+		config.setUri("jdbc:postgresql://localhost:5432/jiemamy");
+		
+//		databaseCleaner.clean(config);
+	}
+}



Jiemamy-notify メーリングリストの案内
アーカイブの一覧に戻る