incubator-isis-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From ke...@apache.org
Subject svn commit: r1026427 [2/2] - in /incubator/isis/trunk/alternatives/objectstore/sql: ./ integrationtests/ tests-common/ tests-common/src/ tests-common/src/main/ tests-common/src/main/java/ tests-common/src/main/java/org/ tests-common/src/main/java/org/a...
Date Fri, 22 Oct 2010 17:47:24 GMT
Added: incubator/isis/trunk/alternatives/objectstore/sql/tests-served/src/test/config/mysql.properties
URL: http://svn.apache.org/viewvc/incubator/isis/trunk/alternatives/objectstore/sql/tests-served/src/test/config/mysql.properties?rev=1026427&view=auto
==============================================================================
--- incubator/isis/trunk/alternatives/objectstore/sql/tests-served/src/test/config/mysql.properties
(added)
+++ incubator/isis/trunk/alternatives/objectstore/sql/tests-served/src/test/config/mysql.properties
Fri Oct 22 17:47:22 2010
@@ -0,0 +1,6 @@
+# Sample configuration
+# Edit this file with your server and authentication details.
+isis.persistence.sql.jdbc.driver=com.mysql.jdbc.Driver
+isis.persistence.sql.jdbc.connection=jdbc:mysql://abacus/noftest
+isis.persistence.sql.jdbc.user=nof
+isis.persistence.sql.jdbc.password=

Added: incubator/isis/trunk/alternatives/objectstore/sql/tests-served/src/test/config/postgresql.properties
URL: http://svn.apache.org/viewvc/incubator/isis/trunk/alternatives/objectstore/sql/tests-served/src/test/config/postgresql.properties?rev=1026427&view=auto
==============================================================================
--- incubator/isis/trunk/alternatives/objectstore/sql/tests-served/src/test/config/postgresql.properties
(added)
+++ incubator/isis/trunk/alternatives/objectstore/sql/tests-served/src/test/config/postgresql.properties
Fri Oct 22 17:47:22 2010
@@ -0,0 +1,6 @@
+# Sample configuration
+# Edit this file with your server and authentication details.
+isis.persistence.sql.jdbc.driver=org.postgresql.Driver
+isis.persistence.sql.jdbc.connection=jdbc:postgresql://abacus/noftest
+isis.persistence.sql.jdbc.user=nof
+isis.persistence.sql.jdbc.password=

Added: incubator/isis/trunk/alternatives/objectstore/sql/tests-served/src/test/java/org/apache/isis/extensions/sql/objectstore/MySqlTest.java
URL: http://svn.apache.org/viewvc/incubator/isis/trunk/alternatives/objectstore/sql/tests-served/src/test/java/org/apache/isis/extensions/sql/objectstore/MySqlTest.java?rev=1026427&view=auto
==============================================================================
--- incubator/isis/trunk/alternatives/objectstore/sql/tests-served/src/test/java/org/apache/isis/extensions/sql/objectstore/MySqlTest.java
(added)
+++ incubator/isis/trunk/alternatives/objectstore/sql/tests-served/src/test/java/org/apache/isis/extensions/sql/objectstore/MySqlTest.java
Fri Oct 22 17:47:22 2010
@@ -0,0 +1,54 @@
+/*
+ *  Licensed to the Apache Software Foundation (ASF) under one
+ *  or more contributor license agreements.  See the NOTICE file
+ *  distributed with this work for additional information
+ *  regarding copyright ownership.  The ASF licenses this file
+ *  to you 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.apache.isis.extensions.sql.objectstore;
+
+import java.util.Properties;
+
+import org.apache.isis.extensions.sql.objectstore.common.SqlIntegrationTestCommon;
+
+
+
+
+public class MySqlTest extends SqlIntegrationTestCommon {
+
+	/**/
+	@Override
+	public Properties getProperties(){
+		Properties properties = super.getProperties();
+		if (properties == null){
+			properties = new Properties();
+			properties.put("isis.persistence.sql.jdbc.driver", "com.mysql.jdbc.Driver");
+			properties.put("isis.persistence.sql.jdbc.connection", "jdbc:mysql://abacus/noftest");
+			properties.put("isis.persistence.sql.jdbc.user", "nof");
+			properties.put("isis.persistence.sql.jdbc.password", "");
+		}
+		return properties;
+	}
+	/**/
+	
+	public  String getPropertiesFilename(){
+		return "mysql.properties";
+	}
+}
+

Added: incubator/isis/trunk/alternatives/objectstore/sql/tests-served/src/test/java/org/apache/isis/extensions/sql/objectstore/PostgreSqlTest.java
URL: http://svn.apache.org/viewvc/incubator/isis/trunk/alternatives/objectstore/sql/tests-served/src/test/java/org/apache/isis/extensions/sql/objectstore/PostgreSqlTest.java?rev=1026427&view=auto
==============================================================================
--- incubator/isis/trunk/alternatives/objectstore/sql/tests-served/src/test/java/org/apache/isis/extensions/sql/objectstore/PostgreSqlTest.java
(added)
+++ incubator/isis/trunk/alternatives/objectstore/sql/tests-served/src/test/java/org/apache/isis/extensions/sql/objectstore/PostgreSqlTest.java
Fri Oct 22 17:47:22 2010
@@ -0,0 +1,52 @@
+/*
+ *  Licensed to the Apache Software Foundation (ASF) under one
+ *  or more contributor license agreements.  See the NOTICE file
+ *  distributed with this work for additional information
+ *  regarding copyright ownership.  The ASF licenses this file
+ *  to you 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.apache.isis.extensions.sql.objectstore;
+
+import java.util.Properties;
+
+import org.apache.isis.extensions.sql.objectstore.common.SqlIntegrationTestCommon;
+
+
+
+
+public class PostgreSqlTest extends SqlIntegrationTestCommon {
+	
+	@Override
+	public Properties getProperties(){
+		Properties properties = super.getProperties();
+		if (properties == null){
+			properties = new Properties();
+			properties.put("isis.persistence.sql.jdbc.driver", "org.postgresql.Driver");
+			properties.put("isis.persistence.sql.jdbc.connection", "jdbc:postgresql://abacus/noftest");
+			properties.put("isis.persistence.sql.jdbc.user", "nof");
+			properties.put("isis.persistence.sql.jdbc.password", "");
+		}
+		return properties;
+	}
+	
+	public  String getPropertiesFilename(){
+		return "postgresql.properties";
+	}	
+}
+



Mime
View raw message