Return-Path: X-Original-To: apmail-incubator-connectors-commits-archive@minotaur.apache.org Delivered-To: apmail-incubator-connectors-commits-archive@minotaur.apache.org Received: from mail.apache.org (hermes.apache.org [140.211.11.3]) by minotaur.apache.org (Postfix) with SMTP id 67F80B14D for ; Mon, 2 Jan 2012 21:20:13 +0000 (UTC) Received: (qmail 61205 invoked by uid 500); 2 Jan 2012 21:20:13 -0000 Delivered-To: apmail-incubator-connectors-commits-archive@incubator.apache.org Received: (qmail 61164 invoked by uid 500); 2 Jan 2012 21:20:13 -0000 Mailing-List: contact connectors-commits-help@incubator.apache.org; run by ezmlm Precedence: bulk List-Help: List-Unsubscribe: List-Post: List-Id: Reply-To: connectors-dev@incubator.apache.org Delivered-To: mailing list connectors-commits@incubator.apache.org Received: (qmail 61157 invoked by uid 99); 2 Jan 2012 21:20:13 -0000 Received: from athena.apache.org (HELO athena.apache.org) (140.211.11.136) by apache.org (qpsmtpd/0.29) with ESMTP; Mon, 02 Jan 2012 21:20:13 +0000 X-ASF-Spam-Status: No, hits=-2000.0 required=5.0 tests=ALL_TRUSTED X-Spam-Check-By: apache.org Received: from [140.211.11.4] (HELO eris.apache.org) (140.211.11.4) by apache.org (qpsmtpd/0.29) with ESMTP; Mon, 02 Jan 2012 21:20:11 +0000 Received: from eris.apache.org (localhost [127.0.0.1]) by eris.apache.org (Postfix) with ESMTP id 1A428238897D; Mon, 2 Jan 2012 21:19:51 +0000 (UTC) Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit Subject: svn commit: r1226550 - in /incubator/lcf/trunk: framework/pull-agent/src/test/java/org/apache/manifoldcf/crawler/tests/ tests/filesystem/src/test/java/org/apache/manifoldcf/filesystem_tests/ Date: Mon, 02 Jan 2012 21:19:50 -0000 To: connectors-commits@incubator.apache.org From: kwright@apache.org X-Mailer: svnmailer-1.0.8-patched Message-Id: <20120102211951.1A428238897D@eris.apache.org> Author: kwright Date: Mon Jan 2 21:19:50 2012 New Revision: 1226550 URL: http://svn.apache.org/viewvc?rev=1226550&view=rev Log: Reorganize UI tests so that UI tests are shared from the base classes. Part of CONNECTORS-339. Added: incubator/lcf/trunk/framework/pull-agent/src/test/java/org/apache/manifoldcf/crawler/tests/ConnectorBaseUIDerby.java (with props) incubator/lcf/trunk/framework/pull-agent/src/test/java/org/apache/manifoldcf/crawler/tests/ConnectorBaseUIHSQLDB.java (with props) incubator/lcf/trunk/framework/pull-agent/src/test/java/org/apache/manifoldcf/crawler/tests/ConnectorBaseUIMySQL.java (with props) incubator/lcf/trunk/framework/pull-agent/src/test/java/org/apache/manifoldcf/crawler/tests/ConnectorBaseUIPostgresql.java (with props) Modified: incubator/lcf/trunk/tests/filesystem/src/test/java/org/apache/manifoldcf/filesystem_tests/BaseUIDerby.java Added: incubator/lcf/trunk/framework/pull-agent/src/test/java/org/apache/manifoldcf/crawler/tests/ConnectorBaseUIDerby.java URL: http://svn.apache.org/viewvc/incubator/lcf/trunk/framework/pull-agent/src/test/java/org/apache/manifoldcf/crawler/tests/ConnectorBaseUIDerby.java?rev=1226550&view=auto ============================================================================== --- incubator/lcf/trunk/framework/pull-agent/src/test/java/org/apache/manifoldcf/crawler/tests/ConnectorBaseUIDerby.java (added) +++ incubator/lcf/trunk/framework/pull-agent/src/test/java/org/apache/manifoldcf/crawler/tests/ConnectorBaseUIDerby.java Mon Jan 2 21:19:50 2012 @@ -0,0 +1,55 @@ +/* $Id$ */ + +/** +* 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.manifoldcf.crawler.tests; + +import org.apache.manifoldcf.core.interfaces.*; +import org.apache.manifoldcf.agents.interfaces.*; +import org.apache.manifoldcf.crawler.interfaces.*; +import org.apache.manifoldcf.crawler.system.ManifoldCF; + +import java.io.*; +import java.util.*; +import org.junit.*; + +import org.apache.manifoldcf.core.tests.HTMLTester; + +/** Tests that run the "agents daemon" should be derived from this */ +public class ConnectorBaseUIDerby extends BaseITDerby +{ + protected HTMLTester testerInstance = null; + + @Before + public void setupHTMLTester() + throws Exception + { + testerInstance = new HTMLTester(); + testerInstance.setup(); + } + + @After + public void teardownHTMLTester() + throws Exception + { + if (testerInstance != null) + { + testerInstance.teardown(); + testerInstance = null; + } + } +} Propchange: incubator/lcf/trunk/framework/pull-agent/src/test/java/org/apache/manifoldcf/crawler/tests/ConnectorBaseUIDerby.java ------------------------------------------------------------------------------ svn:eol-style = native Propchange: incubator/lcf/trunk/framework/pull-agent/src/test/java/org/apache/manifoldcf/crawler/tests/ConnectorBaseUIDerby.java ------------------------------------------------------------------------------ svn:keywords = Id Added: incubator/lcf/trunk/framework/pull-agent/src/test/java/org/apache/manifoldcf/crawler/tests/ConnectorBaseUIHSQLDB.java URL: http://svn.apache.org/viewvc/incubator/lcf/trunk/framework/pull-agent/src/test/java/org/apache/manifoldcf/crawler/tests/ConnectorBaseUIHSQLDB.java?rev=1226550&view=auto ============================================================================== --- incubator/lcf/trunk/framework/pull-agent/src/test/java/org/apache/manifoldcf/crawler/tests/ConnectorBaseUIHSQLDB.java (added) +++ incubator/lcf/trunk/framework/pull-agent/src/test/java/org/apache/manifoldcf/crawler/tests/ConnectorBaseUIHSQLDB.java Mon Jan 2 21:19:50 2012 @@ -0,0 +1,55 @@ +/* $Id$ */ + +/** +* 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.manifoldcf.crawler.tests; + +import org.apache.manifoldcf.core.interfaces.*; +import org.apache.manifoldcf.agents.interfaces.*; +import org.apache.manifoldcf.crawler.interfaces.*; +import org.apache.manifoldcf.crawler.system.ManifoldCF; + +import java.io.*; +import java.util.*; +import org.junit.*; + +import org.apache.manifoldcf.core.tests.HTMLTester; + +/** Tests that run the "agents daemon" should be derived from this */ +public class ConnectorBaseUIHSQLDB extends BaseITHSQLDB +{ + protected HTMLTester testerInstance = null; + + @Before + public void setupHTMLTester() + throws Exception + { + testerInstance = new HTMLTester(); + testerInstance.setup(); + } + + @After + public void teardownHTMLTester() + throws Exception + { + if (testerInstance != null) + { + testerInstance.teardown(); + testerInstance = null; + } + } +} Propchange: incubator/lcf/trunk/framework/pull-agent/src/test/java/org/apache/manifoldcf/crawler/tests/ConnectorBaseUIHSQLDB.java ------------------------------------------------------------------------------ svn:eol-style = native Propchange: incubator/lcf/trunk/framework/pull-agent/src/test/java/org/apache/manifoldcf/crawler/tests/ConnectorBaseUIHSQLDB.java ------------------------------------------------------------------------------ svn:keywords = Id Added: incubator/lcf/trunk/framework/pull-agent/src/test/java/org/apache/manifoldcf/crawler/tests/ConnectorBaseUIMySQL.java URL: http://svn.apache.org/viewvc/incubator/lcf/trunk/framework/pull-agent/src/test/java/org/apache/manifoldcf/crawler/tests/ConnectorBaseUIMySQL.java?rev=1226550&view=auto ============================================================================== --- incubator/lcf/trunk/framework/pull-agent/src/test/java/org/apache/manifoldcf/crawler/tests/ConnectorBaseUIMySQL.java (added) +++ incubator/lcf/trunk/framework/pull-agent/src/test/java/org/apache/manifoldcf/crawler/tests/ConnectorBaseUIMySQL.java Mon Jan 2 21:19:50 2012 @@ -0,0 +1,55 @@ +/* $Id$ */ + +/** +* 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.manifoldcf.crawler.tests; + +import org.apache.manifoldcf.core.interfaces.*; +import org.apache.manifoldcf.agents.interfaces.*; +import org.apache.manifoldcf.crawler.interfaces.*; +import org.apache.manifoldcf.crawler.system.ManifoldCF; + +import java.io.*; +import java.util.*; +import org.junit.*; + +import org.apache.manifoldcf.core.tests.HTMLTester; + +/** Tests that run the "agents daemon" should be derived from this */ +public class ConnectorBaseUIMySQL extends ConnectorBaseMySQL +{ + protected HTMLTester testerInstance = null; + + @Before + public void setupHTMLTester() + throws Exception + { + testerInstance = new HTMLTester(); + testerInstance.setup(); + } + + @After + public void teardownHTMLTester() + throws Exception + { + if (testerInstance != null) + { + testerInstance.teardown(); + testerInstance = null; + } + } +} Propchange: incubator/lcf/trunk/framework/pull-agent/src/test/java/org/apache/manifoldcf/crawler/tests/ConnectorBaseUIMySQL.java ------------------------------------------------------------------------------ svn:eol-style = native Propchange: incubator/lcf/trunk/framework/pull-agent/src/test/java/org/apache/manifoldcf/crawler/tests/ConnectorBaseUIMySQL.java ------------------------------------------------------------------------------ svn:keywords = Id Added: incubator/lcf/trunk/framework/pull-agent/src/test/java/org/apache/manifoldcf/crawler/tests/ConnectorBaseUIPostgresql.java URL: http://svn.apache.org/viewvc/incubator/lcf/trunk/framework/pull-agent/src/test/java/org/apache/manifoldcf/crawler/tests/ConnectorBaseUIPostgresql.java?rev=1226550&view=auto ============================================================================== --- incubator/lcf/trunk/framework/pull-agent/src/test/java/org/apache/manifoldcf/crawler/tests/ConnectorBaseUIPostgresql.java (added) +++ incubator/lcf/trunk/framework/pull-agent/src/test/java/org/apache/manifoldcf/crawler/tests/ConnectorBaseUIPostgresql.java Mon Jan 2 21:19:50 2012 @@ -0,0 +1,55 @@ +/* $Id$ */ + +/** +* 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.manifoldcf.crawler.tests; + +import org.apache.manifoldcf.core.interfaces.*; +import org.apache.manifoldcf.agents.interfaces.*; +import org.apache.manifoldcf.crawler.interfaces.*; +import org.apache.manifoldcf.crawler.system.ManifoldCF; + +import java.io.*; +import java.util.*; +import org.junit.*; + +import org.apache.manifoldcf.core.tests.HTMLTester; + +/** Tests that run the "agents daemon" should be derived from this */ +public class ConnectorBaseUIPostgresql extends BaseITPostgresql +{ + protected HTMLTester testerInstance = null; + + @Before + public void setupHTMLTester() + throws Exception + { + testerInstance = new HTMLTester(); + testerInstance.setup(); + } + + @After + public void teardownHTMLTester() + throws Exception + { + if (testerInstance != null) + { + testerInstance.teardown(); + testerInstance = null; + } + } +} Propchange: incubator/lcf/trunk/framework/pull-agent/src/test/java/org/apache/manifoldcf/crawler/tests/ConnectorBaseUIPostgresql.java ------------------------------------------------------------------------------ svn:eol-style = native Propchange: incubator/lcf/trunk/framework/pull-agent/src/test/java/org/apache/manifoldcf/crawler/tests/ConnectorBaseUIPostgresql.java ------------------------------------------------------------------------------ svn:keywords = Id Modified: incubator/lcf/trunk/tests/filesystem/src/test/java/org/apache/manifoldcf/filesystem_tests/BaseUIDerby.java URL: http://svn.apache.org/viewvc/incubator/lcf/trunk/tests/filesystem/src/test/java/org/apache/manifoldcf/filesystem_tests/BaseUIDerby.java?rev=1226550&r1=1226549&r2=1226550&view=diff ============================================================================== --- incubator/lcf/trunk/tests/filesystem/src/test/java/org/apache/manifoldcf/filesystem_tests/BaseUIDerby.java (original) +++ incubator/lcf/trunk/tests/filesystem/src/test/java/org/apache/manifoldcf/filesystem_tests/BaseUIDerby.java Mon Jan 2 21:19:50 2012 @@ -30,36 +30,36 @@ import org.junit.*; import org.apache.manifoldcf.core.tests.HTMLTester; /** Tests that run the "agents daemon" should be derived from this */ -public class BaseUIDerby extends BaseDerby +public class BaseUIDerby extends org.apache.manifoldcf.crawler.tests.ConnectorBaseUIDerby { - protected HTMLTester testerInstance = null; + protected String[] getConnectorNames() + { + return new String[]{"File Connector"}; + } - protected String[] getAuthorityClasses() + protected String[] getConnectorClasses() { - return new String[]{"org.apache.manifoldcf.authorities.authorities.nullauthority.NullAuthority"}; + return new String[]{"org.apache.manifoldcf.crawler.connectors.filesystem.FileConnector"}; } - protected String[] getAuthorityNames() + protected String[] getOutputNames() { - return new String[]{"Null authority"}; + return new String[]{"Null Output"}; + } + + protected String[] getOutputClasses() + { + return new String[]{"org.apache.manifoldcf.agents.output.nullconnector.NullConnector"}; } - @Before - public void setupHTMLTester() - throws Exception + protected String[] getAuthorityClasses() { - testerInstance = new HTMLTester(); - testerInstance.setup(); + return new String[]{"org.apache.manifoldcf.authorities.authorities.nullauthority.NullAuthority"}; } - @After - public void teardownHTMLTester() - throws Exception - { - if (testerInstance != null) - { - testerInstance.teardown(); - testerInstance = null; - } + protected String[] getAuthorityNames() + { + return new String[]{"Null authority"}; } + }