cayenne-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From aadamc...@apache.org
Subject svn commit: r498313 - in /cayenne/main/trunk/framework/cayenne-modeler: pom.xml src/test/java/org/apache/cayenne/modeler/action/MockConfiguration.java src/test/java/org/apache/cayenne/modeler/action/ModelerProjectLoaderDelegateTest.java
Date Sun, 21 Jan 2007 13:36:17 GMT
Author: aadamchik
Date: Sun Jan 21 05:36:16 2007
New Revision: 498313

URL: http://svn.apache.org/viewvc?view=rev&rev=498313
Log:
removing dependency on core tests

Added:
    cayenne/main/trunk/framework/cayenne-modeler/src/test/java/org/apache/cayenne/modeler/action/MockConfiguration.java
Modified:
    cayenne/main/trunk/framework/cayenne-modeler/pom.xml
    cayenne/main/trunk/framework/cayenne-modeler/src/test/java/org/apache/cayenne/modeler/action/ModelerProjectLoaderDelegateTest.java

Modified: cayenne/main/trunk/framework/cayenne-modeler/pom.xml
URL: http://svn.apache.org/viewvc/cayenne/main/trunk/framework/cayenne-modeler/pom.xml?view=diff&rev=498313&r1=498312&r2=498313
==============================================================================
--- cayenne/main/trunk/framework/cayenne-modeler/pom.xml (original)
+++ cayenne/main/trunk/framework/cayenne-modeler/pom.xml Sun Jan 21 05:36:16 2007
@@ -109,14 +109,6 @@
 		</dependency>
 
 		<dependency>
-			<groupId>org.apache.cayenne.unpublished</groupId>
-			<artifactId>cayenne-jdk1.4-unpublished</artifactId>
-			<version>${version}</version>
-			<classifier>tests</classifier>
-			<scope>test</scope>
-		</dependency>
-
-		<dependency>
 			<groupId>ognl</groupId>
 			<artifactId>ognl</artifactId>
 		</dependency>

Added: cayenne/main/trunk/framework/cayenne-modeler/src/test/java/org/apache/cayenne/modeler/action/MockConfiguration.java
URL: http://svn.apache.org/viewvc/cayenne/main/trunk/framework/cayenne-modeler/src/test/java/org/apache/cayenne/modeler/action/MockConfiguration.java?view=auto&rev=498313
==============================================================================
--- cayenne/main/trunk/framework/cayenne-modeler/src/test/java/org/apache/cayenne/modeler/action/MockConfiguration.java
(added)
+++ cayenne/main/trunk/framework/cayenne-modeler/src/test/java/org/apache/cayenne/modeler/action/MockConfiguration.java
Sun Jan 21 05:36:16 2007
@@ -0,0 +1,59 @@
+/*****************************************************************
+ *   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.cayenne.modeler.action;
+
+import java.io.InputStream;
+
+import org.apache.cayenne.conf.Configuration;
+import org.apache.cayenne.util.ResourceLocator;
+import org.apache.commons.lang.NotImplementedException;
+
+public class MockConfiguration extends Configuration {
+
+    public MockConfiguration() {
+        super();
+    }
+
+    public boolean canInitialize() {
+        return true;
+    }
+
+    public void didInitialize() {
+    }
+
+    protected InputStream getDomainConfiguration() {
+        throw new NotImplementedException(
+                "this is an in-memory mockup...'getDomainConfiguration' is not implemented.");
+    }
+
+    protected InputStream getMapConfiguration(String name) {
+        return null;
+    }
+
+    protected ResourceLocator getResourceLocator() {
+        return null;
+    }
+
+    protected InputStream getViewConfiguration(String location) {
+        return null;
+    }
+
+    public void initialize() throws Exception {
+    }
+}

Modified: cayenne/main/trunk/framework/cayenne-modeler/src/test/java/org/apache/cayenne/modeler/action/ModelerProjectLoaderDelegateTest.java
URL: http://svn.apache.org/viewvc/cayenne/main/trunk/framework/cayenne-modeler/src/test/java/org/apache/cayenne/modeler/action/ModelerProjectLoaderDelegateTest.java?view=diff&rev=498313&r1=498312&r2=498313
==============================================================================
--- cayenne/main/trunk/framework/cayenne-modeler/src/test/java/org/apache/cayenne/modeler/action/ModelerProjectLoaderDelegateTest.java
(original)
+++ cayenne/main/trunk/framework/cayenne-modeler/src/test/java/org/apache/cayenne/modeler/action/ModelerProjectLoaderDelegateTest.java
Sun Jan 21 05:36:16 2007
@@ -20,12 +20,8 @@
 package org.apache.cayenne.modeler.action;
 
 import javax.sql.DataSource;
-
 import junit.framework.TestCase;
-
 import org.apache.cayenne.access.DataNode;
-import org.apache.cayenne.conf.MockConfiguration;
-
 import com.mockrunner.mock.jdbc.MockDataSource;
 
 public class ModelerProjectLoaderDelegateTest extends TestCase {



Mime
View raw message