Return-Path: Delivered-To: apmail-lucene-dev-archive@www.apache.org Received: (qmail 85712 invoked from network); 19 Oct 2010 15:12:50 -0000 Received: from unknown (HELO mail.apache.org) (140.211.11.3) by 140.211.11.9 with SMTP; 19 Oct 2010 15:12:50 -0000 Received: (qmail 53623 invoked by uid 500); 19 Oct 2010 15:12:48 -0000 Delivered-To: apmail-lucene-dev-archive@lucene.apache.org Received: (qmail 53568 invoked by uid 500); 19 Oct 2010 15:12:48 -0000 Mailing-List: contact dev-help@lucene.apache.org; run by ezmlm Precedence: bulk List-Help: List-Unsubscribe: List-Post: List-Id: Reply-To: dev@lucene.apache.org Delivered-To: mailing list dev@lucene.apache.org Received: (qmail 53561 invoked by uid 99); 19 Oct 2010 15:12:48 -0000 Received: from athena.apache.org (HELO athena.apache.org) (140.211.11.136) by apache.org (qpsmtpd/0.29) with ESMTP; Tue, 19 Oct 2010 15:12:48 +0000 X-ASF-Spam-Status: No, hits=-2000.0 required=10.0 tests=ALL_TRUSTED X-Spam-Check-By: apache.org Received: from [140.211.11.22] (HELO thor.apache.org) (140.211.11.22) by apache.org (qpsmtpd/0.29) with ESMTP; Tue, 19 Oct 2010 15:12:47 +0000 Received: from thor (localhost [127.0.0.1]) by thor.apache.org (8.13.8+Sun/8.13.8) with ESMTP id o9JFCRd0002105 for ; Tue, 19 Oct 2010 15:12:27 GMT Message-ID: <25552521.47971287501147228.JavaMail.jira@thor> Date: Tue, 19 Oct 2010 11:12:27 -0400 (EDT) From: "Robert Muir (JIRA)" To: dev@lucene.apache.org Subject: [jira] Created: (SOLR-2175) DIH needs Mock (or real in-memory) JDBC/Mail impls for tests... especially JDBC MIME-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: 7bit X-JIRA-FingerPrint: 30527f35849b9dde25b450d4833f0394 DIH needs Mock (or real in-memory) JDBC/Mail impls for tests... especially JDBC ------------------------------------------------------------------------------- Key: SOLR-2175 URL: https://issues.apache.org/jira/browse/SOLR-2175 Project: Solr Issue Type: Test Components: contrib - DataImportHandler Reporter: Robert Muir contrib/dih has some @Ignored tests because there is no in-memory or mock database/mail server: {noformat} [junit] ------------- ---------------- --------------- [junit] Testsuite: org.apache.solr.handler.dataimport.TestJdbcDataSource [junit] Tests run: 3, Failures: 0, Errors: 0, Time elapsed: 0.034 sec [junit] [junit] ------------- Standard Error ----------------- [junit] NOTE: Ignoring test method 'testBasic': Needs a Mock database server to work ... [junit] Testsuite: org.apache.solr.handler.dataimport.TestMailEntityProcessor [junit] Tests run: 0, Failures: 0, Errors: 0, Time elapsed: 0.038 sec [junit] [junit] ------------- Standard Error ----------------- [junit] NOTE: Ignoring test method 'testConnection': Needs a Mock Mail Server to work [junit] NOTE: Ignoring test method 'testRecursion': Needs a Mock Mail Server to work [junit] NOTE: Ignoring test method 'testExclude': Needs a Mock Mail Server to work [junit] NOTE: Ignoring test method 'testInclude': Needs a Mock Mail Server to work [junit] NOTE: Ignoring test method 'testIncludeAndExclude': Needs a Mock Mail Server to work [junit] NOTE: Ignoring test method 'testFetchTimeSince': Needs a Mock Mail Server to work [junit] ------------- ---------------- --------------- {noformat} One way to improve this would be to use something like apache derby for tests to make little databases and test against. Additionally, looking thru JIRA there are a lot of JDBC-related issues and once something like this is setup, I think things could improve without introducing more bugs. -- This message is automatically generated by JIRA. - You can reply to this email to add a comment to the issue online. --------------------------------------------------------------------- To unsubscribe, e-mail: dev-unsubscribe@lucene.apache.org For additional commands, e-mail: dev-help@lucene.apache.org