You are viewing a plain text version of this content. The canonical link for it is here.
Posted to issues@lucene.apache.org by "Alexandre Rafalovitch (Jira)" <ji...@apache.org> on 2020/08/29 18:32:00 UTC

[jira] [Resolved] (SOLR-2175) DIH needs Mock (or real in-memory) JDBC/Mail impls for tests... especially JDBC

     [ https://issues.apache.org/jira/browse/SOLR-2175?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]

Alexandre Rafalovitch resolved SOLR-2175.
-----------------------------------------
    Resolution: Won't Fix

> 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
>            Priority: Major
>
> 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 was sent by Atlassian Jira
(v8.3.4#803005)

---------------------------------------------------------------------
To unsubscribe, e-mail: issues-unsubscribe@lucene.apache.org
For additional commands, e-mail: issues-help@lucene.apache.org