Permalink
Browse files

removing useless itests

git-svn-id: https://svn.apache.org/repos/asf/cayenne/main/trunk@1441438 13f79535-47bb-0310-9956-ffa450edef68
  • Loading branch information...
1 parent 7d16c1c commit 55de10990984329696e541108c8b48fb71b3dbe0 @andrus andrus committed Feb 1, 2013
@@ -1,77 +0,0 @@
-<?xml version="1.0" encoding="UTF-8"?>
- <!--
- 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.
- -->
-<project xmlns="http://maven.apache.org/POM/4.0.0" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xsi:schemaLocation="http://maven.apache.org/POM/4.0.0 http://maven.apache.org/maven-v4_0_0.xsd">
-
- <modelVersion>4.0.0</modelVersion>
-
- <parent>
- <groupId>org.apache.cayenne.itests</groupId>
- <artifactId>cayenne-itests-parent</artifactId>
- <version>3.2M1-SNAPSHOT</version>
- </parent>
-
- <description>Integration Tests - Cayenne runtime</description>
- <artifactId>cayenne-runtime-itest</artifactId>
- <name>Integration Tests - Cayenne Runtime</name>
- <packaging>jar</packaging>
-
- <dependencies>
- <dependency>
- <groupId>junit</groupId>
- <artifactId>junit</artifactId>
- <scope>compile</scope>
- </dependency>
-
- <dependency>
- <groupId>org.apache.cayenne.build-tools</groupId>
- <artifactId>cayenne-test-utilities</artifactId>
- <version>${project.version}</version>
- <scope>compile</scope>
- </dependency>
-
- <dependency>
- <groupId>hsqldb</groupId>
- <artifactId>hsqldb</artifactId>
- <scope>compile</scope>
- </dependency>
-
- <dependency>
- <groupId>org.apache.cayenne.unpublished</groupId>
- <artifactId>cayenne-di-unpublished</artifactId>
- <version>${project.version}</version>
- </dependency>
-
- <dependency>
- <groupId>org.apache.cayenne.unpublished</groupId>
- <artifactId>cayenne-jdk1.5-unpublished</artifactId>
- <version>${project.version}</version>
- </dependency>
-
- </dependencies>
-
- <build>
- <plugins>
- <plugin>
- <artifactId>maven-deploy-plugin</artifactId>
- <configuration>
- <skip>true</skip>
- </configuration>
- </plugin>
-
- </plugins>
- </build>
-</project>
@@ -1,24 +0,0 @@
-/*****************************************************************
- * 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.configuration.server;
-
-public enum RuntimeName {
-
- DEFAULT
-}
@@ -1,89 +0,0 @@
-/*****************************************************************
- * 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.configuration.server;
-
-import java.util.Collection;
-import java.util.HashMap;
-import java.util.Map;
-
-import junit.framework.TestCase;
-
-import org.apache.cayenne.access.DataNode;
-import org.apache.cayenne.access.dbsync.CreateIfNoSchemaStrategy;
-import org.apache.cayenne.access.dbsync.SchemaUpdateStrategy;
-import org.apache.cayenne.configuration.server.ServerRuntime;
-import org.apache.cayenne.test.jdbc.DBHelper;
-import org.apache.cayenne.test.jdbc.TableHelper;
-
-public abstract class ServerRuntimeCase extends TestCase {
-
- static final Map<RuntimeName, ServerRuntime> runtimeCache;
-
- static {
- runtimeCache = new HashMap<RuntimeName, ServerRuntime>();
- }
-
- protected ServerRuntime runtime;
-
- @Override
- protected void setUp() throws Exception {
-
- RuntimeName name = getRuntimeName();
- assertNotNull(name);
-
- String location = "cayenne-" + name + ".xml";
- runtime = runtimeCache.get(location);
- if (runtime == null) {
- runtime = new ServerRuntime(location);
- runtimeCache.put(name, runtime);
-
- // setup schema
-
- // TODO: should that be drop/create?
- SchemaUpdateStrategy dbCreator = new CreateIfNoSchemaStrategy();
- dbCreator.updateSchema(getDataNode());
- }
- }
-
- @Override
- protected void tearDown() throws Exception {
- runtime = null;
- }
-
- protected abstract RuntimeName getRuntimeName();
-
- protected DBHelper getDbUtils() {
-
- return new DBHelper(getDataNode().getDataSource());
- }
-
- protected TableHelper getTableHelper(String tableName) {
- return new TableHelper(getDbUtils(), tableName);
- }
-
- private DataNode getDataNode() {
- Collection<DataNode> nodes = runtime.getDataDomain().getDataNodes();
- assertFalse("Can't find DataSource - no nodes configured", nodes
- .isEmpty());
- assertEquals("Can't find DataSource - multiple nodes found", 1, nodes
- .size());
-
- return nodes.iterator().next();
- }
-}
@@ -1,36 +0,0 @@
-/*****************************************************************
- * 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.itest.di_stack;
-
-import org.apache.cayenne.itest.di_stack.auto._DefaultMap;
-
-public class DefaultMap extends _DefaultMap {
-
- private static DefaultMap instance;
-
- private DefaultMap() {}
-
- public static DefaultMap getInstance() {
- if(instance == null) {
- instance = new DefaultMap();
- }
-
- return instance;
- }
-}
@@ -1,7 +0,0 @@
-package org.apache.cayenne.itest.di_stack;
-
-import org.apache.cayenne.itest.di_stack.auto._Table1;
-
-public class Table1 extends _Table1 {
-
-}
@@ -1,12 +0,0 @@
-package org.apache.cayenne.itest.di_stack.auto;
-
-
-
-/**
- * This class was generated by Cayenne.
- * It is probably a good idea to avoid changing this class manually,
- * since it may be overwritten next time code is regenerated.
- * If you need to make any customizations, please use subclass.
- */
-public class _DefaultMap {
-}
@@ -1,24 +0,0 @@
-package org.apache.cayenne.itest.di_stack.auto;
-
-import org.apache.cayenne.CayenneDataObject;
-
-/**
- * Class _Table1 was generated by Cayenne.
- * It is probably a good idea to avoid changing this class manually,
- * since it may be overwritten next time code is regenerated.
- * If you need to make any customizations, please use subclass.
- */
-public abstract class _Table1 extends CayenneDataObject {
-
- public static final String NAME_PROPERTY = "name";
-
- public static final String ID_PK_COLUMN = "ID";
-
- public void setName(String name) {
- writeProperty("name", name);
- }
- public String getName() {
- return (String)readProperty("name");
- }
-
-}
@@ -1,14 +0,0 @@
-<?xml version="1.0" encoding="utf-8"?>
-<data-map xmlns="http://cayenne.apache.org/schema/3.0/modelMap"
- xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
- xsi:schemaLocation="http://cayenne.apache.org/schema/3.0/modelMap http://cayenne.apache.org/schema/3.0/modelMap.xsd"
- project-version="3.0.0.1">
- <property name="defaultPackage" value="org.apache.cayenne.itest.di_stack"/>
- <db-entity name="TABLE1">
- <db-attribute name="ID" type="BIGINT" isPrimaryKey="true" isMandatory="true"/>
- <db-attribute name="NAME" type="VARCHAR" length="255"/>
- </db-entity>
- <obj-entity name="Table1" className="org.apache.cayenne.itest.di_stack.Table1" dbEntityName="TABLE1">
- <obj-attribute name="name" type="java.lang.String" db-attribute-path="NAME"/>
- </obj-entity>
-</data-map>
@@ -1,15 +0,0 @@
-<?xml version="1.0" encoding="utf-8"?>
-<domain name="DefaultDomain" project-version="3.0.0.1">
-
- <map name="DefaultMap" />
-
- <node name="PoolingDSNode">
- <map-ref name="DefaultMap" />
- <data-source>
- <driver value="org.hsqldb.jdbcDriver" />
- <url value="jdbc:hsqldb:mem:DEFAULT" />
- <connectionPool min="1" max="1" />
- <login />
- </data-source>
- </node>
-</domain>
@@ -1,6 +0,0 @@
-log4j.rootLogger=WARN, A1
-log4j.appender.A1=org.apache.log4j.ConsoleAppender
-log4j.appender.A1.layout=org.apache.log4j.PatternLayout
-log4j.appender.A1.layout.ConversionPattern=[%d{dd/MMM/yyyy:HH:mm:ss}] %t %x %-5p %c{1}: %m%n
-
-log4j.logger.org.apache.cayenne=DEBUG
Oops, something went wrong.

0 comments on commit 55de109

Please sign in to comment.