[Jiemamy-notify:1333] commit [2599] ReflectionDialectProviderも移動。

Back to archive index

svnno****@sourc***** svnno****@sourc*****
2009年 2月 2日 (月) 16:26:14 JST


Revision: 2599
          http://svn.sourceforge.jp/view?root=jiemamy&view=rev&rev=2599
Author:   daisuke_m
Date:     2009-02-02 16:26:14 +0900 (Mon, 02 Feb 2009)

Log Message:
-----------
ReflectionDialectProviderも移動。

Modified Paths:
--------------
    artemis/trunk/jiemamy-composer/src/test/java/org/jiemamy/composer/exporter/SqlExporterTest.java
    artemis/trunk/jiemamy-composer/src/test/java/org/jiemamy/composer/importer/DatabaseImporterTest.java
    artemis/trunk/jiemamy-core/src/test/java/org/jiemamy/utils/builder/ModelBuilderTest.java
    artemis/trunk/jiemamy-dialect-postgresql/src/test/java/org/jiemamy/dialect/postgresql/PostgresqlDialectTest.java

Added Paths:
-----------
    artemis/trunk/jiemamy-core/src/main/java/org/jiemamy/test/ReflectionDialectProvider.java

Removed Paths:
-------------
    artemis/trunk/jiemamy-core/src/test/java/org/jiemamy/ReflectionDialectProvider.java


-------------- next part --------------
Modified: artemis/trunk/jiemamy-composer/src/test/java/org/jiemamy/composer/exporter/SqlExporterTest.java
===================================================================
--- artemis/trunk/jiemamy-composer/src/test/java/org/jiemamy/composer/exporter/SqlExporterTest.java	2009-02-02 07:09:11 UTC (rev 2598)
+++ artemis/trunk/jiemamy-composer/src/test/java/org/jiemamy/composer/exporter/SqlExporterTest.java	2009-02-02 07:26:14 UTC (rev 2599)
@@ -36,10 +36,10 @@
 import org.jiemamy.Artemis;
 import org.jiemamy.Jiemamy;
 import org.jiemamy.JiemamyFactory;
-import org.jiemamy.ReflectionDialectProvider;
 import org.jiemamy.composer.ExportContext;
 import org.jiemamy.composer.Exporter;
 import org.jiemamy.model.RootModel;
+import org.jiemamy.test.ReflectionDialectProvider;
 
 /**
  * {@link SqlExporter}のテストクラス。

Modified: artemis/trunk/jiemamy-composer/src/test/java/org/jiemamy/composer/importer/DatabaseImporterTest.java
===================================================================
--- artemis/trunk/jiemamy-composer/src/test/java/org/jiemamy/composer/importer/DatabaseImporterTest.java	2009-02-02 07:09:11 UTC (rev 2598)
+++ artemis/trunk/jiemamy-composer/src/test/java/org/jiemamy/composer/importer/DatabaseImporterTest.java	2009-02-02 07:26:14 UTC (rev 2599)
@@ -41,7 +41,6 @@
 import org.jiemamy.Artemis;
 import org.jiemamy.Jiemamy;
 import org.jiemamy.JiemamyFactory;
-import org.jiemamy.ReflectionDialectProvider;
 import org.jiemamy.composer.ImportContext;
 import org.jiemamy.composer.Importer;
 import org.jiemamy.dialect.Dialect;
@@ -53,6 +52,7 @@
 import org.jiemamy.model.datatype.adapter.SizedDataTypeAdapter;
 import org.jiemamy.model.entity.EntityModel;
 import org.jiemamy.model.entity.TableModel;
+import org.jiemamy.test.ReflectionDialectProvider;
 import org.jiemamy.utils.CollectionsUtil;
 import org.jiemamy.utils.model.DataTypeUtil;
 import org.jiemamy.utils.model.EntityUtil;

Copied: artemis/trunk/jiemamy-core/src/main/java/org/jiemamy/test/ReflectionDialectProvider.java (from rev 2597, artemis/trunk/jiemamy-core/src/test/java/org/jiemamy/ReflectionDialectProvider.java)
===================================================================
--- artemis/trunk/jiemamy-core/src/main/java/org/jiemamy/test/ReflectionDialectProvider.java	                        (rev 0)
+++ artemis/trunk/jiemamy-core/src/main/java/org/jiemamy/test/ReflectionDialectProvider.java	2009-02-02 07:26:14 UTC (rev 2599)
@@ -0,0 +1,50 @@
+/*
+ * Copyright 2007-2009 Jiemamy Project and the Others.
+ * Created on 2008/12/10
+ *
+ * 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.test;
+
+import java.io.File;
+import java.net.MalformedURLException;
+import java.net.URL;
+import java.net.URLClassLoader;
+
+import org.jiemamy.Jiemamy;
+import org.jiemamy.dialect.Dialect;
+import org.jiemamy.exception.UnexpectedConditionError;
+
+/**
+ * 相対パスから強引にDialectを取得するための、テスト用インスタンス取得戦略クラス。
+ * @author daisuke
+ */
+public class ReflectionDialectProvider extends Jiemamy.DefaultInstanceProvider<Dialect> {
+	
+	/**
+	 * インスタンスを生成する。
+	 */
+	public ReflectionDialectProvider() {
+		try {
+			classLoader = new URLClassLoader(new URL[] {
+				new File("../jiemamy-dialect-mysql/target/classes").toURL(),
+				new File("../jiemamy-dialect-postgresql/target/classes").toURL(),
+				new File("../jiemamy-dialect-sql99/target/classes").toURL()
+			});
+		} catch (MalformedURLException e) {
+			throw new UnexpectedConditionError("spell miss?", e);
+		}
+	}
+}


Property changes on: artemis/trunk/jiemamy-core/src/main/java/org/jiemamy/test/ReflectionDialectProvider.java
___________________________________________________________________
Added: svn:mime-type
   + text/plain

Deleted: artemis/trunk/jiemamy-core/src/test/java/org/jiemamy/ReflectionDialectProvider.java
===================================================================
--- artemis/trunk/jiemamy-core/src/test/java/org/jiemamy/ReflectionDialectProvider.java	2009-02-02 07:09:11 UTC (rev 2598)
+++ artemis/trunk/jiemamy-core/src/test/java/org/jiemamy/ReflectionDialectProvider.java	2009-02-02 07:26:14 UTC (rev 2599)
@@ -1,49 +0,0 @@
-/*
- * Copyright 2007-2009 Jiemamy Project and the Others.
- * Created on 2008/12/10
- *
- * 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;
-
-import java.io.File;
-import java.net.MalformedURLException;
-import java.net.URL;
-import java.net.URLClassLoader;
-
-import org.jiemamy.dialect.Dialect;
-import org.jiemamy.exception.UnexpectedConditionError;
-
-/**
- * 相対パスから強引にDialectを取得するための、テスト用インスタンス取得戦略クラス。
- * @author daisuke
- */
-public class ReflectionDialectProvider extends Jiemamy.DefaultInstanceProvider<Dialect> {
-	
-	/**
-	 * インスタンスを生成する。
-	 */
-	public ReflectionDialectProvider() {
-		try {
-			classLoader = new URLClassLoader(new URL[] {
-				new File("../jiemamy-dialect-mysql/target/classes").toURL(),
-				new File("../jiemamy-dialect-postgresql/target/classes").toURL(),
-				new File("../jiemamy-dialect-sql99/target/classes").toURL()
-			});
-		} catch (MalformedURLException e) {
-			throw new UnexpectedConditionError("spell miss?", e);
-		}
-	}
-}

Modified: artemis/trunk/jiemamy-core/src/test/java/org/jiemamy/utils/builder/ModelBuilderTest.java
===================================================================
--- artemis/trunk/jiemamy-core/src/test/java/org/jiemamy/utils/builder/ModelBuilderTest.java	2009-02-02 07:09:11 UTC (rev 2598)
+++ artemis/trunk/jiemamy-core/src/test/java/org/jiemamy/utils/builder/ModelBuilderTest.java	2009-02-02 07:26:14 UTC (rev 2599)
@@ -29,7 +29,6 @@
 import org.jiemamy.Artemis;
 import org.jiemamy.Jiemamy;
 import org.jiemamy.JiemamyFactory;
-import org.jiemamy.ReflectionDialectProvider;
 import org.jiemamy.model.RootModel;
 import org.jiemamy.model.attribute.ColumnModel;
 import org.jiemamy.model.attribute.constraint.ForeignKeyModel;
@@ -38,6 +37,7 @@
 import org.jiemamy.model.datatype.adapter.SerialDataTypeAdapter;
 import org.jiemamy.model.datatype.adapter.SizedDataTypeAdapter;
 import org.jiemamy.model.entity.TableModel;
+import org.jiemamy.test.ReflectionDialectProvider;
 import org.jiemamy.utils.model.ForeignKeyUtil;
 import org.jiemamy.utils.model.RootModelUtil;
 import org.jiemamy.utils.model.TableUtil;

Modified: artemis/trunk/jiemamy-dialect-postgresql/src/test/java/org/jiemamy/dialect/postgresql/PostgresqlDialectTest.java
===================================================================
--- artemis/trunk/jiemamy-dialect-postgresql/src/test/java/org/jiemamy/dialect/postgresql/PostgresqlDialectTest.java	2009-02-02 07:09:11 UTC (rev 2598)
+++ artemis/trunk/jiemamy-dialect-postgresql/src/test/java/org/jiemamy/dialect/postgresql/PostgresqlDialectTest.java	2009-02-02 07:26:14 UTC (rev 2599)
@@ -40,9 +40,9 @@
 import org.jiemamy.Artemis;
 import org.jiemamy.Jiemamy;
 import org.jiemamy.JiemamyFactory;
-import org.jiemamy.ReflectionDialectProvider;
 import org.jiemamy.dialect.Dialect;
 import org.jiemamy.model.RootModel;
+import org.jiemamy.test.ReflectionDialectProvider;
 
 /**
  * {@link PostgresqlDialect}のテストクラス。



Jiemamy-notify メーリングリストの案内
Back to archive index